Xsolla-logo

Get cart by cart IDClient-side

get/v2/project/{project_id}/cart/{cart_id}

Returns user’s cart by cart ID.

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
cart_id
required
string

Cart ID.

Example: custom_id
query Parameters
currency
string
Default: "USD"

The item price currency displayed in the cart. Three-letter currency code per ISO 4217. Check the documentation for detailed information about currencies supported by Xsolla.

locale
string
Default: "en"

Response language. Two-letter lowercase language code per ISO 639-1.

Responses
200

The cart with items was successfully returned.

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