Coupons
Create Coupon
Changed onCreates a new coupon.
post/v1/shops/{shopId}/coupons
Request
- Base URLhttps://api.sellauth.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"code": "consequatur",
"discount": 15,
"type": "fixed",
"max_uses": 25,
"max_uses_per_customer": 19,
"min_invoice_price": 14,
"start_date": "2012-05-18",
"expiration_date": "2012-05-18",
"allowed_emails": [
"oerdman@example.org"
],
"uses_count_mode": "pending",
"items": [
{
"product_id": "consequatur"
}
],
"disable_if_quantity_deal": true,
"disable_if_bundle_offer": true,
"disable_if_gateway_discount": true,
"disable_if_affiliate_discount": true
}Changes
- breaking
added the new required request property
// - breaking
the
/request property type changed fromstringtoobject - info
added the new optional request property
// - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
/became nullable - info
the request property
became nullable - info
the request property
became nullable
- breaking
- info
added the new optional request property
- info