Ask the shop to confirm an offer
check_offerAsk the shop to confirm one unchecked or checking offer. Use this when the user wants the check result before deciding. create_checkout and checkout_cart ask or join the check themselves for the selected option, so this is not a required pre-check. A passed result is orderable at the shown price for 15 minutes. A repriced result confirms that same shop price; do not say the price changed. A failed result cannot be ordered and the offer is removed from the quote; tell the user and continue with the listed offers. Wait up to wait_s (default 45); pending: true means the shop is still answering, so re-read the quote shortly. Nothing else on the quote changes. On an instant-only quote (routing.instant_only true) no shop is asked; relay that result and quote again without instant_only if the user wants to order. On a lazy quote (routing.lazy true) this call is how a shop is asked at all: it asks this offer's shop, and the offer can be ordered once it passes. A shop's confirmation of an offer is good for 15 minutes: while it stands the offer carries confirmed_until (an ISO time) and can be ordered. After it the offer is NOT failed and NOT removed — it keeps its place and the price the shop last confirmed, and its manufacturability_check reads status "unchecked" with reason "confirmation_lapsed". CHOOSING STARTS THAT SHOP'S CHECK: when the user settles on an option and you store the pick, that one shop is asked again by itself (the answer's selection_match.check reads "running"), and create_checkout and checkout_cart ask it themselves too when it still needs confirming — nobody else is asked, and no separate check_offer call is needed. Pay when it lands: the checkout waits for it. If the shop's price came back higher than the user agreed to, the checkout stops ONCE (price_went_up, with the old and the new figure) and nothing is created: tell the user both figures, then send the same call again. An offer whose manufacturability_check reads status "unchecked" with reason "network_restarted" was being confirmed by its shop when the network restarted, so the answer never came: tell the user, in these words, "A new version of AFN has been released, please refresh the page". Nothing is lost — the price stands and the offer can simply be checked again with check_offer. Say it once, when a tool's own text tells you to; the same reason still on an offer on a later read is history, not news.
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": {
"quote_id": "<quote_id>",
"offer_id": "<offer_id>"
},
"name": "check_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_s | No | Seconds to wait for the shop (default 45) | |
| offer_id | Yes | The offer to have the shop confirm | |
| quote_id | Yes | The quote the offer belongs to |