Xsolla-logo

Remove promo code from cart

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.

Request
Security:
path Parameters
project_id
required
integer

Project ID.

Example: 44056
Request Body schema: application/json
object or null
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": {
    }
}