GET /api/v4/coupons
Get coupon by name

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

Attention! parameters must be passed in the request body, not as query or path parameters

{
  "token": "test coupon 10%"
}

Success response body

{
  "id": 1,
  "percent_off": 10.0
}

Params

Param name Description
token
required

name of coupon

Validations:

  • Must be a String