Host to Host Integration
Last updated
Last updated
DOKU API
Legacy DocumentationIntegration Steps
Overview of integration process with KKI Integration
Merchant can request for payment by requesting this API
Payment Flow
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
Sample of Request Header, Request Body and Response Body
Notes:
Parameter with (*) is mandatory
Paramater without (*) is optional/conditional
This endpoint is used to create refund request for previous successful payment. Merchant can request a transaction refund to DOKU. Full refund and partial refund are available to be requested
Online Refund Flow
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
Sample of Request Header, Request Body and Response Body
Notes:
Parameter with (*) is mandatory
Paramater without (*) is optional/conditional
Reference No From Partner | AlphaNumeric | min: 32 max: 64 | Mandatory
"INV0001"
External ID Purchase Transaction | max: 36 |
"REQ-0001"
Reason from customer | max: 255
"Request by Customer"
Partner Refund No| max: 12 | Mandatory
"INV-REF-0001"
Successful
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-4.-direct-debit | Mandatory | min length: 1 | max length: 7.
"2000700"
Response Description. | min length: 1 | max length: 150
"Successful"
Partner Reference No Purchase Transaction
"Ra7o1bLJAh2oV9eb33129stQc5xFm5s7"
Reference No Purchase Transaction From DOKU To Allo
"Ra7o1bLJAh2oV9eb33129stQc5xFm5s7"
Refund No from DOKU To Allo
"Ra7o1bLJAh2oV9eb33129stQc5xFm5s7"
Partner Refund No
"Ra7o1bLJAh2oV9eb33129stQc5xFm5s7"
format: yyyy-MM-dd'T'HH:mm:ssXXX
"2024-01-01T09:09:00.123"
Reference No From Partner | max: 32 | Optional
"INV-0001"
Token From DOKU | max: 64 | Conditional if merchant customer already has token from DOKU
"de52e5820f4c381db88a1cf91d57b73e"
Customer CPAN | max: 20 | Optional
9360001609987000000
Customer OTP | min: 8 max: 8 | Optional
12345678
Successful
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-4.-direct-debit | Mandatory | min length: 1 | max length: 7.
"2005400"
Response Description. | min length: 1 | max length: 150
"Successful"
DOKU Reference No
"REF-DOKU-0001"