Skip to main content
PUT
Update a promotional code

Updating Promotional Codes

Update an existing promotional code’s properties. You can modify settings like activation status, expiration, and redemption limits.

Common Updates

  • Change the code string itself
  • Activate or deactivate a code
  • Update expiration dates
  • Modify redemption limits
  • Change affiliate assignment
You cannot change the parent coupon of a promotional code. If you need different discount terms, create a new promotional code with a different coupon.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Fields to update

promotionalCodeId
string<uuid>
required

The promotional code ID to update

code
string

Rename the code. Must be unique within the program.

active
boolean

Set to false to retire the code without deleting it

expiresAt
string<date-time>

Expiration date

maxRedemptions
integer

Maximum redemptions

firstTimeOrder
boolean

Limit to first-time orders

minimumAmount
number<float>

Minimum purchase amount

minimumAmountCurrency
string

Currency for minimum amount

limitToCustomers
boolean

Limit to specific customers

customerId
string

Specific customer ID

limitToAffiliate
boolean

Only affiliate can use

externalId
string

The code's ID in the connected billing provider

Response

The updated promotional code.

A code customers enter at checkout. Its discount comes from the coupon it belongs to.

id
string<uuid>

The promotional code ID

code
string

The actual promotional code string

couponId
string<uuid>

The parent coupon ID

affiliateId
string<uuid> | null

The affiliate ID this code is assigned to

externalId
string | null

External ID (e.g., Stripe promotion code ID)

active
boolean

Whether the promotional code is active

expiresAt
string<date-time> | null

Expiration date for the code

maxRedemptions
integer | null

How many times this code can be redeemed. null means unlimited. Redemptions are also capped by the parent coupon's own limit.

timesRedeemed
integer

Number of times this code has been redeemed

firstTimeOrder
boolean

Whether this code is limited to first-time orders

minimumAmount
number<float> | null

Minimum purchase amount required

minimumAmountCurrency
string | null

Currency for minimum amount

limitToCustomers
boolean

Whether code is limited to specific customers

customerId
string | null

Specific customer ID this code is limited to

limitToAffiliate
boolean

Whether only the assigned affiliate may redeem this code

isAutoGenerated
boolean

Whether this code was generated from a codeStructure rather than supplied by hand

createdAt
string<date-time>

Timestamp when the code was created

updatedAt
string<date-time>

Timestamp when the code was last updated

coupon
object

The coupon this code takes its discount from

affiliate
object | null

Affiliate details

isAffiliateGenerated
boolean

Whether the affiliate created this code themselves from their portal

Last modified on July 20, 2026