CIMB Direct Debit
Last updated
Last updated
DOKU API
Legacy DocumentationHere is the overview of how to integrate with CIMB Direct Debit ::
Merchant can binding CIMB account to customer id, each account can only binding to one customer on one merchant. Customer need to verify OTP and input PIN on CIMB page.
Here is the flow for Account Binding :
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
Here is the sample request header, request body and response body for Account Binding - CIMB
Once a customer has linked their account through the CIMB platform, merchants needs to verify the account. Merchant can hit this API to verify the OTP :
Here is the flow for OTP Verification :
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
After merchant check the balance, merchant can hit this API to do payment. DOKU will deduct customer's balance.
Here is the flow for Payment CIMB :
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path | ..... |
After the payment is being made by your customer, DOKU will send HTTP Notification to your defined Notification URL
. Learn how to handle the notification from DOKU .
Merchant can refund the transaction to DOKU. Hit this API to refund the transaction. Currently DOKU Support Full Refund.
Here is the Refund Flow :
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path | ..... |
In case you need to remove the customer data on DOKU, hit this API to unbinding the customer data.
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path | ..... |
Account phone number | min length: 9 | max length: 16
"62857957868761"
Successful registration
"2000700"
"Successful"
"129260743966"
"https://sandbox.doku.com/direct-debit/ui/binding/2238230713001534401107183161486001168389"
DOKU Gateway token | Format : AN
"hdiwh3h832d832h382h3duh2"
Successful Unbinding
"4030913"
"OTP Sent To Cardholder"
"CIMB20000001"
"123456"
"PAYMENT"
Successful OTP Verification
Original Partner Reference Number | min length: 1 | max length: 64
"INV-592566712725"
External Id used on payment| min length: 1 | max length: 36
"10052019"
Refund Number from merchant | min length: 1 | max length: 64
"239850918204981205970"
Reason of refund | max length: 255
"Customer complain"
Successful Refund
"2005800"
"Successful"
"L20230725005"
"Sv6LFBnNOiCevHzLcgK"
"9lCqroDiy27A"
"123450002"
"2020-12-21T17:21:41+07:00"
Partner Reference Number as Invoice | min length: 1 | max length: 64
"SIM_20230829_0001"
Successful Payment
"4035413"
"OTP Sent To Cardholder"
"L20230718003"