{"openapi":"3.1.0","info":{"title":"Israel Counterparty Intelligence API","version":"1.0.0","description":"Agent-native Israeli invoice payment gate, supplier-registry intelligence, and x402 pre-sign payment firewall. Allocation applicability uses date, amount, VAT component, and buyer-attested conditions; missing context fails safely. Output is not official Tax Authority authentication, legal, credit, or payment advice."},"servers":[{"url":"https://israel-counterparty-intelligence.vercel.app"}],"tags":[{"name":"counterparty","description":"Israeli public business intelligence"},{"name":"agent-payments","description":"Dry-run controls before an agent wallet signs"}],"paths":{"/health":{"get":{"summary":"Health check","responses":{"200":{"description":"Healthy"}}}},"/v1/verify":{"post":{"tags":["counterparty"],"summary":"Verify Israeli company","description":"Verify an Israeli company and return structured public registry data with evidence. Use it for Israel company verification, Israeli supplier due diligence, Israel KYB, Israeli business verification, and Israel counterparty intelligence. Price: $0.10 per successful call through x402 when enabled.","operationId":"verify_israeli_company","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_name":{"type":"string","minLength":2,"maxLength":200},"company_number":{"type":"string","description":"Nine-digit Israeli company number"},"city":{"type":"string"},"website":{"type":"string","format":"uri"},"expected_entity_type":{"type":"string"},"language":{"type":"string","enum":["en","he"],"default":"en"},"depth":{"type":"string","enum":["basic","standard"],"default":"standard"}},"anyOf":[{"required":["company_name"]},{"required":["company_number"]}],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","required":["request_id","evidence","checked_at"]}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/verify/mainnet":{"post":{"tags":["counterparty"],"summary":"Verify Israeli company on Base Mainnet","description":"Official Israeli company registry verification for AI agents. Search by nine-digit company number or legal name. Returns resolved legal identity, registry status, address, incorporation and annual-report fields, confidence, missing-data disclosure, checked_at, and field-level source evidence. Use for Israel company lookup, Israeli supplier verification, public-registry KYB pre-check, onboarding, procurement, and due diligence. Not sanctions, PEP, UBO, credit, or Full Regulatory KYB. Price: $0.05 per successful call through x402 when enabled.","operationId":"verify_israeli_company_on_base_mainnet","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_name":{"type":"string","minLength":2,"maxLength":200},"company_number":{"type":"string","description":"Nine-digit Israeli company number"},"city":{"type":"string"},"website":{"type":"string","format":"uri"},"expected_entity_type":{"type":"string"},"language":{"type":"string","enum":["en","he"],"default":"en"},"depth":{"type":"string","enum":["basic","standard"],"default":"standard"}},"anyOf":[{"required":["company_name"]},{"required":["company_number"]}],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","required":["request_id","evidence","checked_at"]}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/government-footprint":{"post":{"tags":["counterparty"],"summary":"Government footprint","description":"Find an Israeli company's public government contracts and support footprint Price: $0.35 per successful call through x402 when enabled.","operationId":"government_footprint","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_name":{"type":"string","minLength":2,"maxLength":200},"company_number":{"type":"string","description":"Nine-digit Israeli company number"},"city":{"type":"string"},"website":{"type":"string","format":"uri"},"expected_entity_type":{"type":"string"},"language":{"type":"string","enum":["en","he"],"default":"en"},"depth":{"type":"string","enum":["basic","standard"],"default":"standard"}},"anyOf":[{"required":["company_name"]},{"required":["company_number"]}],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","required":["request_id","evidence","checked_at"]}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/counterparty-risk":{"post":{"tags":["counterparty"],"summary":"Counterparty risk","description":"Get evidence-backed public counterparty risk signals for an Israeli company Price: $0.50 per successful call through x402 when enabled.","operationId":"counterparty_risk","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_name":{"type":"string","minLength":2,"maxLength":200},"company_number":{"type":"string","description":"Nine-digit Israeli company number"},"city":{"type":"string"},"website":{"type":"string","format":"uri"},"expected_entity_type":{"type":"string"},"language":{"type":"string","enum":["en","he"],"default":"en"},"depth":{"type":"string","enum":["basic","standard"],"default":"standard"}},"anyOf":[{"required":["company_name"]},{"required":["company_number"]}],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","required":["request_id","evidence","checked_at"]}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/payment-risk/mainnet":{"post":{"tags":["counterparty"],"summary":"Assess Israeli vendor payment risk","description":"Israeli supplier and vendor payment-risk check before funds move. Resolves the legal company, compares invoice identity and contact domains, evaluates buyer-observed bank-detail-change and urgency signals, and returns deterministic PROCEED, REVIEW, or BLOCK reason codes with public-registry evidence. Use for accounts payable, supplier onboarding, invoice verification, procurement, and payment-fraud triage. Does not verify bank-account ownership. Price: $0.10 per successful call through x402 when enabled.","operationId":"assess_israeli_vendor_payment_risk","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_number":{"type":"string","minLength":1,"maxLength":30,"description":"Israeli company number supplied by the buyer."},"company_name":{"type":"string","minLength":2,"maxLength":200,"description":"Israeli company name supplied by the buyer."},"invoice_company_number":{"type":"string","minLength":1,"maxLength":30,"description":"Company number printed on the invoice or payment request."},"invoice_company_name":{"type":"string","minLength":2,"maxLength":200,"description":"Supplier name printed on the invoice or payment request."},"invoice_city":{"type":"string","minLength":2,"maxLength":100},"invoice_website":{"type":"string","maxLength":500},"vendor_email":{"type":"string","maxLength":320},"invoice_amount":{"type":"number","exclusiveMinimum":0,"maximum":1000000000},"invoice_currency":{"type":"string","enum":["ILS","USD","EUR","GBP","USDC"]},"payment_details_changed":{"type":"boolean","default":false},"urgent_payment_request":{"type":"boolean","default":false},"first_time_vendor":{"type":"boolean","default":false},"language":{"type":"string","enum":["en","he"],"default":"en"}},"anyOf":[{"required":["company_number"]},{"required":["company_name"]},{"required":["invoice_company_number"]},{"required":["invoice_company_name"]}],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"assessment_version":{"type":"string"},"entity":{"type":"object"},"decision":{"type":"object","properties":{"action":{"type":"string","enum":["PROCEED","REVIEW","BLOCK"]},"automation_safe":{"type":"boolean"},"score":{"type":"number","minimum":0,"maximum":100},"level":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"confidence":{"type":"number","minimum":0,"maximum":1},"reason_codes":{"type":"array","items":{"type":"string"}},"explanation":{"type":"string"}},"required":["action","automation_safe","score","level","confidence","reason_codes","explanation"]},"checks":{"type":"array","items":{"type":"object"}},"evidence":{"type":"array","items":{"type":"object"}},"checks_not_performed":{"type":"array","items":{"type":"string"}},"disclaimer":{"type":"string"},"checked_at":{"type":"string","format":"date-time"}},"required":["request_id","assessment_version","entity","decision","checks","evidence","checks_not_performed","disclaimer","checked_at"],"additionalProperties":false}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/invoice-gate/preview":{"post":{"tags":["agent-payments"],"summary":"Preview an Israeli invoice payment gate for free","description":"Free structural check of VAT arithmetic, invoice totals, and date-, amount-, VAT-, and buyer-sensitive Israel Invoices allocation-number applicability. Missing buyer context returns a safe hold. Does not resolve the supplier or contact the Tax Authority.","operationId":"preview_israeli_invoice_payment_gate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplier_company_number":{"type":"string","pattern":"^\\d{9}$","description":"Nine-digit Israeli supplier company or VAT number."},"supplier_name":{"type":"string","minLength":2,"maxLength":200},"buyer_vat_number":{"type":"string","pattern":"^\\d{9}$"},"buyer_is_authorized_dealer":{"type":"boolean","description":"Buyer-attested authorized-dealer status. If omitted above the threshold, allocation applicability is UNKNOWN and payment is held."},"buyer_requested_allocation_number":{"type":"boolean","description":"Buyer-attested confirmation that the buyer requested an allocation number. If omitted above the threshold, allocation applicability is UNKNOWN and payment is held."},"invoice_number":{"type":"string","minLength":1,"maxLength":100},"invoice_date":{"type":"string","format":"date","description":"Invoice date. Policy coverage begins on 2025-01-01."},"amount_before_vat":{"type":"number","exclusiveMinimum":0,"maximum":1000000000},"vat_amount":{"type":"number","minimum":0,"maximum":1000000000},"total_amount":{"type":"number","exclusiveMinimum":0,"maximum":1000000000},"currency":{"type":"string","const":"ILS","default":"ILS"},"expected_vat_rate":{"type":"number","enum":[0,18],"default":18,"description":"Expected Israeli VAT rate; use zero only for a known zero-rated or exempt transaction."},"allocation_number":{"type":"string","pattern":"^\\d{9}$"},"official_verification":{"type":"object","description":"Buyer-attested output from the authenticated Israel Tax Authority service; not independently authenticated by this API.","properties":{"status":{"type":"string","enum":["MATCH","MISMATCH","NOT_FOUND","ERROR"]},"checked_at":{"type":"string","format":"date-time"},"supplier_vat_number":{"type":"string","pattern":"^\\d{9}$"},"invoice_number":{"type":"string"},"allocation_number":{"type":"string","pattern":"^\\d{9}$"},"amount_before_vat":{"type":"number","minimum":0},"vat_amount":{"type":"number","minimum":0}},"required":["status","checked_at"],"additionalProperties":false},"invoice_city":{"type":"string","minLength":2,"maxLength":100},"invoice_website":{"type":"string","format":"uri","maxLength":500},"vendor_email":{"type":"string","format":"email","maxLength":320},"payment_details_changed":{"type":"boolean","default":false},"urgent_payment_request":{"type":"boolean","default":false},"first_time_vendor":{"type":"boolean","default":false},"language":{"type":"string","enum":["en","he"],"default":"en"}},"required":["supplier_company_number","invoice_number","invoice_date","amount_before_vat","vat_amount","total_amount"],"additionalProperties":false}}}},"responses":{"200":{"description":"Structural preview; never authorization to pay","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"gate_version":{"type":"string"},"policy":{"type":"object"},"entity":{"type":["object","null"]},"decision":{"type":"object","properties":{"action":{"type":"string","enum":["PAY","HOLD","BLOCK"]},"automation_safe":{"type":"boolean"},"score":{"type":"number","minimum":0,"maximum":100},"reason_codes":{"type":"array","items":{"type":"string"}},"explanation":{"type":"string"}},"required":["action","automation_safe","score","reason_codes","explanation"]},"checks":{"type":"array","items":{"type":"object"}},"official_verification":{"type":"object"},"evidence":{"type":"array","items":{"type":"object"}},"checks_not_performed":{"type":"array","items":{"type":"string"}},"disclaimer":{"type":"string"},"checked_at":{"type":"string","format":"date-time"}},"required":["gate_version","policy","decision","checks","official_verification","evidence","checks_not_performed","disclaimer","checked_at"],"additionalProperties":true}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limited"}}}},"/v1/invoice-gate/mainnet":{"post":{"tags":["agent-payments"],"summary":"Authorize an Israeli invoice payment","description":"Pre-payment gate for Israeli tax invoices and accounts-payable agents. Checks VAT and totals; applies the date, amount, VAT-component, authorized-dealer-buyer, and buyer-request conditions for an Israel Invoices allocation number; resolves the supplier against the public company registry; combines vendor-fraud signals; and returns deterministic PAY, HOLD, or BLOCK reason codes. Missing buyer context fails safely to HOLD. Official Tax Authority verification requires buyer authorization; buyer-attested results are labeled and are not independently authenticated. Price: $0.25 per successful call through x402 when enabled.","operationId":"authorize_an_israeli_invoice_payment","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"supplier_company_number":{"type":"string","pattern":"^\\d{9}$","description":"Nine-digit Israeli supplier company or VAT number."},"supplier_name":{"type":"string","minLength":2,"maxLength":200},"buyer_vat_number":{"type":"string","pattern":"^\\d{9}$"},"buyer_is_authorized_dealer":{"type":"boolean","description":"Buyer-attested authorized-dealer status. If omitted above the threshold, allocation applicability is UNKNOWN and payment is held."},"buyer_requested_allocation_number":{"type":"boolean","description":"Buyer-attested confirmation that the buyer requested an allocation number. If omitted above the threshold, allocation applicability is UNKNOWN and payment is held."},"invoice_number":{"type":"string","minLength":1,"maxLength":100},"invoice_date":{"type":"string","format":"date","description":"Invoice date. Policy coverage begins on 2025-01-01."},"amount_before_vat":{"type":"number","exclusiveMinimum":0,"maximum":1000000000},"vat_amount":{"type":"number","minimum":0,"maximum":1000000000},"total_amount":{"type":"number","exclusiveMinimum":0,"maximum":1000000000},"currency":{"type":"string","const":"ILS","default":"ILS"},"expected_vat_rate":{"type":"number","enum":[0,18],"default":18,"description":"Expected Israeli VAT rate; use zero only for a known zero-rated or exempt transaction."},"allocation_number":{"type":"string","pattern":"^\\d{9}$"},"official_verification":{"type":"object","description":"Buyer-attested output from the authenticated Israel Tax Authority service; not independently authenticated by this API.","properties":{"status":{"type":"string","enum":["MATCH","MISMATCH","NOT_FOUND","ERROR"]},"checked_at":{"type":"string","format":"date-time"},"supplier_vat_number":{"type":"string","pattern":"^\\d{9}$"},"invoice_number":{"type":"string"},"allocation_number":{"type":"string","pattern":"^\\d{9}$"},"amount_before_vat":{"type":"number","minimum":0},"vat_amount":{"type":"number","minimum":0}},"required":["status","checked_at"],"additionalProperties":false},"invoice_city":{"type":"string","minLength":2,"maxLength":100},"invoice_website":{"type":"string","format":"uri","maxLength":500},"vendor_email":{"type":"string","format":"email","maxLength":320},"payment_details_changed":{"type":"boolean","default":false},"urgent_payment_request":{"type":"boolean","default":false},"first_time_vendor":{"type":"boolean","default":false},"language":{"type":"string","enum":["en","he"],"default":"en"}},"required":["supplier_company_number","invoice_number","invoice_date","amount_before_vat","vat_amount","total_amount"],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"gate_version":{"type":"string"},"policy":{"type":"object"},"entity":{"type":["object","null"]},"decision":{"type":"object","properties":{"action":{"type":"string","enum":["PAY","HOLD","BLOCK"]},"automation_safe":{"type":"boolean"},"score":{"type":"number","minimum":0,"maximum":100},"reason_codes":{"type":"array","items":{"type":"string"}},"explanation":{"type":"string"}},"required":["action","automation_safe","score","reason_codes","explanation"]},"checks":{"type":"array","items":{"type":"object"}},"official_verification":{"type":"object"},"evidence":{"type":"array","items":{"type":"object"}},"checks_not_performed":{"type":"array","items":{"type":"string"}},"disclaimer":{"type":"string"},"checked_at":{"type":"string","format":"date-time"}},"required":["gate_version","policy","decision","checks","official_verification","evidence","checks_not_performed","disclaimer","checked_at"],"additionalProperties":true}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/company-changes/mainnet":{"post":{"tags":["counterparty"],"summary":"Get recent Israeli company changes","description":"Monitor recent official Israeli company-registry changes for an exact nine-digit company number. Returns filing and status-change events newest first, with dates, deterministic categories, source URLs, and checked_at. Use for counterparty monitoring, supplier due diligence, onboarding refreshes, corporate-event alerts, and registry change detection. Coverage is approximately one year. Price: $0.01 per successful call through x402 when enabled.","operationId":"get_recent_israeli_company_changes","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"company_number":{"type":"string","pattern":"^\\d{9}$","description":"Exact nine-digit Israeli company registration number."},"lookback_days":{"default":366,"description":"Return events recorded during this many recent days.","type":"integer","minimum":1,"maximum":366},"limit":{"default":25,"description":"Maximum number of most-recent events to return.","type":"integer","minimum":1,"maximum":100},"language":{"default":"en","type":"string","enum":["en","he"]}},"required":["company_number","lookback_days","limit","language"],"additionalProperties":false}}}},"responses":{"200":{"description":"Evidence-backed result","content":{"application/json":{"schema":{"type":"object","required":["request_id","api_version","query","entity","changes","evidence","limitations","checked_at"],"properties":{"request_id":{"type":"string"},"api_version":{"type":"string"},"query":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"company_number":{"type":"string","pattern":"^\\d{9}$","description":"Exact nine-digit Israeli company registration number."},"lookback_days":{"default":366,"description":"Return events recorded during this many recent days.","type":"integer","minimum":1,"maximum":366},"limit":{"default":25,"description":"Maximum number of most-recent events to return.","type":"integer","minimum":1,"maximum":100},"language":{"default":"en","type":"string","enum":["en","he"]}},"required":["company_number","lookback_days","limit","language"],"additionalProperties":false},"entity":{"type":"object","required":["legal_name","company_number","status"],"properties":{"legal_name":{"type":"string"},"company_number":{"type":"string"},"status":{"type":"string"}}},"changes":{"type":"object","required":["available","total_matching_events","returned_count","latest_event_date","categories_present","events"],"properties":{"available":{"type":"boolean"},"total_matching_events":{"type":"integer"},"returned_count":{"type":"integer"},"latest_event_date":{"type":["string","null"]},"categories_present":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"object","required":["event_date","request_type","category","request_type_code","charge_id","source_record_id"],"properties":{"event_date":{"type":["string","null"]},"request_type":{"type":"string"},"category":{"type":"string"},"request_type_code":{"type":["string","null"]},"charge_id":{"type":["string","null"]},"source_record_id":{"type":"string"}}}}}},"evidence":{"type":"array","items":{"type":"object"}},"limitations":{"type":"array","items":{"type":"string"}},"checked_at":{"type":"string"}}}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required; instructions are returned in PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"409":{"description":"Ambiguous entity resolution"},"422":{"description":"No reliable entity resolution"},"429":{"description":"Rate limited"},"502":{"description":"Critical public source unavailable"}}}},"/v1/agent-payment-trust":{"post":{"tags":["agent-payments"],"summary":"Check an x402 payment before signing","description":"Free dry-run. Resolves the Israeli company and checks a signed domain payee manifest, exact payment destination, resource origin, fingerprint, and buyer mandate. Never signs or submits a payment.","operationId":"check_agent_payment_trust","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"company_number":{"type":"string","minLength":1,"maxLength":30},"company_name":{"type":"string","minLength":2,"maxLength":200},"service_url":{"type":"string","maxLength":500,"format":"uri"},"payment":{"type":"object","properties":{"scheme":{"default":"exact","type":"string","minLength":1,"maxLength":50},"network":{"type":"string","minLength":3,"maxLength":100},"asset":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},{"type":"string","const":"native"}]},"amount":{"type":"string","pattern":"^[1-9][0-9]{0,77}$"},"pay_to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"resource_url":{"type":"string","maxLength":500,"format":"uri"}},"required":["scheme","network","asset","amount","pay_to"],"additionalProperties":false},"manifest_mode":{"default":"fetch","type":"string","enum":["fetch","inline","none"]},"manifest":{"type":"object","properties":{"version":{"type":"string","const":"0.1"},"company_number":{"type":"string","minLength":1,"maxLength":30},"legal_name":{"type":"string","minLength":2,"maxLength":200},"service_origin":{"type":"string","maxLength":500,"format":"uri"},"allowed_payments":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"network":{"type":"string","minLength":3,"maxLength":100},"asset":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},{"type":"string","const":"native"}]},"pay_to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["network","asset","pay_to"],"additionalProperties":false}},"issued_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"signing_address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}$"}},"required":["version","company_number","service_origin","allowed_payments","issued_at","expires_at","signing_address","signature"],"additionalProperties":false},"mandate":{"type":"object","properties":{"max_amount":{"type":"string","pattern":"^[1-9][0-9]{0,77}$"},"allowed_networks":{"maxItems":20,"type":"array","items":{"type":"string","minLength":3,"maxLength":100}},"allowed_assets":{"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},{"type":"string","const":"native"}]}},"allowed_pay_to":{"maxItems":50,"type":"array","items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"allowed_company_numbers":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":30}}},"additionalProperties":false},"previous_payment_fingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$"},"language":{"default":"en","type":"string","enum":["en","he"]}},"required":["service_url","payment","manifest_mode","language"],"additionalProperties":false}}}},"responses":{"200":{"description":"ALLOW, REVIEW, or DENY dry-run decision","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"assessment_version":{"type":"string"},"mode":{"type":"string","const":"dry_run"},"entity":{"anyOf":[{"type":"object","properties":{"legal_name":{"type":"string"},"company_number":{"type":"string"},"status":{"type":"string"}},"required":["legal_name","company_number","status"],"additionalProperties":false},{"type":"null"}]},"payment_fingerprint":{"type":"string"},"decision":{"type":"object","properties":{"action":{"type":"string","enum":["ALLOW","REVIEW","DENY"]},"automation_safe":{"type":"boolean"},"assurance_level":{"type":"string","enum":["LEVEL_0_UNVERIFIED","LEVEL_1_SIGNED","LEVEL_2_REGISTRY"]},"reason_codes":{"type":"array","items":{"type":"string"}},"explanation":{"type":"string"}},"required":["action","automation_safe","assurance_level","reason_codes","explanation"],"additionalProperties":false},"checks":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"status":{"type":"string","enum":["PASS","REVIEW","FAIL","NOT_CHECKED"]},"claimed":{},"observed":{}},"required":["code","status","claimed","observed"],"additionalProperties":false}},"manifest":{"type":"object","properties":{"mode":{"type":"string","enum":["fetch","inline","none"]},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"fetched_from_service_domain":{"type":"boolean"},"signature_valid":{"type":"boolean"},"signing_payload":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mode","source_url","fetched_from_service_domain","signature_valid","signing_payload"],"additionalProperties":false},"limitations":{"type":"array","items":{"type":"string"}},"next_action":{"type":"object","properties":{"proceed_to_payment":{"type":"boolean"},"human_review_required":{"type":"boolean"},"reason":{"type":"string"}},"required":["proceed_to_payment","human_review_required","reason"],"additionalProperties":false},"checked_at":{"type":"string"}},"required":["assessment_version","mode","entity","payment_fingerprint","decision","checks","manifest","limitations","next_action","checked_at"],"additionalProperties":false}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limited"},"500":{"description":"Unexpected internal error"}}}}}}