Applies a coupon code to the current shopping cart and recalculates discounts, totals, and applicable rules.This endpoint is typically used when a customer enters a promo code during checkout.
Request
Query Params
Responses
🟢201Success
application/json
Bodyapplication/json
🟠422
🟠401Unauthorized
🔴500Internal Server error
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--globoff--request POST '{store_url}/api/v1/cart/coupons?coupon_code=SUMMER25'