API Reference
DOKU DocsChangelogDOKU Github
  • Getting Started with DOKU API
    • User Registration
    • Idempotency Request
    • Notification
      • Setup Notification URL
      • HTTP Notification Sample for SNAP
      • HTTP Notification Sample - Non SNAP
      • Best Practice
      • Retry Notification
      • Override Notification URL
    • Signature Component
      • Non-SNAP
        • Signature Component from Request Header
        • Signature Componen from Response Header
        • Signature from API Get Method
        • Sample Code
      • SNAP
        • Symmetric Signature
        • Asymmetric Signature
    • Response Code
      • HTTP Status and Case Code
    • Check Status API
      • Non-SNAP
      • SNAP
    • Retrieve Payment Credential
  • Accept Payment
    • DOKU Checkout
      • Integration Guide
        • Backend Integration
        • Frontend Integration
        • Simulate payment and Notification
      • Supported Payment Methods
      • Status Order
      • Additional Feature
        • Tokenization
        • Promo on DOKU Checkout Page
        • Track Campaign Source on Google Analytics
      • Checkout Settings
    • Direct API
      • Non-SNAP
        • Cards
          • Payment Page Integration Guide
          • Host-To-Host Integration Guide
          • Mastercard Automatic Billing Updater (ABU) Integration Guide
            • Backend Integration
        • e-Wallet
          • Overview
          • DOKU e-Wallet
          • OVO Push Payment
          • ShopeePay
          • LinkAja
        • Paylater
          • Akulaku
          • Kredivo
          • Indodana
        • Digital Banking
          • Jenius Pay
        • Convenience Store
          • Alfa Group
          • Indomaret
      • SNAP
        • Integration Guide
          • Get Token API
            • B2B
            • B2B2C
          • Virtual Account
            • CIMB Virtual Account
            • BSI Virtual Account
            • BCA Virtual Account
            • BNC Virtual Account
            • BNI Virtual Account
            • Mandiri Virtual Account
            • BRI Virtual Account
            • BTN Virtual Account
            • Permata Virtual Account
            • Danamon Virtual Account
            • BSS Virtual Account
          • E-Wallet
            • DOKU Wallet
            • DANA
            • OVO
            • ShopeePay
          • Direct Debit
            • Allo Bank Direct Debit
            • BRI Direct Debit
            • CIMB Direct Debit
            • Mandiri Direct Debit
          • Kartu Kredit Indonesia Cepat Secure(KKI CPTS)
            • Host to Host Integration
          • QRIS
    • Finance and Settlement
      • Split Settlement
      • Custom Settlement Report
      • Hold and Release Settlement
      • Bulk Registration Bank
    • Test on DOKU Demo Site
    • DOKU Payment Simulator
  • Developer Kit
    • Postman Collection
    • Libraries and SDK
  • Wallet As A Service
    • Sub Account
  • Partnership
    • Partner API
      • Check Requirements API
      • Generate Token API
      • Upload File API
      • Business Registration API
      • Create Business Lite API
      • Get Business Data API
  • Payout
    • Kirim DOKU
  • FLEXIBILL
    • Account Billing
      • Batch Upload
    • DOKU Biller
      • Response Code
      • Samples
  • PAYCHAT API
    • Send WhatsApp Message
  • Archive
    • Non-SNAP
      • Tokenization V1
      • e-Wallet
        • OVO Recurring
        • OVO Open API
    • SNAP
      • Virtual Account
        • BCA v1.0
        • BRI v1.0
        • BNI v1.0
        • BNC v1.0
        • Mandiri v1.0
        • BTN v1.0
        • Permata v1.0
        • Danamon Virtual Account
      • e-Wallet
        • OVO Open API
        • DANA
        • ShopeePay
      • Direct Debit
        • CIMB Direct Debit
        • BRI Direct Debit
        • Allobank
Powered by GitBook

DOKU API

  • Legacy Documentation
On this page

Was this helpful?

  1. Archive
  2. SNAP
  3. Direct Debit

BRI Direct Debit

PreviousCIMB Direct DebitNextAllobank

Last updated 9 months ago

Was this helpful?

BRI Direct Debit

One of DOKU's direct debit partner is BRI. Learn more about integration to BRI Direct Debit here.

Integration Steps

