Skip to main content

Payment QR MPM

Specification

The Following tabel is spesification for this API :

API NamePayment QR MPM
FunctionThis API is used to payment QRIS from app merchant to Paydia as the issuer
Service Code48
MethodPOST
URL/snap/v1.0/qr/qr-mpm-payment
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
1partnerReferenceNoStringVariable, 64 maxMandatory-Unique transaction identifier on partner system which assigned to each transaction
2amountMoneyVariableConditionalMandatory if QR staticContains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO
3feeAmountMoneyVariableOptional-Contains two sub-fields:
  1. Value: Transaction feeAmount, including the cents
  2. Currency: Currency code based on ISO
4additionalInfoJSON ObjectVariableMandatory-Additional information
5additionalInfo.qrContentStringVariable, 512 maxMandatory-Additional information QR String MPM

Request Sample

The following script is a request sample of this API:

POST /snap/v1.0/qr/qr-mpm-payment
Authorization-Customer: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjU4NzE0NDUsImV4cCI6MTc0MTYzOTQ0NSwianRpIjoiZmIyMDcyZmYxOTBhNmZhZmYwMWQ1OGI2MjVjYTFiYWJiYjI5OTkxZDZjOWNiYWFiMzU0YTJjZjQ5NTMwOTY1YSIsImNsaWVudF9pZCI6ImRVVT0iLCJtZXJjaGFudF9taWQiOiJja1FFUzFVREJBSUJBZ0p3UUFSSiIsInNjb3BlIjoiUFVCTElDX0lEIiwic3RhdGUiOiIzYWRmMWNmYi0wMTc2LTQ0OGUtYTA1My00NzQ4YjJkOWYyYjYifQ.by21Xj-h9-_OlfdvF1d4oSUvdUCmgevcQZVzXxB-GeY
X-TIMESTAMP: 2024-09-09T16:26:28+07:00
X-PARTNER-ID: 35d1a1127182a65e4fe0256242a40a6d
X-SIGNATURE: dPmK027FIibrU4UU3fbFJmo4tr88bnPt3wrPRpj7A4xfKheYTzRCBHNASge2lqsVyWjAt2o3qffdfaUOpZ6xwQ==
X-EXTERNAL-ID: 1725874065
CHANNEL-ID: 894
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjU4NzEzMjQsImV4cCI6MTcyNTk1NzcyNCwiZGF0YSI6eyJlbnYiOiJkZXZlbG9wbWVudCJ9fQ.fSgJY1OgymDxjiLJoxnehB4eZPLoFa5wij0PH6a1kTA

{
"partnerReferenceNo": "cdfde219-6c5b-4ff7-afb5-7d825a8fd768",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"additionalInfo": {
"qrContent": "00020101021126650013ID.PAYDIA.WWW011893600818024021200102152402120010000000303UKE5204731153033605802ID5913 Firman Zain6008PONOROGO6105634916219071524021200100000063040DDA"
}
}

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
3referenceNoStringVariable, 64 maxOptional-Transaction identifier on Paydia
4partnerReferenceNoStringVariable, 64 maxMandatory-Unique transaction identifier on partner system which assigned to each transaction
5transactionDateStringVariable, 25 maxMandatory-Transaction date, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
6amountMoneyVariableMandatory-Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO
7feeAmountMoneyVariableMandatory-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": "2005000",
"responseMessage": "Success",
"partnerReferenceNo": "cdfde219-6c5b-4ff7-afb5-7d825a8fd768",
"referenceNo": "218c79e4f7db0b3f6d14f2f8764f55162ece6806deab9516aaa0e9e322d903a1",
"transactionDate": "2024-09-09T16:26:41+07:00",
"amount": {
"value": "10000.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
12005000Request has been processed successfullySuccess
24005000Bad RequestGeneral request failed error
34005001Invalid Field FormatInvalid format for certain field
44005002Invalid Mandatory FieldMissing or invalid format on mandatory field
54015000Unauthorized. [reason]General unauthorized error
64015001Invalid Token (B2B)Invalid or Expired Access Token
74035002Exceeds Transaction Amount LimitExceeds Transaction Amount Limit
84035005Do Not HonorAccount or User status is abnormal
94035014Insufficient FundsInsufficient Funds
104045001Transaction Not FoundTransaction not found
114095000ConflictCannot use same X-EXTERNAL-ID in same day
124095001Duplicate partnerReferenceNoTransaction has previously been processed indicates the same partnerReferenceNo already success
135005000General ErrorGeneral Error
145005001Internal Server ErrorUnknown Internal Server Failure, Please retry the process again