Xsolla-logoXsolla Developers
or
To Publisher Account

Delete all cart items from current cartClient-side

put/v2/project/{project_id}/cart/clear

Deletes all cart items.

SecurityAuthForCart
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
Responses
204

The cart was successfully cleared.

Request samples
curl -i -X PUT \
  'https://store.xsolla.com/api/v2/project/{project_id}/cart/clear' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'