The overview of integration process with BRI Direct Debit

Card Registration

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

/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:

OTP Verification

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

/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:

Direct Debit Payment

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

/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:

Direct Debit Payment Notification

Additional Feature

Online Direct Debit Refund

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

/wtd-direct-debit-snap-bri/snap/v1.0/refund

The sample of Request Header, Request Body and Response Body for BRI Direct Debit Refund:

Card Registration Unbinding

This API is used to delete customer's card data in DOKU.

API Endpoint

Environment
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:

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
https://api-sandbox.doku.com
https://api.doku.com
https://api-sandbox.doku.com
https://api.doku.com
https://api-sandbox.doku.com
https://api.doku.com
https://api-sandbox.doku.com
https://api.doku.com
https://api-sandbox.doku.com
https://api.doku.com
Card Registration
OTP Verification
Direct Debit Payment
Direct Debit Payment Notification
  • BRI Direct Debit
  • Integration Steps
  • POSTRegister a merchant account for direct debit
  • POSTOTP Verification API
  • POSTPayment API
  • Additional Feature
  • POSTRefund API
  • POSTUnbinding process

Register a merchant account for direct debit

post
Header parameters
X-TIMESTAMPstring · utc timestampRequired

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

Example: 2020-12-21T07:56:11.000Z
X-SIGNATUREstringRequired

Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)

Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-IDstringRequired

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

Example: 821508239190
X-EXTERNAL-IDstringRequired

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

Example: 418075533589
X-DEVICE-IDstringRequired

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

Example: 95221
X-IP-ADDRESSstringOptional

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

Example: 95221
AuthorizationstringRequired

Access Token obtained from Get B2B Token API

Example: 95221
Body
bankCardNostring · numberOptional

Last four digit of BRI card number | length: 4

Example: 0747
bankCardTypestringOptional

Type of Bank Card Number | value: C (Credit) / D (Debit) / UE

Example: D
identificationNostring · numberOptional

ID Number | max length: 20

Example: 6013010111348227
identificationTypestringOptional

Type of ID used for identificationNo | value: 01/02/03/04

Example: 02
emailstring · emailOptional

Account email| max length: 255

Example: paymenthub@wtd.co.id
expiryDatestringOptional

Card expiry date | length: 4 | format: MMYY

Example: 0525
custIdMerchantstringOptional

Customer id from merchant | min length: 1 | max length: 18

Example: 01010136136144
phoneNostring · numberOptional

Customer Phone number | min length: 5 | max length: 16

Example: 6289509325902
accountNamestringOptional

Account name from card number | max length: 70

Example: TESTING-WTD
dateOfBirthstringOptional

Customer date of birth | format: YYYYMMDD

Example: 19960101
Responses
200
Successful registration
application/json
400
Invalid Field Format
application/json
401
Invalid Token (B2B)
application/json
post
POST /wtd-direct-debit-snap-bri/snap/v1.0/registration-card-bind HTTP/1.1
Host: {api-domain}
X-TIMESTAMP: 2020-12-21T07:56:11.000Z
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 821508239190
X-EXTERNAL-ID: 418075533589
X-DEVICE-ID: 95221
Authorization: 95221
Content-Type: application/json
Accept: */*
Content-Length: 426

{
  "bankCardNo": "0747",
  "bankCardType": "D",
  "identificationNo": "6013010111348227",
  "identificationType": "02",
  "email": "paymenthub@wtd.co.id",
  "expiryDate": "0525",
  "custIdMerchant": "01010136136144",
  "phoneNo": "6289509325902",
  "accountName": "TESTING-WTD",
  "dateOfBirth": "19960101",
  "additionalInfo": {
    "customerEmail": "wtd@mail.com",
    "customerPhoneNo": "6289509325902",
    "customerCountry": "Indonesia",
    "customerAddress": "Jl. Menara Mulia Sekali"
  }
}
{
  "responseCode": "2000100",
  "responseMessage": "Successful",
  "referenceNo": "345968587571",
  "bankCardToken": "aa26bcba00d14a4a6a42e1041498d1e6",
  "additionalInfo": {
    "tokenStatus": "PENDING",
    "tokenStatusMessage": "Waiting for validate OTP"
  }
}

OTP Verification API

post
Header parameters
X-TIMESTAMPstring · utc timestampRequired

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

Example: 2020-12-21T07:56:11.000Z
X-SIGNATUREstringRequired

Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)

Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-IDstringRequired

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

Example: 821508239190
X-EXTERNAL-IDstringRequired

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

Example: 418075533589
X-DEVICE-IDstringRequired

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

Example: 95221
X-IP-ADDRESSstringOptional

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

Example: 95221
AuthorizationstringRequired

Access Token obtained from Get B2B Token API

Example: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
Body
originalReferenceNostringRequired

Original Reference No get from prcess binding or payment | min length: 1 | max length: 64

Example: 108772587457
otpstringRequired

OTP | min length: 1 | max length: 18

Example: 999999
chargeTokenstring · numberOptional

DOKU Gateway token get from binding process| length: 6

Example: 89e1174c796b9628dcfd3ebec996e6c0
typestringRequired

Type of OTP Verification process | value: card/payment

Example: card
Responses
200
Successful OTP Verification
application/json
Responseone of
or
400
Invalid Field Format
application/json
401
Invalid Token (B2B)
application/json
404
Invalid Field Format
application/json
post
POST /wtd-direct-debit-snap-bri/snap/v1.0/otp-verification HTTP/1.1
Host: {api-domain}
X-TIMESTAMP: 2020-12-21T07:56:11.000Z
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 821508239190
X-EXTERNAL-ID: 418075533589
X-DEVICE-ID: 95221
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
Content-Type: application/json
Accept: */*
Content-Length: 116

