The Iascroft REST API lets you integrate gift cards, airtime, digital products, wallet management and vouchers into any application using standard HTTP requests.
Base URL
https://api.iascroft.com/v1
Response Format
application/json
Authentication
Bearer Token
All API requests must include your secret key as a Bearer token in the Authorization header.
All API requests go to this base URL. Include the following headers on every request.
Content-Type
application/json
Required on POST/PUT requests
Accept
application/json
Ensures JSON response
Authorization
Bearer <key>
Required on every request
X-Idempotency-Key
string
Optional. Prevent duplicate requests
Limits depend on your plan. Exceeding limits returns a 429 Too Many Requests error with a Retry-After header.
| Plan | Requests / Min | Requests / Month | Endpoints |
|---|---|---|---|
| Starter | 10 | 1,000 | Gift Cards, Airtime |
| Merchant | 60 | 10,000 | All endpoints |
| Enterprise | Unlimited | Unlimited | All + priority SLA |
/v1/giftcard/products
List all available gift card products in the catalogue. Filter by country or currency.
Query Parameters (optional)
countrystringFilter by ISO country code (US, GB, NG)currencystringFilter by ISO currency code (USD, GBP)limitintegerResults per page (default: 20, max: 100)pageintegerPage number (default: 1)/v1/giftcard/purchase
Purchase a gift card. Amount is deducted from your merchant wallet. Code is returned immediately.
| Parameter | Type | Required | Description |
|---|---|---|---|
product_id |
string |
required | Product ID from GET /v1/giftcard/products |
amount |
number |
required | Must match a valid denomination for the product |
currency |
string |
required | ISO 4217 code: USD, GBP, EUR, NGN, GHS, KES |
recipient_email |
string |
optional | Optional — code will also be emailed to recipient |
reference |
string |
optional | Your own idempotency key (max 64 chars) |
/v1/giftcard/status/{reference}
Check the delivery status of a gift card transaction by its reference ID.
/v1/airtime/operators
List available airtime operators. Filter by country code.
/v1/airtime/topup
Top up any phone number. Supports 200+ operators in 150+ countries.
/v1/digital/products
List all available digital products (license keys and activation codes).
/v1/digital/purchase
Purchase a digital product. License key or activation code is returned immediately.
/v1/wallet/balance
Get current merchant wallet balance.
/v1/wallet/fund
Initiate a wallet funding request. Returns payment instructions.
/v1/wallet/withdraw
Request a withdrawal from your merchant wallet. Subject to admin approval.
Subscribe to these events from the Webhooks page. We send a signed POST to your endpoint on each event.
| Event | Trigger |
|---|---|
transaction.completed | Any transaction succeeds |
transaction.failed | Any transaction fails |
transaction.pending | Transaction awaiting processing |
wallet.funded | Merchant wallet funded |
wallet.withdrawn | Withdrawal processed |
kyc.approved | User KYC approved |
kyc.rejected | User KYC rejected |
voucher.redeemed | Voucher code redeemed |
Every webhook includes a X-Iascroft-Signature header. Always verify it.
All errors follow this consistent structure. Use error.code for programmatic error handling.