Switch a cart's currency
Changes the currency a cart is priced and settled in, and returns the cart with every amount converted to it. The cart keeps this currency on later reads and the order settles in it, so nothing else needs to name a currency after this call.
Send the event’s base currency to go back to base-currency prices.
Amounts are always worked out from the current exchange rate, so a quote can move while the cart is open. Read the cart again just before checkout to get the amount that will be charged.
Authentication
X-TT-API-Keystring
API Key authentication via header
Path parameters
cartId
Cart ID (UUID)
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.
Request
This endpoint expects an object.
currency
ISO 4217 currency to price and settle this cart in. Send the event’s base currency to go back to base-currency prices.
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
Cart priced in its new currency.
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
503
Service Unavailable Error