Introduction
The Fkash API accepts UTF-8 JSON over HTTPS. The current API activation fee is ৳100.00. The administrator can change the fee or temporarily disable API access.
Authentication
Include your Fkash credentials in each JSON request. You can also use the X-FKASH-KEY and X-FKASH-SECRET headers.
| Field | Required | Description |
|---|---|---|
api_key | Yes | Public key from your Fkash API dashboard |
api_secret | Yes | Secret shown when credentials are created or regenerated |
client_name | Recommended | Your app or website name. It appears in admin API logs. |
Operator codes
| Operator | Code |
|---|---|
| Grameenphone | GP |
| Robi | RB |
| Airtel | AT |
| Banglalink | BL |
| Teletalk | TT |
| Skitto | SK |
| Brilliant | BT |
| Ryze | RY |
Recharge
Submit a prepaid or postpaid recharge. Use a unique trxid for every transaction. Reusing the same trxid with identical details returns the existing transaction. Reusing it with different details returns HTTP 409.
| Field | Required | Description |
|---|---|---|
| number | Yes | 11-digit number, 01XXXXXXXXX |
| type | Yes | prepaid or postpaid |
| operator | Yes | Operator code |
| amount | Yes | Minimum ৳9 |
| package_id | No | Package or drive ID when applicable |
| trxid | Yes | Your unique idempotency ID |
| client_name | No | App/site name for audit logs |
| api_key | Yes | Fkash API key |
| api_secret | Yes | Fkash API secret |
Example response
Rank-based commission
API recharge uses the same recharge commission assigned to the user's Fkash rank. There is no separate API commission rate.
- The full recharge amount is reserved from the Fkash wallet when the request is accepted.
- The user's rank and commission percentage are snapshotted on the recharge order.
- Commission is credited to the same Fkash wallet only after Success TopUp confirms
Success. - Pending/Processing orders do not receive commission yet.
- Failed/Cancel orders receive a one-time refund of the charged amount and no commission.
Transaction status
Pending requests are checked against the provider. Final statuses are normalized to Fkash status values such as success, processing or cancel.
Balance
This returns the API user's Fkash wallet balance and assigned recharge commission. It does not expose the master Success TopUp provider balance.
Drive list
Code examples
cURL
Node.js
PHP
Python
Security and operations
- Use HTTPS only in production.
- Keep the API secret on your backend. Do not embed it in public JavaScript or publish it in an APK if the APK can be reverse engineered.
- Use a unique trxid for every recharge.
- Store the returned status and poll
/statusfor pending transactions. - If credentials are exposed, regenerate them immediately from the Fkash API dashboard.
- API requests, client name, destination number, IP, result and source are recorded for admin audit.