Skip to content

Getting started

This content is for v1. Switch to the latest version for up-to-date documentation.

Terminal window
npm install @sahel/sdk@1

Find your API key in the dashboard under Settings → API keys.

import { Sahel } from "@sahel/sdk";
const sahel = new Sahel(process.env.SAHEL_KEY);
const invoice = await sahel.createInvoice({ customer: "cus_123", amount: 25000, currency: "NGN" });
console.log(invoice.id);

Next, read about configuration.