Skip to main content
DELETE
https://api.firmly.work
/
api
/
v1
/
domains
/
{domain}
/
cart
/
line-items
curl --request DELETE \
  --url https://api.firmly.work/api/v1/domains/staging.luma.gift/cart/line-items \
  --header 'x-firmly-authorization: YOUR_TOKEN'
{
  "cart_id": "1e43868c-d4a5-418c-bd6b-5fff043550d2",
  "platform_id": "example",
  "shop_id": "staging.luma.gift",
  "display_name": "Luma Store",
  "line_items": [],
  "sub_total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "shipping_total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "tax": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "payment_method_options": [
    {
      "type": "CreditCard",
      "wallet": "user"
    }
  ]
}

Overview

Removes all items from the cart, returning an empty cart.

Authentication

x-firmly-authorization
string
required
Device authentication token from browser session

Path Parameters

domain
string
required
Merchant domain (e.g., staging.luma.gift)

Response

Returns an empty shopping cart.

Response Fields

Same as Get Cart response, but with an empty line_items array.
curl --request DELETE \
  --url https://api.firmly.work/api/v1/domains/staging.luma.gift/cart/line-items \
  --header 'x-firmly-authorization: YOUR_TOKEN'
{
  "cart_id": "1e43868c-d4a5-418c-bd6b-5fff043550d2",
  "platform_id": "example",
  "shop_id": "staging.luma.gift",
  "display_name": "Luma Store",
  "line_items": [],
  "sub_total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "shipping_total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "tax": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "total": {
    "currency": "USD",
    "value": 0,
    "symbol": "$",
    "number": 0
  },
  "payment_method_options": [
    {
      "type": "CreditCard",
      "wallet": "user"
    }
  ]
}

Error Responses

400 Bad Request

Missing or invalid authentication header

404 Not Found

Cart not found