{"slug":"http-forest-gas-station-mainnet-lcjl27p8lmjs-code-run-commer-340cbd","title":"Resolve requested product options to a canonical public variant when the provide","host":"http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run","method":"POST","resource":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/commerce/variant-resolve","category":"code","description":"Resolve requested product options to a canonical public variant when the provider exposes them. Ambiguous or missing options are reported explicitly; no checkout or cart mutation occurs. Base mainnet USDC","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"options":{"Color":"Black","Size":"M"},"url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/products/forest-demo-widget"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"options":{"additionalProperties":true,"description":"Public identifiers value used to scope this lookup.","type":"object"},"url":{"description":"Public HTTP(S) URL to inspect, resolve, or compare.","maxLength":2048,"pattern":"^https?://","type":"string"}},"required":["url","options"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"capability":{"const":"commerce.variant-resolve","description":"Public capability value used to scope this lookup."},"data":{"additionalProperties":false,"description":"Public data value used to scope this lookup.","properties":{"alternatives":{"description":"Public alternatives value used to scope this lookup.","type":"array"},"ambiguity":{"description":"Public ambiguity value used to scope this lookup.","type":["string","null"]},"available":{"description":"Public available value used to scope this lookup.","type":["boolean","null"]},"matched":{"description":"Public matched value used to scope this lookup.","type":"boolean"},"price":{"description":"Public price value used to scope this lookup.","type":["number","null"]},"selected_options":{"description":"Public selected options value used to scope this lookup.","type":"array"},"sku":{"description":"Public sku value used to scope this lookup.","type":["string","null"]},"variant_id":{"description":"Public provider variant identifier to validate.","type":["string","null"]}},"required":["matched","variant_id","sku","selected_options","available","price","ambiguity","alternatives"],"type":"object"},"meta":{"additionalProperties":false,"description":"Public meta value used to scope this lookup.","properties":{"cache":{"description":"Public cache value used to scope this lookup.","enum":["hit","miss","bypass"]},"checked_at":{"description":"Public checked at value used to scope this lookup.","type":"string"},"duration_ms":{"description":"Public duration ms value used to scope this lookup.","minimum":0,"type":"integer"},"provider":{"description":"Public provider value used to scope this lookup.","type":["string","null"]}},"required":["provider","checked_at","cache","duration_ms"],"type":"object"},"ok":{"const":true,"description":"Public ok value used to scope this lookup."},"version":{"const":"1","description":"Package version whose public metadata should be checked."}},"required":["ok","capability","version","data","meta"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Resolve requested product options to a canonical public variant when the provider exposes them. Ambiguous or missing options are reported explicitly; no checkout or cart mutation occurs. Base mainnet USDC","last_updated":"2026-11-22T16:13:52.396Z","schemes":["exact"]}