This endpoint applies a coupon code to the cart. The system validates the coupon and calculates applicable discounts based on cart contents and customer eligibility.
Authentication
This endpoint requires a valid API key withcarts:write
permissions.
Path Parameters
The unique identifier of the cart
Request Body
Coupon or promotion code to apply
Only validate without applying (preview discount)