{"openapi":"3.1.0","info":{"title":"KYBRail — Counterparty KYB, EU E-Invoicing (Peppol/EORI/VIES/IBAN) & Sanctions API","version":"1.0.0","description":"Deterministic B2B vendor & counterparty verification API for AI agents and finance workflows. Fuses official OFAC/EU/UN/UK entity & crypto wallet sanctions, EU Peppol BIS Billing 3.0 directory, EU EORI customs SOAP, EU VIES VAT, GLEIF LEI ownership, IBAN/SEPA validation, and domain RDAP/DMARC trust checks. Pay per call via HTTP x402 (Base USDC) or via Apify Store Pay-Per-Event."},"servers":[{"url":"https://kybrail.aesyl.com","description":"Production KYBRail API"}],"paths":{"/health":{"get":{"summary":"Health and sanctions database sync status (free)","responses":{"200":{"description":"Service health status"}}}},"/v1/sandbox/scenarios":{"get":{"summary":"List free deterministic sandbox test scenarios (zero upstream cost)","responses":{"200":{"description":"List of sandbox test inputs"}}}},"/v1/sandbox/dossier":{"post":{"summary":"Run a free deterministic sandbox counterparty dossier (no payment required)","responses":{"200":{"description":"Pre-computed realistic sandbox dossier"}}}},"/v1/ping":{"get":{"summary":"Live x402 settlement verification ping","x-x402-pricing":{"price":"$0.001","network":"eip155:8453"},"responses":{"200":{"description":"Payment settled and gateway operational"},"402":{"description":"Payment Required (x402 USDC challenge)"}}}},"/v1/dossier":{"post":{"summary":"Full 1-call Counterparty KYB, EU E-Invoicing & Payment Safety Dossier","x-x402-pricing":{"price":"$0.04","network":"eip155:8453"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyName":{"type":"string"},"countryCode":{"type":"string","minLength":2,"maxLength":2},"vatNumber":{"type":"string"},"eoriNumber":{"type":"string"},"lei":{"type":"string"},"peppolId":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletAddress":{"type":"string"},"domain":{"type":"string"}}}}}},"responses":{"200":{"description":"Composite risk verdict (CLEAR | REVIEW | BLOCK) with raw official source records"},"402":{"description":"Payment Required (x402 USDC challenge)"}}}},"/v1/sanctions":{"post":{"summary":"Screen entity name, identifiers, and/or crypto wallet against OFAC, EU, UN & UK lists","x-x402-pricing":{"price":"$0.01","network":"eip155:8453"},"responses":{"200":{"description":"Sanctions match report"},"402":{"description":"Payment Required"}}}},"/v1/peppol":{"post":{"summary":"Check Peppol Directory registration & BIS Billing 3.0 EU e-invoicing readiness","x-x402-pricing":{"price":"$0.005","network":"eip155:8453"},"responses":{"200":{"description":"Peppol participant & document capability report"},"402":{"description":"Payment Required"}}}},"/v1/vat":{"post":{"summary":"Validate EU27 / XI VAT number via official European Commission VIES","x-x402-pricing":{"price":"$0.005","network":"eip155:8453"},"responses":{"200":{"description":"VIES VAT status"},"402":{"description":"Payment Required"}}}},"/v1/eori":{"post":{"summary":"Validate EU27 / XI EORI customs number via official EC EOS SOAP service","x-x402-pricing":{"price":"$0.005","network":"eip155:8453"},"responses":{"200":{"description":"EORI validation status"},"402":{"description":"Payment Required"}}}},"/v1/iban":{"post":{"summary":"Validate ISO 13616 IBAN checksum, SEPA membership & SWIFT/BIC country match","x-x402-pricing":{"price":"$0.005","network":"eip155:8453"},"responses":{"200":{"description":"IBAN & SEPA validation report"},"402":{"description":"Payment Required"}}}},"/v1/lei":{"post":{"summary":"Lookup GLEIF Legal Entity Identifier & Ultimate Parent ownership","x-x402-pricing":{"price":"$0.005","network":"eip155:8453"},"responses":{"200":{"description":"GLEIF LEI record"},"402":{"description":"Payment Required"}}}},"/v1/domain":{"post":{"summary":"Check domain RDAP age, MX, SPF & DMARC invoice-spoofing posture","x-x402-pricing":{"price":"$0.005","network":"eip155:8453"},"responses":{"200":{"description":"Domain trust report"},"402":{"description":"Payment Required"}}}}}}