{
  "originalReferenceNo": "108772587457",
  "otp": "999999",
  "chargeToken": "89e1174c796b9628dcfd3ebec996e6c0",
  "type": "card"
}
{
  "responseCode": "2000400",
  "responseMessage": "Successful",
  "originalReferenceNo": "108772587457",
  "additionalInfo": {
    "tokenStatus": "SUCCESS",
    "tokenStatusMessage": "Success Register Card"
  }
}

Payment API

post
Header parameters
X-TIMESTAMPstring · utc timestampRequired

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

Example: 2020-12-21T07:56:11.000Z
X-SIGNATUREstringRequired

Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)

Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-IDstringRequired

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

Example: 821508239190
X-EXTERNAL-IDstringRequired

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

Example: 418075533589
X-DEVICE-IDstringRequired

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

Example: 95221
X-IP-ADDRESSstringOptional

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

Example: 95221
Authorization-customerstringRequired

Access token obtained from B2B2C API

Example: Bearer fa8sjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a
AuthorizationstringRequired

Access Token obtained from Get B2B Token API

Example: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
Body
bankCardTokenstringRequired

DOKU Gateway token get from binding process | min length: 1 | max length: 128

Example: 198ad24d9562f1179a25cd65fe1dddec
Responses
200
Successful Payment
application/json
400
Invalid Field Format
application/json
401
Invalid Token (B2B)
application/json
post
POST /wtd-direct-debit-snap-bri/snap/v1.0/debit/payment-host-to-host HTTP/1.1
Host: {api-domain}
X-TIMESTAMP: 2020-12-21T07:56:11.000Z
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 821508239190
X-EXTERNAL-ID: 418075533589
X-DEVICE-ID: 95221
Authorization-customer: Bearer fa8sjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
Content-Type: application/json
Accept: */*
Content-Length: 336

{
  "bankCardToken": "198ad24d9562f1179a25cd65fe1dddec",
  "merchantId": "MCH-0001-2768422848550",
  "transAmount": {
    "value": "90000.00",
    "currency": "IDR"
  },
  "additionalInfo": {
    "lineItems": [
      {
        "name": "Vitamin C",
        "price": "40000.00",
        "quantity": "1"
      },
      {
        "name": "Pensil Warna",
        "price": "50000.00",
        "quantity": "1"
      }
    ],
    "merchantTrxId": "66778181123",
    "otpStatus": "YES"
  }
}
{
  "responseCode": "2005400",
  "responseMessage": "Successful",
  "referenceNo": "738663838768",
  "additionalInfo": {
    "merchantTrxId": "66778181123",
    "transactionStatus": "PENDING",
    "transactionStatusMessage": "Waiting for validate OTP"
  }
}

Refund API

post
Header parameters
X-TIMESTAMPstring · utc timestampRequired

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

Example: 2020-12-21T07:56:11.000Z
X-SIGNATUREstringRequired

Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)

Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-IDstringRequired

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

Example: 821508239190
X-EXTERNAL-IDstringRequired

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

Example: 418075533589
X-DEVICE-IDstringRequired

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

Example: 95221
X-IP-ADDRESSstringOptional

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

Example: 95221
Authorization-customerstringRequired

Access token obtained from B2B2C API

Example: Bearer fa8sjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a
AuthorizationstringRequired

Access Token obtained from Get B2B Token API

Example: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
Body
originalReferenceNostringRequired

Original Reference Number | min length: 1 | max length: 64

Example: 884791706226
partnerRefundNostringRequired

Partner refund number | min length: 1 | max length: 64

Example: 123491931459
originalExternalIdstringRequired

External id used on payment | min length: 1 | max length: 64

Example: 85116108
reasonstringOptional

Reason of refund | max length: 255

Example: kesalahan data
Responses
200
Successful Refund
application/json
400
Invalid Field Format
application/json
401
Invalid Token (B2B)
application/json
post
POST /wtd-direct-debit-snap-bri/snap/v1.0/debit/refund HTTP/1.1
Host: {api-domain}
X-TIMESTAMP: 2020-12-21T07:56:11.000Z
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 821508239190
X-EXTERNAL-ID: 418075533589
X-DEVICE-ID: 95221
Authorization-customer: Bearer fa8sjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_rHYq36BRmLXH7i7MQADHPsB1ktPVgk3ZWF0jebEjI-lJ88p-omL1vQNvRseXej2HKBa9chGLmPDvXYBQaRmmstHz-tv1boFrHfwsHJebcUec-i3WE1vMvP_3EPXdbqb45N4ciQ
Content-Type: application/json
Accept: */*
Content-Length: 232

