Xsolla-logo

Get current user's cartClient-side

get/v2/project/{project_id}/cart

Returns the current user's cart.

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
query Parameters
currency
string
Default: "USD"

Default purchase currency. 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": []
}