Initialize Cart
Endpoint
POST
undefined/msapi/sales/shopping-cart-api/v1/carts/initialize
Copy
This operation initializes the shopping cart. It is responsible for creating a new cart and returning a valid cart ID, which is essential for all subsequent commerce operations. If a cart already exists for the user, this API will not create a new one; instead, it will return the existing cart ID.
http
This API supports Basic Authentication.
scheme:basic
Initialize Shopping Cart and retrieve cart id.
Header Parameters
Body Parameters
Responses
Success
Body
application/json