{"info":{"_postman_id":"3364a861-b8b3-479c-a616-a003245a0dfd","name":"RazorpayX Payroll - Partner APIs","description":"<html><head></head><body><p><strong>Base URL:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Environment</strong></th>\n<th><strong>URL</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Production</td>\n<td><a href=\"https://payroll.razorpay.com\">https://payroll.razorpay.com</a></td>\n</tr>\n<tr>\n<td>Stage (Test)</td>\n<td><a href=\"https://payroll-demo.razorpay.com\">https://payroll-demo.razorpay.com</a></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Authentication:</strong></p>\n<p>We support 2 kinds of authentication.</p>\n<p>First is similar to V1 APIs, which can be used by our clients directly to view or update information about their people in their organisation. For using this, you need to send the API ID and API key set by you in organisation settings in the header with key names <code>x-api-id</code> and <code>x-api-key</code>. That is:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header key name</strong></th>\n<th><strong>Key value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>x-api-id</td>\n<td>{{your-api-id}}</td>\n</tr>\n<tr>\n<td>x-api-key</td>\n<td>{{your-api-key-value}}</td>\n</tr>\n</tbody>\n</table>\n</div><p>Second is for our integration partners. They can access the data of people of organisations which are integrated with them using the combination of 2 another set of keys: <code>x-partner-key</code> and <code>x-client-key</code>. That is:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header key name</strong></th>\n<th><strong>Key value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>x-partner-key</td>\n<td>{{your-partner-key}}</td>\n</tr>\n<tr>\n<td>x-client-key</td>\n<td>{{your-client-key-for-that-specific-org}}</td>\n</tr>\n</tbody>\n</table>\n</div><p>Remember, you can only use either of the one authentication approach in an API request, and cannot send all the 4 keys together (which ideally you should not know either).</p>\n<p>Upcoming APIs:</p>\n<ul>\n<li>Salary Structure - Get or set salary structure of a user.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23869703","collectionId":"3364a861-b8b3-479c-a616-a003245a0dfd","publishedId":"2s847MrAqf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-11T17:40:33.000Z"},"item":[{"name":"People APIs","item":[{"name":"People","id":"afb99a44-9833-4a7e-8105-0e7d4e4ea74d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/partner/api/v2/people/{{id}}","description":"<p>Get a people entity from id. Response entities would be null if anything is not set.</p>\n<p><strong>Response parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>key</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Unique internal identifier</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of employee/contractor</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> Enum between <code>employee</code> or <code>contractor</code></td>\n</tr>\n<tr>\n<td>email</td>\n<td><code>string</code> Email of employee</td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td><code>string</code> EmployeeId with prefix according to organisation settings</td>\n</tr>\n<tr>\n<td>hire_date</td>\n<td><code>string</code> Date in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>pan</td>\n<td><code>string</code> PAN number</td>\n</tr>\n<tr>\n<td>uan</td>\n<td><code>string</code> UAN number</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td><code>string</code> Date in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number</td>\n</tr>\n<tr>\n<td>gender</td>\n<td><code>string</code> Either <code>male</code>, <code>female</code> or <code>other</code>.</td>\n</tr>\n<tr>\n<td>job_title</td>\n<td><code>string</code> Job title of the user</td>\n</tr>\n<tr>\n<td>department</td>\n<td><code>string</code> Department of the user</td>\n</tr>\n<tr>\n<td>bank_ifsc</td>\n<td><code>string</code> Bank IFSC number</td>\n</tr>\n<tr>\n<td>bank_account_number</td>\n<td><code>string</code> Bank Account Number</td>\n</tr>\n<tr>\n<td>manager_id</td>\n<td><code>integer</code> Manager unique identifier</td>\n</tr>\n<tr>\n<td>manager_employee_id</td>\n<td><code>string</code> Manager employer Id with prefix (if applicable)</td>\n</tr>\n<tr>\n<td>manager_email</td>\n<td><code>string</code> Manager email address</td>\n</tr>\n<tr>\n<td>is_pt_enabled</td>\n<td><code>boolean</code> Flag to enable PT</td>\n</tr>\n<tr>\n<td>is_pf_enabled</td>\n<td><code>boolean</code> Flag to enable PF</td>\n</tr>\n<tr>\n<td>state</td>\n<td><code>string</code> State name. Enum - possible states names given in separate table</td>\n</tr>\n<tr>\n<td>stop_salary</td>\n<td><code>boolean</code> Flag to stop salary of user</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td><code>boolean</code> Flag showing user active or not</td>\n</tr>\n<tr>\n<td>dismissal_date</td>\n<td><code>string</code> Date in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>optional_user_data</td>\n<td><code>object</code> More details in separate table</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td><code>timestamp</code> Created at unix epoch timestamp</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td><code>timestamp</code> Updated at unix epoch timestamp</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Optional user data response</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>key</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>personal_phone_number</td>\n<td><code>string</code> Personal phone number</td>\n</tr>\n<tr>\n<td>personal_email_address</td>\n<td><code>string</code> Personal email address</td>\n</tr>\n<tr>\n<td>father_name</td>\n<td><code>string</code> Father's name</td>\n</tr>\n<tr>\n<td>father_dob</td>\n<td><code>string</code> Father's DOB</td>\n</tr>\n<tr>\n<td>mother_name</td>\n<td><code>string</code> Mother's name</td>\n</tr>\n<tr>\n<td>mother_dob</td>\n<td><code>string</code> Mother's DOB</td>\n</tr>\n<tr>\n<td>spouse_name</td>\n<td><code>string</code> Spouse's name</td>\n</tr>\n<tr>\n<td>spouse_dob</td>\n<td><code>string</code> Spouse's DOB</td>\n</tr>\n<tr>\n<td>child_1_name</td>\n<td><code>string</code> Name of first child</td>\n</tr>\n<tr>\n<td>child_2_name</td>\n<td><code>string</code> Name of second child</td>\n</tr>\n<tr>\n<td>permanent_address</td>\n<td><code>string</code> Permanent address</td>\n</tr>\n<tr>\n<td>temporary_address</td>\n<td><code>string</code> Temporary address</td>\n</tr>\n<tr>\n<td>highest_qualification</td>\n<td><code>string</code> Highest qualification</td>\n</tr>\n<tr>\n<td>aadhaar_number</td>\n<td><code>string</code> Aadhaar number</td>\n</tr>\n<tr>\n<td>marital_status</td>\n<td><code>string</code> Marital status</td>\n</tr>\n<tr>\n<td>previous_employer</td>\n<td><code>string</code> Previous employer</td>\n</tr>\n<tr>\n<td>previous_designation</td>\n<td><code>string</code> Previous designation</td>\n</tr>\n<tr>\n<td>marriage_anniversary</td>\n<td><code>string</code> Marriage anniversary</td>\n</tr>\n<tr>\n<td>emergency_contact_name</td>\n<td><code>string</code> Emergency contact name</td>\n</tr>\n<tr>\n<td>emergency_contact_number</td>\n<td><code>string</code> Emergency contact number</td>\n</tr>\n<tr>\n<td>emergency_contact_relation</td>\n<td><code>string</code> Emergency contact relation</td>\n</tr>\n<tr>\n<td>blood_group</td>\n<td><code>string</code> Blood group</td>\n</tr>\n<tr>\n<td>nationality</td>\n<td><code>string</code> Nationality</td>\n</tr>\n<tr>\n<td>custom_1</td>\n<td><code>string</code> First custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_2</td>\n<td><code>string</code> Second custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_3</td>\n<td><code>string</code> Third custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_4</td>\n<td><code>string</code> Fourth custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_5</td>\n<td><code>string</code> Fifth custom field set by organisation admins.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Key names of custom optional user data are not returned by APIs. They are expected to be known to the customer.</p>\n<p><strong>Possible State names in response:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Name</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Andaman and Nicobar Islands</td>\n<td>Andhra Pradesh</td>\n</tr>\n<tr>\n<td>Arunachal Pradesh</td>\n<td>Assam</td>\n</tr>\n<tr>\n<td>Bihar</td>\n<td>Chandigarh</td>\n</tr>\n<tr>\n<td>Chhattisgarh</td>\n<td>Dadra and Nagar Haveli</td>\n</tr>\n<tr>\n<td>Daman and Diu</td>\n<td>Delhi</td>\n</tr>\n<tr>\n<td>Goa</td>\n<td>Gujarat</td>\n</tr>\n<tr>\n<td>Haryana</td>\n<td>Himachal Pradesh</td>\n</tr>\n<tr>\n<td>Jammu and Kashmir</td>\n<td>Jharkhand</td>\n</tr>\n<tr>\n<td>Karnataka</td>\n<td>Kerala</td>\n</tr>\n<tr>\n<td>Lakshadweep</td>\n<td>Madhya Pradesh</td>\n</tr>\n<tr>\n<td>Maharashtra</td>\n<td>Manipur</td>\n</tr>\n<tr>\n<td>Meghalaya</td>\n<td>Mizoram</td>\n</tr>\n<tr>\n<td>Nagaland</td>\n<td>Odisha</td>\n</tr>\n<tr>\n<td>Puducherry</td>\n<td>Punjab</td>\n</tr>\n<tr>\n<td>Rajasthan</td>\n<td>Sikkim</td>\n</tr>\n<tr>\n<td>Tamil Nadu</td>\n<td>Tamil Nadu (Tiruchirappalli)</td>\n</tr>\n<tr>\n<td>Telangana</td>\n<td>Tripura</td>\n</tr>\n<tr>\n<td>Uttar Pradesh</td>\n<td>Uttarakhand</td>\n</tr>\n<tr>\n<td>West Bengal</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>In case of error:</strong><br />Status Code &gt;= 400</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>USER_NOT_FOUND</td>\n<td>No user found from given ID</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people","{{id}}"],"host":["{{base}}"],"query":[],"variable":[]}},"response":[{"id":"e19aec16-1c6d-4b95-88d7-17310fdbc058","name":"People","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/html","type":"text","disabled":true},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"},{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}],"url":"{{base}}/partner/api/v2/people/{{id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19502,\n    \"name\": \"Test Name9\",\n    \"type\": \"contractor\",\n    \"email\": \"testingfromapi9@mailinator.com\",\n    \"employee_id\": \"CONTA1036\",\n    \"hire_date\": \"30-05-2020\",\n    \"pan\": null,\n    \"uan\": null,\n    \"date_of_birth\": null,\n    \"phone_number\": null,\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\",\n    \"department\": \"Payments\",\n    \"bank_ifsc\": \"\",\n    \"bank_account_number\": \"\",\n    \"manager_id\": 678,\n    \"manager_employee_id\": \"EMP110\",\n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,\n    \"state\": \"haryana\",\n    \"stop_salary\": false,\n    \"is_active\": true,\n    \"dismissal_date\": null,\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null,\n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    },\n    \"created_at\": 1640070550,\n    \"updated_at\": 1640071015\n}"}],"_postman_id":"afb99a44-9833-4a7e-8105-0e7d4e4ea74d"},{"name":"People","id":"2aa596e7-2391-4530-9277-7ebc7ab9280a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Name11\",\n    \"type\": \"contractor\",  \n    \"email\": \"testingfromapi11@mailinator.com\",  \n    \"employee_id\": \"CONTA1171\", \n    \"hire_date\": \"30-05-2020\",  \n    \"uan\": null,\n    \"phone_number\": \"9999999999\",\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\", \n    \"department\": \"Payments\",   \n    \"manager_id\": 678, \n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,      \n    \"state\": \"haryana\",\n    \"stop_salary\": false,\n    \"manager_employee_type\": null,\n    \"past_payroll\": {\n        \"past_salary\": 100,\n        \"past_exemption\": 0,\n        \"past_tds\": 0,\n        \"previous_employer_salary\": 0,\n        \"previous_employer_tds\": 0\n    },\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null, \n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    }\n}\n ","options":{"raw":{"language":"json"}}},"url":"{{base}}/partner/api/v2/people","description":"<p>Create a people entry.</p>\n<p><strong>Request Body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>key</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> <code>required</code> Name of employee/contractor</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> <code>required</code> Enum between <code>employee</code> or <code>contractor</code></td>\n</tr>\n<tr>\n<td>email</td>\n<td><code>string</code> <code>required</code> Email of employee</td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td><code>string</code> EmployeeId with prefix according to organisation settings</td>\n</tr>\n<tr>\n<td>hire_date</td>\n<td><code>string</code> Date in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>pan</td>\n<td><code>string</code> PAN number</td>\n</tr>\n<tr>\n<td>uan</td>\n<td><code>string</code> <code>nullable</code> UAN number</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td><code>string</code> Date in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number</td>\n</tr>\n<tr>\n<td>gender</td>\n<td><code>string</code> Either one of <code>male</code>, <code>female</code> or <code>other</code>.</td>\n</tr>\n<tr>\n<td>job_title</td>\n<td><code>string</code> <code>nullable</code> Job title of the user</td>\n</tr>\n<tr>\n<td>department</td>\n<td><code>string</code> Department of the user</td>\n</tr>\n<tr>\n<td>bank_ifsc</td>\n<td><code>string</code> Bank IFSC number</td>\n</tr>\n<tr>\n<td>bank_account_number</td>\n<td><code>string</code> Bank Account Number</td>\n</tr>\n<tr>\n<td>manager_id</td>\n<td><code>integer</code> <code>nullable</code> Manager unique identifier</td>\n</tr>\n<tr>\n<td>is_pt_enabled</td>\n<td><code>boolean</code> Flag to enable PT</td>\n</tr>\n<tr>\n<td>is_pf_enabled</td>\n<td><code>boolean</code> Flag to enable PF</td>\n</tr>\n<tr>\n<td>state</td>\n<td><code>string</code> <code>nullable</code> State name. Enum - possible states names same as response of GET API - with completely in lowercase.</td>\n</tr>\n<tr>\n<td>optional_user_data</td>\n<td><code>object</code> More details in separate table</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Optional user data request body:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>key</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>personal_phone_number</td>\n<td><code>string</code> <code>nullable</code> Personal phone number</td>\n</tr>\n<tr>\n<td>personal_email_address</td>\n<td><code>string</code> <code>nullable</code> Personal email address</td>\n</tr>\n<tr>\n<td>father_name</td>\n<td><code>string</code> <code>nullable</code> Father's name</td>\n</tr>\n<tr>\n<td>father_dob</td>\n<td><code>string</code> <code>nullable</code> Father's DOB - in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>mother_name</td>\n<td><code>string</code> <code>nullable</code> Mother's name</td>\n</tr>\n<tr>\n<td>mother_dob</td>\n<td><code>string</code> <code>nullable</code> Mother's DOB - in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>spouse_name</td>\n<td><code>string</code> <code>nullable</code> Spouse's name</td>\n</tr>\n<tr>\n<td>spouse_dob</td>\n<td><code>string</code> <code>nullable</code> Spouse's DOB - in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>child_1_name</td>\n<td><code>string</code> <code>nullable</code> Name of first child</td>\n</tr>\n<tr>\n<td>child_2_name</td>\n<td><code>string</code> <code>nullable</code> Name of second child</td>\n</tr>\n<tr>\n<td>permanent_address</td>\n<td><code>string</code> <code>nullable</code> Permanent address</td>\n</tr>\n<tr>\n<td>temporary_address</td>\n<td><code>string</code> <code>nullable</code> Temporary address</td>\n</tr>\n<tr>\n<td>highest_qualification</td>\n<td><code>string</code> <code>nullable</code> Highest qualification</td>\n</tr>\n<tr>\n<td>aadhaar_number</td>\n<td><code>string</code> <code>nullable</code> Aadhaar number</td>\n</tr>\n<tr>\n<td>marital_status</td>\n<td><code>string</code> <code>nullable</code> Marital status</td>\n</tr>\n<tr>\n<td>previous_employer</td>\n<td><code>string</code> <code>nullable</code> Previous employer</td>\n</tr>\n<tr>\n<td>previous_designation</td>\n<td><code>string</code> <code>nullable</code> Previous designation</td>\n</tr>\n<tr>\n<td>marriage_anniversary</td>\n<td><code>string</code> <code>nullable</code> Marriage anniversary - in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td>emergency_contact_name</td>\n<td><code>string</code> <code>nullable</code> Emergency contact name</td>\n</tr>\n<tr>\n<td>emergency_contact_number</td>\n<td><code>string</code> <code>nullable</code> Emergency contact number</td>\n</tr>\n<tr>\n<td>emergency_contact_relation</td>\n<td><code>string</code> <code>nullable</code> Emergency contact relation</td>\n</tr>\n<tr>\n<td>blood_group</td>\n<td><code>string</code> <code>nullable</code> Blood group</td>\n</tr>\n<tr>\n<td>nationality</td>\n<td><code>string</code> <code>nullable</code> Nationality</td>\n</tr>\n<tr>\n<td>custom_1</td>\n<td><code>string</code> <code>nullable</code> Value of first custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_2</td>\n<td><code>string</code> <code>nullable</code> Value of second custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_3</td>\n<td><code>string</code> <code>nullable</code> Value of third custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_4</td>\n<td><code>string</code> <code>nullable</code> Value of fourth custom field set by organisation admins.</td>\n</tr>\n<tr>\n<td>custom_5</td>\n<td><code>string</code> <code>nullable</code> Value of fifth custom field set by organisation admins.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Key names of custom optional user data should not be provided. We automatically match it with the key names set by the organisation admins.</p>\n<p><strong>In case of error:</strong></p>\n<p>Status Code &gt;= 400</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>INVALID_DATA</td>\n<td>Some invalid request body data provided</td>\n</tr>\n<tr>\n<td>EMAIL_ALREADY_EXISTS</td>\n<td>If given email is already in use</td>\n</tr>\n<tr>\n<td>EMPLOYEE_ID_NOT_AVAILABLE</td>\n<td>Employee Id is already in use</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people"],"host":["{{base}}"],"query":[],"variable":[]}},"response":[{"id":"ed4124a7-244c-4c3c-a154-fab6f3b19208","name":"People","originalRequest":{"method":"POST","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Name11\",\n    \"type\": \"contractor\",  \n    \"email\": \"testingfromapi11@mailinator.com\",  \n    \"employee_id\": \"CONTA1171\", \n    \"hire_date\": \"30-05-2020\",  \n    \"uan\": null,\n    \"phone_number\": \"9999999999\",\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\", \n    \"department\": \"Payments\",   \n    \"manager_id\": 678, \n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,      \n    \"state\": \"haryana\",\n    \"stop_salary\": false,\n    \"past_payroll\": {\n        \"past_salary\": 100,\n        \"past_exemption\": 0,\n        \"past_tds\": 0,\n        \"previous_employer_salary\": 0,\n        \"previous_employer_tds\": 0\n    },\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null, \n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    }\n}\n ","options":{"raw":{"language":"json"}}},"url":"{{base}}/partner/api/v2/people"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19509,\n    \"name\": \"Test Name11\",\n    \"type\": \"contractor\",\n    \"email\": \"testingfromapi11@mailinator.com\",\n    \"employee_id\": \"CONTA1171\",\n    \"hire_date\": \"30-05-2020\",\n    \"pan\": null,\n    \"uan\": null,\n    \"date_of_birth\": null,\n    \"phone_number\": \"9999999999\",\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\",\n    \"department\": \"Payments\",\n    \"bank_ifsc\": \"\",\n    \"bank_account_number\": \"\",\n    \"manager_id\": 678,\n    \"manager_employee_id\": \"EMP110\",\n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,\n    \"state\": \"Haryana\",\n    \"stop_salary\": false,\n    \"is_active\": false,\n    \"dismissal_date\": null,\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null,\n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    },\n    \"created_at\": 1640138243,\n    \"updated_at\": 1640569923\n}"}],"_postman_id":"2aa596e7-2391-4530-9277-7ebc7ab9280a"},{"name":"People","id":"e9c8d4ee-cd09-4923-bc75-801a8dc65fa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Name11\",\n    \"type\": \"contractor\",  \n    \"employee_id\": \"CONTA1175\", \n    \"hire_date\": \"30-05-2020\",  \n    \"pan\": \"BXQPG4756C\",\n    \"uan\": null,\n    \"phone_number\": \"9999999999\",\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\", \n    \"department\": \"Payments\",   \n    \"manager_id\": 678, \n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,      \n    \"state\": \"haryana\",\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null, \n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    }\n}\n ","options":{"raw":{"language":"json"}}},"url":"{{base}}/partner/api/v2/people/{{id}}","description":"<p>Update a people entity.</p>\n<p><strong>Request Body:</strong></p>\n<p>Exactly same as POST request body, except following things:</p>\n<ol>\n<li>You cannot update email of the user.</li>\n<li>None of the key is required. Every key is optional.</li>\n</ol>\n<p>Keys which are not nullable, you cannot set them to null. If you don't want to update any key and do not know it's current value, just don't provide that key in the request body.</p>\n<p><strong>In case of error:</strong></p>\n<p>Status Code &gt;= 400</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>INVALID_DATA</td>\n<td>Some invalid request body data provided</td>\n</tr>\n<tr>\n<td>USER_NOT_FOUND</td>\n<td>No user found from given ID</td>\n</tr>\n<tr>\n<td>EMAIL_ALREADY_EXISTS</td>\n<td>If given email is already in use</td>\n</tr>\n<tr>\n<td>EMPLOYEE_ID_NOT_AVAILABLE</td>\n<td>Employee Id is already in use.</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people","{{id}}"],"host":["{{base}}"],"query":[],"variable":[]}},"response":[{"id":"0e6920f5-9245-4f89-95f3-b6a251d7c9a9","name":"People","originalRequest":{"method":"PATCH","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Name11\",\n    \"type\": \"contractor\",  \n    \"employee_id\": \"CONTA1175\", \n    \"hire_date\": \"30-05-2020\",  \n    \"pan\": \"BXQPG4756C\",\n    \"uan\": null,\n    \"phone_number\": \"9999999999\",\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\", \n    \"department\": \"Payments\",   \n    \"manager_id\": 678, \n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,      \n    \"state\": \"haryana\",\n    \"stop_salary\": false,\n    \"past_payroll\": {\n        \"past_salary\": 100,\n        \"past_exemption\": 0,\n        \"past_tds\": 0,\n        \"previous_employer_salary\": 0,\n        \"previous_employer_tds\": 0\n    },\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null, \n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    }\n}\n \n ","options":{"raw":{"language":"json"}}},"url":"{{base}}/v2/api/v2/people/{{id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19502,\n    \"name\": \"Test Name11\",\n    \"type\": \"contractor\",\n    \"email\": \"testingfromapi9@mailinator.com\",\n    \"employee_id\": \"CONTA1175\",\n    \"hire_date\": \"30-05-2020\",\n    \"pan\": \"BXQPG4756C\",\n    \"uan\": null,\n    \"date_of_birth\": null,\n    \"phone_number\": \"9999999999\",\n    \"gender\": \"male\",\n    \"job_title\": \"Designer\",\n    \"department\": \"Payments\",\n    \"bank_ifsc\": \"\",\n    \"bank_account_number\": \"\",\n    \"manager_id\": 678,\n    \"manager_employee_id\": \"EMP110\",\n    \"is_pt_enabled\": false,\n    \"is_pf_enabled\": true,\n    \"state\": \"Haryana\",\n    \"stop_salary\": false,\n    \"is_active\": true,\n    \"dismissal_date\": null,\n    \"optional_user_data\": {\n        \"personal_phone_number\": \"9999911011\",\n        \"personal_email_address\": null,\n        \"father_name\": null,\n        \"father_dob\": null,\n        \"mother_name\": null,\n        \"mother_dob\": null,\n        \"spouse_name\": null,\n        \"spouse_dob\": null,\n        \"child_1_name\": null,\n        \"child_2_name\": null,\n        \"permanent_address\": null,\n        \"temporary_address\": null,\n        \"highest_qualification\": null,\n        \"aadhaar_number\": null,\n        \"marital_status\": \"single\",\n        \"work_experience\": null,\n        \"previous_employer\": null,\n        \"previous_designation\": null,\n        \"marriage_anniversary\": null,\n        \"emergency_contact_name\": null,\n        \"emergency_contact_number\": null,\n        \"emergency_contact_relation\": null,\n        \"blood_group\": null,\n        \"nationality\": null,\n        \"custom_1\": \"hello\",\n        \"custom_2\": null,\n        \"custom_3\": null,\n        \"custom_4\": null,\n        \"custom_5\": null\n    },\n    \"created_at\": 1640070550,\n    \"updated_at\": 1640589879\n}"}],"_postman_id":"e9c8d4ee-cd09-4923-bc75-801a8dc65fa2"},{"name":"People","id":"52529a19-b571-47cd-958e-a39d42da1596","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/partner/api/v2/people/{{id}}","description":"<p>Delete a people entity<br />Expected Response on Success:<br />Status Code 200 OK</p>\n<p><em><strong>In case of Error:</strong></em></p>\n<p>Status Code &gt;= 400</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>USER_NOT_FOUND</td>\n<td>No user found from given ID</td>\n</tr>\n<tr>\n<td>USER_NOT_DISMISSED</td>\n<td>User needs to be dismissed before being deleted</td>\n</tr>\n<tr>\n<td>USER_ALREADY_DELETED</td>\n<td>User is already deleted</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people","{{id}}"],"host":["{{base}}"],"query":[],"variable":[]}},"response":[{"id":"3c40c860-28a2-4c05-9439-e5bb3669683f","name":"People","originalRequest":{"method":"DELETE","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/v2/api/v2/people/{{id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"52529a19-b571-47cd-958e-a39d42da1596"},{"name":"Get ID","id":"110d8ff4-a801-466d-9c35-9e2c78f698de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/partner/api/v2/people/id?email={{email}}&employee-id={{employee-id}}&type={{type}}","description":"<p>Get id of user from email or employee id<br />Some points to note down:</p>\n<ol>\n<li>You can either use <code>email</code> in request parameters, or can use a combination of <code>employee-id</code> and <code>type</code>.</li>\n<li>If <code>employee-id</code> is used, it should have the correct prefix as per organisation's settings.</li>\n<li>Use URL encoding for special characters, like '+', in email. For eg, if your email id is <code>abc+123@xyz.com</code>, then you have to pass \"% 2B\" (without space between '%' and '2') instead of '+'. That is, pass email id as <code>abc% 2B123@xyz,com</code> (without space).</li>\n</ol>\n<p>Accepted query parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Paramater</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n<td><code>string</code> email id of required user</td>\n</tr>\n<tr>\n<td>employee-id</td>\n<td><code>string</code> employee id of required user, with prefix (if applicable)</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> employee type. Enum - either <code>employee</code> or <code>contractor</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>key</strong></th>\n<th><strong>description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> unique identifier for that user</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of employee/contractor</td>\n</tr>\n<tr>\n<td>email</td>\n<td><code>string</code> Email of employee</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> Enum between <code>employee</code> or <code>contractor</code></td>\n</tr>\n<tr>\n<td>employee_id</td>\n<td><code>string</code> EmployeeId with prefix according to organisation settings</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>In case of error:</strong></p>\n<p>Status Code &gt;= 400</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>USER_NOT_FOUND</td>\n<td>No user found from given details</td>\n</tr>\n<tr>\n<td>INVALID_DATA</td>\n<td>Invalid data is given, eg. invalid employee type</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people","id"],"host":["{{base}}"],"query":[{"key":"email","value":"{{email}}"},{"key":"employee-id","value":"{{employee-id}}"},{"key":"type","value":"{{type}}"}],"variable":[]}},"response":[{"id":"0067b43a-60b2-478b-a70c-e46ecd195658","name":"Get ID From Email","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":{"raw":"{{base}}/partner/api/v2/people/id?email={{email}}","host":["{{base}}"],"path":["partner","api","v2","people","id"],"query":[{"key":"email","value":"{{email}}"},{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19502,\n    \"name\": \"Test Name11\",\n    \"email\": \"testingfromapi9@mailinator.com\",\n    \"type\": \"contractor\",\n    \"employee_id\": \"CONTA1175\"\n}"},{"id":"a429da37-ee27-4bda-8eac-9e9e3cb80323","name":"Get ID From Employee Id and Employee Type","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":{"raw":"{{base}}/partner/api/v2/people/id?employee-id={{employee-id}}&type={{type}}","host":["{{base}}"],"path":["partner","api","v2","people","id"],"query":[{"key":"employee-id","value":"{{employee-id}}"},{"key":"type","value":"{{type}}"},{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19502,\n    \"name\": \"Test Name11\",\n    \"email\": \"testingfromapi9@mailinator.com\",\n    \"type\": \"contractor\",\n    \"employee_id\": \"CONTA1175\"\n}"}],"_postman_id":"110d8ff4-a801-466d-9c35-9e2c78f698de"},{"name":"Get All","id":"bf4604fd-df6f-4b2d-9b6c-8d11d0377a38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/partner/api/v2/people?page_number={{page_number}}&page_size={{page_size}}&name={{name}}&email={{email}}&type={{type}}&user_role={{user_role}}&created_from={{created_from}}&created_before={{created_before}}","description":"<p>Get all people entities of your organisation. It supports various filters and have pagination. <strong>None</strong> of the query parameter is <strong>mandatory</strong>.</p>\n<p><strong>Available query parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Constraint</strong></th>\n<th><strong>Default Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>page_number</strong></td>\n<td><code>integer</code> Page number to fetch.</td>\n<td>page_number &gt;= 1</td>\n<td>1</td>\n</tr>\n<tr>\n<td><strong>page_size</strong></td>\n<td><code>integer</code> Number of records per page.</td>\n<td>1 &lt;= page_size &lt;= 50</td>\n<td>20</td>\n</tr>\n<tr>\n<td><strong>name</strong></td>\n<td><code>string</code> Filter to get records with name containing this string</td>\n<td>NA</td>\n<td>no filter</td>\n</tr>\n<tr>\n<td><strong>email</strong></td>\n<td><code>string</code> Filter to get records with email containing this string</td>\n<td>NA</td>\n<td>no filter</td>\n</tr>\n<tr>\n<td><strong>type</strong></td>\n<td><code>string</code> Filter records on basis of employee type</td>\n<td>should be a string either '<strong>employee</strong>' or '<strong>contractor</strong>'</td>\n<td>no filter</td>\n</tr>\n<tr>\n<td><strong>user_role</strong></td>\n<td><code>string</code> Filter to get people of particular user role</td>\n<td>should be a string with one of the following user roles.</td>\n<td>no filter</td>\n</tr>\n<tr>\n<td><strong>created_from</strong></td>\n<td><code>string</code> Filter to get people who joined on or after a particular date</td>\n<td>should be a date of the format <code>YYYY-MM-DD HH:MM:SS</code>(IST, 24hr Format)</td>\n<td>no filter</td>\n</tr>\n<tr>\n<td><strong>created_before</strong></td>\n<td><code>string</code> Filter to get people who joined on or before a particular date</td>\n<td>should be a date of the format <code>YYYY-MM-DD HH:MM:SS</code>(IST, 24hr Format)</td>\n<td>no filter</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Possible User Roles:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>User Role</strong></th>\n<th><strong>User Role</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ADMIN</td>\n<td>HUMAN_RESOURCES</td>\n</tr>\n<tr>\n<td>EXECUTE_PAYROLL</td>\n<td>VIEW_REPORTS</td>\n</tr>\n<tr>\n<td>REIMBURSEMENTS</td>\n<td>CA</td>\n</tr>\n<tr>\n<td>EMPLOYEE</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page_count</td>\n<td><code>integer</code> Total number of pages present with current set of filters</td>\n</tr>\n<tr>\n<td>page_number</td>\n<td><code>integer</code> current page number</td>\n</tr>\n<tr>\n<td>page_size</td>\n<td><code>integer</code> maximum number of records possible per page</td>\n</tr>\n<tr>\n<td>people</td>\n<td><code>array</code> array of people objects. All People objects are exactly similar as the response of GET people from ID.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>In case of error:</strong><br />Status Code &gt;= 400</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>INVALID_DATA</td>\n<td>Some invalid request parameter provided</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"filtering-based-on-date\">Filtering based on Date:</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Filter by</strong></th>\n<th><strong>Date Filter Usage</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>On and after the given date</td>\n<td>created_from=<code>fromDateTimeStamp</code></td>\n</tr>\n<tr>\n<td>On and before the given date</td>\n<td>created_before=<code>beforeDateTimeStamp</code></td>\n</tr>\n<tr>\n<td>Date Range</td>\n<td>created_from=<code>fromDateTimeStamp</code>&amp;created_before=<code>beforeDateTimeStamp</code> such that <code>fromDateTimeStamp</code> &lt; <code>beforeDateTimeStamp</code></td>\n</tr>\n<tr>\n<td>Single day</td>\n<td>created_from=<code>fromDateTimeStamp</code>&amp;created_before=<code>beforeDateTimeStamp</code> such that <code>fromDateTimeStamp</code> = <code>beforeDateTimeStamp</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people"],"host":["{{base}}"],"query":[{"key":"page_number","value":"{{page_number}}"},{"key":"page_size","value":"{{page_size}}"},{"key":"name","value":"{{name}}"},{"key":"email","value":"{{email}}"},{"key":"type","value":"{{type}}"},{"key":"user_role","value":"{{user_role}}"},{"key":"created_from","value":"{{created_from}}"},{"key":"created_before","value":"{{created_before}}"}],"variable":[]}},"response":[{"id":"aa4ea01b-1b2a-4140-b376-912746c1e8bc","name":"Get All","originalRequest":{"method":"GET","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":{"raw":"{{base}}/partner/api/v2/people?pageNumber={{pageNumber}}&pageSize={{pageSize}}&name={{name}}&email={{email}}&type={{type}}&userRole={{userRole}}&created_from={{created_from}}&created_before={{created_before}}","host":["{{base}}"],"path":["partner","api","v2","people"],"query":[{"key":"pageNumber","value":"{{pageNumber}}"},{"key":"pageSize","value":"{{pageSize}}"},{"key":"name","value":"{{name}}"},{"key":"email","value":"{{email}}"},{"key":"type","value":"{{type}}"},{"key":"userRole","value":"{{userRole}}"},{"key":"created_from","value":"{{created_from}}","type":"text"},{"key":"created_before","value":"{{created_before}}","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"page_count\": 1,\n    \"page_number\": 1,\n    \"page_size\": 20,\n    \"people\": [\n        {\n            \"id\": 19487,\n            \"name\": \"Test Name\",\n            \"type\": \"employee\",\n            \"email\": \"testingfromapi@mailinator.com\",\n            \"employee_id\": \"EMP100\",\n            \"hire_date\": \"30-05-2020\",\n            \"pan\": null,\n            \"uan\": null,\n            \"date_of_birth\": null,\n            \"phone_number\": null,\n            \"job_title\": \"Designer\",\n            \"department\": \"Payments\",\n            \"bank_ifsc\": null,\n            \"bank_account_number\": null,\n            \"manager_id\": 678,\n            \"manager_employee_id\": \"EMP1176\",\n            \"is_pt_enabled\": false,\n            \"is_pf_enabled\": true,\n            \"state\": \"Haryana\",\n            \"stop_salary\": false,\n            \"is_active\": true,\n            \"optional_user_data\": {\n                \"personal_phone_number\": \"9999911011\",\n                \"personal_email_address\": null,\n                \"father_name\": null,\n                \"father_dob\": null,\n                \"mother_name\": null,\n                \"mother_dob\": null,\n                \"spouse_name\": null,\n                \"spouse_dob\": null,\n                \"child_1_name\": null,\n                \"child_2_name\": null,\n                \"permanent_address\": null,\n                \"temporary_address\": null,\n                \"highest_qualification\": null,\n                \"aadhaar_number\": null,\n                \"marital_status\": \"single\",\n                \"work_experience\": null,\n                \"previous_employer\": null,\n                \"previous_designation\": null,\n                \"marriage_anniversary\": null,\n                \"emergency_contact_name\": null,\n                \"emergency_contact_number\": null,\n                \"emergency_contact_relation\": null,\n                \"blood_group\": null,\n                \"nationality\": null,\n                \"custom_1\": \"hello\",\n                \"custom_2\": null,\n                \"custom_3\": null,\n                \"custom_4\": null,\n                \"custom_5\": null\n            },\n            \"created_at\": 1640672239,\n            \"updated_at\": 1640672239\n        },\n        {\n            \"id\": 19489,\n            \"name\": \"Test Name3\",\n            \"type\": \"employee\",\n            \"email\": \"testingfromapi3@mailinator.com\",\n            \"employee_id\": \"EMP1011\",\n            \"hire_date\": \"30-05-2020\",\n            \"pan\": null,\n            \"uan\": null,\n            \"date_of_birth\": null,\n            \"phone_number\": null,\n            \"job_title\": \"Designer\",\n            \"department\": \"Payments\",\n            \"bank_ifsc\": null,\n            \"bank_account_number\": null,\n            \"manager_id\": 678,\n            \"manager_employee_id\": \"EMP1176\",\n            \"is_pt_enabled\": false,\n            \"is_pf_enabled\": true,\n            \"state\": \"Haryana\",\n            \"stop_salary\": false,\n            \"is_active\": true,\n            \"optional_user_data\": {\n                \"personal_phone_number\": \"9999911011\",\n                \"personal_email_address\": null,\n                \"father_name\": null,\n                \"father_dob\": null,\n                \"mother_name\": null,\n                \"mother_dob\": null,\n                \"spouse_name\": null,\n                \"spouse_dob\": null,\n                \"child_1_name\": null,\n                \"child_2_name\": null,\n                \"permanent_address\": null,\n                \"temporary_address\": null,\n                \"highest_qualification\": null,\n                \"aadhaar_number\": null,\n                \"marital_status\": \"single\",\n                \"work_experience\": null,\n                \"previous_employer\": null,\n                \"previous_designation\": null,\n                \"marriage_anniversary\": null,\n                \"emergency_contact_name\": null,\n                \"emergency_contact_number\": null,\n                \"emergency_contact_relation\": null,\n                \"blood_group\": null,\n                \"nationality\": null,\n                \"custom_1\": \"hello\",\n                \"custom_2\": null,\n                \"custom_3\": null,\n                \"custom_4\": null,\n                \"custom_5\": null\n            },\n            \"created_at\": 1640672239,\n            \"updated_at\": 1640672239\n        },\n        {\n            \"id\": 19490,\n            \"name\": \"Test Name4\",\n            \"type\": \"contractor\",\n            \"email\": \"testingfromapi4+12@mailinator.com\",\n            \"employee_id\": \"CONTA1012\",\n            \"hire_date\": null,\n            \"pan\": null,\n            \"uan\": null,\n            \"date_of_birth\": null,\n            \"phone_number\": null,\n            \"job_title\": null,\n            \"department\": null,\n            \"bank_ifsc\": \"\",\n            \"bank_account_number\": \"\",\n            \"manager_id\": null,\n            \"manager_employee_id\": null,\n            \"is_pt_enabled\": null,\n            \"is_pf_enabled\": null,\n            \"state\": null,\n            \"stop_salary\": false,\n            \"is_active\": true,\n            \"optional_user_data\": {\n                \"personal_phone_number\": null,\n                \"personal_email_address\": null,\n                \"father_name\": null,\n                \"father_dob\": null,\n                \"mother_name\": null,\n                \"mother_dob\": null,\n                \"spouse_name\": null,\n                \"spouse_dob\": null,\n                \"child_1_name\": null,\n                \"child_2_name\": null,\n                \"permanent_address\": null,\n                \"temporary_address\": null,\n                \"highest_qualification\": null,\n                \"aadhaar_number\": null,\n                \"marital_status\": null,\n                \"work_experience\": null,\n                \"previous_employer\": null,\n                \"previous_designation\": null,\n                \"marriage_anniversary\": null,\n                \"emergency_contact_name\": null,\n                \"emergency_contact_number\": null,\n                \"emergency_contact_relation\": null,\n                \"blood_group\": null,\n                \"nationality\": null,\n                \"custom_1\": null,\n                \"custom_2\": null,\n                \"custom_3\": null,\n                \"custom_4\": null,\n                \"custom_5\": null\n            },\n            \"created_at\": 1640672239,\n            \"updated_at\": 1643939334\n        }\n    ]\n}"}],"_postman_id":"bf4604fd-df6f-4b2d-9b6c-8d11d0377a38"}],"id":"2a3d850e-2c34-4b98-8857-b4c59bb053df","_postman_id":"2a3d850e-2c34-4b98-8857-b4c59bb053df","description":""},{"name":"Contractor Payment APIs","item":[{"name":"Create","id":"6ba3f59c-b4e4-4258-9173-3e5ed9a86888","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"from_email_id","value":"","type":"text"},{"key":"attachments[]","type":"file","value":null},{"key":"execute_on","value":"","type":"text"},{"key":"remarks","value":"","type":"text"},{"key":"purpose","value":"","type":"text"},{"key":"amount","value":"","type":"text"},{"key":"tax","value":"","type":"text"},{"key":"repeat_payment","value":"","type":"text"},{"key":"invoice_date","value":"","type":"text"}]},"url":"{{base}}/partner/api/v2/people/{{userOrgId}}/contractor-payment","description":"<p>Create a contractor payment</p>\n<h4 id=\"url-params-description\">URL Params Description</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Param</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>{{userOrgId}}</code></td>\n<td>This value can be obtained from the <strong>Get ID People API.</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"body-fields-description\">Body Fields Description</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>from_email_id</strong></td>\n<td><code>string</code> <code>required</code> The email id of the person making the payment</td>\n</tr>\n<tr>\n<td><strong>attachments[]</strong></td>\n<td><code>file(s)</code> <code>optional</code>The invoice in pdf, jpg, jpeg or png format. This field is <code>required</code> only if organisation mandates invoice for contractor payments in XPayroll settings. <em>Note: attachments must be sent only via multi-part form requests.</em></td>\n</tr>\n<tr>\n<td><strong>execute_on</strong></td>\n<td><code>string</code> <code>required</code> The date on which you wish this payment to be executed. Date in format <code>dd-mm-yyyy</code></td>\n</tr>\n<tr>\n<td><strong>remarks</strong></td>\n<td><code>string</code> <code>required</code> A remark for this payment. We will include this in the email notifying the contractor of the payment.</td>\n</tr>\n<tr>\n<td><strong>purpose</strong></td>\n<td><code>string</code> <code>required</code> The purpose for this payment. Allowed purpose types are mentioned below, please refer.</td>\n</tr>\n<tr>\n<td><strong>amount</strong></td>\n<td><code>float [upto 2 decimal place]</code> <code>required</code> The gross amount to be paid including TDS, but not including GST, VAT, sales tax etc.</td>\n</tr>\n<tr>\n<td><strong>tax</strong></td>\n<td><code>float [upto 2 decimal place]</code> <code>required</code> The amount of GST, VAT, sales tax etc. for this payment</td>\n</tr>\n<tr>\n<td><strong>repeat_payment</strong></td>\n<td><code>string</code> <code>optional</code> The types of repeating payments are mentioned below, please refer. This field is <code>required</code> if the payment is to be repeated. If not, for a single payment, this field may be null.</td>\n</tr>\n<tr>\n<td><strong>invoice_date</strong></td>\n<td><code>string</code> <code>optional</code> Date of Invoice. This is used to calculate the date of TDS payment (if any). Invoice date will be ignored in case of recurring payments. Date in format <code>dd-mm-yyyy</code> .  <br />This field is <code>required</code> if the payment is a single payment and not repeated.</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"valid-purpose-values\">Valid Purpose Values</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Purpose</strong></th>\n<th><strong>TDS</strong></th>\n<th><strong>Tax Code</strong></th>\n<th><strong>Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Professional Services</td>\n<td>10%</td>\n<td><a href=\"https://razorpay.com/learn/tds-contractors-professional-payments-194c-194j-194i/#TDS-on-professional-payments-under-section-194J\">194J</a></td>\n<td><code>professional-services</code></td>\n</tr>\n<tr>\n<td>Technical Services</td>\n<td>2%</td>\n<td><a href=\"https://razorpay.com/learn/tds-contractors-professional-payments-194c-194j-194i/#TDS-on-professional-payments-under-section-194J\">194J</a></td>\n<td><code>technical-services</code></td>\n</tr>\n<tr>\n<td>Commission/Brokerage</td>\n<td>5%</td>\n<td><a href=\"https://cleartax.in/s/section-194h-tds-on-commission-brokerage\">194H</a></td>\n<td><code>commission</code></td>\n</tr>\n<tr>\n<td>Interest</td>\n<td>10%</td>\n<td><a href=\"https://razorpay.com/learn/section-194a-tds-on-interest-other-than-interest-on-securities/\">194A</a></td>\n<td><code>interest</code></td>\n</tr>\n<tr>\n<td>Contractor - Resident Individual or HUF</td>\n<td>1%</td>\n<td><a href=\"https://razorpay.com/learn/tds-contractors-professional-payments-194c-194j-194i/#TDS-on-contractor-payments-under-section-194C\">194C</a></td>\n<td><code>contractor-ind</code></td>\n</tr>\n<tr>\n<td>Contractor - Others</td>\n<td>2%</td>\n<td><a href=\"https://razorpay.com/learn/tds-contractors-professional-payments-194c-194j-194i/#TDS-on-contractor-payments-under-section-194C\">194C</a></td>\n<td><code>contractor-other</code></td>\n</tr>\n<tr>\n<td>Rent of land/ building/ furniture/ fitting</td>\n<td>10%</td>\n<td><a href=\"https://razorpay.com/learn/tds-contractors-professional-payments-194c-194j-194i/#TDS-on-rent-under-section-194I\">194I</a></td>\n<td><code>rent-land</code></td>\n</tr>\n<tr>\n<td>Rent of plant and machinery</td>\n<td>2%</td>\n<td><a href=\"https://razorpay.com/learn/tds-contractors-professional-payments-194c-194j-194i/#TDS-on-rent-under-section-194I\">194I</a></td>\n<td><code>rent-plan</code></td>\n</tr>\n<tr>\n<td>Reimbursement / No TDS</td>\n<td>0%</td>\n<td></td>\n<td><code>reimb-no-tds</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Valid Repeat Payment Values</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Value</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>repeat-weekly</code></td>\n</tr>\n<tr>\n<td><code>repeat-monthly</code></td>\n</tr>\n<tr>\n<td><code>repeat-quarterly</code></td>\n</tr>\n<tr>\n<td><code>repeat-biannually</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>In case of error:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>USER_NOT_FOUND</td>\n<td>No user found from given details</td>\n</tr>\n<tr>\n<td>INVALID_DATA</td>\n<td>Invalid data is given, eg. invalid employee type</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n<tr>\n<td>PAYMENT_ALREADY_QUEUED</td>\n<td>A payment of the same amount is already queued</td>\n</tr>\n<tr>\n<td>PERMISSION_DENIED</td>\n<td>You do not have the permissions configured to perform this action</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people","{{userOrgId}}","contractor-payment"],"host":["{{base}}"],"query":[],"variable":[]}},"response":[{"id":"39b130f3-a18f-4de9-befb-8d49366d12df","name":"Create","originalRequest":{"method":"POST","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text","disabled":true},{"key":"x-api-key","value":"{{x-api-key}}","type":"text","disabled":true},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"from_email_id","value":"sample.email@mailinator.com","type":"text"},{"key":"attachments[]","type":"file","src":"SDsPs0MLg/invoice.pdf"},{"key":"execute_on","value":"2022-09-01","type":"text"},{"key":"remarks","value":"Test Payment","type":"text"},{"key":"purpose","value":"professional-services","type":"text"},{"key":"amount","value":"100","type":"text"},{"key":"tax","value":"5","type":"text"},{"key":"repeat_payment","value":"repeat-monthly","type":"text"},{"key":"invoice_date","value":"2022-09-01","type":"text"}]},"url":"{{base}}/partner/api/v2/people/{{userOrgId}}/contractor-payment"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ok\",\n    \"payment_id\": 1234,\n    \"organization_id\": 1234,\n    \"execution_date\": \"01 September, 2022\",\n    \"remarks\": \"Test Payment\",\n    \"purpose\": \"professional-services\",\n    \"amount\": 100,\n    \"tax\": 5,\n    \"repeat_payment\": \"Repeat Monthly\",\n    \"attachments\": [\n        \"invoice.pdf\"\n    ],\n    \"invoice_date\": null,\n    \"is_paid\": null\n}"}],"_postman_id":"6ba3f59c-b4e4-4258-9173-3e5ed9a86888"},{"name":"Delete","id":"fb2def54-e361-4c55-b33b-445b10fc19e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/partner/api/v2/people/contractor-payment/{{paymentId}}","description":"<p>Delete a contractor payment</p>\n<h4 id=\"url-param-description\">URL Param Description</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Param</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{paymentId}}</td>\n<td>The payment ID of the contractor payment to be deleted.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>In case of error:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"error_code\": {error_code},              //string\n    \"error_description\": {error_description} //string\n}\n\n</code></pre><p><strong>Possible error codes:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error code</strong></th>\n<th><strong>Details</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UNAUTHORIZED</td>\n<td>You are not authorized to perform this action</td>\n</tr>\n<tr>\n<td>USER_NOT_FOUND</td>\n<td>No user found from given details</td>\n</tr>\n<tr>\n<td>INVALID_DATA</td>\n<td>Invalid data is given, eg. invalid employee type</td>\n</tr>\n<tr>\n<td>UNKNOWN_EXCEPTION</td>\n<td>Some unknown exception occurred</td>\n</tr>\n<tr>\n<td>PAYMENT_NOT_FOUND</td>\n<td>A payment with this ID does not exist or has already been processed</td>\n</tr>\n<tr>\n<td>PERMISSION_DENIED</td>\n<td>You do not have the permissions configured to perform this action</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","api","v2","people","contractor-payment","{{paymentId}}"],"host":["{{base}}"],"query":[],"variable":[]}},"response":[{"id":"9fd4a6f6-2239-4e99-ae81-b41f413ba1fd","name":"Delete","originalRequest":{"method":"DELETE","header":[{"key":"x-api-id","value":"{{x-api-id}}","type":"text"},{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"x-partner-key","value":"{{x-partner-key}}","type":"text"},{"key":"x-client-key","value":"{{x-client-key}}","type":"text"}],"url":"{{base}}/partner/api/v2/people/contractor-payment/{{paymentId}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ok\",\n    \"payment_id\": 1234,\n    \"organization_id\": 1234,\n    \"execution_date\": \"01 September, 2022\",\n    \"remarks\": \"Test Payment\",\n    \"purpose\": \"professional-services\",\n    \"amount\": \"100\",\n    \"tax\": \"5\",\n    \"repeat_payment\": \"Repeat Monthly\",\n    \"attachments\": \"{invoice.pdf}\",\n    \"invoice_date\": null,\n    \"is_paid\": false\n}"}],"_postman_id":"fb2def54-e361-4c55-b33b-445b10fc19e7"}],"id":"653c3114-ce6c-4eb9-9ae3-fc1c5d017e69","_postman_id":"653c3114-ce6c-4eb9-9ae3-fc1c5d017e69","description":""}]}