cURL
curl --request POST \ --url http://localhost:6900/v1/coupons \ --header 'Content-Type: application/json' \ --data ' { "environment_id": "<string>", "code": "<string>", "type": "percent", "amount": 1, "metadata": {} } '
null
Creates a new discount coupon with percentage or fixed amount.
Documentation IndexFetch the complete documentation index at: https://docs.revstack.dev/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.revstack.dev/llms.txt
Use this file to discover all available pages before exploring further.
1
percent
fixed
x >= 0
Show child attributes
Coupon created
The response is of type unknown.
unknown