Update Discount Code

Updates an existing discount code by its ID. All body fields are optional; only the fields included in the request body will be updated. event_id cannot be changed — discounts are bound to their original event. To create alternate codes for an existing discount, use the clone endpoint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

integer - required - The ID of the Discount Code you want to update

Body Params

All fields are optional on update. event_id cannot be changed — discounts are bound to their original event. To create alternate codes for an existing discount, use the clone endpoint.

string
length ≤ 255

Unique code for the discount within the event. May not contain <, >, \, or ".

string
enum

The type of discount being applied.

Allowed:
float
0 to 100
float
boolean
integer
integer
≥ 2
integer
≥ 2
boolean
applicable_line_items
array of strings
applicable_line_items
custom_fees_update
object

New entries to merge into the stored custom_fees. See discountCreateRequest for shape.

autopopulate_attributes
array of objects
autopopulate_attributes
string
string
length ≤ 255
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

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