Skip to main content
POST
/
billing
/
validate_coupon
/
Validate coupon code
curl --request POST \
  --url https://api-v2.missioninbox.com/billing/validate_coupon/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "coupon_code": "<string>"
}'
{
  "valid": true,
  "coupon_id": "<string>",
  "percent_off": 123,
  "amount_off": 123,
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

coupon_code
string
required

Coupon code to validate

Response

valid
boolean
required
coupon_id
string
percent_off
integer
amount_off
integer
error
string