JavaScript
Coupons
Create coupon
Creates a new discount coupon with percentage or fixed amount off, applicable to customer subscriptions.
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Server API Key
Body
application/json
Create a coupon with percentage or fixed-amount discount.
The unique identifier for the entity
Required string length:
1 - 255Pattern:
^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$Name of the coupon
Maximum string length:
40Description of the coupon
Maximum string length:
255Percentage discount off the original price
Required range:
1 <= x <= 100Fixed amount discounts in different currencies
Minimum array length:
1Duration of the coupon validity in months
Required range:
x >= 1Metadata associated with the entity
Response
The newly created coupon object.
Response object
Discount instrument with percentage or fixed amount
