cURL
curl --request DELETE \ --url https://api-beta.pepay.io/api/commerce/merchant/carts \ --header 'x-commerce-api-key: <api-key>'
{ "success": true, "message": "Cart cleared", "data": { "itemsRemoved": 2 } }
Remove all items from customer’s cart
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
x-api-key
Cart cleared successfully
true
"Cart cleared"
Show child attributes
Was this page helpful?