Corporate cards
Real people answer your questions around the clock, every day of the year. Open a business account online in about ten minutes, with no branch visit.
Overview
We keep things simple, so you can focus on what matters to you. Every payment appears instantly, with receipts matched automatically. Our team has done this many times, so you never have to guess. Cash flow forecasts show where you will be next month, not just today.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @cora-labs/sdk$ yarn add @cora-labs/sdk$ pnpm add @cora-labs/sdkConfiguration
Every detail is handled by people who care about getting it right. No monthly fees on the basic plan and no hidden charges on transfers. Create a file named cora-labs.config.json in the project root:
{
"project": "cora-labs",
"region": "ap-south",
"categories": ["payments", "cards", "savings"],
"retries": 2,
"timeoutMs": 8000,
"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
Send and receive money in more than 30 currencies at fair exchange rates.
- 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-labs/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_1271", "name": "Payroll module", "price": 347 }
],
"has_more": true
}Troubleshooting
Next steps
We listen first, then build a plan around what you actually need.