Skip to main content
DELETE
/
api
/
commerce
/
merchant
/
carts
/
items
/
{itemId}
Remove item from cart
curl --request DELETE \
  --url https://api-beta.pepay.io/api/commerce/merchant/carts/items/{itemId} \
  --header 'x-commerce-api-key: <api-key>'
{
  "success": true,
  "message": "Item removed from cart",
  "data": {
    "itemId": "123e4567-e89b-12d3-a456-426614174000",
    "title": "Echo (4th Gen)"
  }
}

Authorizations

x-commerce-api-key
string
header
required

Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.

Path Parameters

itemId
string<uuid>
required

Cart item ID

Query Parameters

wallet_address
string
wallet_network
string
customer_id
string

Response

Item removed from cart successfully

success
boolean
Example:

true

message
string
Example:

"Item removed from cart"

data
object