Xsolla-logo

Remove promo code from cartClient-side

put/v2/project/{project_id}/promocode/remove

Removes a promo code from a cart. After the promo code is removed, the total price of all items in the cart will be recalculated without bonuses and discounts provided by a promo code.

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
Request Body schema: application/json
object or null
id
required
string
Default: "current"

Cart ID.

Responses
200

Promo code is successfully canceled.

401

Authentication not passed or wrong.

403

Authorization header not sent.

422

Invalid request.

Request samples
application/json
{
  • "cart": {
    }
}
Response samples
application/json
{
  • "cart_id": "cart_id",
  • "is_free": false,
  • "items": [
    ],
  • "price": {
    }
}