> ## 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 hotel-cancel

> Cancel a hotel booking and get a refund when eligible

Cancel a hotel booking when the traveler can no longer make the stay or wants to drop a hotel from a multi-item trip. The call is idempotent: retrying the same cancellation re-serves the stored result rather than charging or refunding twice. Works with guest auth (booking ref + last name) or the authenticated shortcut (provider booking ID).

## Usage

```bash theme={null}
jinko hotel-cancel [options]
```

## Options

| Flag                         | Required                 | Description                                                                                                                     | Default |
| ---------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | ------- |
| `--booking-ref <ref>`        | Yes — guest mode         | Jinko booking reference (e.g. JNK-A7B3X9). Guest path — pair with --last-name. JSON: `booking_ref`.                             |         |
| `--last-name <name>`         | Yes — guest mode         | Last name of the lead guest. Guest path — pair with --booking-ref. JSON: `last_name`.                                           |         |
| `--provider-booking-id <id>` | Yes — authenticated mode | Provider booking ID (authenticated shortcut). Mutually exclusive with --booking-ref + --last-name. JSON: `provider_booking_id`. |         |
| `--provider <code>`          | No                       | Provider code (e.g. "nuitee"). Optional, only meaningful with --provider-booking-id. JSON: `provider`.                          |         |
| `--ref <ref>`                | No                       | DEPRECATED: use --booking-ref.                                                                                                  |         |
