Get every retailer offer for a product
get_product_offersGet the full per-retailer offer table for ONE ALLR product in a buyer country: landed cost broken down into item price, shipping, import duty and customs brokerage (plus tax; these sum to landed_total. tax is 0 for CA and US, and for EU and UK it is the import VAT on cross-border offers, which is included in landed_total), plus stock, condition, per-colorway size availability, whether the retailer ships to that country, and a buy link (an allr.io redirect to the retailer). search_gear only carries the single lowest number. Offers are sorted cheapest landed first and the first limit are returned (default 10, max 40; offer_count is the total available); a retailer that does not ship to the country is still listed, flagged and sorted last. Availability is truth per (retailer x colorway x size): each offer carries availability_by_colorway, one row per colorway with ITS OWN sizes. There is no offer-level size list, because a size in stock in one colorway says nothing about another.
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": {
"product_id": "<product_id>"
},
"name": "get_product_offers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Restrict to offers that have this size IN STOCK in at least one colorway, e.g. 'L', 'XL', '44'. The kept offers carry `matched_colorways` — exactly the colorways that have it. Combined with `colorway`, the offer must have that size IN that colorway. An offer with no per-colorway breakdown is dropped by this filter rather than guessed at. | |
| limit | No | Maximum offers to return, cheapest landed first (1-40, default 10). `offer_count` is the total and `has_more` says whether more offers exist beyond this limit. | |
| country | No | Buyer country (ISO-2, plus 'EU' and 'UK' as market codes). Determines the currency and the landed cost: item price + shipping + import duty + customs brokerage fee, plus import VAT on cross-border offers for EU and UK. CA and US totals carry no sales tax. ALLR computes landed cost for these four markets only. | US |
| colorway | No | Restrict to offers carrying this colorway. Matched against the product's real colorway NAMES the way the product page matches them: the normalized name first ('matt black' = 'Matt Black'), and only if nothing matches exactly, any colorway whose name contains all of those words as whole words ('black' matches 'Matt Black' AND 'Black/Red'). A value that matches no colorway on this product comes back as an error listing the valid names. When omitted, every colorway is included. | |
| product_id | Yes | ALLR product id from search_gear, or a full https://allr.io/product/<id> URL, or the bare slug. A merged/renamed id is followed to its canonical product automatically. | |
| vat_country | No | Only with country='EU': the buyer's EU member state (ISO-2, e.g. 'DE', 'HU'; 'EL' also accepted for Greece). Import VAT on cross-border offers is then charged at that state's standard rate (17% to 27%); a store that prices by destination VAT is re-priced for it. Omitted or not an EU member state: 21% reference rate. | |
| include_out_of_stock | No | true includes out-of-stock offers in the table (ALLR does not hide them by default); false returns only in-stock offers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | ISO-8601 timestamp at which these prices were assembled. | |
| offers | Yes | ||
| country | Yes | ||
| product | Yes | ||
| currency | Yes | ||
| has_more | No | true when more offers exist than `limit` returned; `limit` accepts up to 40. | |
| offer_count | Yes | Total offers for this product/country after filters (may exceed the number returned in `offers`). |