POST
/
cart
/
getCoupon
curl --request POST \
  --url https://v3.minestorecms.com/api/cart/getCoupon \
  --header 'Authorization: Bearer <token>'
{
  "type": "percent",
  "percent": 10,
  "amount": 5,
  "coupon": "SUMMER2024"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json
Successfully retrieved coupon details.
type
enum<string>

Type of the coupon ('percent' or 'amount').

Available options:
percent,
amount
percent
number

Discount percentage if the coupon is of type 'percent'. Only present if 'type' is 'percent'.

Example:

10

amount
number

Discount amount if the coupon is of type 'amount'. Only present if 'type' is 'amount'.

Example:

5

coupon
string

The name of the applied coupon.

Example:

"SUMMER2024"