Changing a cart's site
POST {{api-url}}/cart/{{tenant}}/carts/{{cartId}}/changeSite
Changes a specified cart's site. The following cart settings are changed according to the new site: * Language * Currency * Shipment * Tax * Payment
In case the new site uses a different currency, the endpoint sends a price match request to the Price Service. This ensures that items in cart display correct prices in the new site's currency.
Required scopes
No specific scopes are required.
Request Body
{"siteCode"=>"USA"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept-Language | string | List of natural languages acceptable for the response. | |
Content-Language | string | List of acceptable natural languages of the customers. | |
languages | string | You can use the languages header to apply the request to carts for which a particular localization attribute (language) has been specified. |
You can specify multiple languages by separating them with commas.
|
| Content-Type
| string | | |
RESPONSES
status: OK
""