Skip to main content

Topup Balance Offline (QuickPay)

POST/v3/loyalty/member/:memberId/topup-offline

Specify loyalty member id to topup using quickpay

Request Parameters

authCodeStringrequired

Auth code of QR code/barcode being scanned. Length: 18

Example: "134850717797247290"

orderObjectrequired

Object of order

Example: (Refer to explanation below)

storeIdStringrequired

ID of the store

Example: "6170506694335521334"

memberIdStringrequired

Member id

Example: "1626838502220135674"


Order object (order):
idStringrequired

Order ID (from Merchant), max: 24

Example: "134850717797247290"

currencyTypeStringrequired

Currency notation (currently only support MYR)

Example: "MYR"

amountUintrequired

Amount of order in cent (min RM 0.10 or amount: 10)

Example: 100

Response Parameters

itemObject

Transaction object

Example: (Refer to explanation below)

codeString

Successfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)

Example: "SUCCESS"


Transaction object (item):
storeObject

Store object

Example: (Refer to explanation below)

referenceIdString

Reference ID (from WeChat server)

Example: ""

transactionIdString

Transaction ID (from RM server)

Example: "152161448229438994"

orderObject

Order object

Example: (Refer to explanation below)

payeeObject

Object of userID made payment (payment sender)

Example: {"userId": "o74f0wjjzv9eKRu1fccrZswVFnOQ"}

currencyTypeString

Currency notation (currently only support MYR)

Example: "MYR"

platformString

Currently only support "OPEN_API"

Example: "OPEN_API"

methodString

RM currently supported method

Example: ALL

typeString

Currently only support "QUICKPAY"

Example: "QUICKPAY"

statusString

Status returned from WeChat server

Example: "SUCCESS"

regionString

Region of wallet, "MALAYSIA" or "CHINA"

Example: "MALAYSIA"

errorString

(Refer Appendix: Error Codes)

Example: {}

createdAtDateTime

Creation date time of transaction

Example: "2018-03-21T06:41:22Z"

updatedAtDateTime

Last update date time of transaction

Example: "2018-03-21T06:41:22Z"


Store object (store):
idString

Store ID

Example: "6170506694335521334"

nameString

Store Name

Example: "REVENUE MONSTER"

addressLine1String

Store Address 1

Example: "B-5-30, 5th Floor, Block Bougainvillea,"

addressLine2String

Store Address 2

Example: "PJU 6A, Lebuhraya SPRINT, 10 Boulevard,"

postCodeString

Postcode of store

Example: "47400"

cityString

City of store

Example: "Petaling Jaya"

stateString

State of store

Example: "Selangor"

countryString

Country of store

Example: "Malaysia"

countryCodeString

Country code of store contact number

Example: "60"

phoneNumberString

Phone number of store

Example: "377334080"

geoLocationObject of [Float]

Geo Location (latitude and longtitude) of store

Example: {"latitude": 3.1349857, "longtitude": 101.6136659 }

statusString

Current status of store

Example: "ACTIVE"

createdAtDateTime

Creation date time of store

Example: "2018-02-12T08:53:13Z"

updatedAtDateTime

Last update date time of store

Example: "2018-02-12T08:53:13Z"


Order object (order):
idString

Order ID (from Merchant), max: 24

Example: "134850717797247290"

titleString

Order title, max: 32

Example: "Sales"

detailsString

Order details, max: 600

Example: "1 x iPhone X; 2 x SAMSUNG S8"

amountUint

Amount of order in cent (min RM 0.10 or amount: 10)

Example: 100