Every endpoint, every field, every error.
The Logic API is a single REST surface. Resources are nouns. Operations are HTTP verbs. Errors are stable codes. Pagination is cursor-based. Idempotency is required for every write.
Core resources
Merchants, Invoices, Payments, Refunds, Payouts, Wallets, Webhook Endpoints, API Keys, and Settlements. Each resource has list, retrieve, create, update, and delete operations where applicable.
Authentication
Bearer tokens scoped per merchant. Keys carry a role: secret, restricted, or publishable. Restricted keys can be scoped to specific resources and IP ranges.
Versioning
The API is versioned by date. Pin a version per merchant. Upgrades are opt-in and never break in place.