Skip to content

Confirm the reservation

This method confirms the reservation previously made in our systems.

POST /ShoppingCart/Sale

  • ShoppingCartId: (string) Required. Cart identifier.

  • PartnerSaleId: (string) Required. Partner identifier.

  • InsurancePolicyId: (string) Optional. Refund insurance policy identifier.

  • DiscountCouponCodes: (list) Optional. List of coupon codes (discounts/promotions) issued by the venue through this platform.

    • (string): (list) Required. Coupon code.
  • Client: (object) Optional. Customer information. If the sale contains hotels, this property is mandatory. If it only contains activities, this parameter depends on the configuration agreed with the partner.

    • FullName: (string) Required. Name.
    • Surname: (string) Required. Surname.
    • DocumentIdentifier: (string) Required. Identity document.
    • PhoneNumber: (string) Required. Phone number.
    • Email: (string) Required. Email address.
  • PaymentMethod: (string) Optional. Payment method information. It only needs to be filled in when the partner has a debit contract.

    • PaymentMethodType: (int) Required. Payment method identifier.
    • ReturnUrlOk: (string) Required. URL that will be notified if the payment succeeds.
    • ReturnUrlKo: (string) Required. URL that will be notified if the payment fails.
    • SendByEmail: (boolean) Required. Indicates that we want to send the customer a payment link by email, if the option is available. See PaymentMethods.PaymentMethod.EnableSendByEmail.

In this step you can send the answers to the sale, provider and client level questions. If they were already sent when reserving, they can be sent again here. 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.
  • PaymentRedirectUrl: (string). For partners with debit payment, this property indicates the URL where the customer must be redirected to complete the payment.

  • ExperticketSales: (list). List of associated sales.

    • ExperticketSale: (object). Sale information.
      • Id: (string). Sale identifier.
        • FinancialRatios: (object). Economic concepts of a sale.
          • ReferenceSalePrice: (object). Reference sale price.
            • BasePrice: (double). Base price
            • Quota: (double). Commission
            • Total: (double). Total
          • Discount: (object). Commercial discount.
            • BasePrice: (double). Base price
            • Quota: (double). Commission
            • Total: (double). Total
          • Commission: (object). Partner cost.
            • BasePrice: (double). Base price
            • Quota: (double). Commission
            • Total: (double). Total
          • SalePrice: (object). Sale price.
            • BasePrice: (double). Base price
            • Quota: (double). Commission
            • Total: (double). Total
  • 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 sale:

    Header nameHeader value
    AdminPartnerUserIdAdminPartner user identifier