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. Manage payment drafts
  • 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. Manage payment drafts

Get the draft list

payment drafts.jpg
The endpoint is used to get a list of payment drafts saved by the Customer for later approval. Endpoint allows you to filter data according to defined parameters.
Results are always returned from newest to oldest.
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.
Query parameters
ParameterDescriptionTypeRequiredValidation
receiverNamereceiver's namestringnomin=1 max=70
receiverAccountNumberreceiver's account numberstringnomin=1 max=34
currencycurrencystring (ISO 4217 standard)nomin=3 max=3
dateFromdate fromstring ($date)noyyyy-MM-dd
dateTodate tostring ($date)noyyyy-MM-dd
limitthe number of expected results, if not provided, the accepted one is the defaultnumberno
lastEntryIdthe last id from which further results are to be returned; if it is not provided, it is taken from the latest onestring ($uuid)no
💡
Example of JSON
2
Send the request
Send the GET request to:
1.
test environment: https://api-services.zen-test.com/payments/v1.0/drafts
2.
production environment: https://api-services.zen.com/payments/v1.0/drafts
3
Receive the ZEN.COM response
Receive the ZEN.COM response.
Parameters
ParameterDescriptionTypeNullable
data.iddraft idstring ($uuid)no
data.amount.valuepayment amountnumber ($double)no
data.amount.currencycurrency amountstring (ISO 4217 standard)no
titletitlestringno
createdAtcreation datestring ($datetime) yyyy-MM-dd'T'HH:mm:ssXno
receiver.firstNamereceiver's first namestringyes
receiver.lastNamereceiver's last namestringyes
receiver.companyNamereceiver's company namestringyes
receiver.typereceiver's typeenum INDIVIDUAL, BUSINESSno
receiver.accountNumberreceiver's account numberstringno
receiver.bicbicstringyes
receiver.routingCoderouting codestringyes
receiver.routingCodeTyperouting code typeenum SORT_CODEyes
senderAccountIdid of the sender's account from which the payment is orderedstring ($uuid)no
meta.lastEntryIdthe last id returned in the responsestring ($uuid)yes
meta.hasNextthe field informs whether it is possible to get further entriesbooleanno
meta.directiondirectionenum DESC, ASCno
meta.sortedBysortingstringno
💡
Example response
{
   "drafts":[
      {
         "id":"16606098-a231-493d-ac06-dee54e030095",
         "amount":{
            "value":"0.350000",
            "currency":"EUR"
         },
         "title":"V8wxz1LncY",
         "createdAt":"2024-06-27T12:27:30Z",
         "receiver":{
            "firstName":"7d03lsOQno",
            "lastName":"pom3RCQfky",
            "companyName":null,
            "type":"INDIVIDUAL",
            "accountNumber":"PL09518547941553423933476296",
            "bic":"BPKOPLPW",
            "routingCodeType":null,
            "routingCode":null
         },
         "senderAccountId":"db29ac40-f2ab-4e60-a311-5171ed8f42f1"
      }
   ]
}
Errors
HTTP codeBusiness codeDescription
400VALIDATION_ERRORthe data has not been validated
403FORBIDDENno access to the resource
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:26:12
Previous
Create a draft payment
Next
Get payment draft details
Built with