Skip to content
On this page

Register company

Overview

Graph

Request

A POST request needs to be sent to https://sandbox.tendopay.ph/api/payroll/v1/company/register to register a company.

MethodEnd Point
POST/api/payroll/jp/company/register

Parameters

ParameterData TypeRequiredDescription
nameStringyesName of Company
domainStringyesDomain of Company
addressStringyesAddress of Company
cityStringyesCity of Company
postalStringyesPostal Code of Company
tinStringyesTIN Number of Company
contact_emailStringyesEmail Contact of Company to Send MOA
contact_phoneStringyesPhone Contact of Company
contact_nameStringyesPhone Contact of Company
ref_company_idStringyesUnique company identifier on Just Payroll

Response

If the status is 200, the company has been successfully registered.

Status
200
ParameterData TypeDescription
tp_company_idNumberUnique identifier on TendoPay
ref_company_idStringUnique company identifier on Just Payroll
statusStringPENDING, ACTIVATED, DECLINED
nameString
domainString
addressString
tinString
messageStringError message if status is declined

TendoPay will activate the Employer account and notify payroll when the MOA is signed and TendoPay is ready to accept employees from the company registered.

WARNING

Please note that the company will be in PENDING status until the MOA is signed.

TIP

Note that companies with DECLINED status will not be able to register employees and will be automatically denied.

TIP

For details on failed response codes, please visit Response Status

Example

Example Request

bash
curl --location --request POST 'https://sandbox.tendopay.ph/api/payroll/v1/company/register' \
--data-raw '{
    "name": "TestCompany",
    "domain": "test.test.dev",
    "address": "11 street",
    "city": "Manila",
    "postal": "1234",
    "tin": "123456789000",
    "contact_email": "",
    "contact_phone": "091112223333",
    "contact_name": "John",
    "ref_company_id": "DEMO-123458"
}'

Example Response:200 When the company is fully registered

json
{
  "message": "Request is queued",
  "tp_company_id": 10114,
  "ref_company_id": "DEMO-123459",
  "tin": "123456789001",
  "name": "TestCompany",
  "email_domain": "test.test.dev",
  "repayment_days": "",
  "address": "11 street",
  "status": "PENDING",
  "created_at": "2022-03-07T10:17:01+08:00",
  "updated_at": "2022-03-07T10:17:01+08:00"
}

Example Response:200 When company account is ACTIVATED

json
{
  "message": "",
  "tp_company_id": 10114,
  "ref_company_id": "DEMO-123459",
  "tin": "123456789001",
  "name": "TestCompany",
  "email_domain": "test.test.dev",
  "repayment_days": "",
  "address": "11 street",
  "status": "ACTIVATED",
  "created_at": "2022-03-07T10:17:01+08:00",
  "updated_at": "2022-03-07T10:17:01+08:00"
}

Example Response:422 When the TIN number is already in use

json
{
  "message": "The given data was invalid.",
  "error": "TIN number already in use"
}