Add new coupon
Add new coupon
Authorizations:Token
Request Body Schema:
Coupon object that needs to be added id | integerProduct unique ID |
code | stringCode |
enabled | booleanEnabled status |
value | stringValue |
type | stringType |
comment | stringComment |
uses | integerUses count |
dateRangeBegin | integerDate range (begin) |
dateRangeEnd | integerDate range (end) |
totalRangeBegin | stringTotal range (begin) |
totalRangeEnd | stringTotal range (end) |
usesLimit | integerUses limit |
usesLimitPerUser | integerUses limit per user |
singleUse | booleanFlag: Can a coupon be used together with other coupons (false) or no (true) |
productClasses | ArrayProduct classes |
memberships | ArrayMemberships |
usedCoupons | ArrayUsed coupons |
categories | ArrayCategories |
Responses
200Success
Response schema:
Success id | integerProduct unique ID |
code | stringCode |
enabled | booleanEnabled status |
value | stringValue |
type | stringType |
comment | stringComment |
uses | integerUses count |
dateRangeBegin | integerDate range (begin) |
dateRangeEnd | integerDate range (end) |
totalRangeBegin | stringTotal range (begin) |
totalRangeEnd | stringTotal range (end) |
usesLimit | integerUses limit |
usesLimitPerUser | integerUses limit per user |
singleUse | booleanFlag: Can a coupon be used together with other coupons (false) or no (true) |
productClasses | ArrayProduct classes |
memberships | ArrayMemberships |
usedCoupons | ArrayUsed coupons |
categories | ArrayCategories |