Map Brex trip
map_brex_tripMap one Brex trip id onto a Trip so its bookings line up with the Trip. Several traveller-specific Brex trips can map to one Trip, but each Brex trip maps to one Trip only. Adds a mapping and changes nothing else; remove one with unmap_brex_trip. Pass trip_id when the project has more than one Trip. Requires project-manager access. Runs on the first call; there is no confirmation step.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"external_id": "<external_id>"
},
"name": "map_brex_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_id | No | Trip id from list_project_travel kind=trips; needed when the project has more than one Trip | |
| project_id | Yes | project id from list_projects, or a gig's project_id from get_event | |
| external_id | Yes | the Brex trip id | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| traveller_label | No | name of the traveller the Brex trip is for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: { project_id, trip_id, trip_name, trip_revision, project_name, currency, billing_event_id, gigs [{ event_id, title, event_date, end_date, is_billing }], travellers [{ user_id, user_name }], external_sources [{ id, source, external_id, external_status, traveller_label, cancelled_at }], buyouts [{ id, category, amount, currency, notes }] } } | |
| error | No | when ok is false |