Appearance
Update Employee account
Overview
Each employee's account information can also be adjusted and updated if necessary.
A PUT request can be made to https://sandbox.tendopay.ph/api/payroll/jp/user/{tp_user_id} where {tp_user_id} is the TendoPay employee ID.
Alternatively, a PUT request can also be made to https://sandbox.tendopay.ph/api/payroll/jp/user/ref/{ref_user_id} where {ref_user_id} is your your employee reference ID.
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| tp_company_id | String | yes if tp_user_id is passed | Company ID on TendoPay |
| ref_company_id | String | yes if ref_user_id is passed | Company ID on JustPayroll |
| first_name | String | example: Mark | |
| middle_name | String | example: Anthony | |
| last_name | String | example: Fernandez | |
| date_of_birth | String. YYYY-MM-DD | example: 1980-01-31 | |
| String | example: mac@thousandminds.com | ||
| mobile_number | String, 09XXXXXXXXX or 02XXXXXXX | example: 021234567 | |
| secondary_phone_number | String, 09XXXXXXXXX or 02XXXXXXX | example: 021234567 | |
| tin | String, xxx-xxx-xxx | example: 000-123-345 | |
| sss | String, xx-xxxxxxx-x | example: 12-3456789-0 | |
| nationality | String | ISO Alpha-2 Numeric Country Codes. ie) PH | |
| gender | String | Male,Female | |
| address_line | String | Unit 123, Zeta Building, 1 Salcedo Street, Makati City, Philippines | |
| postal_code | String | ||
| base_monthly_salary | number with cents (no commas) | example: 10000.00 | |
| net_monthly_salary | format: number with cents (no commas) | example: 10000.00 | |
| employment_start_date | String, YYYY-MM-DD | example: 2012-11-06 | |
| employment_status | int | @See Register Worker Account | |
| document_image | String, Link | example: http://s3.amazonaws.com/[bucket_name]/LINKEXAMPLE | |
| document_type | String, [driver_license, passport, prc, umid, sss] | Type of document the user has sent the image |
TIP
For details on failed response codes, please visit Response Status
Example
Example Request:
bash
curl --location --request PUT 'https://sandbox.tendopay.ph/api/payroll/jp/user/789043' \
--data-raw '{
"tp_company_id": "10110",
"first_name": "John",
"middle_name": "F",
"last_name": "Doe",
"date_of_birth": "1980-01-02",
"email": "jane1@test.dev",
"mobile_number": "09112223333",
"secondary_phone_number": "",
"tin": "000-123-345",
"sss": "12-3456789-0",
"nationality": "PH",
"gender": "Male",
"address_line": "Unit 123, Zeta Building, 1 Salcedo Street, Makati City, Philippines",
"postal_code": "1234",
"base_monthly_salary": 14000.00,
"net_monthly_salary": 10000.00,
"employment_start_date": "2012-11-06",
"document_image": "https://robohash.org/driver_license.jpg",
"document_type": "driver_license",
"employment_status": 1
}
'
Example Response:200
json
{
"tp_user_id": 728240,
"tp_company_id": 10110,
"ref_user_id": "test-user-0004",
"ref_company_id": "DEMO-123460",
"first_name": "John",
"middle_name": "F",
"last_name": "Doe",
"email": "jane1@test.dev",
"phone": "+63 (911) 222 3333",
"user_status": "DECLINED",
"message": "Not specify Tier",
"registered_at": "2022-03-09T04:26:55+08:00",
"updated_at": "2022-03-09T08:16:38+08:00",
"credit_limit": 0,
"available_credit_limit": 0,
"repayment_days": "15,30",
"billing_account_id": "TP990A76"
}