check_listing
Pre-spend check of one product against the published listing cards. Free, read-only.
Returns unknown_seller when no published card covers the product (not a clean seller),
expired when the card is past expires_at, check_failed when the card cannot be verified
or the declared price is above the advertised one, and advertised when a current card
matches. It never authorizes a payment: authorizes_spend is always false. needs_approval
is true for every result except advertised, and also for an advertised card that
advertises nothing, advertises no price, cannot check the declared price, or is
declared below its advertised price (an unverified discount, including zero). It does
not fetch the store page, open a checkout or move money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | Optional subject market (e.g. US); must agree with the card when given. | |
| product | No | Optional subject product; must agree with the card when given. | |
| variant | No | Optional subject variant (e.g. Ink); must agree with the card when given. | |
| merchant | No | Optional subject merchant; must agree with the card when given. | |
| product_url | No | The store product URL the agent is about to buy from. Matched exactly against the published card's next_hop URL, the same rule as the paid checkout brief. | |
| declared_unit_price | No | Optional unit price the seller is asking, in USD. Above the card's advertised price is refused (phantom_markup_detected); below it is discount_unverified and needs approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claims | No | The card's claims (name, value, state, reason). Unknown claims stay unknown. | |
| digest | No | sha256 of the matching card's exact text (get_claim); null for unknown_seller. | |
| reason | Yes | Why: e.g. no_card_for_product_url, expired_claim, phantom_markup_detected, current_card. | |
| result | Yes | unknown_seller | expired | check_failed | advertised. | |
| expires_at | No | Earliest claim expiry on the matching card. | |
| artifact_id | No | The matching card's artifact id; null when no card covers the candidate. | |
| price_check | No | verified | discount_unverified | unverified | absent | above_advertised | invalid, when a price was declared or checked. | |
| needs_approval | Yes | True for every result except advertised, and for an advertised card that advertises nothing, advertises no price, cannot check the declared price, or is declared below its advertised price: a human approves before any spend. | |
| authorizes_spend | Yes | Always false. advertised is current evidence, never permission to pay. |