- Request / response schemas, parameters, field types, examples
- A curl sample + try-it playground — fill in values and run a request
Base URL
| Environment | Base URL |
|---|---|
| Production | https://api.gojinko.com |
| Sandbox | https://api.sandbox.gojinko.com |
Authentication
Authenticate every/v1 request with your API key:
Authorization: Bearer jnk_your_key
Get a key from the dashboard. See API keys for detail.
Observability
We strongly recommend setting these on every request, they make debugging possible when something goes wrong:X-Request-ID of the failing call.
Response envelope
Success: endpoint-specific JSON payload. Error: consistent envelope, same across all endpoints.Typical request
Endpoint groups
Flights, discovery
Cache-backed search by route or destination (
flight_calendar, find_dates, lowest_fare, find_destination, price_monitoring). Fast; stale-within-minutes prices.Flights, live pricing
Live search + price-check via
flight_search. Returns bookable trip_item_token.Hotels
Live hotel search.
htl_* tokens plug into the same trip as flights.Trip
Create a trip, add/remove items, upsert travelers, select ancillaries, then book.
Bookings
Guest lookup by
booking_ref + last_name.Refund
Check eligibility → commit → poll status.
Exchange
Shop → price → commit → status (4-step flow).
