Xsolla-logoXsolla Developers
前往发布商帐户

按购物车ID删除所有购物车商品

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

删除所有购物车商品。

SecurityAuthForClient
Request
path Parameters
project_id
required
integer

项目ID。

Example: 44056
cart_id
required
string

购物车ID。

Example: custom_id
Responses
204

购物车已成功清空。

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