{"type":"object","additionalProperties":false,"required":["schema_version","intent","idempotency_key","requesting_agent","buyer","buyer_mandate","supplier","jurisdiction","coverage","invoice","amount","currency","payee","payment_destination","payment_instruction_digest","economic_purpose","risk_policy","coverage_requirements","freshness_requirements","disclosure","evidence_references","correlation","payment_exposure_usdc_equivalent_atomic","exposure_valuation_basis","decision_fee_payer"],"properties":{"schema_version":{"const":"1.0.0"},"intent":{"const":"RELEASE_PAYMENT_TO_SUPPLIER"},"decision_fee_payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Decision fee wallet authorized by the signed request and buyer mandate; required for commercial x402 purchases."},"idempotency_key":{"type":"string","minLength":8,"maxLength":120},"requesting_agent":{"type":"object","additionalProperties":false,"required":["agent_id","key_id","request_signature"],"properties":{"agent_id":{"type":"string"},"key_id":{"type":"string"},"request_signature":{"type":"string"}}},"buyer":{"type":"object","additionalProperties":false,"required":["organization_id","organization_digest"],"properties":{"organization_id":{"type":"string"},"organization_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}}},"buyer_mandate":{"type":"object","additionalProperties":false,"required":["payload","mandate_digest","signature"],"description":"Signed BuyerPaymentMandate bound to this request digest, buyer, agent, supplier, payee, limits and validity window.","properties":{"payload":{"type":"object","additionalProperties":false,"required":["schema_version","mandate_id","mandate_version","issuer","subject_agent_id","buyer_organization","buyer_organization_digest","permitted_intent","request_digest","supplier_entity_id","payee_fingerprint","max_payment_amount","currency","max_decision_fee_atomic","valid_from","valid_until","nonce","key_id","revocation_reference"],"properties":{"schema_version":{"const":"1.0.0"},"mandate_id":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"mandate_version":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$"},"issuer":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"subject_agent_id":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"buyer_organization":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"buyer_organization_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"permitted_intent":{"const":"RELEASE_PAYMENT_TO_SUPPLIER"},"request_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"supplier_entity_id":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"payee_fingerprint":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"max_payment_amount":{"type":"string","pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,6})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"max_decision_fee_atomic":{"type":"string","pattern":"^\\d+$"},"valid_from":{"type":"string","format":"date-time"},"valid_until":{"type":"string","format":"date-time"},"nonce":{"type":"string","minLength":16,"maxLength":96,"pattern":"^[A-Za-z0-9_-]+$"},"key_id":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"revocation_reference":{"type":"string","minLength":1,"maxLength":512}}},"mandate_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"signature":{"type":"object","additionalProperties":false,"required":["algorithm","canonicalization","issuer","key_id","value"],"properties":{"algorithm":{"const":"Ed25519"},"canonicalization":{"const":"ROP-C14N-JSON-1"},"issuer":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"key_id":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},"value":{"type":"string","pattern":"^[A-Za-z0-9_-]{86}$"}}}}},"supplier":{"type":"object","additionalProperties":false,"required":["entity_id","identifiers"],"properties":{"entity_id":{"type":"string"},"legal_name":{"type":"string"},"identifiers":{"type":"object","additionalProperties":{"type":"string"}}}},"jurisdiction":{"const":"US"},"coverage":{"const":"FEDERAL_ONLY"},"invoice":{"type":"object","additionalProperties":false,"required":["obligation_id","document_digest"],"properties":{"obligation_id":{"type":"string"},"document_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}}},"amount":{"type":"string","pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,6})?$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"payee":{"type":"object","additionalProperties":false,"required":["type","value","fingerprint"],"properties":{"type":{"enum":["X402_PAYTO","WALLET","MERCHANT_RESOURCE","PAYOUT_DESTINATION_TOKEN","PROVIDER_ACCOUNT_TOKEN"]},"value":{"type":"string"},"provider_namespace":{"type":"string"},"fingerprint":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}}},"payment_destination":{"type":"object","additionalProperties":false,"required":["type","value","fingerprint"],"properties":{"type":{"enum":["X402_PAYTO","WALLET","MERCHANT_RESOURCE","PAYOUT_DESTINATION_TOKEN","PROVIDER_ACCOUNT_TOKEN"]},"value":{"type":"string"},"provider_namespace":{"type":"string"},"fingerprint":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}}},"payment_instruction_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"economic_purpose":{"type":"string","minLength":3,"maxLength":300},"risk_policy":{"type":"object","additionalProperties":false,"required":["policy_id","tolerance"],"properties":{"policy_id":{"type":"string"},"tolerance":{"enum":["LOW","MEDIUM","HIGH"]}}},"coverage_requirements":{"type":"object","additionalProperties":false,"required":["jurisdiction","coverage"],"properties":{"jurisdiction":{"const":"US"},"coverage":{"const":"FEDERAL_ONLY"}}},"freshness_requirements":{"type":"object","additionalProperties":false,"required":["max_age_seconds","evaluated_at"],"properties":{"max_age_seconds":{"type":"integer","minimum":1,"maximum":604800},"evaluated_at":{"type":"string","format":"date-time"}}},"disclosure":{"type":"object","additionalProperties":false,"required":["profile","audience_digest"],"properties":{"profile":{"type":"string"},"audience_digest":{"anyOf":[{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},{"type":"null"}]}}},"evidence_references":{"type":"array","maxItems":128,"items":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}},"correlation":{"type":"object","additionalProperties":false,"required":["correlation_id","trace_id"],"properties":{"correlation_id":{"type":"string"},"trace_id":{"type":"string"}}},"payment_exposure_usdc_equivalent_atomic":{"type":"string","pattern":"^[1-9][0-9]*$"},"exposure_valuation_basis":{"type":"string","minLength":3,"maxLength":240}}}