Skip to main content
POST
/
admin
/
coupons
Create Stripe coupon
curl --request POST \
  --url https://api.mnemom.ai/v1/admin/coupons \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "duration": "once",
  "percent_off": 123,
  "amount_off": 123,
  "currency": "usd",
  "duration_in_months": 123,
  "promotion_code": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Supabase service role key for admin and service endpoints

Body

application/json
name
string
required
duration
enum<string>
required
Available options:
once,
repeating,
forever
percent_off
number
amount_off
integer
currency
string
default:usd
duration_in_months
integer
promotion_code
string

Response

Coupon created

The response is of type object.