Gourmet Card

Method : POST
URL :https://open.revenuemonster.my/v3/membership/verify
Sandbox URL : https://sb-open.revenuemonster.my/v3/membership/verify

note

(For Alipay Merchant ) Collect information using member card ID

Request Parameters#

ParameterTypeDescriptionExample
memberCardIdStringFrom Ali Pay member card id28158443195878043074
storeIdStringStore ID"4949529109748431621"

Example Request

curl --location --request POST "https://sb-open.revenuemonster.my/v3/loyalty/chop-stamp/card/scan" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMDMtMTMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiYXBpX2NsaWVudEBFaGNLQzA5QmRYUm9RMnhwWlc1MEVNV1Z4NF9UbE5MZEZRIl0sImV4cCI6MTU4NjMzNzc1OCwiaWF0IjoxNTgzNzQ1NzU4LCJpc3MiOiJodHRwczovL3NiLW9hdXRoLnJldmVudWVtb25zdGVyLm15IiwianRpIjoiRWh3S0VFOUJkWFJvUVdOalpYTnpWRzlyWlc0UXlKSG9qb2VNcHYwViIsIm5iZiI6MTU4Mzc0NTc1OCwic3ViIjoiRWhRS0NFMWxjbU5vWVc1MEVKWFZ6ZDN3cmFxVE9SSVFDZ1JWYzJWeUVJeUpxSXp2eU1QVmNRIn0.FfBkCb7fjCKJdcy_DS06dKgEtcAvukPio0HyDRtH2UovhZsLFSqD_8oo21u094XSor_mqFg4hqXmLaHjX-h92Wz3kHl7OwiKQb16x8Rnl5OdyPHtMqIZqP8ab8Ch0RHEZ33VchK1zBTnG6Xosrb1B44tWqJ0_kdTtbRZN4rG821C8i4sb6sx8GaxgluJ5q7CEifMTBFJam_Jub9LfAfukq8YyIl0Bykp7B3A_su2QoELL9L_ElJdV9FuwFPHcKr9bxLvVSrEdyrFg7IBm_tJHxSl8gTh3j4b6lWZrBCfMSLraXaYRNzz1ddbVnwYD4aRuSyRmQeMYTUj0cInktnKUA" \
--header "X-Signature: sha256 Sty3LNcKA8+WlMHtAgIY+y1xbwnzKsN0UdyKaW+yYIgcTkBAtF7G5Lx251qQITURJ4wiXPDODxhs1nFVmBBing==" \
--header "X-Nonce-Str: VYNknZohxwicZMaWbNdBKUrnrxDtaRhN" \
--header "X-Timestamp: 1528450585" \
--data-raw "{
\"memberCardId\": \"28158443195878043074\"
\"storeId\": \"4949529109748431621\",
}"

Response Parameters#

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

Item object (item):
ParameterTypeDescriptionExample
idStringGourmet Card ID"28158443195878043074"
transactionIdStringTransaction ID"1584431832399399267"
cardIdStringCard ID"1576632501406219093"
memberIdStringMember ID"1584431797984173748"
expiredAtDateTimeExpired date time"2020-05-16T07:59:18Z"
createdAtDateTimeCreation date time"2020-03-17T07:59:18Z"
updateAtDateTimeLast update date time"2020-03-05T09:40:21Z"

Card object (card):
ParameterTypeDescriptionExample
idStringCard ID"1576632501406219093"
nameStringCard Name"九折美食卡"
lifetimeUintLife Time60
lifetimeTypeStringLife Time Type"DAY"
amountUintAmount10
currencyStringCurrency type"RMB"
discountTypeStringDiscount type"DISCOUNT"
discountValueStringDiscount Value"1000"
minimumSpentAmountUintMinimum Spent Amount10
walletStringWallet : Alipay"ALIPAY"
templateIdStringTemplate ID"20191218000000002154347000300178"
statusStringStatus"ACTIVE"
imageStringImage"https://rm-sandbox-membership-public.oss-ap-southeast-3.aliyuncs.com/gourmet/card/image-1579510518825819467-1579510518.png"
iconStringIcon"https://rm-sandbox-membership-public.oss-ap-southeast-3.aliyuncs.com/gourmet/card/icon-1579505367845553007-1579505367.png"
createAtDateTimeCreate date time"2019-12-18T01:28:24Z"
updateAtDateTimeUpdate date time"2019-12-18T01:28:24Z"

Example Response

{
"item": {
"id": "28158443195878043074",
"transactionId": "1584431832399399267",
"cardId": "1576632501406219093",
"memberId": "1584431797984173748",
"expiredAt": "2020-05-16T07:59:18Z",
"createdAt": "2020-03-17T07:59:18Z",
"updatedAt": "2020-03-17T07:59:18Z",
"card": {
"id": "1576632501406219093",
"name": "九折美食卡",
"lifetime": 60,
"lifetimeType": "DAY",
"amount": 10,
"currency": "RMB",
"discountType": "DISCOUNT",
"discountValue": "1000",
"minimumSpentAmount": 10,
"wallet": "ALIPAY",
"templateId": "20191218000000002154347000300178",
"status": "ACTIVE",
"image": "https://rm-sandbox-membership-public.oss-ap-southeast-3.aliyuncs.com/gourmet/card/image-1579510518825819467-1579510518.png",
"icon": "https://rm-sandbox-membership-public.oss-ap-southeast-3.aliyuncs.com/gourmet/card/icon-1579505367845553007-1579505367.png",
"createdAt": "2019-12-18T01:28:24Z",
"updatedAt": "2019-12-18T01:28:24Z"
}
},
"code": "SUCCESS"
}