Customer Object

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 payout

A new customer starts in processing while Durianpay screens it. Use it for a payout only after it is active.

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.

FieldTypeDescription
referenceNostringThe customer referenceNo from Durianpay, for example cus_1abc9k. Copy it exactly, prefix included.
partnerReferenceNostringYour own reference, 1–64 characters. Always send the same value for the same customer. Customer events also return it.
customerTypeenumindividual or business: the type of the customer.
fullNamestringFor an individual. The full legal name, 2–140 characters.
businessNamestringFor a business. The name of the business, 2–140 characters.
registrationDocumentobjectWhen you sent it. The business registration document: type (a code of enum type registration_document_type), number, issuingCountry and issueDate.
registrationNumberstringFor a business. The company registration number.
incorporationCountrystringFor a business. The incorporation country, as an ISO 3166-1 alpha-2 code.
incorporationDatedateFor a business. The incorporation date.
addressobjectline1, city, country and postalCode.
dateOfBirthdateFor an individual, when you sent it.
nationalitystringFor an individual, when you sent it. An ISO 3166-1 alpha-2 code.
mobileNumberstringWhen you sent it.
typeOfBusinessenumWhen you sent it. A code of the enum type type_of_business.
sourceOfIncomeenumWhen you sent it. A code of the enum type source_of_income.
associatesarrayFor a business. Every associate of the business, including the ultimate beneficial owners (UBOs). See the associate fields below.
statusenumprocessing, active, rejected or inactive. See the status table below.
createdAttimestampThe time when the customer was created, in ISO 8601 UTC.
📘

Two fields have the name customerType

The top-level customerType is the type of the customer. associates[].customerType is 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.

FieldTypeDescription
fullNamestringThe full legal name of the associate.
idNumberstringThe ID number of the associate.
titlesarrayValues from ubo, director, signatory and account_representative.
ownershipPctnumberFor a ubo associate. At least 25.
nationalitystringWhen you sent it.
dateOfBirthdateWhen you sent it.
mobileNumberstringWhen you sent it.
customerTypeenumWhen 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 fullName has 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.

Customer lifecycle
FromToCause
CreateprocessingScreening starts.
processingactive or rejectedScreening ends.
activeprocessingWith an update, you change the name, identity-document number, birth date or nationality.
processing, activeinactiveYou call Deactivate Customer API.

Every status change sends global.customer.updated. See Customer Notification.

Customer status

StatusDefinition
processingDurianpay 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.
activeYou can use the customer for new payouts.
rejectedThe rejection is final. You cannot update the customer or use it for new payouts.
inactiveYou 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 sends global.payout.updated.
  • Deactivation: Durianpay refuses the deactivation while a payout of the customer is not yet completed, failed or refunded. Wait until the status of each of these payouts is completed, failed or refunded. Then call Deactivate Customer API again. You cannot update an inactive customer or use it in a new payout.
  • Reuse of a reference: you cannot use the partnerReferenceNo of a rejected or inactive customer again. If you create a customer with it, the API returns PARTNER_REFERENCE_NO_CONFLICT (4090001). If you send a different partnerReferenceNo, the API creates a new customer, even for the same person or business.