Indodana
DOKU has partenered with various Paylater Providers and one of them is Indodana to provide Buy Now Pay Later. Learn more about how DOKU can help you integrate with Indodana here.
Integration steps
Here is the overview of how to integrate with Indodana:
Obtain
payment.urlby generating orderDisplay Indodana payment page to customer
Acknowledge payment result

1. Obtain payment.url by generating order
Creates an order and generates the payment page URL for Indodana Paylater. Merchants redirect customers to this URL to complete the payment.
Client ID retrieved from DOKU Back Office
MCH-0001-10791114622547Unique random string (max 128 characters) generated from merchant side to protect duplicate request
baec7d95-f30a-4b78-b711-6ebe0ccdf50bTimestamp request on UTC time in ISO8601 UTC+0 format (e.g. yyyy-MM-ddTHH:mm:ssZ)
2021-07-07T08:45:42ZHMAC-SHA256 signature generated using Merchant Client Secret
HMACSHA256=vl9DBTX5KhEiXmnpOD0TSm8PYQknuHPdyHSTSc3W6Ps=SUCCESS
POST /indodana-peer-to-peer/v2/generate-order HTTP/1.1
Host: api-sandbox.doku.com
Client-Id: text
Request-Id: text
Request-Timestamp: 2026-01-01T00:00:00.000Z
Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 1091
{
"order": {
"invoice_number": "MINV20201231468",
"line_items": [
{
"name": "Samsung Galaxy Z Flip5",
"price": 17999000,
"quantity": 1,
"id": "1002",
"category": "electronics-and-telecom",
"url": "https://merchant.com/product_1002",
"image_url": "https://merchant.com/product_1002/image",
"type": "handphone"
}
],
"amount": 17999000,
"callback_url": "https://merchant.com/return-url",
"callback_url_cancel": "https://merchant.com/cancel-url"
},
"peer_to_peer_info": {
"expired_time": 60,
"merchant_unique_reference": "60123"
},
"customer": {
"first_name": "andreas",
"last_name": "dharmawan",
"phone": "081939815480",
"email": "andreas@email.com"
},
"billing_address": {
"first_name": "andreas",
"last_name": "dharmawan",
"address": "Jalan Teknologi Indonesia No. 25",
"city": "Jakarta",
"postal_code": "12960",
"phone": "081513114262",
"country_code": "IDN"
},
"shipping_address": {
"first_name": "andreas",
"last_name": "dharmawan",
"address": "Jalan Teknologi Indonesia No. 25",
"city": "Jakarta",
"postal_code": "12960",
"phone": "081513114262",
"country_code": "IDN"
},
"additional_info": {
"override_notification_url": "https://another.example.com/payments/notifications"
}
}SUCCESS
{
"order": {
"amount": 200000,
"invoice_number": "INVQ01W"
},
"payment": {
"status": "PENDING",
"url": "https://sandbox01.indodana.com/product-installment/payment?purchaseTransactionId=<generated-purchase-transaction-id>&tenure=3"
},
"peer_to_peer_info": {
"identifier": [
{
"name": "INDODANA_ORDER_ID",
"value": "<MERCHANT-ORDER-ID>"
}
],
"created_date": "20220217222048",
"expired_date": "20220217232048",
"created_date_utc": "2022-02-17T15:20:48Z",
"expired_date_utc": "2022-02-17T16:20:48Z",
"merchant_unique_reference": "MURQ01W"
},
"additional_info": {
"override_notification_url": "https://another.example.com/payments/notifications"
}
}2. Display Indodana payment page to customer
Once you have the payment.url, you can now display the payment page by redirecting your customer to the Indodana payment page.
After the customer completed the payment, they will be redirected to the defined order.callback_url that you set on the API request.
3. Acknowledge payment result
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:
Additional features
We provide various additional features to suited your needs. Learn more here.
Refunds a transaction that has been completed using Indodana Paylater.
Client ID retrieved from DOKU Back Office
MCH-0552-1636616142675Unique random string (max 128 characters) generated from merchant side to protect duplicate request
95244Timestamp request on UTC time in ISO8601 UTC+0 format
2026-06-30T04:23:23ZHMAC-SHA256 signature generated using Merchant Client Secret
HMACSHA256=CkGvt5IX4900SzqhLI7/4TqlmoswzmmMCbBqy7mo3aE=SUCCESS
POST /indodana-peer-to-peer/v2/refund HTTP/1.1
Host: api-sandbox.doku.com
Client-Id: text
Request-Id: text
Request-Timestamp: 2026-01-01T00:00:00.000Z
Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 390
{
"order": {
"invoice_number": "INV-S"
},
"peer_to_peer_info": {
"merchant_unique_reference": "MUR-S",
"identifier": [
{
"name": "INDODANA_ORDER_ID",
"value": "05521636616142675MUR-S"
}
]
},
"payment": {
"identifier": [
{
"name": "TRANSACTION_ID",
"value": "526e8a73-bccc-4a07-bfec-ac8540b8d222"
}
]
},
"refund": {
"merchant_unique_reference": "rer-ref-1676619553",
"amount": 10000,
"reason": "success",
"cancelled_by": "Zolanda"
}
}SUCCESS
{
"order": {
"amount": 10000,
"invoice_number": "INV-S"
},
"payment": {
"status": "REFUNDED",
"identifier": [
{
"name": "TRANSACTION_ID",
"value": "526e8a73-bccc-4a07-bfec-ac8540b8d222"
}
]
},
"refund": {
"status": "SUCCESS",
"amount": 10000,
"reason": "success",
"identifier": [
{
"name": "INDODANA_CANCELLATION_ID",
"value": "rer-ref-1676619553"
},
{
"name": "FRAUD_STATUS",
"value": ""
},
{
"name": "MESSAGE",
"value": ""
}
],
"merchant_unique_reference": "rer-ref-1676619553",
"cancelled_by": "Zolanda"
},
"transaction": {
"status": "REFUNDED",
"date": "2026-06-30T11:23:23Z",
"original_request_id": "95244"
},
"peer_to_peer_info": {
"status": "REFUNDED",
"identifier": [
{
"name": "INDODANA_ORDER_ID",
"value": "05521636616142675MUR-S"
}
],
"merchant_unique_reference": "MUR-S"
}
}Split Settlement
If you are a platform or a marketplace, you can use this feature to settle the funds to your sellers or partners programmatically, save many operational efforts.
Last updated