Lock a flight offer
brij_create_flight_intentFree over MCP (the x402 price quoted below applies to the HTTP API only; MCP calls are rate-limited instead). Creates the escrow for one offer. KEEP customer_support_code from the answer: it cannot be read again, and orders and refunds need it. Next: brij_book_flight. If the user gave you a discount code, send it as promo_code (checked before any payment; fee waived when it applies).
Create an escrow-backed booking intent from a selected offer.
Paid x402 endpoint. Send a valid PAYMENT-SIGNATURE header to create
the intent. Without payment, the API returns 402 Payment Required.
Optional request field referrer: an affiliate code (see POST /affiliates) — the resolved affiliate wallet is frozen on the intent and credited a share of the platform fee once the booking captures and the journey is flown without refund; unknown or self-referring codes are silently ignored.
Creates the local booking intent and initializes its Solana escrow. This does not fund the escrow, pay the airline, or issue a ticket.
Send an offer_id back EXACTLY as received.
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": {
"funding_wallet": "<funding_wallet>",
"offer_id": "<offer_id>"
},
"name": "brij_create_flight_intent"
}
}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. | |
| referrer | No | Optional affiliate code (see POST /affiliates). Not a discount: it credits the referrer a share of the platform fee. Unknown or self-referring codes are silently ignored. | |
| promo_code | No | Optional discount code the user gave you (e.g. from a community or campaign). Send it exactly as the user wrote it; case does not matter. Waives the BRIJ service fee on flights and hotels. Checked BEFORE any payment: an unusable code refuses the intent, free, with promo_invalid (404), promo_expired (410), promo_exhausted (409, no seats left) or already_member (409, this wallet already redeemed a code) — tell the user and retry without it. When it applies, the answer carries intent.promo_code and a fee_amount of 0. The code is redeemed for the funding wallet once that wallet funds the escrow; after that every booking from the wallet is fee-free until the benefit ends, with no code to resend. | |
| 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, promo_code and passenger PII; those fields are returned once at intent-creation and /book time. |