Path | /ordersnap/api/v1.0/debit/status |
HTTP Method | POST |
Version | v1.0 |
Service Code | 55 |
Request Header
Field Name | Field Type | Mandatory | Field Description |
---|---|---|---|
Content-type | String | M | Media type of the resource, i.e. application/json. |
Authorization | String | M | Represents access_token of a request; string starts with keyword “Bearer ” followed by access_token. Can get this from Access Token B2B API response. Read here |
X-TIMESTAMP | String | M | Client’s current local time in ISO-8601 format. |
X-SIGNATURE | String | M | Created using symmetric signature HMAC_SHA512 algorithm. Read here |
X-PARTNER-ID | String | M | Unique identifier for caller |
X-EXTERNAL-ID | String | M | Merchant’s unique ID per transaction request |
CHANNEL-ID | String | M | PJP’s channel id. |
Content-Type | application/json |
Authorization | Bearer gp9HjjEj813Y9JGoqwOeOPWbnt4CupvIJbU1Mmu4a11MNDZ7Sg5u9a |
X-TIMESTAMP | 2023-07-06T14:12:50+07:00 |
X-SIGNATURE | da1fa417c72d6b91c257e01e54fac824 |
X-PARTNER-ID | 7fb118fb-2738-4886-9817-8a2c4de43001 |
X-EXTERNAL-ID | 841807553358950093184162180797837 |
CHANNEL-ID | 95221 |
Request Body
Field Name | Field Type | Mandatory | Field Description |
---|---|---|---|
originalPartnerReferenceNo | String | M | Transaction identifier on merchant side |
{
"originalPartnerReferenceNo": "order0002"
}
Response Body
Field Name | Field Type | Mandatory | Field Description |
---|---|---|---|
additionalInfo | Object | O | Object additonal information |
additionalInfo.fraudStatus | String | O | Fraud status |
additionalInfo.metadata | Object | O | Transaction metadata |
additionalInfo.payOptionDetails | Array of Object | M | Payment option detail |
additionalInfo.payOptionDetails.payMethod | String | M | Payment method |
additionalInfo.payOptionDetails.payOption | String | M | Payment option used |
additionalInfo.validUpTo | String | O | The time when the payment will be automatically expired |
latestTransactionStatus | String(2) | M | Latest transaction status: 00 (Success) 01 (Initiated) 02 (Paying) 03 (Pending) 04 (Refunded) 05 (Canceled) 06 (Failed) 07 (Not found) 08 (Expiry) 09 (Rejected) |
originalPartnerReferenceNo | String(64) | O | Original transaction identifier on service consumer system |
originalReferenceNo | String(64) | M | Transaction identifier on service provider system |
paidTime | String | C | Update time of the individual transaction |
refundHistory | Array of Object | C | Refund history associated with the transaction |
responseCode | String(7) | M | Status code of transaction charge result. |
responseMessage | String(150) | M | Description of transaction charge result. |
serviceCode | String(2) | M | Service code of the original transaction request |
transAmount | Object | O | Object Transaction Amount |
transAmount.currency | String | M | Currency of transaction amount based on ISO 4217 |
transAmount.value | String | M | Transaction amount with 2 decimal |
{
"additionalInfo": {
"fraudStatus": "",
"metadata": {},
"payOptionDetails": {
"payMethod": "8",
"payOption": ""
},
"validUpTo": "2024-08-23T07:44:11+07:00"
},
"latestTransactionStatus": "03",
"originalPartnerReferenceNo": "order32",
"originalReferenceNo": "T24090683396",
"paidTime": "",
"refundHistory": [],
"responseCode": "2005500",
"responseMessage": "Request has been processed successfully",
"serviceCode": "54",
"transAmount": {
"currency": "IDR",
"value": "1017.01"
}
}
List Response Code
Response Code | HTTP Status | Description |
---|---|---|
2005500 | 200 | Successful |
4005501 | 400 | Invalid format |