Topup Balance Offline (QuickPay)
Top up a loyalty member's credit balance offline using a Quick Pay scan.
When to Use
▾
Use this endpoint when:
- Member tops up their loyalty balance at a physical store
- Driving the top-up flow from the merchant terminal app
How to Use
▾
/v3/loyalty/member/{memberId}/topup-offlinePOST /v3/loyalty/member/{memberId}/topup-offline with the scanned authCode and amount.
Request Parameters
▾
Auth code of QR code/barcode being scanned. Length: 18
Example: "134850717797247290"
Object of order
Order ID (from Merchant), max: 24
Example: "134850717797247290"
Currency notation (currently only support MYR)
Example: "MYR"
Amount of order in cent (min RM 0.10 or amount: 10)
Example: 100
ID of the store
Example: "6170506694335521334"
Member id
Example: "1626838502220135674"
Response Parameters
▾
Transaction object
Store object
Store ID
Example: "6170506694335521334"
Store Name
Example: "REVENUE MONSTER"
Store Address 1
Example: "B-5-30, 5th Floor, Block Bougainvillea,"
Store Address 2
Example: "PJU 6A, Lebuhraya SPRINT, 10 Boulevard,"
Postcode of store
Example: "47400"
City of store
Example: "Petaling Jaya"
State of store
Example: "Selangor"
Country of store
Example: "Malaysia"
Country code of store contact number
Example: "60"
Phone number of store
Example: "377334080"
Geo Location (latitude and longitude) of store
Example: {"latitude": 3.1349857, "longitude": 101.6136659 }
Current status of store
Example: "ACTIVE"
Creation date time of store
Example: "2018-02-12T08:53:13Z"
Last update date time of store
Example: "2018-02-12T08:53:13Z"
Reference ID (from WeChat server)
Example: ""
Transaction ID (from RM server)
Example: "152161448229438994"
Order object
Order ID (from Merchant), max: 24
Example: "134850717797247290"
Order title, max: 32
Example: "Sales"
Order details, max: 600
Example: "1 x iPhone X; 2 x SAMSUNG S8"
Amount of order in cent (min RM 0.10 or amount: 10)
Example: 100
Object of userID made payment (payment sender)
Example: {"userId": "o74f0wjjzv9eKRu1fccrZswVFnOQ"}
Currency notation (currently only support MYR)
Example: "MYR"
Currently only support "OPEN_API"
Example: "OPEN_API"
RM currently supported method
Example: ALL
Currently only support "QUICKPAY"
Example: "QUICKPAY"
Status returned from WeChat server
Example: "SUCCESS"
Region of wallet, "MALAYSIA" or "CHINA"
Example: "MALAYSIA"
(Refer Appendix: Error Codes)
Example: {}
Creation date time of transaction
Example: "2018-03-21T06:41:22Z"
Last update date time of transaction
Example: "2018-03-21T06:41:22Z"
Successfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)
Example: "SUCCESS"