v1
latestOpenAPI 3.1.02026-07-24170121.2 MBCreate a Coupon
This API creates coupons that can be used to avail discounts on the invoice.
post/v1/discounts
Headers
Acceptstring required
Indicates which content types, expressed as MIME types, the client is able to understand.
Content-Typestring
Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded
Request body
Response
201
Example response
{
"data": {
"object": "Discount",
"discount_id": "dc_ae9c7bd1",
"amount_off": 10,
"duration": "once",
"status": "active",
"name": "testers",
"created_at": 1724584416,
"updated_at": 1724584416,
"id": "jDg5AYgjzgjYMWlz"
}
}