Skip to main content

Callback VA (Non SNAP)

Specification

The Following tabel is spesification for this API :

API NameCallback VA (Non SNAP)
FunctionThis API is used to callback virtual account (VA) that has been paid
MethodPOST
URL/non-snap/v1.0/transfer-va/callback
Acceptapplication/json
Content Typeapplication/json
Related ServiceVirtual 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:

The following table is Header of Request Parameters :

NoNameTypeLengthRequiredConditionRemarks
1Content-TypeStringVariable, 127 maxMandatory-Content type, value always application/json
2X-TIMESTAMPStringFixed, 25 maxMandatory-Transaction date time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
3X-SIGNATUREStringVariableMandatory-Signature need to be validate with Asymmetric Signature method

Body

The following table is a body of request parameter:

NoNameTypeLengthRequiredConditionRemarks
1virtualAccountDataJSON ObjectVariableMandatory-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:

NoNameTypeLengthRequiredConditionRemarks
1responseCodeStringFixed, 7 maxMandatory-Refer to response code list
2responseMessageStringVariable, 150 maxMandatory-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

NoResponse CodeResponse MessageRemarks
12002700SuccessfulSuccess to be processed
25002702Backend system failure500 internal server error