Dana Subscription
Dana Subscription Payment Notification
Asynchronous payment notification for DANA subscriptions.
Request URL
URL: notifyUrl (value sent when creating the subscription)
HTTPMethod: POST
EndpointUrl: path based on the URL, e.g. URL=https://merchant-domain.com/v2.2/dana/notify, Path=/v2.2/dana/notify
Subscription Payment Notification Request (Paylabs -> Merchant)
Header
| Field Name | Type | Value | Required |
|---|---|---|---|
| Content-Type | String(30) | Fixed value "application/json;charset=utf-8" | Yes |
| X-TIMESTAMP | String(29) | Current time, format 2022-09-16T16:58:47.964+07:00 | Yes |
| X-SIGNATURE | String(64) | Signature. For details see Data Signing Rules | Yes |
| X-PARTNER-ID | String(20) | Merchant ID | Yes |
| X-REQUEST-ID | String(64) | Unique ID for each request | Yes |
Body
| Parameter | Type | Required | Remarks |
|---|---|---|---|
| requestId | String(64) | Yes | Unique identifier on every request |
| serviceCode | String(64) | No | Service Code, fixed value: sub.payment |
| merchantId | String(20) | Yes | Merchant ID |
| storeId | String(30) | No | If using branch ID |
| paymentType | String(20) | Yes | Payment Type |
| amount | Decimal(12,2) | Yes | Amount in IDR with 2 decimals |
| merchantTradeNo | String(32) | Yes | Merchant transaction number (subscription ID) |
| platformTradeNo | String(32) | No | Paylabs platform order number |
| createTime | String(16) | No | yyyyMMddHHmmss |
| successTime | String(16) | No | yyyyMMddHHmmss |
| status | String(32) | No | 01 PENDING 09 FAILED 02 SUCCEEDED |
| productName | String(100) | No | Product name |
| transFeeRate | Decimal(6,6) | No | Transaction fee rate |
| transFeeAmount | Decimal(12,2) | No | Single transaction fee |
| totalTransFee | Decimal(12,2) | No | Total transaction fees (excluding VAT) |
| vatFee | Decimal(12,2) | No | VAT fee |
Subscription Payment Notification Response (Merchant -> Paylabs)
Header
| Field Name | Type | Value | Required |
|---|---|---|---|
| Content-Type | String(30) | Fixed value "application/json;charset=utf-8" | Yes |
| X-TIMESTAMP | String(29) | Current time, format 2022-09-16T16:58:47.964+07:00 | Yes |
| X-SIGNATURE | String(64) | Signature. For details see Data Signing Rules | Yes |
| X-PARTNER-ID | String(20) | Merchant ID | Yes |
| X-REQUEST-ID | String(64) | Unique ID for each request | Yes |
Body
| Parameter | Type | Required | Remarks |
|---|---|---|---|
| requestId | String(64) | Yes | Unique identifier on every request |
| errCode | String(32) | Yes | 0 means success, otherwise see Error Code |
| errCodeDes | String(128) | No | Error description |
| merchantId | String(20) | Yes | Merchant ID |
| storeId | String(30) | No | If using branch ID |
Example
Request
POST URL provided by Merchant
# HTTP Header
Content-Type: application/json;charset=utf-8
X-TIMESTAMP: 2022-09-16T16:58:47.964+07:00
X-SIGNATURE: xxxxxxxxx
X-PARTNER-ID: 010001
X-REQUEST-ID: xxxxxxxxxxxxxxxxxxxxxxxx
# HTTP Body
{
"merchantId": "010001",
"requestId": "N01000120251022001000000641761133472132",
"serviceCode": "sub.payment",
"paymentType": "StaticDanaSub",
"amount": 15000.0,
"merchantSubId": "PY-1761114620.5313134",
"platformTradeNo": "2025102200100000064",
"createTime": "20251022175231",
"successTime": "20251022175230",
"status": "02",
"productName": "test subTitle",
"transFeeRate": 0.0,
"transFeeAmount": 2500.0,
"totalTransFee": 2500.0,
"vatFee": 275.0
}Response
POST URL provided by Merchant
# HTTP Header
Content-Type: application/json;charset=utf-8
X-TIMESTAMP: 2022-09-16T16:58:47.964+07:00
X-SIGNATURE: xxxxxxxxx
X-PARTNER-ID: 010001
X-REQUEST-ID: xxxxxxxxxxxxxxxxxxxxxxxx
# HTTP Body
{
"merchantId": "010001",
"requestId": "N01029020230619290000003911687350380290",
"errCode": "0"
}