{"x402Version":2,"resource":{"url":"https://returncheck.m-angelmartinez-fer.workers.dev/v1/check","description":"ReturnCheck verifies which return policy actually applies to this purchase.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"20000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xbF428071027402E9b0cE85e22146EDdc028cEB3b","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"payment-identifier":{"info":{"required":true},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"required":{"type":"boolean"},"id":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$"}},"required":["required"]}},"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"product_url":"https://shop.example/product/1","buyer_country":"US","item_condition":"unopened","page_text":"New and unopened products may be returned within 30 days of delivery with proof of purchase."}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","const":"json"},"body":{"type":"object","required":["product_url","buyer_country"],"properties":{"product_url":{"type":"string","format":"uri"},"buyer_country":{"type":"string"},"item_condition":{"type":"string","enum":["unopened","opened","used","defective"]},"page_text":{"type":"string","description":"Caller-supplied policy text. Additional request fields are documented in OpenAPI."}}}},"required":["type","method","bodyType","body"]}},"required":["input"]}}},"payment_instructions":{"envelope":{"encoding":"base64-json","required_top_level":["x402Version","accepted","payload","extensions"],"accepted_from":"Copy the complete accepts[0] object from the live 402 challenge.","payload_shape":"payload directly contains signature and authorization; do not nest another PaymentPayload.","client_extensions":["payment-identifier"],"do_not_copy_extensions":["bazaar"],"resource":"Clients do not need to send resource; ReturnCheck sets the served resource before facilitator verification."},"identifier_path":"extensions[\"payment-identifier\"].info.id","legacy_identifier_path":"payload.extensions[\"payment-identifier\"]","identifier_required":true,"identifier_pattern":"^[a-zA-Z0-9_-]{16,128}$","legacy_supported":true,"discovery_probe":"POST /v1/check with no body and no PAYMENT-SIGNATURE returns the live 402 challenge before free-trial accounting. Do not send {} or a real check body for discovery.","retry":"After a paid attempt that may have reached settlement, reuse the same endpoint, body, identifier, signature and nonce; never create a second authorization to recover an uncertain outcome. If an authorization expires before any paid attempt is sent, sign a fresh one and use that exact fresh authorization for the later replay.","authorization_expiry":"If the authorization expires before the paid call, sign a fresh authorization. If that fresh authorization settles, replay that exact new authorization, signature and nonce.","free_trial":"Unsigned requests may use the free allowance. PAYMENT-SIGNATURE enters the payment path directly; no need to exhaust the allowance.","unknown":"UNKNOWN is not settled."},"endpoints":{"http":{"url":"https://returncheck.m-angelmartinez-fer.workers.dev/v1/check","method":"POST","signature_in":"PAYMENT-SIGNATURE header"},"mcp":{"url":"https://returncheck.m-angelmartinez-fer.workers.dev/mcp","tool":"check_return","signature_in":"payment_signature argument"}},"unknown_is_free":true,"human_next_steps":{"message":"If you are a human developer: the keyless free trial is 3 calls per IP per day and it resets daily. For more, sign up — it comes with free credit.","free_trial":{"calls_per_ip_per_day":3,"resets":"daily (UTC)"},"signup":{"url":"https://returncheck.m-angelmartinez-fer.workers.dev/v1/signup","method":"POST","body":{"email":"you@example.com"},"free_credit_usd":2,"approx_free_calls":100},"price_usd_per_call":0.02,"unknown_is_free":true}}