ZEN transfers API
Go to zen.comGo to myZEN.com
Documentation
Documentation
  • Sandbox
  • Plugin integration
  • Checkout integration
  • API business
  • API reference
  • Merchant panel
  • Brandbook
Go to zen.comGo to myZEN.com
Documentation
Documentation
  • Sandbox
  • Plugin integration
  • Checkout integration
  • API business
  • API reference
  • Merchant panel
  • Brandbook
  1. Payment management
  • Overview
  • Dictionary
  • Environments
  • Authentication
    • mTLS
    • API key
  • Notifications
    • About
  • Information about accounts
    • Get the list of accounts
    • Get account details
  • Payment management
    • About
    • Calculation of available channels, fees and payment limits
    • Get the list of purpose codes
    • Create a payment
    • Get payment details
  • Manage payment drafts
    • About
    • Create a draft payment
    • Get the draft list
    • Get payment draft details
    • Delete a saved payment draft
  • Transaction History Management
    • Get payment history on account
    • Get payment confirmation
  1. Payment management

Get the list of purpose codes

payments_management.jpg
Endpoint is used to get a list of available purpose codes for payments ordered to the United Arab Emirates, Bahrain and China. The value from the code field should be entered in the purposeCode field in the endpoint for creating a payment or creating a draft payment.
1
Create a GET request
WARNING
Request header with Authorization parameter is obliged for all requests sent to ZEN.COM API. Authorization value is the apiKey parameter which is generated and provided by ZEN.COM to the Client. This key is unique to each Customer and should not be shared or used by third parties.
Create a GET request.
💡
Example of JSON
2
Send the request
Send the GET request to:
1.
test environment: https://api-services.zen-test.com/constants/v1.0/purpose-codes
2.
production environment: https://api-services.zen.com/constants/v1.0/purpose-codes
3
Receive the ZEN.COM response
Receive the ZEN.COM response.
Parameters
ParameterDescriptionTypeNullable
countrycountry codestring (two-letter ISO country code)no
codecode that should be provided when creating a payment draft or creating a payment in the purpose_code fieldstringno
descriptiondescriptionstringno
💡
Example response
[
   {
      "country":"AE",
      "code":"FAM",
      "description":"Family Support"
   },
   {
      "country":"AE",
      "code":"GDE",
      "description":"Goods sold"
   }
]
Errors
HTTP codeBusiness codeDescription
400VALIDATION_ERRORthe data has not been validated
403FORBIDDENno access to the resource
404ACCOUNT_NOT_FOUNDno account with the specified accountId was found
500INTERNAL_SERVER_ERRORserver error, please contact ZEN
💡
Example error response
{
   "error":{
      "code":"INTERNAL_SERVER_ERROR",
      "message":"Unexpected error. Contact ZEN"
   }
}
Modified at 2026-03-17 14:23:51
Previous
Calculation of available channels, fees and payment limits
Next
Create a payment
Built with