HomeTutorialsAPI ReferenceChangelog
Log In
API Reference

Create a promotion

This endpoint creates a new promotion.

It responds with the newly-created promotion, including the promotion's ID.

🔒 Requires: promotions:write scope

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

A Promotion defines rules and actions for discounting products as part of a sales promotion.

action
object
required

Action triggered by a promotion.

add_promo_code
array of objects

A list of promo codes to associate with this promotion.

add_promo_code
channels
array of strings

A list of channels for the promotion. Can be Register, Ecommerce.

channels
boolean | null

Whether this promotion can be combined with an online coupon.

condition
object
required

For product_set, use quantity alone or set a positive min_quantity. With min_quantity, a nonzero max_quantity must be greater. For sale_price, set a positive min_price.

customer_group_ids
array of strings

A list of customer group IDs for the promotion.

customer_group_ids
string

A short description for the promotion.

string | null

The time the promotion ends, in UTC, e.g. 2006-01-02T15:04:05 (no timezone suffix).

string

Auto-generated object ID.

double

The loyalty multiplier for the promotion.

string
required

The name of the promotion.

online_channel_ids
array of strings

A list of online channel IDs for the promotion.

online_channel_ids
outlet_ids
array of strings

A list of outlet IDs for the promotion.

outlet_ids
promo_code_summary
object | null
recurring_promotion
object | null

Ignored on updates unless status is active. Set occurrence_type to weekly. Use start_time and a later end_time in 12-hour format (e.g. 9:00 AM). Include at least one occurrence with a full weekday name.

boolean
Defaults to true

Whether this promotion is shown as part of potential promotions.

string
required

The time the promotion begins, in UTC, e.g. 2006-01-02T15:04:05 (no timezone suffix).

string

The status of the promotion.

boolean
required

Whether or not this promotion uses promo codes.

Responses

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