Get Transaction QR Code/URL

Method : GET
URL : https://open.revenuemonster.my/v3/payment/transaction/qrcodes

Sandbox URL : https://sb-open.revenuemonster.my/v3/payment/transaction/qrcodes

URL with Filter : https://sb-open.revenuemonster.my/v3/payment/transaction/qrcodes?order[]=createdAt&limit=1&filter={"type":"STATIC", "expiry.type": "PERMANENT"}

note

To get all previous QR Code(s) generated in the system.

Request Parameters#

note

No request parameter is required for this endpoint.

Response Parameters#

ParameterTypeDescriptionExample
items[]ObjectTransaction object(Refer to explanation below)
codeStringSuccessfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)"SUCCESS"

Transaction object array (items):
ParameterTypeDescriptionExample
storeIdStringID of store10946114768247530
typeString"DYNAMIC" (days from now), "FIXED" (specific fixed date) or "PERMANENT" (never expire)"PERMANENT"
isPreFillAmountBoolTo indicate QR code has pre-fill amounttrue
currencyTypeStringCurrency notation"MYR"
amountUintAmount of order in cent. Only required when "isPrefillAmount" = true.100
platformString"OPEN_API" (generated through API calls) or "PORTAL" (generated through merchant portal)"PORTAL"
method[]StringRM currently supported method["WECHATPAY","WECHATPAY_MY",
"WECHATPAY_CN","PRESTO_MY",
"BOOST_MY",
"ALIPAY_CN"]
expiryStringObject of expiry(Refer to explanation above)
codeStringEmbedded code in QR"c8ff3df0605a5f20cd6476661072eade"
statusString"VALID" (always valid for static QR) or "REDEEMED" (only applicable to dynamic QR)"VALID"
qrCodeUrlStringEmbedded URL in QR"https://dev-rm-api.ap.ngrok.io/payment/unified?code=c8ff3df0605a5f20cd6476661072eade"
redirectUrlStringRedirect URL after QR payment is made"https://www.apple.com/my/iphone/"
createdAtDateTimeCreation date time of transaction"2018-03-21T06:41:22Z"
updatedAtDateTimeLast update date time of transaction"2018-03-21T06:41:22Z"

Expiry object (expiry):
ParameterTypeDescriptionExample
typeString"DYNAMIC" (days from now), "FIX" (specific fixed date) or "PERMANENT" (never expire)"PERMANENT"
dayUintOnly required by "DYNAMIC" expiry type. To indicate number of days from now until expiry.3
expiredAtDateTimeOnly required by "FIXED". To indicate specific expiry date."2020-10-07T17:44:26.679908+08:00"

Database object (meta):
ParameterTypeDescriptionExample
countUintCurrent page record1

Example Response

{
"items": [
{
"storeId": "10946114768247530",
"type": "STATIC",
"isPreFillAmount": true,
"currencyType": "MYR",
"amount": 100,
"platform": "PORTAL",
"method": ["WECHATPAY"],
"expiry": {
"type": "PERMANENT",
"day": 0,
"expiredAt": "2050-12-31T23:59:59Z"
},
"code": "a669adc3b06fe5cef977cc762f40ce8c",
"status": "VALID",
"qrCodeUrl": "https://dev-rm-api.ap.ngrok.io/payment/unified?code=a669adc3b06fe5cef977cc762f40ce8c",
"createdAt": "2018-06-25T02:29:28Z",
"updatedAt": "2018-06-25T02:29:28Z"
},
{
"storeId": "10946114768247530",
"type": "STATIC",
"isPreFillAmount": true,
"currencyType": "MYR",
"amount": 100,
"platform": "PORTAL",
"method": ["WECHATPAY"],
"expiry": {
"type": "PERMANENT",
"day": 0,
"expiredAt": "2050-12-31T23:59:59Z"
},
"code": "d54b69122f59ea46ac3fced769854ec2",
"status": "VALID",
"qrCodeUrl": "https://dev-rm-api.ap.ngrok.io/payment/unified?code=d54b69122f59ea46ac3fced769854ec2",
"createdAt": "2018-06-25T02:29:53Z",
"updatedAt": "2018-06-25T02:29:53Z"
},
{
"storeId": "10946114768247530",
"type": "STATIC",
"isPreFillAmount": true,
"currencyType": "MYR",
"amount": 100,
"platform": "PORTAL",
"method": ["WECHATPAY"],
"expiry": {
"type": "PERMANENT",
"day": 0,
"expiredAt": "2050-12-31T23:59:59Z"
},
"code": "e794902fbcb62c59b8d9cf270a5e505a",
"status": "VALID",
"qrCodeUrl": "https://dev-rm-api.ap.ngrok.io/payment/unified?code=e794902fbcb62c59b8d9cf270a5e505a",
"createdAt": "2018-06-25T02:28:24Z",
"updatedAt": "2018-06-25T02:28:24Z"
}
],
"code": "SUCCESS",
"meta": {
"count": 3
}
}