Skip to content
On this page

Update Company account

Overview

The company account information can also be adjusted and updated if necessary.

A PUT request can be made to https://sandbox.tendopay.ph/api/payroll/v1/company/{tp_company_id} where {tp_company_id} is the TendoPay company ID.

Alternatively, a PUT request can also be made to https://sandbox.tendopay.ph/api/payroll/jp/company/ref/{ref_company_id} where {ref_company_id} is your company's reference ID.

Parameters

ParameterData TypeRequiredDescription
nameStringName of Company
domainStringDomain of Company
addressStringAddress of Company
postal_codeStringPostal Code of Company
tinStringTIN Number of Company

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/v1/company/123456' \
--data-raw '{
    "name": "TestCompany",
    "domain": "test.test.dev",
    "address": "Updated street",
    "city": "Manila",
    "postal": "1234",
    "tin": "123456789001"
}'

Example Response:200

json
{
  "message": "Request is queued",
  "tp_company_id": 10110,
  "ref_company_id": "DEMO-123460",
  "tin": "123456789001",
  "name": "TestCompany",
  "email_domain": "test.test.dev",
  "repayment_days": "",
  "address": "Updated street",
  "status": "PENDING",
  "created_at": "2022-03-07T14:44:26+08:00",
  "updated_at": "2022-03-07T14:45:43+08:00"
}