Cart items
Manage Cart items
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant's 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.
Product details. This field is required when itemType is EXTERNAL and product does not exist in Emporix system.
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.
Mandatory if the itemType
is EXTERNAL
, optional for the INTERNAL
item type.
Tax information per unit. This field is only required when itemType is EXTERNAL and request contains external price.
Deprecated, use product's 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.
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
Adds a product to the specified cart and creates a cart item.
Required scopes
cart.cart_manage
Note: This scope is only required for OAuth2 authorization method to authorize the request with the
access_token
.cart.cart_manage_external_prices
Note: 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’s unique identifier generated when a cart is created.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
Site’s 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.
Product details. This field is required when itemType is EXTERNAL and product does not exist in Emporix system.
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.
Mandatory if the itemType
is EXTERNAL
, optional for the INTERNAL
item type.
Tax information per unit. This field is only required when itemType is EXTERNAL and request contains external price.
Deprecated, use product's 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.
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
No content
Cart item's unique identifier generated when the product is added to the cart.
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
Cart item details.
Cart item's unique identifier generated when the product is added to the cart.
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant's 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. |
false
A 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.
Tax information per unit. This field is required only when the itemType is set as EXTERNAL and the request contains an external price.
No content
Cart item's unique identifier generated when the product is added to the cart.
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$
No content
Was this helpful?