Skip to content

List of sales

This method allows us to retrieve the list of sales.

GET /Sale

The following parameters must be passed as URL query string parameters. Available filters for retrieving the sales list are:

  • PartnerSaleId: (string). Optional. Partner identifier.
  • FromTransactionDateTime: (date). Optional. Initial transaction creation date. ISO 8601 format (yyyy-MM-dd).
  • ToTransactionDateTime: (date). Optional. Final transaction creation date. ISO 8601 format (yyyy-MM-dd).
  • FromAccessDateTime: (date). Optional. Initial access date. ISO 8601 format (yyyy-MM-dd).
  • ToAccessDateTime: (date). Optional. Final access date. ISO 8601 format (yyyy-MM-dd).
  • ClientName: (string). Optional. Customer name.
  • ClientEmail: (string). Optional. Customer email.
  • ClientPhone: (string). Optional. Customer phone number.
  • ClientDocumentIdentifier: (string). Optional. Customer identity document.
  • Page: (int). Optional. Page number to retrieve. Default value 1.
  • PageSize: (int). Optional. Number of results to retrieve.
  • Sales: (list). List of sales.

    • PartnerSaleId: (string). Partner identifier.

    • Activities: (list). List of activities.

      • Activity: (object). Activity information.
        • ProductId: (string). Product identifier.

        • CombinedProductId: (string) Optional. Combined product identifier.

        • CombinedProductDiscriminator: (byte) Optional. Indicates which combined product it belongs to within the CombinedProducts array.

        • AccessCode: (string) Optional. Barcode, when applicable.

        • AccessDateTime: (date) Required. Access date. ISO 8601 format (yyyy-MM-dd).

        • Quantity: (int) Required. Product quantity.

        • ProductName: (string). Product name.

        • ProviderId: (string). Provider identifier.

        • ProviderName: (string). Provider name.

        • Price: (decimal). Sale price of the product.

        • PriceWithoutVat: (decimal). Sale price of the product without taxes.

        • PriceMode: (int). Price type:

        • Status: (int). Activity status.

        • Discount: (decimal). Total discount applied to the product. It only appears if any discount coupon has been applied.

        • DiscountCoupons: (list). Discount coupons applied to the product. It only appears when any discount coupon has been applied.

          • DiscountCouponId: (string). Discount coupon identifier.
          • Name: (string). Discount coupon name.
          • Description: (string). Discount coupon description.
          • Discount: (decimal). Discount generated on the product.
          • Code: (string). Code used to apply the discount coupon.
        • 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.

        • Tickets: (object) Optional. List containing ticket information.

          • TicketId: (string) Required. Ticket identifier.

          • SessionId: (string) Optional. Session identifier.

          • SessionTime: (date) Optional. Session time.

          • AccessDateTime: (date) Required. Builds the suggested message to be shown regarding the access date in the access document according to AccessDateCriteria, AccessDateCriteriaOpenDateSalesDocument, AccessDateTime, and AccessEndDateTime.

          • AccessEndDateTime: (date) Required. If present, indicates the end date of ticket access validity. ISO 8601 format (yyyy-MM-dd).

          • SuggestedAccessDateMessage: (string). Suggested access date message.

          • AccessCode: (string) Optional. Barcode, when applicable.

          • TicketEnclosureId: (string). Ticket enclosure identifier.

          • TicketEnclosureName: (string). Ticket enclosure name.

          • Questions: (object) Optional. Ticket question information.

            • TicketQuestionId: (string) Required. Question identifier.
            • Question: (string). Question.
            • StringValue: (string). Example answer of type string.
        • CancellationConditions: (object). Indicates the cancellation policies that apply when cancelling the sale of this product.

          • IsRefundable: (boolean). Indicates whether the customer can cancel free of charge at any point.
          • Rules: (list). Rules applied when cancelling.
            • Percentage: (decimal). Penalty percentage on the ticket price.
            • Amount: (decimal). Total cancellation amount.
            • FromInclusiveDateTime: (date). Date from which the penalty applies, inclusive. ISO 8601 format (yyyy-MM-dd).
            • ToExclusiveDateTime: (date). Date until which the penalty applies, exclusive. ISO 8601 format (yyyy-MM-dd).
            • HoursInAdvanceOfAccess: (int). Number of hours in advance with respect to the access date from which the penalty amount indicated in Amount will be applied.
    • Accommodations: (list). List of accommodations included in the sale.

      • 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.
    • CombinedProducts: (list). List of combined products from the activities included in the sale.

      • CombinedProductId: (string). Combined product identifier.
      • CombinedProductDiscriminator: (string). Relationship between the product (array of Products) and the combined product.
      • Price: (decimal). Price of each combined product.
      • PriceWithoutVat: (decimal). Price of each combined product without taxes.
      • CancellationConditions: (object). Indicates the cancellation policies that apply when cancelling the sale of this product.
        • IsRefundable: (boolean). Indicates whether the customer can cancel free of charge at any point.
        • Rules: (list). Rules applied when cancelling.
          • Percentage: (decimal). Penalty percentage on the ticket price.
          • Amount: (decimal). Total cancellation amount.
          • FromInclusiveDateTime: (date). Date from which the penalty applies, inclusive. ISO 8601 format (yyyy-MM-dd).
          • ToExclusiveDateTime: (date). Date until which the penalty applies, exclusive. ISO 8601 format (yyyy-MM-dd).
          • HoursInAdvanceOfAccess: (int). Number of hours in advance with respect to the access date from which the penalty amount indicated in Amount will be applied.
    • Client: (object). Sale customer data.

      • Client: (object). Client information.
        • Id: (string). Client identifier.
        • CreatedDate: (dateTime). Date when the client was created.
        • BirthDate: (dateTime). Birth date.
        • FullName: (string). Name.
        • Surname: (string). First surname.
        • Surname2: (string). Second surname.
        • Email: (string). Email.
        • PhoneNumber: (string). Phone number.
        • DocumentIdentifier: (string). Identification document (ID card, passport, etc.).
        • CountryCode: (string). Country code.
        • LanguageCode: (string). Language code.
        • Gender: (byte). Gender (optional).
        • Province: (string). Province.
        • City: (string). City.
        • ZipCode: (string). Postal code.
    • TotalPrice: (decimal). Total sale price.

    • TotalPriceWithoutVat: (decimal). Total sale price without taxes.

    • TotalDiscount: (decimal). Total discount applied to the sale. It only appears if a discount coupon has been applied.

    • InsurancePolicyAmount: (decimal). Total refund insurance price.

    • InsurancePolicyAmountWithoutTaxes: (decimal). Total refund insurance price without taxes.

  • PageNumber: (int). Indicates the requested page.

  • HasPreviousPage: (boolean). Indicates whether there is a previous page.

  • HasNextPage: (boolean). Indicates whether there is a next page.

  • IsFirstPage: (boolean). Indicates whether the requested page is the first page.

  • 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.