Skip to main content

Transaction Status Inquiry v2.0.0

Specification

The Following tabel is spesification for this API :

API NameTransaction Status Inquiry
FunctionThis API is used to inquiry payment status and information generated qr from merchant’s platform to Paydia
Service Code53
MethodPOST
URL/snap/v2.0/qr/qr-mpm-status
Acceptapplication/json
Content Typeapplication/json
Related ServiceQRIS MPM (Acquirer)

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
1originalPartnerReferenceNoStringVariable, 64 maxConditionaly: (originalReferenceNo = null)Original transaction identifier on partner system
2originalReferenceNoStringVariable, 64 maxConditionaly: (originalPartnerReferenceNo = null)Original transaction identifier on Paydia system
3serviceCodeStringVariable, 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/v2.0/qr/qr-mpm-status
X-TIMESTAMP: 2024-07-30T10:56:34+07:00
X-PARTNER-ID: 4abbcb6ce30229994c76169006e0dc9c
X-SIGNATURE: gJOowZ1OXTXieV87CHJsZ6Q5oQTdXdXoAPw+bZrFTp3nZueO7mEm2pkL3N4v5ZcGQ5h5FHFAavXpxpnXxLPt1g==
X-EXTERNAL-ID: 1722311798
CHANNEL-ID: 12345
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjIzMTA3MzEsImV4cCI6MTcyMjM5NzEzMX0.eicPgCh7TMJzx74hyNFGOI4_0XeIE3OkHhY-WkGJvFk
{
"originalPartnerReferenceNo": "64e3c0d5-e671-4a62-8c47-21f4f2f601af",
"originalReferenceNo": "966077d2679e45c39d7c0c8f1",
"serviceCode": "47"
}

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)
7transactionDateStringFixed, 25 maxOptional-Transaction date: ISO8601, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
8latestTransactionStatusStringFixed, 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
  • 05 - Cancelled, the order has been closed
9transactionStatusDescStringVariable, 50 maxOptional-Description status transaction
10amountMoneyVariableMandatory-Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO
11additionalInfoJSON ObjectVariableOptional-Additional Information

Response Sample

The following script is a response sample of this API:

{
"responseCode": "2005300",
"responseMessage": "Successful",
"originalPartnerReferenceNo": "64e3c0d5-e671-4a62-8c47-21f4f2f601af",
"originalReferenceNo": "966077d2679e45c39d7c0c8f1",
"originalExternalId": "1722310904",
"serviceCode": "47",
"transactionDate": "2024-07-30T10:41:44+07:00",
"latestTransactionStatus": "00",
"transactionStatusDesc": "Success",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"additionalInfo": {
"paidTime": "2024-07-30T10:56:03+07:00",
"callback": "https://webhook.site/0b33c210-236d-4b68-8bdd-76ede4313e5e",
"responseCallback": "success",
"customerData": "Firman Zain",
"customerPan": "936008180000000055",
"merchantPan": "936008180240327001",
"acquirerId": "93600818",
"acquirerName": "PT Datacell Infomedia (Paydia)",
"issuerId": "93600818",
"issuerName": "Paydia",
"referenceNumber": "240730000004",
"terminalId": "Device 1",
"amountDetail": {
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"mdrAmount": {
"value": "60.00",
"currency": "IDR"
},
"receiveAmount": {
"value": "9940.00",
"currency": "IDR"
}
}
}
}

Response Code and Message

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

NoResponse CodeResponse MessageRemarks
12005300SuccessfulSuccess to be processed
24005301Invalid Field FormatInvalid format for certain field
34005302Invalid Mandatory FieldMissing or invalid format on mandatory field
44015300Unauthorized. [reason]General unauthorized error
54015301Invalid Token (B2B)Invalid or Expired Access Token
64045301Transaction Not FoundTransaction / Order is not found
74095300ConflictCannot use same X-EXTERNAL-ID in same day
84095301Duplicate partnerReferenceNoDuplicate partnerReferenceNo
95005302Backend system failure500 internal server error