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

KeyDatatypeRequiredDescription
Accept-LanguagestringList of natural languages acceptable for the response.
Content-LanguagestringList of acceptable natural languages of the customers.
languagesstringYou 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

""