palbaseDocs

Palbase Commerce & Promotions · API

DELETE/commerce/carts/{cart_id}/items/{line_id}

Remove line item from cart

Remove line item from cart

Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Path

cart_idstring · requiredPath parameter cart_id.
line_idstring · requiredPath parameter line_id.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/commerce/carts/<cart_id>/items/<line_id>" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200Remove line item from cart

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation DeleteCartItem of commerce's contract.