Xsolla-logo

Get cart by cart ID

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

Returns user’s cart by cart ID.

SecurityAuthForClient
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
cart_id
required
string

Cart ID.

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

The currency which prices are displayed in, (USD by default). Three-letter currency code per ISO 4217.

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": {
    }
}