Menu
Delete A Cart Item
Delete a Cart Item
DELETE
/v2/carts/{cartID}/items/{cartitemID}Use it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Delete A Cart Item action (under Carts).
- Fill in the fields below, then reference the result from later steps as
{{deleteACartItem.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{deleteACartItem.response.data.<field>}}.
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "cart_item",
"product_id": "00000000-0000-0000-0000-000000000000",
"promotion_id": "00000000-0000-0000-0000-000000000000",
"subscription_offering_id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string",
"sku": "string",
"slug": "string",
"catalog_id": "00000000-0000-0000-0000-000000000000",
"catalog_source": "string",
"bundle_configuration": {
"selected_options": {},
"component_products": [
{
"id": "string",
"type": "string",
"attributes": {},
"meta": {},
"price": {},
"relationships": {}
}
]
}
}
],
"included": {
"custom_discounts": [
{
"type": "string",
"id": "00000000-0000-0000-0000-000000000000",
"external_id": "string",
"discount_engine": "string",
"amount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"description": "string",
"discount_code": "string",
"relationships": {
"item": {
"data": {
"id": null,
"type": null
}
}
}
}
],
"promotions": [
{
"automatic": false,
"description": "string",
"end": "2025-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"promotion_type": "string",
"promotion_source": "string",
"start": "2025-01-01T00:00:00Z",
"type": "string"
}
],
"tax_items": [
{
"type": "string",
"id": "00000000-0000-0000-0000-000000000000",
"jurisdiction": "string",
"code": "string",
"name": "string",
"rate": 0,
"amount": 0
}
]
},
"meta": {
"display_price": {
"with_tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"without_tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"without_discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"shipping": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"shipping_discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"authorized": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"balance_owing": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"paid": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"timestamps": {
"created_at": "string",
"updated_at": "string",
"expires_at": "string"
},
"messages": [
{
"title": "string",
"description": "string",
"source": {
"type": "string",
"id": "string",
"code": "string"
}
}
],
"promotion_suggestions": [
{
"bundle": [
{
"auto_add_free_gift": false,
"cart_item_id": "string",
"quantity": 0,
"targets": [
null
]
}
],
"code": "string",
"info": "string",
"message": "string",
"promotion_id": "string",
"auto_add": false,
"targets": [
{
"cart_item_id": "string",
"quantity": 0,
"skus": [
null
]
}
]
}
]
},
"errors": [
{
"title": "string",
"status": "string",
"detail": "string",
"source": "string",
"meta": {
"id": "string",
"ids": [
"string"
],
"item_ids": [
"string"
],
"shipping_group_id": "string",
"shipping_group_ids": [
"string"
],
"cart_id": "string",
"code": "string",
"order_id": "string",
"sku": "string",
"email": "name@example.com",
"component_product_id": "00000000-0000-0000-0000-000000000000",
"error-meta-key": "string"
}
}
]
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?