BRI Direct Debit
Last updated
Was this helpful?
Last updated
Was this helpful?
One 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
HTTP Method
POST
API Sandbox
API Production
Path
/wtd-direct-debit-snap-bri/snap/v1.0/registration-card-bind
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:
HTTP Method
POST
API Sandbox
API Production
Path
/wtd-direct-debit-snap-bri/snap/v1.0/otp-verification
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:
HTTP Method
POST
API Sandbox
API Production
Path
/wtd-direct-debit-snap-bri/snap/v1.0/debit/payment-host-to-host
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:
HTTP Method
POST
API Sandbox
API Production
Path
/wtd-direct-debit-snap-bri/snap/v1.0/refund
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
HTTP Method
POST
API Sandbox
API Production
Path
/wtd-direct-debit-snap-bri/snap/v1.0/registration-card-unbind
The sample of Request Header, Request Body and Response Body for BRI Direct Debit Card Registration Unbinding:
Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
2020-12-21T07:56:11.000Z
Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
Unique ID for a partner (DOKU'S Client ID)
821508239190
Numeric String. Reference number that should be unique in the same day (request-id)
418075533589
Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
95221
conditional. IP address of the end user (customer) using IPv4 format
95221
Access Token obtained from Get B2B Token API
95221
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
Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
2020-12-21T07:56:11.000Z
Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
Unique ID for a partner (DOKU'S Client ID)
821508239190
Numeric String. Reference number that should be unique in the same day (request-id)
418075533589
Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
95221
conditional. IP address of the end user (customer) using IPv4 format
95221
Access Token obtained from Get B2B Token API
Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
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
Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
2020-12-21T07:56:11.000Z
Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
Unique ID for a partner (DOKU'S Client ID)
821508239190
Numeric String. Reference number that should be unique in the same day (request-id)
418075533589
Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
95221
conditional. IP address of the end user (customer) using IPv4 format
95221
Access token obtained from B2B2C API
Bearer fa8sjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a
Access Token obtained from Get B2B Token API
Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
DOKU Gateway token get from binding process | min length: 1 | max length: 128
198ad24d9562f1179a25cd65fe1dddec
Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
2020-12-21T07:56:11.000Z
Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
Unique ID for a partner (DOKU'S Client ID)
821508239190
Numeric String. Reference number that should be unique in the same day (request-id)
418075533589
Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
95221
conditional. IP address of the end user (customer) using IPv4 format
95221
Access token obtained from B2B2C API
Bearer fa8sjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a
Access Token obtained from Get B2B Token API
Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
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
Client's current local time in yyyy-MM- ddTHH:mm:ssTZD format
2020-12-21T07:56:11.000Z
Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)
85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
Unique ID for a partner (DOKU'S Client ID)
821508239190
Numeric String. Reference number that should be unique in the same day (request-id)
418075533589
Device identification on which the API services are currently being accessed by the end user (customer). Can’t contain symbols
95221
conditional. IP address of the end user (customer) using IPv4 format
95221
Access Token obtained from Get B2B Token API
95221
DOKU Gateway token | Format : AN
hdiwh3h832d832h382h3duh2