Removes an item from the cart.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
cart_id required | string Cart ID. Example: custom_id |
item_sku required | string Item SKU. Example: booster_mega_1 |
The item from the cart was successfully deleted.
The item was not found. Make sure the project_id
and the item_sku
are correct.
curl -i -X DELETE \ 'https://store.xsolla.com/api/v2/project/{project_id}/cart/{cart_id}/item/{item_sku}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "statusCode": 404,
- "errorCode": 4001,
- "errorMessage": "[0401-4001]: Item with Project Id = 44056 and Sku = booster_mega_12222 not found"
}