v1

latestOpenAPI 3.0.32026-07-23167675.4 KB

Payment

post/direct-debit/core/v1/debit/payment-host-to-host

Headers

X-TIMESTAMPstring utc timestamp required

Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format

X-SIGNATUREstring required

Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)

X-PARTNER-IDstring required

Unique ID for a partner (DOKU'S Client ID)

X-EXTERNAL-IDstring required

Numeric String. Reference number that should be unique in the same day (request-id)

X-DEVICE-IDstring

Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols

X-IP-ADDRESSstring

conditional. IP address of the end user (customer) using IPv4 format

Authorizationstring required

Access Token obtained from Get B2B Token API

Access Token obtained from Get B2B Token API | Go to here for detailed documentation

Request body

partnerReferenceNostring required

invoice number from partner | max: 64 | Mandatory

validUpTostring

Expired time payment url | format: 2024-07-10T11:57:58+07:00

pointOfInitiationstring

Point of initiation from partner | value: app/pc/mweb | max: 20

Response

Successful

responseCodestring required

Response Code with format HTTP status code + service code + case code. service code and status code refer to: https://developers.doku.com/getting-started-with-doku-api/response-code/http-status-and-case-code#id-3.-e-wallet . | Mandatory | min length: 1 | max length: 7.

responseMessagestring required

Response Message

webRedirectUrlstring required

Redirect URL to Merchant's page/platform for customer to input OTP/PIN

partnerReferenceNostring

Invoice Number from Partner