Preview the cancellation fee, cancel a car rental, or re-read the latest attempt
Cancel a car rental booked through Jinko and tell the customer what it costs before anything happens. The fee in force is quoted first and the quote is persisted, so the cancellation that follows is bound to the terms the customer actually saw; the refund is the amount paid less that fee, issued on Jinko’s side. Guest auth, booking_ref + booked_item_id (plus last_name for guests) from the confirmation email. Changing a rental (dates, vehicle, extras) is not available; the only path to a different rental is to cancel and book again.
Tool description (what the LLM sees)
get_booking with booking_ref (and last_name for guests) returns items[] with servicing eligibility and refusal reasons for item selection. The same booking_ref + booked_item_id identifies the selected item on every action, including commit and status. booked_item_id is the stable booked item, even after an exchange. last_name is required for guests and optional for authenticated owners. A 409 with items[] means customer selection is needed; a retry identifies that choice with booked_item_id.Cancel a car rental booking and refund the customer's payment less the cancellation fee. Guest mode requires the Jinko booking reference and the driver's last_name; authenticated owners may omit last_name. Use this when the customer wants to CANCEL. If they want to change dates, change the vehicle, upgrade, or amend the rental, say plainly that modifications are not available: the options are keeping the booking as is, or cancelling it (this tool, fee shown first) and booking a new rental with car_search.PREREQUISITES:- booking_ref (JNK-XXXXXX), from the booking confirmation email. Guests must also provide the driver's last_name; authenticated owners may omit it.WORKFLOW:1. action="preview" with booking_ref + booked_item_id (plus last_name for guests) → quotes the fee in force and the refund it would leave, and returns a quote_id. NOTHING is cancelled. Where the quote carries an expires_at it is committable until then; preview again after it.2. Show the customer the fee and the refund and get explicit confirmation.3. action="commit" with booking_ref + booked_item_id (plus last_name for guests) + quote_id → cancels at the supplier and refunds. Safe to repeat: a committed cancellation is reported as it stands rather than cancelled twice, and the customer's email is never re-sent.4. action="status" with booking_ref + booked_item_id (plus last_name for guests) → re-reads the latest attempt at any time. Read-only; polling it can never start a cancellation.WHEN A PERSON HAS TO COMPLETE IT (manual_required):- A preview with cancellable: false AND manual_required: true cannot be completed online, the fee could not be established, the rental was changed after it was paid for, or the fee is in another currency or above the rental; refund_review_reason says which. No refund figure is given and none may be quoted.- It is not a dead end: if the customer explicitly agrees to hand the cancellation to a Jinko agent, call action="commit" with the same quote_id and manual_ok: true. The cancellation is then recorded for the agent (state "pending", refund_pending_review true); nothing is sent to the rental company by that call, and the agent completes it and settles the refund by hand.- A commit of such a preview WITHOUT manual_ok is refused as manual_required, the tool's answer then tells you exactly that. Never send manual_ok pre-emptively, and never without the customer's agreement: it is their consent, not a retry flag.READING THE MONEY, this is the part that goes wrong:- fee_known: false means the supplier published NO fee schedule we could resolve. The fee and refund fields are then ABSENT, not zero. Say "we will confirm the cancellation fee". NEVER present that as free cancellation.- refund_pending_review: true means the booking IS cancelled (or, with state "pending", recorded for a Jinko agent) but a human still owes the customer the refund answer, do not quote refund_amount as final.- Amounts are {value, currency, decimal_places} in MINOR units: divide by 10^decimal_places to display.IMPORTANT:- Always preview before committing, the quote_id from preview is REQUIRED for commit, and it is what binds the charge to the quoted fee.- Always get explicit customer confirmation before calling commit. This ends the rental.- state is preview | pending | confirmed | rejected | failed. "pending" means recorded but not finished, the platform is still completing it, or a person has it, so follow it with status and do not commit again. "rejected" means the supplier declined and the booking still stands, surface rejected_reason; it is an outcome, not an error.- A commit can be REFUSED without anything happening, and the answer says why and what to do: the quote expired (preview again), the refund moved since the preview (a fresh quote_id is given, show the new figure, then commit that one), an exchange or another cancellation is in flight (wait for it), the rental is no longer cancellable, or the refund cannot be covered yet. None of these means the booking reference or last name is wrong.- A wrong booking_ref / last_name pair answers "not found" and never reveals which half was wrong. Re-check both with the customer.- A booking with no cancellation on record answers "no attempt" on status, run preview first.
Parameters
Name
Type
Required
Description
action
enum ("preview" | "commit" | "status")
Yes
Action to perform: “preview” to quote the cancellation fee and the refund it would leave (nothing is cancelled) and obtain a quote_id, “commit” to cancel at the supplier and refund, “status” to read the latest attempt.
booking_ref
string
Yes
Trip-level Jinko booking_ref returned by get_trip or submit_agent_payment. Use it to look up the booking with get_booking.
booked_item_id
string | null
No
The booked item to service: booked_item_id from get_booking.items[] (an “itm_…” string). Send it on every action. May be omitted only when the booking has exactly one item in this domain.
last_name
string | null
No
Primary traveler last name. Required for guests; optional for an authenticated owner of the booking.
quote_id
string
No
The “ccl_…” reference a prior action: "preview" returned. REQUIRED for action: "commit". It binds the cancellation to the fee the customer was quoted; one belonging to another booking is refused as not-found.
reason
string
No
Optional free-text cancellation reason. Carried into the cancellation email the customer receives. Accepted on action: "commit" only.
manual_ok
boolean
No
Accepted on action: "commit" only. Send true ONLY when the preview answered manual_required: true (or the commit was refused with manual_required) AND the customer has explicitly agreed to hand the cancellation to a Jinko agent. The cancellation is then recorded for a person to complete, nothing is sent to the rental company by that call, the answer is state “pending” with refund_pending_review true, and the agent settles the refund by hand. Never send it pre-emptively: on a preview that can be committed online it changes nothing, and on a manual one it is a consent the customer must actually have given.
user_intent
string
No
The end user’s current request in their own words, e.g. “help me with my travel plans”. Pass it as-is when short; otherwise condense the goal and constraints into 1-2 sentences. Strip personal identifiers (names, emails, phone numbers, addresses, payment details), replace them with placeholders like “[name]”. Optional. Jinko uses it to understand demand, and hotel_search uses it to rank hotel results against what the user asked for (e.g. “quiet, with a gym, near Times Square”), so keep the user’s stated preferences in it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Jinko Platform","description":"Connect your AI agent to flights, hotels, car rentals, and bookings through MCP, REST API, TypeScript SDK, or CLI.","colors":{"primary":"#FF6363","light":"#FF807C","dark":"#BA4B4A"},"logo":{"light":"https://mintcdn.com/jinko/tLgBpae546SdRBMu/logo/jinko-logo.png?fit=max\u0026auto=format\u0026n=tLgBpae546SdRBMu\u0026q=85\u0026s=8cf307169eba8c087816a44a41447566","dark":"https://mintcdn.com/jinko/tLgBpae546SdRBMu/logo/jinko-logo.png?fit=max\u0026auto=format\u0026n=tLgBpae546SdRBMu\u0026q=85\u0026s=8cf307169eba8c087816a44a41447566"},"favicon":"https://mintcdn.com/jinko/tLgBpae546SdRBMu/favicon.png?fit=max\u0026auto=format\u0026n=tLgBpae546SdRBMu\u0026q=85\u0026s=9feee2aba3d7cc147bcacb6d4d2ccdb7","navbar":{"links":[{"href":"https://dashboard.gojinko.com","label":"Dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://dashboard.gojinko.com/developers/keys"}},"footer":{"socials":{"website":"https://gojinko.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"jinko","hasAudioNarration":false,"actualSubdomain":"jinko","customDomains":["docs.gojinko.com"],"gitSource":{"type":"github","owner":"jinkoso","repo":"jinko-dev-platform","deployBranch":"docs-prod","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0032b9baa97067db10a4c2","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API reference","count":62},{"language":"default","tag":"CLI","count":47},{"language":"default","tag":"Documentation","count":41},{"language":"default","tag":"Flights","count":40},{"language":"default","tag":"MCP","count":22},{"language":"default","tag":"Manage","count":20},{"language":"default","tag":"Trip \u0026 Payment","count":19},{"language":"default","tag":"Discovery","count":17},{"language":"default","tag":"Hotels","count":16},{"language":"default","tag":"Travel Demand","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"tools/car-cancel","slug":"/tools/car-cancel","pageMetadata":{"title":"Cancel Car Rental Booking","description":"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt","href":"/tools/car-cancel"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Cancel a car rental booked through Jinko and tell the customer what it costs before anything happens. The fee in force is quoted first and the quote is persisted, so the cancellation that follows is bound to the terms the customer actually saw; the refund is the amount paid less that fee, issued on Jinko’s side. Guest auth, booking_ref + booked_item_id (plus last_name for guests) from the confirmation email. Changing a rental (dates, vehicle, extras) is not available; the only path to a different rental is to cancel and book again.`}),`\n`,_jsx(Accordion,{title:`Tool description (what the LLM sees)`,defaultOpen:false,id:`tool-description-what-the-llm-sees`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`31`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`31`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`get_booking with booking_ref (and last_name for guests) returns items[] with servicing eligibility and refusal reasons for item selection. The same booking_ref + booked_item_id identifies the selected item on every action, including commit and status. booked_item_id is the stable booked item, even after an exchange. last_name is required for guests and optional for authenticated owners. A 409 with items[] means customer selection is needed; a retry identifies that choice with booked_item_id.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Cancel a car rental booking and refund the customer's payment less the cancellation fee. Guest mode requires the Jinko booking reference and the driver's last_name; authenticated owners may omit last_name. Use this when the customer wants to CANCEL. If they want to change dates, change the vehicle, upgrade, or amend the rental, say plainly that modifications are not available: the options are keeping the booking as is, or cancelling it (this tool, fee shown first) and booking a new rental with car_search.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PREREQUISITES:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- booking_ref (JNK-XXXXXX), from the booking confirmation email. Guests must also provide the driver's last_name; authenticated owners may omit it.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WORKFLOW:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. action=\"preview\" with booking_ref + booked_item_id (plus last_name for guests) → quotes the fee in force and the refund it would leave, and returns a quote_id. NOTHING is cancelled. Where the quote carries an expires_at it is committable until then; preview again after it.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Show the customer the fee and the refund and get explicit confirmation.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. action=\"commit\" with booking_ref + booked_item_id (plus last_name for guests) + quote_id → cancels at the supplier and refunds. Safe to repeat: a committed cancellation is reported as it stands rather than cancelled twice, and the customer's email is never re-sent.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. action=\"status\" with booking_ref + booked_item_id (plus last_name for guests) → re-reads the latest attempt at any time. Read-only; polling it can never start a cancellation.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`WHEN A PERSON HAS TO COMPLETE IT (manual_required):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- A preview with cancellable: false AND manual_required: true cannot be completed online, the fee could not be established, the rental was changed after it was paid for, or the fee is in another currency or above the rental; refund_review_reason says which. No refund figure is given and none may be quoted.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- It is not a dead end: if the customer explicitly agrees to hand the cancellation to a Jinko agent, call action=\"commit\" with the same quote_id and manual_ok: true. The cancellation is then recorded for the agent (state \"pending\", refund_pending_review true); nothing is sent to the rental company by that call, and the agent completes it and settles the refund by hand.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- A commit of such a preview WITHOUT manual_ok is refused as manual_required, the tool's answer then tells you exactly that. Never send manual_ok pre-emptively, and never without the customer's agreement: it is their consent, not a retry flag.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`READING THE MONEY, this is the part that goes wrong:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- fee_known: false means the supplier published NO fee schedule we could resolve. The fee and refund fields are then ABSENT, not zero. Say \"we will confirm the cancellation fee\". NEVER present that as free cancellation.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- refund_pending_review: true means the booking IS cancelled (or, with state \"pending\", recorded for a Jinko agent) but a human still owes the customer the refund answer, do not quote refund_amount as final.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Amounts are {value, currency, decimal_places} in MINOR units: divide by 10^decimal_places to display.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`IMPORTANT:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Always preview before committing, the quote_id from preview is REQUIRED for commit, and it is what binds the charge to the quoted fee.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Always get explicit customer confirmation before calling commit. This ends the rental.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- state is preview | pending | confirmed | rejected | failed. \"pending\" means recorded but not finished, the platform is still completing it, or a person has it, so follow it with status and do not commit again. \"rejected\" means the supplier declined and the booking still stands, surface rejected_reason; it is an outcome, not an error.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- A commit can be REFUSED without anything happening, and the answer says why and what to do: the quote expired (preview again), the refund moved since the preview (a fresh quote_id is given, show the new figure, then commit that one), an exchange or another cancellation is in flight (wait for it), the rental is no longer cancellable, or the refund cannot be covered yet. None of these means the booking reference or last name is wrong.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- A wrong booking_ref / last_name pair answers \"not found\" and never reveals which half was wrong. Re-check both with the customer.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- A booking with no cancellation on record answers \"no attempt\" on status, run preview first.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`enum (\"preview\" | \"commit\" | \"status\")`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Action to perform: “preview” to quote the cancellation fee and the refund it would leave (nothing is cancelled) and obtain a quote_id, “commit” to cancel at the supplier and refund, “status” to read the latest attempt.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`booking_ref`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Trip-level Jinko booking_ref returned by get_trip or submit_agent_payment. Use it to look up the booking with get_booking.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`booked_item_id`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string | null`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The booked item to service: booked_item_id from get_booking.items[] (an “itm_…” string). Send it on every action. May be omitted only when the booking has exactly one item in this domain.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string | null`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Primary traveler last name. Required for guests; optional for an authenticated owner of the booking.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quote_id`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`The “ccl_…” reference a prior `,_jsx(_components.code,{children:`action: \"preview\"`}),` returned. REQUIRED for `,_jsx(_components.code,{children:`action: \"commit\"`}),`. It binds the cancellation to the fee the customer was quoted; one belonging to another booking is refused as not-found.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Optional free-text cancellation reason. Carried into the cancellation email the customer receives. Accepted on `,_jsx(_components.code,{children:`action: \"commit\"`}),` only.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`manual_ok`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`boolean`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Accepted on `,_jsx(_components.code,{children:`action: \"commit\"`}),` only. Send `,_jsx(_components.code,{children:`true`}),` ONLY when the preview answered `,_jsx(_components.code,{children:`manual_required: true`}),` (or the commit was refused with `,_jsx(_components.code,{children:`manual_required`}),`) AND the customer has explicitly agreed to hand the cancellation to a Jinko agent. The cancellation is then recorded for a person to complete, nothing is sent to the rental company by that call, the answer is state “pending” with refund_pending_review true, and the agent settles the refund by hand. Never send it pre-emptively: on a preview that can be committed online it changes nothing, and on a manual one it is a consent the customer must actually have given.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user_intent`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The end user’s current request in their own words, e.g. “help me with my travel plans”. Pass it as-is when short; otherwise condense the goal and constraints into 1-2 sentences. Strip personal identifiers (names, emails, phone numbers, addresses, payment details), replace them with placeholders like “[name]”. Optional. Jinko uses it to understand demand, and hotel_search uses it to rank hotel results against what the user asked for (e.g. “quiet, with a gym, near Times Square”), so keep the user’s stated preferences in it.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel Car Rental Booking","description":"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt","href":"/tools/car-cancel"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Parameters","slug":"parameters","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"jinko","siteName":"Jinko Platform","title":"Cancel Car Rental Booking - Jinko Platform","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T07:28:05.625Z","originalFileLocation":"tools/car-cancel.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt\">\u003cmeta data-mint-head name=\"application-name\" content=\"Jinko Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel Car Rental Booking - Jinko Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Jinko Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gojinko.com/tools/car-cancel\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://jinko.mintlify.site/_mintlify/api/og/v2?division=Cars\u0026amp;title=Cancel+Car+Rental+Booking\u0026amp;description=Preview+the+cancellation+fee%2C+cancel+a+car+rental%2C+or+re-read+the+latest+attempt\u0026amp;theme=b5a3a3aec565a35b202527ea\u0026amp;signature=92777bb27dff9d2203f1bc03d79214fa9841ea2d36bb1de024929d42c3d493cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cancel Car Rental Booking - Jinko Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://jinko.mintlify.site/_mintlify/api/og/v2?division=Cars\u0026amp;title=Cancel+Car+Rental+Booking\u0026amp;description=Preview+the+cancellation+fee%2C+cancel+a+car+rental%2C+or+re-read+the+latest+attempt\u0026amp;theme=b5a3a3aec565a35b202527ea\u0026amp;signature=92777bb27dff9d2203f1bc03d79214fa9841ea2d36bb1de024929d42c3d493cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/jinko/ayPHPyX_IPSgwuY0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Jinko Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF6363\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gojinko.com/tools/car-cancel\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tools/car-cancel.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gojinko.com/#organization\",\"name\":\"Jinko Platform\",\"url\":\"https://docs.gojinko.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/jinko/tLgBpae546SdRBMu/logo/jinko-logo.png?fit=max\u0026auto=format\u0026n=tLgBpae546SdRBMu\u0026q=85\u0026s=8cf307169eba8c087816a44a41447566\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gojinko.com#website\",\"name\":\"Jinko Platform\",\"url\":\"https://docs.gojinko.com\",\"publisher\":{\"@id\":\"https://docs.gojinko.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gojinko.com/tools/car-cancel#webpage\",\"url\":\"https://docs.gojinko.com/tools/car-cancel\",\"name\":\"Cancel Car Rental Booking\",\"description\":\"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt\",\"dateModified\":\"2026-11-13T07:28:05.625Z\",\"isPartOf\":{\"@id\":\"https://docs.gojinko.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gojinko.com/tools/car-cancel#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gojinko.com/tools/car-cancel#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cars\",\"item\":\"https://docs.gojinko.com/tools/car-search\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel Car Rental Booking\",\"item\":\"https://docs.gojinko.com/tools/car-cancel\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gojinko.com/tools/car-cancel#article\",\"headline\":\"Cancel Car Rental Booking\",\"name\":\"Cancel Car Rental Booking\",\"description\":\"Preview the cancellation fee, cancel a car rental, or re-read the latest attempt\",\"url\":\"https://docs.gojinko.com/tools/car-cancel\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gojinko.com/tools/car-cancel#webpage\"},\"dateModified\":\"2026-11-13T07:28:05.625Z\",\"publisher\":{\"@id\":\"https://docs.gojinko.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gojinko.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Jinko Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Jinko Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tools/car-cancel.md","siteName":"Jinko Platform","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"MCP","groups":[{"group":"Introduction","pages":[{"title":"Overview","href":"/tools/overview"}]},{"group":"Flights","pages":[{"group":"Discovery","pages":[{"title":"Find Destination","href":"/tools/find-destination"},{"title":"Flight Calendar","href":"/tools/flight-calendar"},{"title":"Find Dates","href":"/tools/find-dates"},{"title":"Price Monitoring","href":"/tools/price-monitoring"},{"title":"Flight Price Advice","href":"/tools/flight-price-advice"}]},{"group":"Search","pages":[{"title":"Flight Search","href":"/tools/flight-search"}]},{"group":"Manage","pages":[{"title":"Flight Refund","href":"/tools/flight-refund"},{"title":"Flight Exchange","href":"/tools/flight-exchange"}]}]},{"group":"Hotels","pages":[{"title":"Hotel Search","href":"/tools/hotel-search"},{"title":"Hotel Details","href":"/tools/hotel-details"},{"title":"Hotel Reviews","href":"/tools/hotel-reviews"},{"title":"Cancel Hotel Booking","href":"/tools/hotel-cancel"}]},{"group":"Cars","pages":[{"title":"Search Car Rentals","description":"Live car rental availability between a pick-up and a drop-off place, priced and bookable","href":"/tools/car-search"},{"title":"Cancel Car Rental Booking","href":"/tools/car-cancel"}]},{"group":"Trip \u0026 Payment","pages":[{"title":"Trip","description":"Create and manage a trip, add or remove items, set travelers, select ancillaries","href":"/tools/trip"},{"title":"Checkout Trip","href":"/tools/checkout"},{"title":"Submit Agent Payment","href":"/tools/submit-agent-payment"},{"title":"Get Trip","href":"/tools/get-trip"},{"title":"Get Booking","href":"/tools/get-booking"}]},{"group":"Marketing claim","tag":"Preview","pages":[{"title":"Claim the Best Price Guarantee","href":"/tools/claim-best-price-guarantee"},{"title":"Read a Best Price Guarantee claim","href":"/tools/get-best-price-guarantee"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Cancel Car Rental Booking - Jinko Platform","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}