Skip to main content

Get Voucher Batches

GET/v3/voucher-batches

List all voucher batches created by the merchant.

When to Use

Use this endpoint when:

  • Browsing batches to find a specific batchkey
  • Building a batch-listing UI in your dashboard

How to Use

Endpoint
GET/v3/voucher-batches

GET /v3/voucher-batches. No request body required.


Request Parameters

No request body. Authenticated headers only.

Response Parameters

itemsARRAY

Voucher object array

idSTRING

Voucher ID

Example: “6544507929221794245"

keySTRING

Voucher Key

Example: "EhQKCE1lcmNoYW50EJXVzd3wraqTORIVCgdWb3VjaGVyGgpOQWtsRWZiVmRW"

labelSTRING

label of voucher for merchant remarks

Example: "Free Breakfast”

typeSTRING

Define type of vouchers: DISCOUNT, GIFT, “CASH"

Example: “GIFT"

amountINTEGER

Required if type = CASH, notation in cents, eg. RM 1.00 = 100

Example: 10000

discountRateINTEGER

Required if type = DISCOUNT, notation without decimals, eg. 1% = 100

Example: 0

minimumSpendAmountINTEGER

Minimum spend amount

Example: 0

imageUrlSTRING

Image URL of current voucher, optional

Example: Image Url link (refer to below code)

quantityINTEGER

Total quantity of voucher(s) in this batch

Example: 1

balanceQuantityINTEGER

Total quantity of voucher(s) remaining in this batch

Example: 0

usedQuantityINTEGER

Total quantity of voucher(s) used/assigned/redeemed in this batch

Example: 1

statusSTRING

Voucher's status

Example: "COMPLETED"

expiryOBJECT

Expiry date time of current voucher

Example: (Refer below)

originSTRING

SYSTEM (voucher code generated from RM server), SELF (voucher code uploaded from merchant csv file)

Example: “SYSTEM”

isShippingBOOLEAN

True if items/goods to be delivered physically to customers

Example: false

reasonSTRING

Will show if voucher batch is fail during creation. Optional.

Example: ”"

staticCodeSTRING

Voucher's code

Example: "ABC123"

isDeviceRedeemBOOLEAN

TRUE means only can be redeemed through merchant app. FALSE means customer can do redemption from own loyalty app.

Example: false

createdAtDATETIME

Date time of voucher being created (UTC)

Example: "2018-06-21T11:08:00Z"

updatedAtDATETIME

Date time of voucher being updated (UTC)

Example: "2018-09-28T17:19:44.686549977Z"

codeSTRING

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

Example: "SUCCESS"