Validate Promo Code
POST/v1/stripe/promo-code/validate
Validate a promo code against a plan type using Stripe API
Request
- application/json
Body
required
promo_code Promo Code (string)required
The promo code to validate
plan_type Plan Type (string)required
The plan type to validate the promo code against
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
result Result (string)
Default value: ok
{
"result": "ok"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...