Skip to main content

Query Payment

Specification

The Following tabel is spesification for this API :

API NameQuery Payment
FunctionThis API is used to check payment QRIS status from app merchant
Service Code51
MethodPOST
URL/snap/v1.0/qr/qr-mpm-query
Acceptapplication/json
Content Typeapplication/json
Related ServiceQRIS MPM (Issuer)

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
3Authorization-CustomerStringVariable, 64 maxMandatory-Contains customer token, you've got it from Access Token B2B2C
4X-TIMESTAMPStringFixed, 25 maxMandatory-Transaction date time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
5X-PARTNER-IDStringVariable, 36 maxMandatory-ID for partner was generated by Paydia. Unique ID for a partner
6X-EXTERNAL-IDStringVariable, 36 maxMandatory-Unique messaging reference ID generated by merchant. Numeric String. Reference number that should be unique in the same day
7CHANNEL-IDStringVariable, 5 maxMandatory-Device identification on which the API services is currently being accessed by the end user (customer)
8X-SIGNATUREStringVariableMandatory-Signature need to be generated with Symmetric Signature method

Body

The following table is a body of request parameter:

NoNameTypeLengthRequiredConditionRemarks
1originalReferenceNoStringVariable, 64 maxConditionaly: (originalPartnerReferenceNo = null and originalExternalId = null)Original transaction identifier on Paydia system
2originalPartnerReferenceNoStringVariable, 64 maxConditionaly: (originalReferenceNo = null and originalExternalId = null)Original transaction identifier on partner system
3originalExternalIdStringVariable, 32 maxConditionaly: (originalReferenceNo = null and originalPartnerReferenceNo = null)Original transaction identifier on Paydia system
4serviceCodeStringVariable, 2 maxMandatory-Transaction type indicator (service code of the original transaction)

Request Sample

The following script is a request sample of this API:

POST /snap/v1.0/qr/qr-mpm-query
Authorization-Customer: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjQ5MDA0MDEsImV4cCI6MTc0MDY2ODQwMSwianRpIjoiYjYwNDdiNTBkOTRmZWQ4YzA3ZjQzZTBjOGY0NGQ1NGMwMzUzZjE0NGM2NzI4YzhlOWYyMWNhYTBkNjFjMjBmNyIsImNsaWVudF9pZCI6ImRVVT0iLCJtZXJjaGFudF9taWQiOiJja1FFUzFVREJBSUJBZ0p3UUFSSiIsInNjb3BlIjoiUFVCTElDX0lEIiwic3RhdGUiOiI0YzVjOTZiNS04ZDJmLTQ2NzEtYTQ2Yy1kNzQ3ZDU3OTkxMjgifQ.Hmj5skRUj2TtA4fCCtREXwT9PkkdI2I83W-rDZx72n0
X-TIMESTAMP: 2024-09-10T13:24:42+07:00
X-PARTNER-ID: 35d1a1127182a65e4fe0256242a40a6d
X-SIGNATURE: vnmU2xPF/gnKHM8CsSPLs8K5YLFJXiOFE9uBMUJQ3Y6D/hfm540SnWw/FLyThNww0wLIdN61POdx3szkuMEofg==
X-EXTERNAL-ID: 1725949489
CHANNEL-ID: 286
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjU5NDkxMjgsImV4cCI6MTcyNjAzNTUyOCwiZGF0YSI6eyJlbnYiOiJkZXZlbG9wbWVudCJ9fQ.tqcLnoXj5BFjqarIFOx688YNATijPlzA9FzRpACGfe4

{
"originalReferenceNo": "e3201ef5c7f06db5d999867b8c220809804443bbedd76d5c43fe6217c5533645",
"originalPartnerReferenceNo": "21df2838-c9e8-4aff-8c02-274ed4390e70",
"serviceCode": "51"
}

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
3originalPartnerReferenceNoStringVariable, 64 maxOptional-Original transaction identifier on partner system
4originalReferenceNoStringVariable, 64 maxConditionalIf it is success, then this value will be filledOriginal transaction identifier on Paydia system
5originalExternalIdStringVariable, 32 maxOptional-Original external ID on header message
6serviceCodeStringVariable, 2 maxMandatory-Transaction type indicator (service code of the original transaction request)
7latestTransactionStatusStringFixed, 2 maxMandatory-Category code for the status of the transaction. The values include:
  • 00 - Success, the order has been paid
  • 01 - Initiated, the order has been created, but has not been paid
  • 02 - Paying, the order in the process of payment
  • 03 - Pending, the order in the pending payment
  • 04 - Refunded, the order in the refund payment
  • 05 - Cancelled, the order has been closed
  • 07 - Failed, the order is failed
8transactionStatusDescStringVariable, 50 maxOptional-Description status transaction
9paidTimeStringFixed, 25 maxMandatory-Time of paid, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
10amountMoneyVariableMandatory-Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO
11feeAmountMoneyVariableMandatory-Contains two sub-fields:
  1. Value: Transaction feeAmount, including the cents
  2. Currency: Currency code based on ISO

Response Sample

The following script is a response sample of this API:

{
"responseCode": "2005100",
"responseMessage": "Success",
"originalReferenceNo": "e3201ef5c7f06db5d999867b8c220809804443bbedd76d5c43fe6217c5533645",
"originalPartnerReferenceNo": "21df2838-c9e8-4aff-8c02-274ed4390e70",
"originalExternalId": "1725949206",
"serviceCode": "51",
"latestTransactionStatus": "00",
"transactionStatusDesc": "Success",
"paidTime": "2024-09-10T06:20:06+07:00",
"amount": {
"value": "12000.00",
"currency": "IDR"
},
"feeAmount": {
"value": "0.00",
"currency": "IDR"
}
}

Response Code and Message

The following table is the list response code and message of Direct Debit Payment API:

NoResponse CodeResponse MessageRemarks
12005100Request has been processed successfullySuccess
24005101Invalid Field FormatInvalid format for certain field
34005102Invalid Mandatory FieldMissing or invalid format on mandatory field
44015100Unauthorized. [reason]General unauthorized error
54015101Invalid Token (B2B)Invalid or Expired Access Token
64045101Transaction Not FoundTransaction not found
75005101Internal Server ErrorUnknown Internal Server Failure, Please retry the process again