PeumeAPI

Places & travel

Cancel Rental Car

Cancel a booked rental car and refund the payment minus the cancellation fee.

$0.0005 per call

Call it

curl https://api.peume.com/v1/call/cancel-rental-car \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "run_id": "your run id",
    "quote_id": "your quote id"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: cancel-rental-car.

Parameters

run_idRequiredstring

runId of one of YOUR OWN completed /trips/save runs for the trip.

booked_item_idstring

The booked item, from /bookings/get 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.

quote_idRequiredstring

The `quote_id` from a preceding /cars/cancel-preview. Binds the commit to the fee the customer saw.

reasonstring

Optional free-text cancellation reason.

manual_okboolean

Send `true` to commit a preview that answered `manual_required: true`. The cancellation is then recorded for a agent — NOTHING is sent to the rental company by this call — and the answer is `state: pending` with `refund_pending_review: true`; the agent completes it and settles the refund by hand, and /cars/cancel-status reports the outcome. Without the flag such a commit is refused 409 `manual_required`, so a customer is never put in an agent queue unasked: send it only once the customer has agreed to that. On a preview that can be committed online the flag changes nothing.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.