Getting started
This content is for v1. Switch to the latest version for up-to-date documentation.
Install
Section titled “Install”npm install @sahel/sdk@1Create a client
Section titled “Create a client”Find your API key in the dashboard under Settings → API keys.
import { Sahel } from "@sahel/sdk";
const sahel = new Sahel(process.env.SAHEL_KEY);Make a request
Section titled “Make a request”const invoice = await sahel.createInvoice({ customer: "cus_123", amount: 25000, currency: "NGN" });console.log(invoice.id);Next, read about configuration.