Skip to main content
PUT
Update a promotion code

Authorizations

Authorization
string
header
required

Tolt API key sent as a bearer token.

Path Parameters

id
string
required
Example:

"promo_gTCAUsWfdmN2GuCVRaHWNRan"

Body

application/json
code
string

The discount code as customers enter it at checkout. Customers and payments that use it are attributed to the code's partner. A partner cannot have the same code twice, ignoring case.

Required string length: 1 - 255
type
enum<string> | null

Whether value is a percent off or a fixed amount off.

Available options:
fixed,
percentage,
null
value
string | null

Size of the discount as a plain decimal: a percent from 0 to 100 for percentage codes ("20" is 20%), or an amount from 0 to 1,000,000 in major units of the program currency for fixed codes ("20" is 20.00). null clears it.

Maximum string length: 255

Response

The updated promotion code

success
boolean
required
Example:

true

message
string
required
Example:

"Request successful"

data
object
required