Skip to main content

Inquiry Status VA

Specification

The Following tabel is spesification for this API :

API NameInquiry Status VA
FunctionThis API is used to inquiry the status of created virtual account (VA)
Service Code26
MethodPOST
URL/snap/v1.0/transfer-va/inquiry-status
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
2AuthorizationStringVariableMandatory-Contains B2B Bearer JWT Token, you've got it from Access Token B2B
3X-TIMESTAMPStringFixed, 25 maxMandatory-Transaction date time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
4X-PARTNER-IDStringVariable, 36 maxMandatory-ID for partner was generated by Paydia. Unique ID for a partner
5X-EXTERNAL-IDStringVariable, 36 maxMandatory-Unique messaging reference ID generated by merchant. Numeric String. Reference number that should be unique in the same day
6CHANNEL-IDStringVariable, 5 maxMandatory-Device identification on which the API services is currently being accessed by the end user (customer)
7X-SIGNATUREStringVariableMandatory-Signature need to be generated with Symmetric Signature method

Body

The following table is a body of request parameter:

NoNameTypeLengthRequiredConditionRemarks
1partnerServiceIdStringFixed, 8 maxMandatory-Biller/merchant code of the virtual account. Left padding with space
2customerNoStringVariable, 20 maxMandatory-Unique number (up to 20 digits). Combine partnerServiceId and customerNo or virtualAccountNo
3virtualAccountNoStringVariable, 28 maxMandatory-Information of virtual account number which combine partnerServiceId and customerNo
4virtualAccountNameStringVariable, 255 maxMandatory-Information of customer name
5trxIdStringVariable, 64 maxMandatory-Unique transaction identifier on partner system which assigned to each transaction
6totalAmountMoneyVariableOptional-Contains two sub-fields:
  1. Value: Transaction totalAmount, including the cents
  2. Currency: Currency code based on ISO
7expiredDateStringFixed, 25 maxOptional-Expiration date for virtual account, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
8additionalInfoJSON ObjectVariableOptional-Additional information
9additionalInfo.callbackUrlStringVariable, 8 maxOptional-URL to be able to receive payment notifications after payment is made by the customer

Request Sample

The following script is a request sample of this API:

POST /snap/v1.0/transfer-va/inquiry-status
X-TIMESTAMP: 2024-10-10T10:25:33+07:00
X-PARTNER-ID: 35d1a1127182a65e4fe0256242a40a6d
X-SIGNATURE: BlMk6tnvxxR1ktErqJ1Ekanz5XGsEC3Ltjk6bNrEIgqD1T5eQJQDnyN7ryBdq1Xh0F/5DKmxyE4AAzMC3yLKPg==
X-EXTERNAL-ID: 1728531437
CHANNEL-ID: 233
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3Mjg0NjQwNzEsImV4cCI6MTcyODU1MDQ3MSwiZGF0YSI6eyJlbnYiOiJkZXZlbG9wbWVudCJ9fQ.aIG1dMVpKuJT4boLcH-BZoKa0KkrRBSyGb9DNfSWBqI

{
"partnerServiceId": " 359660",
"customerNo": "70627627784739813500",
"virtualAccountNo": " 35966070627627784739813500",
"inquiryRequestId": "73e6b029-7c33-46a1-843a-4f72d2e1e36d"
}

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
3virtualAccountDataJSON ObjectVariableMandatory-Contains virtual account data

Response Sample

The following script is a response sample of this API:

{
"responseCode": "2002600",
"responseMessage": "Successful",
"virtualAccountData": {
"paymentFlagReason": {
"english": "Initiated",
"indonesia": "Dibuat"
},
"partnerServiceId": " 359660",
"customerNo": "70627627784739813500",
"virtualAccountNo": " 35966070627627784739813500",
"inquiryRequestId": "73e6b029-7c33-46a1-843a-4f72d2e1e36d",
"virtualAccountName": "Judah Hartmann",
"paidAmount": {
"value": "50000.00",
"currency": "IDR"
},
"paymentFlagStatus": "01",
"additionalInfo": {
"callbackUrl": "https://webhook.site/53a58f8e-f254-4154-bab6-d52578c7b4a7"
}
}
}

Response Code and Message

The following table is the list response code and message of Account Inquiry API:

NoResponse CodeResponse MessageRemarks
12002600SuccessfulSuccess to be processed
24002601Invalid Field FormatInvalid format for certain field
34002602Invalid Mandatory FieldMissing or invalid format on mandatory field
44012600Unauthorized. [reason]General unauthorized error
54012601Invalid Token (B2B)Invalid or Expired Access Token
64042612Invalid Bill/Virtual Account
  • The bill is blocked/ suspended/not found
  • Virtual account is suspend/not found
74092600ConflictCannot use same X-EXTERNAL-ID in same day
84092601Duplicate partnerReferenceNoDuplicate partnerReferenceNo
95002602Backend system failure500 internal server error