This SDK was built by the Afriex DevRel team, winners of our hackathon. We loved what they built so much that it became the official SDK. Big shoutout to the team for making this happen.
Overview
The Afriex SDK is a TypeScript library that wraps the Afriex Business API with full type definitions, built-in retry logic, and modular imports. Most REST endpoints in the API reference have a matching SDK method, and where one exists the TypeScript snippet appears as a tab in the right-hand code panel on that endpoint’s page. A few endpoints are not covered by the SDK yet, including SME registration, presigned media uploads, settlement advice and pool-account payment proof; call those over REST. This page covers what is SDK-specific: install, init, configuration, retries, environments, and webhook signature handling.Installation
Quick Start
1. Initialize the SDK
2. Make your first calls
Configuration
Enable Retries
Retries are disabled by default. Enable them withretryConfig:
Environments
Get your API key from the Afriex Dashboard under the Developer tab.
