The sender of a payout. It is your end customer, an individual or a business, in a setup with customers.
The Customer is the sender of a payout: your end customer, also called the originator. It is not the beneficiary, which receives the payout. A customer is an individual or a business: customerType gives the type. You register customers only in a setup with customers. In that setup, each payout has one customer. See Customers.
Only an active customer can be used for a payoutA new customer starts in
processingwhile Durianpay screens it. Use it for a payout only after it isactive.
Customer fields
The create, read, list, update and deactivate endpoints return this resource. The response has every field that you sent. A field with no value is left out of the response.
Each customer type has its own fields. A row that starts with "For an individual" or "For a business" applies only to that type.
| Field | Type | Description |
|---|---|---|
referenceNo | string | The customer referenceNo from Durianpay, for example cus_1abc9k. Copy it exactly, prefix included. |
partnerReferenceNo | string | Your own reference, 1–64 characters. Always send the same value for the same customer. Customer events also return it. |
customerType | enum | individual or business: the type of the customer. |
fullName | string | For an individual. The full legal name, 2–140 characters. |
businessName | string | For a business. The name of the business, 2–140 characters. |
registrationDocument | object | When you sent it. The business registration document: type (a code of enum type registration_document_type), number, issuingCountry and issueDate. |
registrationNumber | string | For a business. The company registration number. |
incorporationCountry | string | For a business. The incorporation country, as an ISO 3166-1 alpha-2 code. |
incorporationDate | date | For a business. The incorporation date. |
address | object | line1, city, country and postalCode. |
dateOfBirth | date | For an individual, when you sent it. |
nationality | string | For an individual, when you sent it. An ISO 3166-1 alpha-2 code. |
mobileNumber | string | When you sent it. |
typeOfBusiness | enum | When you sent it. A code of the enum type type_of_business. |
sourceOfIncome | enum | When you sent it. A code of the enum type source_of_income. |
associates | array | For a business. Every associate of the business, including the ultimate beneficial owners (UBOs). See the associate fields below. |
status | enum | processing, active, rejected or inactive. See the status table below. |
createdAt | timestamp | The time when the customer was created, in ISO 8601 UTC. |
Two fields have the namecustomerTypeThe top-level
customerTypeis the type of the customer.associates[].customerTypeis a different field: it is the type of one associate. Do not use one for the other.
Associate fields
associates is required for a business customer.
| Field | Type | Description |
|---|---|---|
fullName | string | The full legal name of the associate. |
idNumber | string | The ID number of the associate. |
titles | array | Values from ubo, director, signatory and account_representative. |
ownershipPct | number | For a ubo associate. At least 25. |
nationality | string | When you sent it. |
dateOfBirth | date | When you sent it. |
mobileNumber | string | When you sent it. |
customerType | enum | When you sent it. A code of the enum type customer_type: the type of this associate. |
designation | — | When you sent it. When a corridor requires it, confirm the accepted values with Durianpay during integration. |
executiveEcrn | — | When you sent it. When a corridor requires it, confirm the accepted values with Durianpay during integration. |
Durianpay splits the fullName of each associate into name parts:
- The first word is the first name. The last word is the last name. The words between them are the middle name.
- If
fullNamehas only one word, that word is both the first name and the last name. - Each name part must have 1–60 letters and spaces.
{
"responseCode": "2000000",
"responseMessage": "Successful",
"referenceNo": "cus_1abc9k",
"partnerReferenceNo": "cust-90871",
"customerType": "business",
"businessName": "PT Sinar Logistik",
"registrationDocument": {
"type": "NIB",
"number": "9120001234567",
"issuingCountry": "ID",
"issueDate": "2019-08-01"
},
"registrationNumber": "8120001234567",
"incorporationCountry": "ID",
"incorporationDate": "2015-03-02",
"address": {
"line1": "Jl. M.H. Thamrin No. 10",
"city": "Jakarta",
"country": "ID",
"postalCode": "10350"
},
"typeOfBusiness": "COMPANY",
"sourceOfIncome": "BUSINESS",
"associates": [
{
"fullName": "Budi Adi Santoso",
"idNumber": "3174xxxxxxxxxxxx",
"titles": ["ubo", "director"],
"ownershipPct": 60,
"nationality": "ID",
"dateOfBirth": "1978-05-14",
"mobileNumber": "+6281234567890",
"customerType": "individual"
}
],
"status": "processing",
"createdAt": "2026-06-10T03:17:40Z"
}This example is a business customer. In this example, NIB is the Indonesian business identification number.
The response for an individual customer has the same shape: the fields that you sent, referenceNo, status and createdAt. Create Customer API has an example request for an individual customer.
Customer lifecycle
Screening is the set of checks that Durianpay runs on a customer. During screening, the status is processing.
| From | To | Cause |
|---|---|---|
| Create | processing | Screening starts. |
processing | active or rejected | Screening ends. |
active | processing | With an update, you change the name, identity-document number, birth date or nationality. |
processing, active | inactive | You call Deactivate Customer API. |
Every status change sends global.customer.updated. See Customer Notification.
Customer status
| Status | Definition |
|---|---|
| processing | Durianpay screens or reviews the customer. If you change the name, identity-document number, birth date or nationality with an update, Durianpay screens the customer again, and the customer is processing again. |
| active | You can use the customer for new payouts. |
| rejected | The rejection is final. You cannot update the customer or use it for new payouts. |
| inactive | You deactivate the customer with DELETE /v1.0/global/customers/{referenceNo}. You cannot update it or use it for new payouts. |
Status Definition gives your next step for each status.
What changes the status
- Update: if you change the name, identity-document number, birth date or nationality, Durianpay screens the customer again. If you change other fields, the status does not change.
- Rejection after an update: payouts that already exist keep the customer details from their creation. If screening then rejects the customer, its payouts that can still be stopped become
failed. Do not create a new payout for this customer. When a payout fails, Durianpay returns any debit to your available balance. Each failed payout sendsglobal.payout.updated. - Deactivation: Durianpay refuses the deactivation while a payout of the customer is not yet
completed,failedorrefunded. Wait until the status of each of these payouts iscompleted,failedorrefunded. Then call Deactivate Customer API again. You cannot update aninactivecustomer or use it in a new payout. - Reuse of a reference: you cannot use the
partnerReferenceNoof arejectedorinactivecustomer again. If you create a customer with it, the API returnsPARTNER_REFERENCE_NO_CONFLICT(4090001). If you send a differentpartnerReferenceNo, the API creates a new customer, even for the same person or business.
