POST
/
cart
/
acceptCoupon

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
amount
number

Discount amount if a coupon was applied.

message
string

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

percent
number

Discount percentage if a coupon was applied.

success
boolean

Indicates if the coupon or gift card was successfully applied.

sum
number

The amount of the gift card used.

type
string

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