Create a discount code

Creates a business-scoped discount code. The code is normalized to an uppercase, space-free value before saving.

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

Discount code. Saved uppercase with spaces removed.

string
enum
required
Allowed:
string
enum
required
Allowed:
number | null

Required when amount_type is fixed.

integer | null
0 to 100

Required when amount_type is percentage.

boolean | null

Required when amount_type is percentage.

number | null
boolean
Defaults to true
boolean
Defaults to false
integer | null
boolean
Defaults to false
date-time | null
boolean
Defaults to false
page_ids
array of integers
page_ids
boolean
Defaults to false
payment_methods
array of strings
payment_methods
boolean
Defaults to false
number | null
Responses

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