2 · Destinations
List destinations for an origin.
What: the destination airports reachable from a given origin.
When: after the traveller picks a “from”, to populate the “to” field.
How: POST with a JSON body { origin, tripType? }. No query params.
Trip kind: as on /origins — leave tripType out to list destinations served by one-way flights AND those served only by round-trip packages; send a kind to list only that kind.
After: POST /availability (which dates have flights) or POST /search.
Each airport carries inventoryCategories, and sources works the same way (see /origins).
Response: { origin, destinations[] } — the origin is echoed ONCE (it is the request body input), with the reachable airports listed under destinations. origin is null only when the requested origin is not in the airport master.
Supplier health: meta.suppliers[] has one entry per supplier Kitionz considered, for each trip kind it was asked about: { sourceCode, tripType, status, tookMs }. With no tripType in the request, a supplier that sells round trips has two entries (ONE_WAY and ROUND_TRIP). status = ok, not_asked, or a classified error code. not_asked (with reason = ORIGIN_NOT_LISTED or DEST_NOT_LISTED) means the supplier was not called because its own saved list for the previous step did not contain the airport — an answer, not a fault; treat only error codes as failures, and treat an unrecognised status as opaque. If a supplier fails (or is backing off after rate-limiting Kitionz) and Kitionz holds a recent good answer from it, that answer is still included and its entry carries stale: true + staleAgeMs (route lists up to 24 h old, date lists up to 2 h old with past dates removed). Route lists are cached for up to 2 h and date lists for up to 15 min: a list is served from the cache inside its window and fetched again on the first request after it.
Authentication
Your Kitionz API key, sent as Authorization: Bearer keyId:secret. Create it in your Kitionz console under API → API keys.
Request
ONE_WAY or ROUND_TRIP lists only that kind of trip. Leave it out to list every kind: one-way flights and round-trip packages together (as /search does).
Optional. Leave it out to use every supplier your account has switched on. Send a list of sourceCodes only to narrow this call to some of them; a code you cannot use is refused (403), and blank entries are ignored.
Response
A canonical origin→destination sector.