Add item

POST{{API_BASE_URL}}/shop/v1/cart/:cart/items

This endpoint allows you to add an item to the specified cart.

Request

  • cartId(string): The ID of the cart.

Request Body

  • article (string): The ID of the article to be added to the cart.

  • quantity (number): The quantity of the article to be added to the cart.

Response

The response includes the updated details of the cart after adding the item.

  • data (object): The object containing the details of the item added to the cart.

    • itemAdded (object): Details of the item added to the cart.

      • cartId (string): The ID of the cart.

      • article (object): Details of the article added to the cart.

        • prices (array): Array of prices for the article.

        • articleGroup (object): Details of the article group.

        • id (string): The ID of the article.

        • name (string): The name of the article.

        • internalName (string): The internal name of the article.

        • description (string): The description of the article.

        • image (object): Details of the article image.

        • sort (number): The sorting order of the article.

        • isLegitimationRequired (boolean): Indicates if legitimation is required for the article.

        • timeslots (array): Array of timeslots for the article.

      • items (array): Array of items in the cart.

        • reservation (object): Details of the reservation.

        • item (object): Details of the item.

      • problems (array): Array of problems encountered.

    • cart (object): Details of the cart.

      • id (string): The ID of the cart.

      • expiryTime (string): The expiry time of the cart.

      • user (object): Details of the user.

      • event (object): Details of the event.

      • promotionCodes (array): Array of promotion codes for the cart.

      • items (array): Array of items in the cart.

      • totals (array): Array of totals for the cart.

      • isImmutable (boolean): Indicates if the cart is immutable.

      • isPaymentImmutable (boolean): Indicates if payment is immutable for the cart.

      • isLegitimationImmutable (boolean): Indicates if legitimation is immutable for the cart.

      • isRegistrationImmutable (boolean): Indicates if registration is immutable for the cart.

      • isAmountImmutable (boolean): Indicates if the amount is immutable for the cart.

      • isRegistrationOnly (boolean): Indicates if registration is the only requirement for the cart.

      • isRegistrationRequired (boolean): Indicates if registration is required for the cart.

      • isLegitimationRequired (boolean): Indicates if legitimation is required for the cart.

      • isPaymentRequired (boolean): Indicates if payment is required for the cart.

      • buyerPerson (object): Details of the buyer.

      • status (string): The status of the cart.

      • culture (string): The culture of the cart.

Authentication#auth

This endpoint does not require authentication.

Query parameters#query

$expandAlloptional

Responses#responses

200OKAdd item