Remove a voucher
Removes a previously applied voucher code from the cart and returns the updated cart with the discount gone from receiptLines and total. Idempotent — returns the current cart even if the code was not applied to it.
Authentication
X-TT-API-Keystring
API Key authentication via header
Path parameters
cartId
Cart ID (UUID)
code
The voucher code to remove, as it was applied to the cart.
Headers
X-TT-Platform
Identifies the platform the request comes from.
Allowed values:
X-TT-Retailer
Your retailer identifier, provided during onboarding. It must be a retailer your API key was issued for.
Response headers
X-RateLimit-Limit
How many requests this API key may make for this retailer in the current window. Sent only when the request was counted against that limit. A response served from cache was not counted and repeats the value it was cached with.
X-RateLimit-Remaining
How many requests this API key has left for this retailer in the current window. Sent only when the request was counted against that limit. A response served from cache was not counted and repeats the value it was cached with.
Response
Voucher removed (or was not applied to the cart); updated cart returned.
data
Shopping cart containing held inventory cart items.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
410
Gone Error
429
Too Many Requests Error