Search sales
This method searches for sales using filters: by identifier, by date ranges, by customer details, by point of sale or by status. Results come back paginated.
Access method
Section titled “Access method”POST /Sale/GetSales
Request data structure
Section titled “Request data structure”Every field is optional. With no filters at all, the first page of sales is returned.
Identifiers
Section titled “Identifiers”PartnerSaleId: (string). Identifier of the sale in your system.SaleIdOrTransactionId: (string). Sale or transaction identifier.ReservationId: (string). Reservation identifier.AccessCode: (string). Access code of a ticket.PaymentId: (string). Payment identifier.
Date ranges
Section titled “Date ranges”All in ISO 8601 format. The From bound is inclusive and the To bound exclusive.
FromTransactionDateTime/ToTransactionDateTime: when the sale was created.FromAccessDateTime/ToAccessDateTime: the access date of the tickets.FromCancelledDateTime/ToCancelledDateTime: cancellation date.
Customer details
Section titled “Customer details”ClientName,ClientEmail,ClientPhone: (string). Filter by that customer detail.ClientDocumentIdentifier: (string). Customer identification document.ClientQuery: (string). Free-text search across the customer details.
Point of sale and connectors
Section titled “Point of sale and connectors”PointOfSaleId: (string). ExpertHub point of sale.PointOfSaleCustomCode/PointOfSaleCustomCodes: (string/array). Your own point of sale code, one or several.ConnectorInstanceIds: (arrayofstring). Connector instances.ProviderIds: (arrayofstring). Providers.
Status
Section titled “Status”TransactionStatuses: (arrayofbyte). Transaction statuses.CollectionStatuses: (arrayofbyte). Collection statuses.CancellationViewMode: (byte). How cancelled sales are treated in the result.
Pagination and presentation
Section titled “Pagination and presentation”Page: (integer). The page requested, starting at 1.PageSize: (integer). Number of sales per page.LanguageCode: (string). Language for the texts in the response.IncludeConnectorInstanceInResponse: (boolean). Includes the connector instance information in each sale.
Payment
Section titled “Payment”PaymentReturnUrlOk/PaymentReturnUrlKo: (string). Where to redirect the customer after a successful or failed payment. Used together withPaymentIdso the response includes the payment gateway link.
Request example
Section titled “Request example”{ "FromTransactionDateTime": "2026-01-01", "ToTransactionDateTime": "2026-08-15", "Page": 1, "PageSize": 100}Response data structure
Section titled “Response data structure”-
Sales: (array). The sales found.SaleId: (string). Identifier of the sale in ExpertHub.PartnerSaleId: (string). Identifier of the sale in your system.TotalPrice: (decimal). Total amount.TotalPriceWithoutVat: (decimal). Total amount excluding VAT.TotalDiscount: (decimal). Discount applied.Client: (object). Customer details for the sale.Activities: (array). Activities sold.Accommodations: (array). Accommodations sold.Packages: (array). Packages sold.CombinedProducts: (array). Combined products sold.EconomicMovementAmount: (decimal). Amount of the economic movement.EconomicMovementAmountWithoutTax: (decimal). The same amount excluding taxes.InsurancePolicyAmount: (decimal). Insurance policy amount.InsurancePolicyAmountWithoutTaxes: (decimal). The same amount excluding taxes.MinutesToExpiry: (integer). Minutes left before the sale expires, while it is not yet confirmed.Payment: (object). Payment details, including the gateway link when the return URLs were supplied.PointOfSaleCustomCodes: (arrayofstring). Point of sale codes.ConnectorInstanceIds: (arrayofstring). Connector instances involved.
-
PageNumber: (integer). The page returned. -
IsFirstPage: (boolean). Whether this is the first page. -
HasNextPage/HasPreviousPage: (boolean). Whether there are more pages ahead or behind. -
Success: (boolean). Whether the request was processed successfully. -
Errors: (array). Errors, each withErrorMessageandErrorCode.
Response example
Section titled “Response example”{ "Sales": [ { "SaleId": "SALE_ID", "PartnerSaleId": "MY_IDENTIFIER", "TotalPrice": 60.50, "TotalPriceWithoutVat": 50.00, "TotalDiscount": 0.00, "Client": { "Name": "Name", "Surname": "Surname" }, "Activities": [], "PointOfSaleCustomCodes": ["MY_POINT_OF_SALE"] } ], "PageNumber": 1, "IsFirstPage": true, "HasNextPage": true, "HasPreviousPage": false, "Success": true}