{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gojinko-com/json-schema/gojinko-com-post-v1-hotel-cancel-request-schema.json",
  "title": "PostV1HotelCancelRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/gojinko-com-openapi-generated.yml#/components/schemas/PostV1HotelCancelRequest",
  "type": "object",
  "properties": {
    "booking_ref": {
      "type": "string",
      "description": "Jinko booking reference. Call get_booking first, then select its booked_item_id for servicing."
    },
    "booked_item_id": {
      "type": "string",
      "description": "The booked item, from get_booking items[].booked_item_id. Preserved across exchanges. Omit only when the booking has exactly one item of the requested domain; otherwise a 409 returns items to choose from."
    },
    "last_name": {
      "type": "string",
      "description": "Required for guest lookup. A credential that owns the booking may omit it; ownership is checked by the platform."
    },
    "provider_booking_id": {
      "type": "string",
      "description": "Deprecated: name the booking with booking_ref and booked_item_id from get_booking. Names the booking instead of booking_ref and last_name, never beside it, and needs a credential that owns the booking. Accepted until 2027-04-30; a request that sends it is answered with `Deprecation` and `Sunset` headers."
    },
    "provider": {
      "type": "string",
      "description": "Deprecated: omit it. The platform uses the supplier recorded with the booking. Accepted until 2027-04-30; a request that sends it is answered with `Deprecation` and `Sunset` headers."
    },
    "intent": {
      "type": "object",
      "description": "IntentInput object."
    }
  }
}