> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dev.gojinko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# jinko get-booking

> Retrieve a booking using the Jinko booking reference and the traveler's last name

Anonymous retrieval for a booking the user already made. Use it when the traveler has their Jinko booking reference and last name, for example to look up the itinerary days later without signing in. Returns the full booking envelope: status, travelers, and itinerary items with confirmation numbers (PNR for flights, confirmation number for hotels).

## Usage

```bash theme={null}
jinko get-booking [options]
```

## Options

| Flag                  | Required | Description                                                     | Default |
| --------------------- | -------- | --------------------------------------------------------------- | ------- |
| `--booking-ref <ref>` | Yes      | Jinko booking reference (e.g. JNK-A7B3X9). JSON: `booking_ref`. |         |
| `--last-name <name>`  | Yes      | Last name of the primary traveler. JSON: `last_name`.           |         |
| `--ref <ref>`         | No       | DEPRECATED: use --booking-ref.                                  |         |

## Examples

```bash theme={null}
jinko get-booking --booking-ref JNK-ABC123 --last-name Doe
```

No auth needed, this is the guest endpoint. Returns the booking envelope or a generic 404 (existence non-leak).
