Skip to main content

Decode QR MPM

Specification

The Following tabel is spesification for this API :

API NameDecode QR MPM
FunctionThis API is used to decode QRIS that user already scanned using merchant App
Service Code48
MethodPOST
URL/snap/v1.0/qr/qr-mpm-decode
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
1qrContentStringVariable, 512 maxMandatory-QR String MPM
2scanTimeStringFixed, 25 maxMandatory-The time when the QRIS scanned by the user, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)

Request Sample

The following script is a request sample of this API:

POST /snap/v1.0/qr/qr-mpm-decode
Authorization-Customer: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjQ5MDA0MDEsImV4cCI6MTc0MDY2ODQwMSwianRpIjoiYjYwNDdiNTBkOTRmZWQ4YzA3ZjQzZTBjOGY0NGQ1NGMwMzUzZjE0NGM2NzI4YzhlOWYyMWNhYTBkNjFjMjBmNyIsImNsaWVudF9pZCI6ImRVVT0iLCJtZXJjaGFudF9taWQiOiJja1FFUzFVREJBSUJBZ0p3UUFSSiIsInNjb3BlIjoiUFVCTElDX0lEIiwic3RhdGUiOiI0YzVjOTZiNS04ZDJmLTQ2NzEtYTQ2Yy1kNzQ3ZDU3OTkxMjgifQ.Hmj5skRUj2TtA4fCCtREXwT9PkkdI2I83W-rDZx72n0
X-TIMESTAMP: 2024-09-06T10:10:42+07:00
X-PARTNER-ID: 35d1a1127182a65e4fe0256242a40a6d
X-SIGNATURE: wacETrEoT3rkNYfQHkL2XHwEnBHhioY3QgZWqy2TZThIS96AWGhSxQ6Z85gAGpFF3XUIAzDdrDU+ntUArAyPgw==
X-EXTERNAL-ID: 1725592261
CHANNEL-ID: 379
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjQxMjI2NzgsImV4cCI6MTcyNDIwOTA3OCwiZGF0YSI6eyJlbnYiOiJwcm9kdWN0aW9uIn19.qejS3HEFtioUn0fZ5txN2Vr1o_fHF_GWYd1H5a3ePAk

{
"qrContent": "00020101021226650013ID.PAYDIA.WWW011893600818024021200102152402120010000000303UME51440014ID.CO.QRIS.WWW02150000000000000000303UME5204731153033605405100005802ID5913 FIRMAN ZAIN6008PONOROGO61056349162480125b502330a73a049d1a574c86720708Device 10803api63046D0E",
"scanTime": "2024-09-06T10:10:42+07:00"
}

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
3merchantNameStringVariable, 25 maxMandatory-Merchant name
4merchantCategoryStringVariable, 32 maxMandatory-Merchant category
5merchantLocationStringVariable, 25 maxMandatory-Merchant location
6transactionAmountMoneyVariableMandatory-Amount. Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO

Response Sample

The following script is a response sample of this API:

{
"responseCode": "2004800",
"responseMessage": "Successful",
"merchantName": " FIRMAN ZAIN",
"merchantCategory": "Advertising & Marketing",
"merchantLocation": "PONOROGO",
"transactionAmount": {
"value": "10000.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
12004800Request has been processed successfullySuccess
24004801Invalid Field FormatInvalid format for certain field
34004802Invalid Mandatory FieldMissing or invalid format on mandatory field
44014800Unauthorized. [reason]General unauthorized error
54014801Invalid Token (B2B)Invalid or Expired Access Token
64034802Do Not HonorAccount or User status is abnormal
75004801Internal Server Error500 internal server error