{
  "originalReferenceNo": "884791706226",
  "partnerRefundNo": "123491931459",
  "originalExternalId": "85116108",
  "reason": "kesalahan data",
  "refundAmount": {
    "value": "45000.00",
    "currency": "IDR"
  },
  "additionalInfo": {
    "merchantTrxId": "667781811252"
  }
}
{
  "responseCode": "2005800",
  "responseMessage": "Successful",
  "originalPartnerReferenceNo": "2238220704144005697107174446374000107558",
  "originalReferenceNo": "884791706226",
  "refundNo": "132979271182",
  "partnerRefundNo": "123491931459",
  "refundAmount": {
    "value": "45000.00",
    "currency": "IDR"
  },
  "refundTime": "2022-07-04T16:09:35+07:00"
}

Unbinding process

post
Header parameters
X-TIMESTAMPstring · utc timestampRequired

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

Example: 2020-12-21T07:56:11.000Z
X-SIGNATUREstringRequired

Algorithm symmetric signature HMAC_SHA512 (clientSecret, stringToSign)

Example: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-IDstringRequired

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

Example: 821508239190
X-EXTERNAL-IDstringRequired

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

Example: 418075533589
X-DEVICE-IDstringRequired

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

Example: 95221
X-IP-ADDRESSstringOptional

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

Example: 95221
AuthorizationstringRequired

Access Token obtained from Get B2B Token API

Example: 95221
Body
tokenstringRequired

DOKU Gateway token | Format : AN

Example: hdiwh3h832d832h382h3duh2
Responses
200
Successful Unbinding
application/json
400
Invalid Field Format
application/json
401
Invalid Token (B2B)
application/json
post
POST /wtd-direct-debit-snap-bri/snap/v1.0/registration-card-unbind HTTP/1.1
Host: {api-domain}
X-TIMESTAMP: 2020-12-21T07:56:11.000Z
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 821508239190
X-EXTERNAL-ID: 418075533589
X-DEVICE-ID: 95221
Authorization: 95221
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "token": "hdiwh3h832d832h382h3duh2"
}
{
  "responseCode": "2000500",
  "responseMessage": "OTP Sent To Cardholder",
  "bankCardToken": "89e1174c796b9628dcfd3ebec996e6c0",
  "additionalInfo": {
    "tokenStatus": "SUCCESS",
    "tokenStatusMessage": "Success Unbinding Card"
  }
}