Cart Endpoints
Apply Coupon & Giftcard
Validates and applies a coupon or gift card to the user’s cart if eligible. Provides appropriate messages based on the coupon or gift card status.
POST
/
cart
/
acceptCoupon
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The code for the coupon or gift card to apply.
Maximum length:
40
Response
200 - application/json
Indicates if the coupon or gift card was successfully applied.
A message indicating the result of applying the coupon or gift card.
Discount percentage if a coupon was applied.
Discount amount if a coupon was applied.
The amount of the gift card used.
The type of the applied code, either 'coupon' or 'gift'.