Skip to content

Create a cart

This method allows us to create a shopping cart (from now on, cart).

The cart is a container for products (activities, accommodations, and/or packages). It can contain 0 to N products.

The cart itself does not expire. However, the products added to it do expire.

POST /ShoppingCart/Create

There is no request body.

  • Id: (string). Cart identifier.

  • Success: (boolean). Value that indicates whether the call was processed correctly or not.

  • Errors: (list). Array of errors.

    • Error: (object).
      • ErrorMessage: (string). Error message explaining why the request was not successful. If it was correct, it will return null.
      • ErrorCode: (int). Code that identifies the error.
  • ErrorEntityBreakDown (list): list that contains objects with the name and ID in case of error.

    • Id (string): identifier
    • Name (string): related name of the identifier.