Compare Offers
compare_offersCompare 2-6 explicit seller offers from get_product results by offer_id, detect price changes with expected_price_rial, and calculate item-price differences excluding shipping.
Instructions
Compare 2-6 explicit seller offers from get_product results.
Catalog observations are cached for up to 60 seconds. Use each offer's offer_id, not variant_id or seller_id. No substitute is chosen if it disappears. expected_price_rial optionally detects price changes. All money is IRR. Differences are right minus left item prices, excluding shipping. Pair indexes are zero-based and refer to input order. Matching names/attributes do not prove equivalent products across listings. Item errors preserve other results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| notes | No | ||
| pairs | Yes |