Verify a multi-merchant basket before handing it to checkout
verify_basketFor a multi-item request, collect p2209_id and any selected variation_id from global_search results and send all selected items in one call. For every variable product, include a variation_id from its selected variants_compact entry on the first call; without it the price and basket total may be unknown. Never substitute WooCommerce numeric product IDs for p2209_id. Set live=false for a snapshot-only check with no merchant request; live=true reads merchants. Checks a basket of offers (up to 40 lines, any merchants) against the merchants' own data. Per merchant: subtotal, declared shipping options, and checkout handoff. Optional quote=true requires live=true and destination_details; it makes one bounded merchant request per basket and returns a WooCommerce quote when the merchant enabled it, otherwise unknown alongside the estimate. A quote creates no checkout session or order; checkout may still change the total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | false (default) uses saved Global data without contacting merchants; true reads each merchant now (at most 10 lines). | |
| items | Yes | ||
| quote | No | false by default. true requires live=true and destination_details, and may contact up to four merchants for WooCommerce quotes. | |
| destination | No | ISO 3166-1 country, optionally with region: "IT" or "IT:CB". Needed for shipping. | |
| max_age_seconds | No | ||
| destination_details | No | Postal destination for precise declared shipping zones even with quote=false and live=false; required for quote=true. Example: {country:"IT",state:"CB",postcode:"86100",city:"Campobasso"}. |