get
https://api.durianpay.id/v1.0/global/enum/
The following endpoint retrieves every allowed code of one enum type.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
- For the
typein the path, use theenumTypeof a field definition from the Fetch Corridor Requirements API. An example ispurpose_of_transaction. - In later requests, send the
code, not thename. datahas every code of the type. The response has no pagination.- When the requirements change, there can be a new enum type.
All enum types
These are all the enum types that the requirements and the Global Payout docs use in version 1 of the API (V1). For each type that your flows need, call this endpoint one time and keep its codes.
| Enum type | Fields | Where |
|---|---|---|
type_of_business | typeOfBusiness | Customer |
source_of_income | sourceOfIncome | Customer, Payout |
registration_document_type | registrationDocument.type | Customer |
customer_type | associates[].customerType | Customer |
purpose_of_transaction | purposeOfTransaction | Payout |
relationship | relationship | Payout |
document_type | documentType | Document upload, payout.documents |
- The requirements show
document_typeonly throughpayout.documents, not as anenumType. Read it if you upload documents. - Country fields have no enum type. They use ISO 3166-1 alpha-2 codes, such as
US. - Fixed API values, such as
status,beneficiaryTypeandamountMode, have no enum type. For the statuses, see Status Definition.
