Status QRIS
1 min
POST
https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-query
Header Parameters
- X-TIMESTAMPstringrequiredExample
- X-SIGNATUREstringrequiredDefaultEMztJdlrulaR7I/iECF8ggjbb5KFaWurB2OJJ9V1TGBh9yxcaRf76ozN9IBfwBwI3Ft4qipQcrg1a0vh8Zhapw==
- X-PARTNER-IDstringrequiredExample
- X-EXTERNAL-IDstringrequiredExample
- CHANNEL-IDstringrequiredExample
Body Parameters
- bodyqrmpmquery_bodyrequired
- objectStatusQRis
- originalReferenceNostringrequiredExampleDescription
- originalPartnerReferenceNostringrequiredDescription
- merchantIdstringrequiredExampleDescription
- externalStoreIdstringrequiredDescription
- serviceCodestringrequiredExampleDescription
- additionalInfoadditionalInfoStatusrequired
- itemsstring
- object
Responses
200
- SuccessfulStatusQris
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
- originalReferenceNostringExampleDescription
- originalPartnerReferenceNostringExampleDescription
- serviceCodestringExampleDescription
- latestTransactionStatusstringExampleDescription
- paidTimestringExampleDescription
- amountamount
- valuestring
- currencystring
- additionalInfoadditionalInfoResponseStatusQris
- goodsNmstringExampleDescription
- billingNmstringExampleDescription
- merchantIdstringExampleDescription
- paymentTrxSnstringDescription
- cancelTrxSnstringDescription
- userIdstringDescription
- externalStoreIdstringExampleDescription
- requestTimestringExampleDescription
202
- RequestInProgress
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
409
- DuplicatePartnerReferenceNo
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
500
- GeneralError
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
504
- RequestTimeout
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
curl
curl --request POST \
--url https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-query \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-timestamp: 2022-08-04T23:59:59+07:00' \
--header 'x-signature: EMztJdlrulaR7I/iECF8ggjbb5KFaWurB2OJJ9V1TGBh9yxcaRf76ozN9IBfwBwI3Ft4qipQcrg1a0vh8Zhapw==' \
--header 'x-partner-id: TNICEQR081' \
--header 'x-external-id: 20230804230101' \
--header 'channel-id: TNICEQR081' \
--data '{
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "",
"merchantId": "TNICEQR081",
"externalStoreId": "",
"serviceCode": "47",
"additionalInfo": {}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-timestamp", "2022-08-04T23:59:59+07:00");
myHeaders.append("x-signature", "EMztJdlrulaR7I/iECF8ggjbb5KFaWurB2OJJ9V1TGBh9yxcaRf76ozN9IBfwBwI3Ft4qipQcrg1a0vh8Zhapw==");
myHeaders.append("x-partner-id", "TNICEQR081");
myHeaders.append("x-external-id", "20230804230101");
myHeaders.append("channel-id", "TNICEQR081");
var raw = JSON.stringify({
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "",
"merchantId": "TNICEQR081",
"externalStoreId": "",
"serviceCode": "47",
"additionalInfo": {}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-query", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-query")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-timestamp"] = "2022-08-04T23:59:59+07:00"
request["x-signature"] = "EMztJdlrulaR7I/iECF8ggjbb5KFaWurB2OJJ9V1TGBh9yxcaRf76ozN9IBfwBwI3Ft4qipQcrg1a0vh8Zhapw=="
request["x-partner-id"] = "TNICEQR081"
request["x-external-id"] = "20230804230101"
request["channel-id"] = "TNICEQR081"
request.body = JSON.dump({
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "",
"merchantId": "TNICEQR081",
"externalStoreId": "",
"serviceCode": "47",
"additionalInfo": {}
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-query"
payload = json.dumps({
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "",
"merchantId": "TNICEQR081",
"externalStoreId": "",
"serviceCode": "47",
"additionalInfo": {}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-timestamp': '2022-08-04T23:59:59+07:00',
'x-signature': 'EMztJdlrulaR7I/iECF8ggjbb5KFaWurB2OJJ9V1TGBh9yxcaRf76ozN9IBfwBwI3Ft4qipQcrg1a0vh8Zhapw==',
'x-partner-id': 'TNICEQR081',
'x-external-id': '20230804230101',
'channel-id': 'TNICEQR081'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful
{
"responseCode": "2005100",
"responseMessage": "Successful",
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "ncpy20221017161458",
"serviceCode": "47",
"latestTransactionStatus": "00",
"paidTime": "2023-09-12T23:20:38+07:00",
"amount": {
"value": "",
"currency": ""
},
"additionalInfo": {
"goodsNm": "John Doe",
"billingNm": "John Doe",
"merchantId": "TNICEQR08",
"paymentTrxSn": "",
"cancelTrxSn": "",
"userId": "",
"externalStoreId": "NicepayStoreID1",
"requestTime": "2023-09-12T23:20:37+07:00"
}
}GENERATED
// Successful
{
"responseCode": "2005100",
"responseMessage": "Successful",
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "ncpy20221017161458",
"serviceCode": "47",
"latestTransactionStatus": "00",
"paidTime": "2023-09-12T23:20:38+07:00",
"amount": {
"value": "",
"currency": ""
},
"additionalInfo": {
"goodsNm": "John Doe",
"billingNm": "John Doe",
"merchantId": "TNICEQR08",
"paymentTrxSn": "",
"cancelTrxSn": "",
"userId": "",
"externalStoreId": "NicepayStoreID1",
"requestTime": "2023-09-12T23:20:37+07:00"
}
}Successful
{
"responseCode": "2005100",
"responseMessage": "Successful",
"virtualAccountData": {
"originalReferenceNo": "TNICEQR08108202309122320370700",
"originalPartnerReferenceNo": "ncpy20221017161458",
"serviceCode": "47",
"latestTransactionStatus": "00",
"paidTime": "2023-09-12T23:20:38+07:00",
"amount": {
"value": "10000.00",
"currency": "IDR"
},
"additionalInfo": {
"goodsNm": "John Doe",
"billingNm": "John Doe",
"merchantId": "TNICEQR081",
"paymentTrxSn": "",
"cancelTrxSn": "",
"userId": "",
"externalStoreId": "NicepayStoreID1",
"requestTime": "2023-09-12T23:20:37+07:00"
}
}
}202
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}GENERATED
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}409
// Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}GENERATED
// Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}Duplicate partnerReferenceNo
{
"responseCode": "409XX01",
"responseMessage": "Duplicate partnerReferenceNo"
}500
// General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}GENERATED
// General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}General Error
{
"responseCode": "500XX00",
"responseMessage": "General Error"
}504
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}GENERATED
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}