Skip to main content
PUT
Update a promo code

Authorizations

x-access-token
string
header
required

Organization API token. Generate from Organization Settings → API Tokens.

Path Parameters

orgId
string
required

Your organization ID. Any other organization returns 404.

programId
string<uuid>
required

The Awards program ID.

promoCodeId
string<uuid>
required

The promo code ID.

Body

application/json
code
string

Letters and digits; stored upper-case.

Maximum string length: 255
Pattern: ^[A-Za-z0-9]+$
type
enum<string>
Available options:
percentage,
flat
amount
number

Percent off (at most 100) or a flat amount in the program's currency.

Required range: x >= 0
starts_at
string<date-time> | null
ends_at
string<date-time> | null

Response

Promo code updated

data
object