Update a promotion code

Required scope: promotion-codes:write
Organization authorization: supported

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int64
required
Body Params
string | null

Name of the promotion code

string | null
^[a-z0-9]+(?:-[a-z0-9]+)*$

Unique code string. Cannot be changed once used. Must be lowercase alphanumeric, optionally hyphen-separated.

string | null

Description of the promotion code

double | null
0.1 to 100

Discount amount or percentage. Cannot be changed once the code has been used.

int32 | null
≥ 1

Maximum number of times the code can be used

date-time | null

When the promotion code becomes active (ISO8601: yyyy-MM-ddTHH:mm:ssZ)

date-time | null

When the promotion code expires (ISO8601: yyyy-MM-ddTHH:mm:ssZ)

number | null
0.01 to 999999.99

Max total discount this code can apply. Once the cap is reached, code becomes unusable. Omit to leave unchanged.

selectedTeamIds
array of int64s | null

Team IDs the promotion code is restricted to. Pass an empty array to clear restrictions.

selectedTeamIds
int32 | null
1 to 10000

Max charges per driver eligible for the discount after redeeming. Omit to leave unchanged.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json