Skip to content

Available capacity

As we have seen in the point obtain catalog, Products have the property DaysWithLimitedCapacity, as well as through the call to get sessions we see that Sessions can have AvailableCapacity defined.

Available capacity refers to quota type tickets (IsQuotaTicket == true). Therefore, the capacity of a product is the number of quota type tickets that can be sold for that product.

POST /availablecapacity

  • ProductIds: (list). Array of product identifiers to filter by.

    • (string): Product identifier.
  • SessionIds: (list). Array of session identifiers to filter by.

    • (string): Session identifier.
  • Dates: (list). Array of dates to filter by. ISO 8601 format (yyyy-MM-dd).

    • (date): Date to filter by.
  • FromDate: (date). If you want to filter by a date range, you can filter by start date. Does not allow values prior to today. Its default value is today. ISO 8601 format (yyyy-MM-dd).

  • ToDate: (date). If you want to filter by a date range, you can filter by end date. Its default value is the date corresponding to one year from now. ISO 8601 format (yyyy-MM-dd).

  • IncludePrices: (boolean). When sent as true, every product in the response also carries its amount (Price, PriceMode and AdministrationFee). Defaults to false.

{
"ProductIds": [
"dj48vjsyufvyu",
"jnvfnvjkivnnf"
]
}
  • Products: (list). Array containing the requested products. Corresponds to each limited-access day of each product.
    • ProductId: (string). Product identifier.
    • Date: (date). Access date. ISO 8601 format (yyyy-MM-dd).
    • AvailableCapacity: (int). Capacity available for sale.
    • Price: (decimal). Amount for the product on that date. Only included when IncludePrices was sent as true.
    • PriceMode: (byte). Which amount is being returned, only with IncludePrices:
      • 1: retail price
      • 2: net price
    • AdministrationFee: (decimal). Administration fee. Only included when IncludePrices was sent as true.
  • Sessions: (list). Array containing the requested sessions. Corresponds to each limited-access day of each session.
    • SessionId: (string). Session identifier.
    • Date: (date). Access date. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).
    • AvailableCapacity: (int). Capacity available for sale.
  • Success (boolean): value that indicates whether the call was processed correctly or not.
  • Timestamp (dateTime): time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).
  • ErrorMessage (string): error message explaining why the request was not successful. If it was correct, it will return null.
  • ErrorCodes (string[]): list of codes that identify the errors that occurred in the call.
  • 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.
{
"Products":
[
{
"ProductId": "dj48vjsyufvyu",
"Date": "2022-07-20",
"AvailableCapacity": 0
},
{
"ProductId": "jnvfnvjkivnnf",
"Date": "2022-07-22",
"AvailableCapacity": 63
}
],
"Sessions":
[
{
"SessionId": "usdhdsa124asd",
"Date": "2022-07-20T18:30:00.0000000",
"AvailableCapacity": 2
},
{
"SessionId": "iujnvi83nd347",
"Date": "2022-07-20T20:00:00.0000000",
"AvailableCapacity": 20
}
],
"Success": true,
"Timestamp": "2022-02-18T17:02:27.8165916"
}