bymundi API

Set a trip's commercial state

The set_trip_commercial_state MCP tool: set a trip's commercial state.

set_trip_commercial_state · writes · reaches people outside bymundi

REST: POST /v1/trips/{tripId}/commercial-state

What the model reads

Moves the trip's commercial state (nueva, propuesta_enviada, aceptada, reserva_provisional, reservada, rechazada, cancelada), as the state menu does in the app. Any state may move to any other. ⚠️ This has side effects and no undo. Entering reserva_provisional or reservada creates payment plans for accepted quotes. Entering reservada opens the travelers' app access, which emails them. Asking for the state the trip is already in changes nothing.

Permissions: trips:write. This cannot be undone.

Input

Field Type Required Description
tripId uuid yes
state "nueva" | "propuesta_enviada" | "aceptada" | "reserva_provisional" | "reservada" | "rechazada" | "cancelada" yes

Input schema (JSON)

{
  "type": "object",
  "properties": {
    "tripId": {
      "type": "string",
      "format": "uuid"
    },
    "state": {
      "type": "string",
      "enum": [
        "nueva",
        "propuesta_enviada",
        "aceptada",
        "reserva_provisional",
        "reservada",
        "rechazada",
        "cancelada"
      ]
    }
  },
  "required": [
    "tripId",
    "state"
  ],
  "additionalProperties": false
}