Create Discount
Create a discount.
Scopes: discounts:write
Request body
Example request
{
"organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}Response
Discount created.
Example response
{
"amount": 1000,
"currency": "usd",
"amounts": {
"eur": 900,
"usd": 1000
},
"organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}Changes
Changed in 1 of the 11 revisions of this API.6
- ○
added the new optional request property
oneOf[subschema #1: DiscountFixedCreate]/max_redemptions_per_customernew-optional-request-property
- ○
added the new optional request property
oneOf[subschema #2: DiscountPercentageCreate]/max_redemptions_per_customernew-optional-request-property
- ○
added the required property
oneOf[subschema #1: DiscountFixedOnceForeverDuration]/max_redemptions_per_customerto the response with the201statusresponse-required-property-added
- ○
added the required property
oneOf[subschema #2: DiscountFixedRepeatDuration]/max_redemptions_per_customerto the response with the201statusresponse-required-property-added
- ○
added the required property
oneOf[subschema #3: DiscountPercentageOnceForeverDuration]/max_redemptions_per_customerto the response with the201statusresponse-required-property-added
- ○
added the required property
oneOf[subschema #4: DiscountPercentageRepeatDuration]/max_redemptions_per_customerto the response with the201statusresponse-required-property-added
- ○