Credit Card Subscription
Credit Card Subscription Payment Notification
Payment notification for credit card subscriptions.
Request URL
URL: notifyUrl (value from create order)
HTTPMethod: POST
EndpointUrl: Path of the URL, e.g. URL=https://merchant-domain.com/v2.2/cc/notify, Path=/v2.2/cc/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 |
| agreementId | String(32) | Yes | Agreement ID, obtained via subscription order query |
| 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 | Fee, two decimals |
| totalTransFee | Decimal(12,2) | No | Total fee rate (excl. VAT), two decimals |
| vatFee | Decimal(12,2) | No | VAT fee, two decimals |
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": "N01000120251031001000000101761881477153",
"serviceCode": "sub.payment",
"paymentType": "StaticCcSub",
"amount": 200000.0,
"agreementId": "PY-1762845307.595957",
"platformTradeNo": "2025103100100000010",
"createTime": "20251031100919",
"successTime": "20251031100919",
"status": "02",
"transFeeRate": 0.02,
"transFeeAmount": 0.0,
"totalTransFee": 4000.0,
"vatFee": 440.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"
}