Expense tracking
We measure success by how many members come back and tell their friends. Open a business account online in about ten minutes, with no branch visit.
Overview
Thousands of members already trust us, and we work hard to keep it that way. Cash flow forecasts show where you will be next month, not just today. Invoices go out with a payment link, so customers can pay you in one click. Send and receive money in more than 30 currencies at fair exchange rates.
Installation
Install the SDK with the package manager your project already uses. It needs Node 18 or newer.
$ npm install @glowis/sdk$ yarn add @glowis/sdk$ pnpm add @glowis/sdkConfiguration
Issue virtual and physical cards to your team with limits you control. Cash flow forecasts show where you will be next month, not just today. Create a file named glowis.config.json in the project root:
{
"project": "glowis",
"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
Open a business account online in about ten minutes, with no branch visit.
- 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 "@glowis/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_3776", "name": "Pro account", "price": 314 }
],
"has_more": true
}Troubleshooting
Next steps
We measure success by how many members come back and tell their friends.