Buy Listing at the Ask
buy_listing_nowFrom XP's connected order book of resale listings. Use when an authenticated buyer wants a fan listing outright at the seller's published asking price, rather than negotiating -- 'buy it now', 'take it at the ask', 'just buy me those tickets to the game'. Only listings that carry an asking price can be bought this way; for one without an ask, use make_offer_on_listing. Two-phase: confirm=false previews the total so it can be read back to the user, confirm=true buys. A confirm here completes the sale immediately -- the money leaves the caller's XP USDC balance and the seller is committed. Pays from the caller's XP USDC balance; the x402 rail does not apply to fan listings, only to buy_tickets. Requires auth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | No | How to pay. 'usdc' spends the caller's XP USDC balance. | usdc |
| confirm | No | False (default) previews. True buys at ask_per_ticket_usd, the price the preview showed. | |
| identifier | Yes | Listing identifier from list_open_listings or get_open_listing. | |
| ask_per_ticket_usd | No | The per-ticket price the preview showed (its ask_per_ticket_usd). Required with confirm=true: the purchase is refused if the seller has changed the ask since, so the buyer never pays a price they did not see. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||