Create a new coupon pool

This endpoint can be used to create a new coupon pool with the attributes provided in the request body.

Body Params

The name, source and type attributes are required. The request body can also include custom attributes (if used).

string
length between 6 and 24

An optional unique identifier used for mapping the coupon pool to an external system.

string
required

The name of the coupon pool.

string
required

The source of the coupon pool, which must be uploaded.

string
required

The type of the coupon pool, which can be amount, percentage, free_shipping or gift_card.

float
≥ 0.01

The value of the coupon pool.

number
≥ 1

The minimum value below which gift card coupons are invalidated (only applicable if the value of the type attribute is set to gift_card).

number
≥ 1

The minimum redemption value for gift card coupons (only applicable if the value of the type attribute is set to gift_card).

string

The currency of the gift card coupons (only applicable if the value of the type attribute is set to gift_card).

number
≥ 1

The minimum basket value required to use coupons from this coupon pool.

string

The expiration time of coupons from this coupon pool (e.g., 2 months).

boolean
Defaults to false

The value determines whether the same coupon code is assigned each time a coupon from this coupon pool is issued for a specific customer.

products
array of strings

List of active product IDs to which the coupon discount can be applied (only applicable if the Product catalog module is enabled).

products
stores
array of strings

List of active store IDs for which the coupons of this coupon pool can be validated (only applicable if the Stores module is enabled).

stores
Responses

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