Callback VA (Non SNAP)
Specification
The Following tabel is spesification for this API :
API Name | Callback VA (Non SNAP) |
---|---|
Function | This API is used to callback virtual account (VA) that has been paid |
Method | POST |
URL | /non-snap/v1.0/transfer-va/callback |
Accept | application/json |
Content Type | application/json |
Related Service | Virtual Account |
Request
The following part will be describe about parameter of request in this API:
Request Parameter
The following table is a list of request parameter in this API:
Header
The following table is Header of Request Parameters :
No | Name | Type | Length | Required | Condition | Remarks |
---|---|---|---|---|---|---|
1 | Content-Type | String | Variable, 127 max | Mandatory | - | Content type, value always application/json |
2 | X-TIMESTAMP | String | Fixed, 25 max | Mandatory | - | Transaction date time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time) |
3 | X-SIGNATURE | String | Variable | Mandatory | - | Signature need to be validate with Asymmetric Signature method |
Body
The following table is a body of request parameter:
No | Name | Type | Length | Required | Condition | Remarks |
---|---|---|---|---|---|---|
1 | virtualAccountData | JSON Object | Variable | Mandatory | - | Contains virtual account data |
Request Sample
The following script is a request sample of this API:
POST /non-snap/v1.0/transfer-va/callback
X-TIMESTAMP: 2024-10-10T10:25:33+07:00
X-SIGNATURE: BlMk6tnvxxR1ktErqJ1Ekanz5XGsEC3Ltjk6bNrEIgqD1T5eQJQDnyN7ryBdq1Xh0F/5DKmxyE4AAzMC3yLKPg==
Content-Type: application/json
{
"virtualAccountData": {
"paymentFlagReason": {
"english": "Success",
"indonesia": "Sukses"
},
"partnerServiceId": " 359660",
"customerNo": "70627627784739813500",
"virtualAccountNo": " 35966070627627784739813500",
"virtualAccountName": "Judah Hartmann",
"paidAmount": {
"value": "50000.00",
"currency": "IDR"
},
"paymentFlagStatus": "00",
"additionalInfo": {
"callbackUrl": "https://webhook.site/53a58f8e-f254-4154-bab6-d52578c7b4a7"
}
}
}
Response
The following part will be describe about parameter of response in this API:
Response Parameter
The following table is a list of response parameter in this API:
Body
The following table is a body of response parameter:
No | Name | Type | Length | Required | Condition | Remarks |
---|---|---|---|---|---|---|
1 | responseCode | String | Fixed, 7 max | Mandatory | - | Refer to response code list |
2 | responseMessage | String | Variable, 150 max | Mandatory | - | Refer to response code list |
Response Sample
The following script is a response sample of this API:
{
"responseCode": "2002700",
"responseMessage": "Successful"
}
Response Code and Message
No | Response Code | Response Message | Remarks |
---|---|---|---|
1 | 2002700 | Successful | Success to be processed |
2 | 5002702 | Backend system failure | 500 internal server error |