POST
/
cart
/
acceptCoupon
curl --request POST \
  --url https://v3.minestorecms.com/api/cart/acceptCoupon \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "coupon": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "percent": 123,
  "amount": 123,
  "sum": 123,
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
coupon
string
required

The code for the coupon or gift card to apply.

Maximum length: 40

Response

200
application/json
Successfully applied the coupon or gift card.
success
boolean

Indicates if the coupon or gift card was successfully applied.

message
string

A message indicating the result of applying the coupon or gift card.

percent
number

Discount percentage if a coupon was applied.

amount
number

Discount amount if a coupon was applied.

sum
number

The amount of the gift card used.

type
string

The type of the applied code, either 'coupon' or 'gift'.