v2

latestOpenAPI 3.1.02026-08-01244220427.0 KB
Loyalty

Create Loyalty Program Voucher

Create Voucher

Create a new voucher within a specific loyalty program.

  • programId: The unique identifier of the loyalty program.
  • data: The data for the new voucher.
  • user: The current active user making the request.
  • Returns: The details of the newly created voucher.
post/v2/loyalty/programs/{programId}/vouchers

Path parameters

string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593

Headers

authorizationstring nullable

Request body

namestring required
descriptionstring nullable
startDatestring date-time nullable
endDatestring date-time nullable
type'welcome' | 'birthday' | 'other'
limitPerCustomerinteger nullable
availabilityCountinteger nullable
requireFieldsstring[] nullable
discountValuenumber nullable
discountCurrencystring nullable
discountType'fixed' | 'percent' | 'other'
categoriesstring nullable
productsstring nullable
priceRule'min' | 'max' | 'none'

Response

Successful Response

{"stackTrail":"paths:/v2/loyalty/programs/{programId}/vouchers:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}