Lock a train quote
brij_create_train_intentFree over MCP (the x402 price quoted below applies to the HTTP API only; MCP calls are rate-limited instead). offer_id is the quote's offer_id. KEEP customer_support_code from the answer. Next: brij_buy_train.
Create the escrow for a quoted journey.
Paid x402 endpoint: $0.10 USDC. Identical to POST /air/intents with the offer_id from POST /rail/quote. Persist customer_support_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_id | Yes | The offer to book, sent back EXACTLY as received from POST /air/search or POST /air/offer-details — never reassembled by hand. | |
| refund_wallet | No | Optional Solana wallet for refunds. Defaults to funding_wallet. | |
| funding_wallet | Yes | Solana wallet expected to fund the escrow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | No | Read-only projection of a booking intent. Omits customer_support_code and passenger PII; those fields are returned once at intent-creation and /book time. |