Promotions
Clear Promo Codes
Removes all promotional codes from the cart
DELETE
Clear Promo Codes
Overview
This endpoint removes all applied promotional codes from the cart and recalculates totals without promotional discounts.Request
The merchant domain (e.g., “staging.luma.gift”)
Response
Returns a complete shopping cart (same structure as Get Cart) with:- Empty
couponsarray (all promo codes removed) cart_discountreset to zero (if applicable)- Totals recalculated without promotional discounts
Promo Code Clearing Behavior
What Happens
- The
couponsarray is cleared - The
cart_discountfield is reset (if applicable) - Line item
discountandline_discountfields are removed - Taxes are recalculated based on full prices
Use Cases
- Customer wants to remove all discounts
- Testing different promo code combinations
- Cart cleanup before applying new codes
Errors
ErrorClearPromoCodeNotAllowed
Status Code: 422Description: Merchant has disabled promo code clearing functionality
MissingAuthHeader
Status Code: 401Description: x-firmly-authorization header is missing or invalid
InvalidToken
Status Code: 401Description: JWT token is invalid
ErrorCartNotFound
Status Code: 404Description: Cart session not found
Examples
Response Examples
Standard Response
Multiple Items Response
Key Points
- Field Names: Cleared codes are removed from the
couponsarray, notpromo_codes - Discount Reset: The
cart_discountfield returns to zero - Merchant Controls: Some merchants may disable this functionality
- Complete Response: Returns the full cart structure with updated pricing
Clear Promo Codes