Everything the till does is open to your platform: sell and top up gift cards, check and redeem them, quote businesses in bulk, and hear about every change by webhook. Official SDKs in four languages.
The docs are open to read. Test keys are free: sign up and start building straight away.
Official SDKs for your stack
PHP, Node.js, Python and Java, with the same calls in each. They sign every request, add idempotency keys, check webhook signatures and give you one error type to branch on.
No dependencies beyond the language itself
Every endpoint, for brands and resellers
Lists as pages, errors with stable codes
Or call the API directly: HMAC-signed JSON over HTTPS
$ composer require afropin/afropin-php
$afropin = new AfroPin\Client($keyId, $secret);
$pin = $afropin->reseller->pins->sell([
'catalog_id' => $catalogId,
'amount' => 5000,
'external_reference' => $orderId,
'first_name' => 'Ada', 'last_name' => 'Obi',
'email' => '[email protected]',
]);
$pin['pin_code']; // deliver it to your customer
Signed webhooks to your server for each card you sell or accept, whoever acted: your till, our API, or the cardholder in their own account. Retried if your server is down, and resent from your dashboard.
Every card you sell comes with a card account, linked from its emails and wallet pass. Your integration doesn't have to build any of it, and your webhook hears each change.
Balance and history
Every card under the customer's email, whoever sold it, signed in with a code by email.
Freeze and new codes
Freeze a lost card, get a new code once a day, keep one code or set a daily limit.
Top up by card
The payment goes to the seller's wallet as a normal top-up, with the reseller's commission.
Family cards
Cards for their family, funded from theirs, each with its own code and limit.
Transfer ownership
Hand a card to someone else, who gets a new code only they receive.
Phone wallets
Cards in Google Wallet, with the code and QR ready at the till and the balance kept up to date.
From test keys to live in four steps
01
Sign up
Open a brand or reseller account online and create your test keys.
02
Build in test mode
Use an SDK or the Postman collection, with test gift cards. No real money moves.
03
Run the test cases
Work through the UAT cases in the docs to check every path, including errors.
04
Go live
Once your business is verified, switch to live keys and start trading.