Skip to content

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.

POST /Sale/GetSales

Every field is optional. With no filters at all, the first page of sales is returned.

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

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.
  • ClientName, ClientEmail, ClientPhone: (string). Filter by that customer detail.
  • ClientDocumentIdentifier: (string). Customer identification document.
  • ClientQuery: (string). Free-text search across the customer details.
  • PointOfSaleId: (string). ExpertHub point of sale.
  • PointOfSaleCustomCode / PointOfSaleCustomCodes: (string / array). Your own point of sale code, one or several.
  • ConnectorInstanceIds: (array of string). Connector instances.
  • ProviderIds: (array of string). Providers.
  • TransactionStatuses: (array of byte). Transaction statuses.
  • CollectionStatuses: (array of byte). Collection statuses.
  • CancellationViewMode: (byte). How cancelled sales are treated in the result.
  • 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.
  • PaymentReturnUrlOk / PaymentReturnUrlKo: (string). Where to redirect the customer after a successful or failed payment. Used together with PaymentId so the response includes the payment gateway link.
{
"FromTransactionDateTime": "2026-01-01",
"ToTransactionDateTime": "2026-08-15",
"Page": 1,
"PageSize": 100
}
  • 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: (array of string). Point of sale codes.
    • ConnectorInstanceIds: (array of string). 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 with ErrorMessage and ErrorCode.

{
"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
}