Invoicing
Friendly people answer your questions quickly, by phone, chat or email. We listen first, then build a plan around what you actually need.
Overview
Start in minutes and get help from a real person whenever you need it. Set approval rules for large payments and see who spent what, and why. Clear prices, honest advice and no surprises along the way.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @cora-hq/sdk$ yarn add @cora-hq/sdk$ pnpm add @cora-hq/sdkConfiguration
Every payment appears instantly, with receipts matched automatically. Accounting sync keeps your books up to date without manual exports. Create a file named cora-hq.config.json in the project root:
{
"project": "cora-hq",
"region": "eu-west",
"categories": ["payments", "cards", "savings"],
"retries": 4,
"timeoutMs": 9000,
"webhooks": { "enabled": true }
}| Option | Type | Default | Description |
|---|---|---|---|
project | string | - | Your project key from the dashboard. |
region | string | "us-east" | Data centre closest to your members. |
retries | number | 3 | How often a failed call is retried. |
timeoutMs | number | 10000 | Time before a request is cancelled. |
webhooks.enabled | boolean | false | Send events to your endpoint. |
Your first request
We listen first, then build a plan around what you actually need.
- Create an API keyOpen the dashboard, choose Settings › API keys and copy a new secret key.
- Store it safelyKeep the key in an environment variable, never in your source code.
- Make the callRun the snippet below; it prints the first page of results.
import { Client } from "@cora-hq/sdk";
const client = new Client({ apiKey: process.env.API_KEY });
// list the newest accounts in one category
const page = await client.accounts.list({ category: "payments", limit: 20 });
for (const item of page.data) {
console.log(item.name, item.price);
}API reference
Every endpoint returns JSON and uses standard HTTP status codes.
/v1/accountsList accounts with paging and filters./v1/accountsCreate a new account./v1/accounts/{id}Update some fields of a account./v1/accounts/{id}Archive a account; it can be restored for 30 days.{
"data": [
{ "id": "account_7573", "name": "Payroll module", "price": 323 }
],
"has_more": true
}Troubleshooting
Next steps
Clear prices, honest advice and no surprises along the way.