Get carts

GET{{API_BASE_URL}}/shop/v1/user/:user/carts?event={{EVENT}}

This API endpoint retrieves the carts associated with a specific user, optionally filtered by a provided event.

Request

  • user (path parameter): The user for whom the carts are being retrieved.

  • event (optional): The specific event for which the carts are being retrieved.

Response

The response will include an array of carts.

  • carts (array):

    • id: The unique identifier for the cart.

    • status: The current status of the cart.

    • event: An object containing details of the associated event, including its ID, name, year, number, and slug.

    • user: An object containing details of the user associated with the cart, including the user's ID, verification status, and email.

    • order: Details of the order associated with the cart, if any.

    • createdAt: The timestamp indicating when the cart was created.

    • updatedAt: The timestamp indicating when the cart was last updated.

Authentication#auth

This endpoint does not require authentication.

Query parameters#query

event{{EVENT}}optional

The event slug

Responses#responses

200OKGet carts