Skip to content
On this page

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

ParameterData TypeRequiredDescription
tp_company_idStringyes if tp_user_id is passedCompany ID on TendoPay
ref_company_idStringyes if ref_user_id is passedCompany ID on JustPayroll
first_nameStringexample: Mark
middle_nameStringexample: Anthony
last_nameStringexample: Fernandez
date_of_birthString. YYYY-MM-DDexample: 1980-01-31
emailStringexample: mac@thousandminds.com
mobile_numberString, 09XXXXXXXXX or 02XXXXXXXexample: 021234567
secondary_phone_numberString, 09XXXXXXXXX or 02XXXXXXXexample: 021234567
tinString, xxx-xxx-xxxexample: 000-123-345
sssString, xx-xxxxxxx-xexample: 12-3456789-0
nationalityStringISO Alpha-2 Numeric Country Codes. ie) PH
genderStringMale,Female
address_lineStringUnit 123, Zeta Building, 1 Salcedo Street, Makati City, Philippines
postal_codeString
base_monthly_salarynumber with cents (no commas)example: 10000.00
net_monthly_salaryformat: number with cents (no commas)example: 10000.00
employment_start_dateString, YYYY-MM-DDexample: 2012-11-06
employment_statusint@See Register Worker Account
document_imageString, Linkexample: http://s3.amazonaws.com/[bucket_name]/LINKEXAMPLE
document_typeString, [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"
}