# KYBRail — Counterparty KYB, EU E-Invoicing & Sanctions API

> Deterministic verification API & MCP server for AI agents, AP/ERP automation, and treasury workflows.
> Fuses official OFAC SDN, EU FSF, UN Consolidated, UK FCDO sanctions (+ crypto wallets), EU Peppol Directory, EU EORI SOAP, EU VIES VAT, GLEIF LEI, IBAN/SEPA, and Domain RDAP/DMARC.

## Payment Rails (No Subscriptions Needed)
- **x402 Protocol (eip155:8453 USDC):** Send standard HTTP requests to `https://kybrail.aesyl.com/v1/*`; sign the returned HTTP 402 payment header automatically.
- **Apify Store (Fiat Pay-Per-Event & Hosted Standby MCP):**
  - Full KYB & Sanctions MCP Server: https://apify.com/store
  - Peppol E-Invoicing Directory Checker: https://apify.com/store
  - EU EORI + VIES VAT + IBAN Validator: https://apify.com/store

## Endpoints & x402 Pricing
- `GET  /v1/ping` ($0.001) — Live x402 settlement check
- `POST /v1/dossier` ($0.04) — Unified counterparty KYB, invoicing & payment safety dossier
- `POST /v1/sanctions` ($0.01) — OFAC/EU/UN/UK entity & crypto wallet screening
- `POST /v1/peppol` ($0.005) — Peppol directory & BIS Billing 3.0 e-invoice check
- `POST /v1/vat` ($0.005) — Official EU VIES VAT check
- `POST /v1/eori` ($0.005) — Official EU EORI customs check
- `POST /v1/iban` ($0.005) — ISO 13616 IBAN, SEPA & SWIFT/BIC match
- `POST /v1/lei` ($0.005) — GLEIF LEI & ultimate parent lookup
- `POST /v1/domain` ($0.005) — Domain RDAP age & SPF/DMARC spoofing risk

## Free Deterministic Sandbox (Zero Cost)
- `GET  https://kybrail.aesyl.com/v1/sandbox/scenarios`
- `POST https://kybrail.aesyl.com/v1/sandbox/dossier`
- OpenAPI 3.1 Spec: https://kybrail.aesyl.com/openapi.json
- MCP Manifest: https://kybrail.aesyl.com/.well-known/mcp.json
