BRI Direct Debit
Last updated
Last updated
DOKU API
Legacy DocumentationOne of DOKU's direct debit partner is BRI. Learn more about integration to BRI Direct Debit here.
The overview of integration process with BRI Direct Debit
Merchant can register BRI card/account to customer ID. Each card/account can only registered/bind to one customer on one merchant. Customer need to verify OTP and input PIN on BRI page.
The flow of Card Registration:
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
The sample of Request Header, Request Body and Response Body for BRI Direct Debit Card Registration:
Once the customer has registered their card through the platform, merchant needs to verify the card. Merchant can hit this API to verify the OTP.
The flow of OTP Verification:
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
The sample of Request Header, Request Body and Response Body for BRI Direct Debit OTP Verification:
This API is used for payment of transaction based on the card number in the card token obtained from the Card Registration/Binding process. After merchant hit this Payment API, DOKU will deduct the customer's balance.
The flow of Direct Debit Payment:
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
The sample of Request Header, Request Body and Response Body for BRI Direct Debit Payment:
After the payment is done by the customer, DOKU will send HTTP Notification to merchant's defined Notification URL
. Learn how to handle the notification from DOKU.
This endpoint is used to create refund requests for previously successful payments. Refunds can be made in full or partial amounts. Merchant can refund the transaction to DOKU. Hit this API to refund the transaction. Currently DOKU Support Full Refund.
The flow of Direct Debit Refund:
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
The sample of Request Header, Request Body and Response Body for BRI Direct Debit Refund:
This API is used to delete customer's card data in DOKU.
API Endpoint
Environment | Endpoint |
---|---|
HTTP Method | POST |
API Sandbox | |
API Production | |
Path |
|
The sample of Request Header, Request Body and Response Body for BRI Direct Debit Card Registration Unbinding:
Last four digit of BRI card number | length: 4
"0747"
Type of Bank Card Number | value: C (Credit) / D (Debit) / UE
"D"
ID Number | max length: 20
"6013010111348227"
Type of ID used for identificationNo | value: 01/02/03/04
"02"
Account email| max length: 255
"paymenthub@wtd.co.id"
Card expiry date | length: 4 | format: MMYY
"0525"
Customer id from merchant | min length: 1 | max length: 18
"01010136136144"
Customer Phone number | min length: 5 | max length: 16
"6289509325902"
Account name from card number | max length: 70
"TESTING-WTD"
Customer date of birth | format: YYYYMMDD
"19960101"
Successful registration
"2000100"
"Successful"
"345968587571"
"aa26bcba00d14a4a6a42e1041498d1e6"
DOKU Gateway token | Format : AN
"hdiwh3h832d832h382h3duh2"
Successful Unbinding
"2000500"
"OTP Sent To Cardholder"
"89e1174c796b9628dcfd3ebec996e6c0"
Original Reference No get from prcess binding or payment | min length: 1 | max length: 64
"108772587457"
OTP | min length: 1 | max length: 18
"999999"
DOKU Gateway token get from binding process| length: 6
"89e1174c796b9628dcfd3ebec996e6c0"
Type of OTP Verification process | value: card/payment
"card"
Successful OTP Verification
Original Reference Number | min length: 1 | max length: 64
"884791706226"
Partner refund number | min length: 1 | max length: 64
"123491931459"
External id used on payment | min length: 1 | max length: 64
"85116108"
Reason of refund | max length: 255
"kesalahan data"
Successful Refund
"2005800"
"Successful"
"2238220704144005697107174446374000107558"
"884791706226"
"132979271182"
"123491931459"
"2022-07-04T16:09:35+07:00"
DOKU Gateway token get from binding process | min length: 1 | max length: 128
"198ad24d9562f1179a25cd65fe1dddec"
Successful Payment
"2005400"
"Successful"
"738663838768"