reservation_not_modifiable

This reservation cannot be changed through the API (for example it has no confirmation code). Change it where it was made.

HTTP 422The request was understood but refused as sent. Change it before retrying.

When it fires

PATCH /v1/reservations/{id} cannot change this reservation at all — for example it has no confirmation code, which changes are addressed by. Nothing was changed. message says why.

Response shape

Every Repull error follows the same envelope. The code is stable and safe to switch on.

{
  "error": {
    "code": "reservation_not_modifiable",
    "message": "Reservation 215708 has no confirmation code, and the modify commands address reservations by confirmation code.",
    "fix": "See https://repull.dev/docs/errors for recovery steps.",
    "docs_url": "https://repull.dev/docs/errors/reservation_not_modifiable",
    "request_id": "req_01J5X7Y8Z9ABCDEF12345678"
  }
}

How to fix

  1. Do not retry — the reservation itself is the problem, not the request.
  2. Change it where it was made (the channel or PMS), or cancel it with `POST /v1/reservations/{id}/cancel` and create a new one.

Examples

curl

curl https://api.repull.dev/v1/reservations/215708 \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
# check confirmationCode and platform before changing it

TypeScript

const { error } = await res.json()
if (error?.code === 'reservation_not_modifiable') {
  return { cannotChange: true, reason: error.message }
}

If you're an AI agent

This reservation cannot be changed through the API. Do not retry. Tell the user to change it where it was made, or to cancel and rebook.

Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.

AI