Skip to main content
The Payment Gateway is the public entry point for the hosted platform. Every payment-protocol request arrives here, is authenticated, routed and — for anything that requires money to have moved — handed to the facilitator for an on-chain answer before a response is signed. Public hostname: https://api.algovoi.co.uk.

What it owns

  • Protocol entry points — x402, MPP, AP2 and A2A skills, plus hosted checkout and payment links
  • Request discipline — JSON only (other content types get 415), Idempotency-Key on creating endpoints with a 24-hour replay window, and an X-Request-Id on every response
  • Authentication — Authorization: Bearer <key> plus X-Tenant-Id; tenant keys are prefixed algv_, operator keys algvc_, webhook signing secrets algvw_. See Authentication
  • Event delivery — the cloud event bridge that signs and delivers webhooks
  • The database — Postgres, shared with the compliance engine’s hash-chained tables

What it does not own

Chain reads. The gateway never decides whether a transaction settled; it asks the facilitator, which is stateless and knows nothing about tenants.

Request path

  1. Cloudflare and the cloud edge terminate TLS and filter the request.
  2. The gateway authenticates the caller and resolves the tenant.
  3. Protocol-specific logic builds or validates the payment challenge.
  4. Settlement is verified by the facilitator.
  5. The compliance engine screens the payer.
  6. The event is written to the audit chain and the webhook is signed and delivered.

Versioning

The REST surface is unversioned in the URL. Breaking changes are gated by feature flag and announced in the changelog; webhook payloads carry an api_version field so receivers can detect schema changes.