Create QRIS
1 min
POST
https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate
Header Parameters
- X-TIMESTAMPstringrequiredExample
- X-SIGNATUREstringrequiredDefaultRtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg==
- X-PARTNER-IDstringrequiredExample
- X-EXTERNAL-IDstringrequiredExample
- CHANNEL-IDstringrequiredExample
Body Parameters
- bodyqrmpmgenerate_bodyExample
{ "partnerReferenceNo": "ncpy20221017161458", "merchantId": "TNICEQR081", "storeId": "NicepayStoreID1", "amount": { "value": "10000.00", "currency": "IDR" }, "additionalInfo": { "goodsNm": "Jhon Doe", "billingNm": "John Doe", "billingPhone": "082111111111", "billingEmail": "[email protected]", "billingCity": "Jakarta", "billingState": "DKI Jakarta", "billingPostCd": "12345", "billingCountry": "Indonesia", "callBackUrl": "https://dev.nicepay.co.id/IONPAY_CLIENT/paymentResult.jsp", "dbProcessUrl": "https://dev.nicepay.co.id/IONPAY_CLIENT/paymentResult.jsp", "mitraCd": "QSHP", "cartData": { "count": "1", "item": [ { "img_url": "http://www.jamgora.com/media/avatar/noimage.png", "goods_detail": "BB12345678", "goods_name": "Pasar Modern", "goods_amt": "10000", "goods_quantity": "1" } ] }, "msId": "", "msfee": "", "msfeetype": "", "mbfee": "", "mbfeetype": "" } }- objectCreateQRis
- partnerReferenceNostringrequired
- amountamountrequired
- valuestring
- currencystring
- merchantIdstringrequired
- storeIdstringrequired
- additionalInfoadditionalInfoCreate
- goodsNmstring
- billingNmstring
- billingPhonestring
- billingEmailstring
- billingCitystring
- billingStatestring
- billingPostCdstring
- billingCountrystring
- callBackUrlstring
- dbProcessUrlstring
- cartDatastring
- mitraCdstring
- object
Responses
200
- SuccessfulCreateQris
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
- referenceNostringExampleDescription
- partnerReferenceNostringExampleDescription
- qrContentstringExampleDescription
- qrUrlstringExampleDescription
- trxIdstringExampleDescription
- additionalInfoadditionalInfoResponseCreateQris
- goodsNmstringExampleDescription
- billingNmstringExampleDescription
- mitraCdstringExampleDescription
- validityPeriodstringExampleDescription
202
- RequestInProgress
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
409
- DuplicatePartnerReferenceNo
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
500
- GeneralError
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
504
- RequestTimeout
- responseCodestringExampleDescription
- responseMessagestringExampleDescription
curl
curl --location 'https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-SIGNATURE: RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg==' \
--data '{
"partnerReferenceNo": "",
"amount": {
"value": "",
"currency": ""
},
"merchantId": "",
"storeId": "",
"additionalInfo": {
"goodsNm": "",
"billingNm": "",
"billingPhone": "",
"billingEmail": "",
"billingCity": "",
"billingState": "",
"billingPostCd": "",
"billingCountry": "",
"callBackUrl": "",
"dbProcessUrl": "",
"cartData": "",
"mitraCd": ""
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("X-SIGNATURE", "RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg==");
var raw = JSON.stringify({
"partnerReferenceNo": "",
"amount": {
"value": "",
"currency": ""
},
"merchantId": "",
"storeId": "",
"additionalInfo": {
"goodsNm": "",
"billingNm": "",
"billingPhone": "",
"billingEmail": "",
"billingCity": "",
"billingState": "",
"billingPostCd": "",
"billingCountry": "",
"callBackUrl": "",
"dbProcessUrl": "",
"cartData": "",
"mitraCd": ""
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://dev.nicepay.co.id/nicepay/api/v1.0/qr/qr-mpm-generate", 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-generate")
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-SIGNATURE"] = "RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg=="
request.body = JSON.dump({
"partnerReferenceNo": "",
"amount": {
"value": "",
"currency": ""
},
"merchantId": "",
"storeId": "",
"additionalInfo": {
"goodsNm": "",
"billingNm": "",
"billingPhone": "",
"billingEmail": "",
"billingCity": "",
"billingState": "",
"billingPostCd": "",
"billingCountry": "",
"callBackUrl": "",
"dbProcessUrl": "",
"cartData": "",
"mitraCd": ""
}
})
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-generate"
payload = json.dumps({
"partnerReferenceNo": "",
"amount": {
"value": "",
"currency": ""
},
"merchantId": "",
"storeId": "",
"additionalInfo": {
"goodsNm": "",
"billingNm": "",
"billingPhone": "",
"billingEmail": "",
"billingCity": "",
"billingState": "",
"billingPostCd": "",
"billingCountry": "",
"callBackUrl": "",
"dbProcessUrl": "",
"cartData": "",
"mitraCd": ""
}
})
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'X-SIGNATURE': 'RtZh3JLTde3laYpjI2zpLW854Dg7aPMXKH4PTnqVsgxUIOV0BVeBRQkG0CCpSSaJGKp16122ReEM9w2no4u4sg=='
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful
{
"responseCode": "2004700",
"responseMessage": "Successful",
"referenceNo": "TNICEQR08108202309061901268443",
"partnerReferenceNo": "ncpy20221017161458",
"qrContent": "00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332",
"qrUrl": "https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg",
"trxId": "2023123100000000000001",
"additionalInfo": {
"goodsNm": "Jhon Doe",
"billingNm": "Jhon Doe",
"mitraCd": "QSHP",
"validityPeriod": "2023-09-06T19:06:26+07:00"
}
}GENERATED
// Successful
{
"responseCode": "2004700",
"responseMessage": "Successful",
"referenceNo": "TNICEQR08108202309061901268443",
"partnerReferenceNo": "ncpy20221017161458",
"qrContent": "00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332",
"qrUrl": "https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg",
"trxId": "2023123100000000000001",
"additionalInfo": {
"goodsNm": "Jhon Doe",
"billingNm": "Jhon Doe",
"mitraCd": "QSHP",
"validityPeriod": "2023-09-06T19:06:26+07:00"
}
}GENERATED
// Successful
{
"responseCode": "2004700",
"responseMessage": "Successful",
"referenceNo": "TNICEQR08108202309061901268443",
"partnerReferenceNo": "ncpy20221017161458",
"qrContent": "00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332",
"qrUrl": "https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg",
"trxId": "2023123100000000000001",
"additionalInfo": {
"goodsNm": "Jhon Doe",
"billingNm": "Jhon Doe",
"mitraCd": "QSHP",
"validityPeriod": "2023-09-06T19:06:26+07:00"
}
}Successful
{
"responseCode": "2004700",
"responseMessage": "Successful",
"referenceNo": "TNICEQR08108202309061901268443",
"partnerReferenceNo": "ncpy20221017161458",
"qrContent": "00020101021226610016ID.CO.SHOPEE.WWW01189360091800202508660208202508660303UMI520412345303360540810000.005802ID5913NicepayStore16015KAB. ACEH BARAT61052365962360520082023090619012646840708T00000026304A332",
"qrUrl": "https://mapi.gw.uat.airpay.co.id/v3/merchant-host/qr/download?qr=4h4w4yyYAC4mMHWjHxFC99F2PoDgytUta9P2Epf6Qg",
"additionalInfo": {
"goodsNm": "Jhon Doe",
"billingNm": "John Doe",
"mitraCd": "QSHP",
"validityPeriod": "2023-09-06T19:06:26+07:00"
}
}202
// Request In Progress
{
"responseCode": "202XX00",
"responseMessage": "Request In Progress"
}GENERATED
// 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"
}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"
}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"
}GENERATED
// Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}Request Timeout
{
"responseCode": "504XX00",
"responseMessage": "Request Timeout"
}