Integration Guide
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Your merchant-assigned reference number
REG-20240115-001Parent Profile ID for hierarchical accounts
PROF-PARENT-001Referral code. DOKU auto-generates if omitted
Sub-account type. Use DEFAULT for standard sub-accounts.
DEFAULTEmail address of the account holder. Email address of the account holder.
vendor@example.comName of the account holder
Toko MakmurPhone number of the account holder (e.g., 081234567890)
081234567890ISO 3166-1 alpha-2 country code (e.g., ID for Indonesia)
IDSub-account registered successfully
2000000SuccessfulPROF-PARENT-001Newly created Profile ID. Use this to reference the sub-account in future API calls (e.g., Balance Inquiries).
PROF-00123Bad Request
Unauthorized
Duplicate partnerReferenceNo
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Unique transaction identifier. Must be unique per request
TRF-20240115-001Transfer destination type: BANK_ACCOUNT (external bank), DOKU_SUB_ACCOUNT (between sub-accounts), DOKU_WALLET (e-wallet)
BANK_ACCOUNTPossible values: Transfer channel. Defaults to BI_FAST
BI_FASTPossible values: Source sub-account number
1234567890Destination bank code (see Supported Banks). Required for BANK_ACCOUNT type. Not needed for DOKU_SUB_ACCOUNT.
CENAIDJADestination account number
0987654321Transfer remarks
Seller payout JanuaryInquiry successful
2000000SuccessfulDOKU-generated reference number. You MUST pass this value as referenceNo in the Transfer Payment request to execute this transfer.
DOKU-REF-00456TRF-20240115-001BANK_ACCOUNTTransfer channel (BI_FAST or ONLINE)
BI_FASTSource sub-account number
20103702820987654321Account holder name as registered at the destination bank. Display this to the user for confirmation before calling Transfer Payment.
JOHN DOECENAIDJABad Request
Unauthorized
Account not found
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Unique transaction identifier. Must be unique per request
TRF-20240115-002DOKU reference number from Transfer Inquiry
DOKU-REF-00456BANK_ACCOUNTPossible values: Transfer channel. BI_FAST = real-time national payment rail, ONLINE = standard bank transfer. Defaults to BI_FAST if omitted.
BI_FASTPossible values: Source sub-account number
1234567890Destination bank code
CENAIDJADestination account number
0987654321Destination account holder name
JOHN DOETransfer executed successfully
2000000SuccessfulDOKU-REF-00456TRF-20240115-002BANK_ACCOUNTTransfer channel (BI_FAST or ONLINE)
BI_FASTBank reference number
DK0627474882024-01-15T10:35:00+07:00CENAIDJA0987654321JOHN DOE1234567890Bad Request
Unauthorized
Exceeds transaction amount limit
Duplicate partnerReferenceNo
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001The transaction type this rule will match against. Use PAYMENT for split rules applied to incoming payments.
PAYMENTSplit rule created
2000000SuccessfulUnique ID for this split rule
SR-a1b2c3d4-e5f6-7890MARKETPLACE_SALEBad Request
Unauthorized
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Profile ID of the sub-account
PROF-00123Specific account numbers to query. Omit to get all
["1234567890"]Balance retrieved
2000000SuccessfulAccount holder name
Toko MakmurPROF-00123Bad Request
Unauthorized
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Your unique transaction identifier
PUR-20240115-001Status retrieved
2000000SuccessfulPUR-20240115-001PURCHASE00 = Success, 03 = Pending, 04 = Refunded, 06 = Failed. May be absent for voided transactions.
00Status description (e.g., success, void, pending)
success2024-01-15T10:40:00+07:00Bad Request
Unauthorized
Transaction not found
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Sub-account number
1234567890Start date in ISO 8601 format
2024-01-01T00:00:00+07:00End date in ISO 8601 format
2024-01-31T23:59:59+07:00Items per page
20Page number (starts from 0). Use 0 for the first page.
0History retrieved
2001200Request has been processed successfullyBad Request
Unauthorized
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Unique transaction identifier. Must be unique per request
PUR-20240115-001Sub-account number to debit
1234567890A merchant-defined label to categorize the transaction (e.g., PURCHASE, SERVICE_FEE). Used for filtering and split rule matching.
PURCHASETransaction description
Purchase of 3x Widget ProDebit processed
2000000SuccessfulPUR-20240115-001DOKU-REF-00789PURCHASE1234567890Purchase of 3x Widget Pro00 = Success, 03 = Pending, 04 = Refunded, 06 = Failed
00Success2024-01-15T10:40:00+07:00Bad Request
Unauthorized
Duplicate partnerReferenceNo
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00Request signature generated using HMAC_SHA512(clientSecret, stringToSign). The stringToSign is constructed from request components to ensure integrity and prevent tampering.
a1b2c3d4e5f6...Numeric string used as a request reference. Must be unique within the same day (resets daily). Used by DOKU to detect and reject duplicate requests.
20240115001Unique identifier for this debit cancel request
REF-20240115-001partnerReferenceNo from the original debit
PUR-20240115-001referenceNo from the original debit
DOKU-REF-00789Use REFUND_PURCHASE for cancelling a debit transaction.
REFUND_PURCHASEReason for the debit cancellation
Customer returned 1x Widget ProDebit cancellation processed
2000000SuccessfulREF-20240115-001PUR-20240115-001DOKU-REF-00789REFUND_PURCHASEDOKU-assigned debit cancel number
DOKU-REFUND-00123Customer returned 1x Widget Pro00 = Success, 03 = Pending, 04 = Refunded, 06 = Failed
00Success2024-01-15T11:00:00+07:00Bad Request
Unauthorized
Original transaction not found
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00HMAC_SHA512 signature for verification
DOKU-generated reference number for this top-up transaction
45af25e8c4dd5c1634e967a2ebfff3a4043e7fd6Partner reference number for this transaction
3f97a11c4476420897f2224de1ccea73Transaction type. Always TOPUP for BRI VA top-up callbacks.
TOPUPThe DOKU_MERCHANT_IDR account number that received the top-up funds
2052010241Description of the transaction
topup accountTransaction status: 00 = Success
00Human-readable status description
SuccessPartner service identifier
77777Customer number portion of the VA number
0000000000001Transaction datetime in ISO 8601 format
2019-07-03T12:08:56+07:00Full BRI VA number that was paid (prefix 1392495 + DOKU_MERCHANT_IDR account number)
777770000000000001Name registered to the virtual account (sub-account holder name)
Toru YamashitaBank transaction ID from BRI
23219829713Payment request identifier
12839218738127830Notification acknowledged
2000000SuccessfulNotification acknowledged
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00HMAC_SHA512 signature for verification
Your merchant reference number
REG-20240115-001Parent profile code
PROF-PARENT-001New sub-account's profile code
PROF-00123Assigned referral code
REF-AUTO-001Sub-account type
DEFAULTEmail address
vendor@example.comAccount holder name
Toko MakmurRegistration status
ACTIVEAccount level in hierarchy
2Phone number of the account holder
081234567890Notification acknowledged
2000000SuccessfulNotification acknowledged
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00HMAC_SHA512 signature for verification
DOKU reference number
DOKU-REF-00456Your merchant reference number
TRF-20240115-00200 = Success, 03 = Pending, 06 = Failed
00Status description
SuccessSource sub-account
1234567890Notification acknowledged
2000000SuccessfulNotification acknowledged
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00HMAC_SHA512 signature for verification
DOKU reference number
DOKU-REF-00789Your merchant reference number
PUR-20240115-001Merchant-defined transaction category matching the original request
PURCHASEDebited account
1234567890Destination account
0000000001Transaction description
Purchase of 3x Widget Pro00 = Success, 03 = Pending, 06 = Failed
00Status description
SuccessNotification acknowledged
2000000SuccessfulNotification acknowledged
B2B Token obtained from Get B2B Token API
Your Partner ID (DOKU's Client ID)
PARTNER-001Client's current local time in ISO 8601 format
2024-01-15T10:30:00+07:00HMAC_SHA512 signature for verification
Your debit cancel reference number
REF-20240115-001Original DOKU reference
DOKU-REF-00789Original merchant reference
PUR-20240115-001DOKU-assigned debit cancel number
DOKU-REFUND-00123Transaction type for debit cancellation
REFUND_PURCHASEDebit cancel reason
Customer returned 1x Widget ProDebit cancel timestamp
2024-01-15T11:00:00+07:0000 = Success, 03 = Pending, 06 = Failed
00Status description
SuccessNotification acknowledged
2000000SuccessfulNotification acknowledged
Last updated