Skip to main content
PUT
Update Loyalty Program Voucher

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Headers

authorization
string | null

Path Parameters

voucherId
required
Required string length: 24
Pattern: ^[0-9a-f]{24}$
Example:

"5eb7cf5a86d9755df3a6c593"

programId
required
Required string length: 24
Pattern: ^[0-9a-f]{24}$
Example:

"5eb7cf5a86d9755df3a6c593"

Body

application/json
name
string
required
description
string | null
startDate
string<date-time> | null
endDate
string<date-time> | null
type
enum<string> | null
Available options:
welcome,
birthday,
other
expiresIn
limitPerCustomer
integer | null
availabilityCount
integer | null
requireFields
string[] | null
issueBeforeBirthday
discountValue
number | null
discountCurrency
string | null
discountType
enum<string> | null
Available options:
fixed,
percent,
other
categories
string | null
products
string | null
priceRule
enum<string> | null
Available options:
min,
max,
none

Response

Successful Response