Storefront APICart
Remove a cart line
Releases the line's stock reservation and clears any selected freight. Answers with the whole cart.
Path Parameters
store_slug*string
Store slug
variant_id*string
Variant id
Query Parameters
cart_id?string
currency?string
ISO 4217 code; defaults to the store's currency. A cart in another currency is not reused.
Header Parameters
x-cart-id?|
The shopper's cart; the cart_id cookie or body field works too
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/storefront-api/string/api/cart/items/string"{
"contact_draft": {
"additional_info": "string",
"city": "string",
"email": "string",
"name": "string",
"neighborhood": "string",
"number": "string",
"phone": "string",
"state": "string",
"street": "string",
"zip_code": "string"
},
"currency": "string",
"destination_postal_code": "string",
"discount_cents": 0,
"freight_options": [
{
"carrier_name": "string",
"delivery": "string",
"delivery_days": 0,
"dispatch": "string",
"is_required_term": true,
"logo": "string",
"modal": "string",
"option_id": "string",
"price": 0,
"provider_code": "string",
"raw": {},
"service_name": "string",
"service_type": "string",
"shipping_carrier": "string",
"shipping_carrier_document": "string",
"shipping_cents": 0
}
],
"fulfillment_method": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"item_count": 0,
"items": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
"quantity": 0,
"sku": "string",
"title": "string",
"total_cents": 0,
"unit_price_cents": 0,
"variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6"
}
],
"pickup_location_id": "5eb4dd60-b565-4dc0-8014-f7a790828fbb",
"requires_shipping": true,
"selected_freight_option_id": "string",
"shipping_cents": 0,
"store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
"subtotal_cents": 0,
"tax_cents": 0,
"total_cents": 0
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}