Availability
Check item availability
Checks the availability of a batch of items (1-100) over a common date range, each with the quantity you intend to book (1 by default).
availability:readavailability:read- 120/min + 30/min availability
- Server annotation: Read-only
- Server annotation: Idempotent
Result
generated from the schema
Idempotent query (POST because of the structured body). Shares the availability quota of 30 req/min. One entry per requested item, in request order: its availability (available, shortfall, conflictingPeriods for that quantity, and commitments: the orders that hold units of it in the window, with their number, peak quantity and dates) or a per-item error when the item does not exist in the account.
Arguments
Batch of items to check (between 1 and 100).
Limits: min 1 items, max 100 items
Show child attributesHide child attributes
Identifier of the item to check. Required.
Limits: min length 1, max length 100
Identifier of the specific variant to check; omit for the base item.
Limits: min length 1, max length 100
Type of transaction to check: rental or sale. Defaults to rental.
Available options: rental, sale
Units you intend to book. Drives available, shortfall, status and conflictingPeriods. Defaults to 1.
Limits: min 1, max 100000
Start of the range to check (ISO 8601 with offset), shared by the whole batch.
End of the range to check (ISO 8601 with offset), shared by the whole batch; must be later than startDate.
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
Sample prompts
Are two units of this lens free from 15 to 17 January?
The same operation by REST
This tool runs POST /api/v1/availability/check.
Related pages
Link to this section: Related pagesAvailability
Check item availability
Checks the availability of a batch of items (1-100) over a common date range, each with the quantity you intend to book (1 by default).
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?