Skip to main content
POST
/
v1
/
brands
/
{brandId}
/
coupon-codes
/
{couponCode}
/
validate
Validate coupon code
curl --request POST \
  --url https://api.letsway.com/v1/brands/{brandId}/coupon-codes/{couponCode}/validate \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "id": "coupon-123",
  "code": "DISCOUNT50",
  "type": "percentage",
  "discountType": "fixed_amount",
  "value": 50,
  "experienceIds": [
    "exp-1",
    "exp-2"
  ]
}

Path Parameters

couponCode
string

Body

application/json

The body is of type object.

Response

201 - application/json

Validate coupon code

id
string
required

The unique identifier of the coupon

Example:

"coupon-123"

code
string
required

The coupon code

Example:

"DISCOUNT50"

type
string
required

The type of the coupon

Example:

"percentage"

discountType
string
required

The discount type

Example:

"fixed_amount"

value
number
required

The value of the discount

Example:

50

experienceIds
string[]

List of experience IDs associated with the coupon

Example:
["exp-1", "exp-2"]