Skip to content

Migrating to v2

v2 has one breaking change and two additions.

const sahel = new Sahel(process.env.SAHEL_KEY, { timeout: 10_000 });
const sahel = new Sahel({ apiKey: process.env.SAHEL_KEY, timeout: 10_000 });
  • listInvoices returns every invoice, page by page, as an async iterator.
  • Requests are retried three times instead of two.

Older docs are still here: pick v1 in the version menu.