> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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

<Note>
  **Prices in this command's output are integers in minor units.** Money objects
  carry `decimal_places` — divide by `10 ** decimal_places` to display
  (`{ "value": 15977, "decimal_places": 2 }` is **159.77**, not 15,977). See
  [Money & prices](/concepts/money).
</Note>

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`.                                                                    |         |
| `--user-intent <text>`       | No                      | the end user's request in their own words, forwarded to Jinko for observability and relevance (avoid PII). Env fallback: JINKO\_USER\_INTENT. JSON: `intent.user_intent`. |         |
