Wafi Telecom Logo

Wafi Telecom API

Mobile Recharge Service - Official API Documentation

Authentication

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN
Acceptapplication/json
Content-Typeapplication/json

Endpoint

POST

https://wafitelecom.net/api/mobile-recharge

IP restriction enabled. Requests must be sent from registered server IP.

Request Parameters

Parameter Type Required Description
mobile_number string Yes 10-digit Afghanistan mobile number
amount number Yes Min: 25 AFN - Max: 4000 AFN

Sample Request

{
  "mobile_number": "0791234567",
  "amount": 100
}

Sample Success Response

200 OK
{
  "success": true,
  "message": "Top-up Transaction Successful!",
  "data": {
    "id": 15,
    "customer_id": 3,
    "address": "0791234567",
    "amount": 100,
    "network": "Roshan",
    "price": 100,
    "created_at": "2026-02-11 10:15:22"
  }
}

Error Responses

401 Unauthorized

403 IP not allowed

422 Validation Error / Invalid Mobile Number

cURL Example

curl -X POST https://wafitelecom.net/api/mobile-recharge \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
        "mobile_number": "0791234567",
        "amount": 100
      }'