Every endpoint of the API is described in one OpenAPI 3.1 document at https://anytime-capital.com/api/v1/openapi.json: its parameters, request bodies, responses, errors, the API key permission it needs and whether it takes an Idempotency-Key. It is public (no key), served with Access-Control-Allow-Origin: *, and built from the same tables as this reference, so the two always agree.
| Detail | Value |
|---|---|
| URL | https://anytime-capital.com/api/v1/openapi.json |
| Format | OpenAPI 3.1 (JSON Schema 2020-12), JSON |
| Version | info.version is 2026-10-24; it changes when the contract does. See the Changelog. |
| Operations | 53, each with an operationId such as createPaymentLink |
| Authentication | bearerAuth: Authorization: Bearer ak_live_… |
x-anytime-permission | On each operation: the key permission it needs, such as refunds:write |
x-anytime-idempotent | On each operation: whether it honours the Idempotency-Key header |
Tags
| Tag | What it covers | Reference |
|---|---|---|
| Payments | Card, wallet and bank payments. | payments |
| Refunds | Refunds, including those waiting for an owner's approval. | refunds |
| Payment links | Hosted payment pages. | payment-links |
| Invoices | Invoices emailed to customers and paid by card. | invoices |
| Customers | The business's saved customers. | customers |
| Products | The product catalog. | products |
| Subscriptions | Subscription plans and subscribers. | subscriptions, meters |
| Discount codes | Codes customers enter at checkout. | discount-codes |
| Payouts | Payouts to the business's bank, and its balance. | payouts-api |
| Disputes | Disputes on the business's payments. | disputes |
| Webhook endpoints | Where events are sent (REST hooks). | webhook-endpoints |
| Events | Every event from the last 30 days, for reconciliation and missed deliveries. | events |
| Test helpers | Test mode only (ak_test_ keys): simulate events without real money. | test-helpers |
| Meta | About the API itself. | openapi |
Use it
- Typed TypeScript:
npx openapi-typescript https://anytime-capital.com/api/v1/openapi.json -o anytime-capital.d.tsgives you the request and response types to use withfetch. - API clients: import the URL into Postman, Insomnia or Bruno to get every request ready to send; set the bearer token to your key. Or import the ready-made Postman collection, with example bodies and your key as a variable.
- Other languages: any generator that reads OpenAPI 3.1 can build a client from it. Check the generated code sends
Idempotency-Keyon writes. - AI tools: give an assistant the URL alongside llms-full.txt so it writes calls against the real schemas. See the AI agents hub.
Endpoint
Get this OpenAPI document
/api/v1/openapi.jsonThe API described in OpenAPI 3.1. Public; no key needed. Served with Access-Control-Allow-Origin: * and cached for an hour, so browsers, API clients and code generators can load it directly.
curl https://anytime-capital.com/api/v1/openapi.jsonconst res = await fetch("https://anytime-capital.com/api/v1/openapi.json");
const spec = await res.json();import requests
res = requests.get(
"https://anytime-capital.com/api/v1/openapi.json",
timeout=30,
)
spec = res.json(){
"openapi": "3.1.0",
"info": {
"title": "Anytime Capital Payments API",
"version": "2026-10-24",
"…": "…"
},
"servers": [
{
"url": "https://anytime-capital.com/api/v1",
"description": "Production"
}
],
"paths": {
"/payments": {
"get": {
"operationId": "listPayments",
"x-anytime-permission": "payments:read",
"…": "…"
}
},
"…": "…"
},
"components": {
"…": "…"
}
}