Cart items
Manage Cart items
- : Needed to manage carts.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Cart item's unique identifier.
Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant. This field should not be provided when itemType is EXTERNAL and request contains external product.
Optional field which allows fetching external prices if set to EXTERNAL.
Tax code. Tax indicated in this field overrides the site's default tax value.
Quantity of the product added to cart.
Deprecated, use product weightDependent attribute that is stored in the database.
If set to true, the storefront displays a hint that the total price of the product may vary depending on the product’s actual weight.
The request was successful. Items have been added to the cart.
The request was syntactically incorrect. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
- : Needed to manage carts.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The request was successful. Cart items details are returned.
The request was syntactically incorrect. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
Adds a product to the specified cart and creates a cart item.
Required scopes
cart.cart_manageNote: This scope is only required for OAuth2 authorization method to authorize the request with the
access_token.cart.cart_manage_external_pricesNote: This scope is used to manage external prices, products, fees and discounts. It's required only when an external price, product, fee or discount is provided.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Site unique identifier. A site is a specific shop.
If the tenant owns only one shop, the value should be set to main.
Cart item's unique identifier.
Indicates that products are maintained as individual entries in the cart, rather than being consolidated. When identical products are added multiple times, each addition creates a new line item instead of increasing the quantity of an existing one.
A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant. This field should not be provided when itemType is EXTERNAL and request contains external product.
Optional field which allows fetching external prices if set to EXTERNAL.
Tax code. Tax indicated in this field overrides the site's default tax value.
Quantity of the product added to cart.
Deprecated, use product weightDependent attribute that is stored in the database.
If set to true, the storefront displays a hint that the total price of the product may vary depending on the product’s actual weight.
The request was successful. The product has been added to the cart.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
The request could not be completed due to a conflict with the current state of the target resource.
Some server-side error occurred. Details will be provided in the response payload.
- : Needed to manage carts.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The request was successful. Products have been deleted from the cart.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
No content
- : Needed to manage carts.
Cart item's unique identifier generated when the product is added to the cart.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The request was successful. Cart item details are returned.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
- : Needed to manage carts.
Cart item's unique identifier generated when the product is added to the cart.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$| Option | Description |
|---|---|
true |
A partial product update will be performed. |
false |
A full product replacement will be performed. |
falseA unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
Optional field which allows fetching external prices if set to EXTERNAL.
Quantity of the product added to cart.
Tax code. Tax indicated in this field overrides the site's default tax value.
The request was successful. The cart item has been updated.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
The request could not be completed due to a conflict with the current state of the target resource.
Some server-side error occurred. Details will be provided in the response payload.
No content
- : Needed to manage carts.
Cart item's unique identifier generated when the product is added to the cart.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The request was successful. The item has been removed from cart.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
No content
Last updated
Was this helpful?

