Skip to content

Getting started

Terminal window
npm install @sahel/sdk@2

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

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

Next, read about configuration. Coming from v1? See migrating to v2.