Create a coupon

Creates a new coupon object.

To perform this action, you must be the account owner, or must be delegated with ROLE_MARKETER, or ROLE_SELLER_ADMIN.

Body Params
string
required

Name of the coupon campaign.

string
required

Type of coupon. Possible values are discount, person, unlock, bxgy, voucher`.

string
required

Algorithm used to calculate the discount. Possible values are percent, absolute.

float
required

Amount of the discount.

float

Amount paid by the customer for this coupon. This may be lower than the amount in case of promotional campaigns.

codes
array of objects
required

List of unique codes that may be used to redeem this coupon.

codes*
int32

Limits the number of times the coupon can be used. Setting this to null or leaving blank will make this an "unlimited use" coupon.

bookBySchedule
array of objects

Restriction which ensures that this coupon is only redeemable within the specified schedules.

bookBySchedule
arrivalSchedule
array of objects

Restriction which ensures that this coupon can only be used for orders whose arrival is within the specified schedules.

arrivalSchedule
tags
array of objects

List of tags that should automatically get applied orders that use this coupon.

tags
string

Reported payment method when this voucher is used. Applicable and required for voucher types.

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here!