Skip to content

Reserve products

This method allows the products added to the shopping cart to be reserved for a period of time.

Once the reservation has been confirmed, it is no longer possible to add more products to the cart.

POST /ShoppingCart/Confirm

  • ShoppingCartId: (string) Required. Cart identifier.
  • LanguageCode: (string) Optional. Language of the returned texts. ISO 639-1 format.

Optionally, in this step you can send the answers to the sale, provider and client level questions. They can also be sent when confirming the sale. See the introduction to question profiles.

  • QuestionsProfiles: (list) Optional. List of question profiles with their answers. Used to answer questions at the sale, provider and client levels. Ticket level questions are answered when adding the product to the cart, not here. See the introduction to question profiles to understand each level.

    • QuestionsProfileId: (string) Required. Question profile identifier. It is obtained from the catalog (SaleQuestionProfileIds, ClientQuestionProfileIds, ProviderQuestionsProfileIds) and from checking question profiles.
    • Questions: (list) Required. Answers to the profile questions.
      • QuestionId: (string) Required. Question identifier (the question’s Id field returned by checking question profiles).
      • Question: (string) Optional. Question text. Informational.
      • Value property: depending on the question’s DataType, one of the following properties must be filled in:
        • StringValue (string) / StringCollectionValue (list).
        • BooleanValue (boolean) / BooleanCollectionValue (list).
        • IntegerValue (int) / IntegerCollectionValue (list).
        • DecimalValue (decimal) / DecimalCollectionValue (list).
        • DateTimeValue (dateTime) / DateTimeCollectionValue (list).
        • BinaryValue (string) / BinaryCollectionValue (list). File content encoded in base64.
      • BinaryMimeType: (string) Optional. File MIME type. Only for DataType = 12 or 13.
      • BinaryExtension: (string) Optional. File extension. Only for DataType = 12 or 13.
  • ExpirationDateTime: (dateTime). Indicates when the reservation will expire. ISO 8601 format (yyyy-MM-ddThh:mm:ss.d).

  • Activities: (object). Information about the added activity.

    • Products: (list). List of added products.
      • ProductId: (string). Identifier of the added product.

      • CombinedProductId: (string). Identifier of the added combined product.

      • ProductName: (string). Name of the added product.

      • AccessDateTime: (dateTime). Access date and time. ISO 8601 format (yyyy-MM-ddThh:mm:ss.d).

      • Price: (decimal). Rate price.

      • PriceMode: (int). Price type.

      • Success: (boolean). Indicates whether the reservation was made successfully.

      • Tickets: (list). List of tickets that make up this product.

        • Ticket: (object). Ticket information.
          • TicketId: (string). Ticket identifier.
      • CancellationPolicy: (object). Indicates the cancellation policies that apply when cancelling this product.

        • IsRefundable: (boolean). Indicates whether free cancellation is available at any point.
        • Rules: (list). List of rules applied when cancelling.
          • Rule: Information about the rule to apply.
            • HoursInAdvanceOfAccess: (int). Number of hours in advance with respect to the access date from which the penalty indicated in Percentage will be applied.
            • Percentage: (decimal). Penalty percentage on the ticket price.
            • Amount: (decimal). Total penalty amount that will be applied.
            • FromInclusiveDateTime: (dateTime). Date/time from which this rule will apply.
            • ToExclusiveDateTime: (dateTime). Date/time until which this rule will apply.
  • Accommodations: (list). Information about accommodations/rooms added to the cart.

    • Accommodation: (object). Accommodation information.
      • ProductId: (string). Rate identifier.

      • ProductConditions: (string). Product conditions.

      • AccessDateTime: (dateTime). Check-in date.

      • AccessEndDateTime: (dateTime). Check-out date.

      • Quantity: (int). Quantity of units added.

      • Price: (decimal). Rate price.

      • PriceMode: (int). Price type.

      • Success: (boolean). Indicates whether the reservation was made successfully.

      • ErrorMessage: (boolean). In case of reservation error, associated message.

      • ChildrenAges: (list). List of the ages of babies/children.

        • int: Age of the baby/child.
      • NumberOfAdults: (int). Number of adults in this room.

      • NumberOfChildren: (int). Number of children in this room.

      • NumberOfSenior: (int). Number of seniors in this room.

      • NumberOfBabies: (int). Number of babies in this room.

      • NumberOfGeneric: (int). Number of undefined persons in this room.

      • CancellationPolicy: (object). Indicates the cancellation policies that apply when cancelling this product.

        • IsRefundable: (boolean). Indicates whether free cancellation is available at any point.
        • Rules: (list). List of rules applied when cancelling.
          • Rule: Information about the rule to apply.
            • HoursInAdvanceOfAccess: (int). Number of hours in advance with respect to the access date from which the penalty indicated in Percentage will be applied.
            • Percentage: (decimal). Penalty percentage on the ticket price.
            • Amount: (decimal). Total penalty amount that will be applied.
            • FromInclusiveDateTime: (dateTime). Date/time from which this rule will apply.
  • PaymentMethodsNotApplicable: (boolean). Indicates whether payment methods apply to this partner. Partners with a debit contract will need to apply payment methods (PaymentMethodsNotApplicable = false).

  • PaymentMethods: (list). Payment methods supported for the partner if working in debit mode.

    • PaymentMethod: (object). Information about the payment method.
      • Id: (string). Payment method identifier.
      • Type: (byte). Payment method type.
      • Name: (string). Payment method name.
      • CommercialName: (string) Optional. Commercial name of the payment method.
      • EnableSendByEmail: (boolean) Optional. Indicates whether this payment method can be used to automatically send a payment link by email.
      • Fields: (list). Array of fillable fields associated with the payment method. These fields can be specified when creating a transaction.
        • Id: (string). Field identifier.

        • Name: (string). Field name.

        • IsRequired: (boolean). Indicates whether the field is mandatory.

        • RegexValidation: (string) Optional. Regular expression that the field value must satisfy.

        • RegexValidationErrorMessage: (string) Optional. Error message to display if the regular expression is not satisfied.

        • DefaultValue: (string) Optional. Default field value to show to the user.

        • DataType: (byte). Indicates the data type required by the field value.

  • 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.
  • This call accepts an additional header to indicate the partner user who is performing the cart confirmation:

    Header nameHeader value
    AdminPartnerUserIdAdminPartner user identifier