Fetch Enum Codes

The following endpoint retrieves every allowed code of one enum type.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
  • For the type in the path, use the enumType of a field definition from the Fetch Corridor Requirements API. An example is purpose_of_transaction.
  • In later requests, send the code, not the name.
  • data has 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 typeFieldsWhere
type_of_businesstypeOfBusinessCustomer
source_of_incomesourceOfIncomeCustomer, Payout
registration_document_typeregistrationDocument.typeCustomer
customer_typeassociates[].customerTypeCustomer
purpose_of_transactionpurposeOfTransactionPayout
relationshiprelationshipPayout
document_typedocumentTypeDocument upload, payout.documents
  • The requirements show document_type only through payout.documents, not as an enumType. 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, beneficiaryType and amountMode, have no enum type. For the statuses, see Status Definition.
Path Params
string
required

An enumType that the requirements or a field rule names.

Headers
string
required

The request time, RFC 3339 with an offset.

string
required

HMAC-SHA512 of the string to sign, with your client secret as the key, in standard base64.

string
required

Your SNAP client key. It must match the token.

string
required

Required. Use a unique ID for each request. It is not an idempotency key: see Idempotency.

string
required

Required. Any non-empty value is accepted, for example 95221.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json