Skip to main content
POST
/
v1
/
coupons
Create a coupon
curl --request POST \
  --url https://revstack.dev/v1/coupons \
  --header 'Content-Type: application/json' \
  --data '
{
  "environmentId": "<string>",
  "code": "<string>",
  "type": "percent",
  "amount": 1,
  "metadata": {}
}
'
null

Body

application/json
environmentId
string
required
Minimum string length: 1
code
string
required
Minimum string length: 1
type
enum<string>
required
Available options:
percent,
fixed
amount
number
required
Required range: x >= 0
metadata
object

Response

Coupon created

The response is of type unknown.