OpenAPI Reference
The OpenAPI reference is the exact HTTP contract for direct PayChain integrations. Use it when you need endpoint paths, request bodies, response schemas, query parameters, and error shapes.Reference note: The OpenAPI contract is external-only. Dashboard session routes, admin routes, internal routes, mock routes, and health endpoints are excluded.
Where to find it
| Format | Location |
|---|---|
| JSON contract | /docs/openapi on the PayChain web app |
| Repo source | apps/web/contracts/openapi.json |
| Human guides | This documentation site |
How to use OpenAPI with these docs
- Start with Payment flows to choose the right integration pattern.
- Use SDK guide if you are building with Node.js or TypeScript.
- Use REST API guide if you are calling PayChain over HTTPS directly.
- Use this OpenAPI reference when you need exact fields, schemas, and path details.
Included surfaces
The external contract includes the core merchant integration surfaces:- Businesses.
- Customers.
- Invoices.
- Public invoice status.
- Balances.
- Transactions.
- Withdrawals.
- Webhook configuration and delivery events.
- Networks.
- Tokens.
- Prices and supported assets.
Excluded surfaces
The contract intentionally excludes:- Admin endpoints.
- Dashboard-only session flows.
- API key creation and rotation flows.
- Internal infrastructure routes.
- Mock/testing-only routes.
- Health and metrics endpoints.
Authentication
External API requests use thex-api-key header.
Idempotency-Key on mutating requests.
Updating the contract
When endpoint behavior changes, regenerate the external contract from the repo and review it before publishing:- No admin paths are included.
- No internal provider or signer details are included.
- Examples use placeholder IDs, addresses, and secrets.
- Webhook routes are included.
- Response schemas match the deployed API.