API token and bearer token mean the same thing here. The token is sent as `Authorization: Bearer YOUR_API_TOKEN`.
Users can generate and copy their API token from the signed-in `API` page inside the dashboard.
On this platform, your API app should use the platform service ID. You do not need to send raw network IDs or raw plan IDs when purchasing through this API.
Service purchases use one generic endpoint. The request body changes depending on the service type.
Airtime and data purchases are wallet-funded. If the transaction processor does not return an explicit successful status, the platform auto-refunds the wallet.
Bill purchases are also wallet-funded. Electricity, TV, and education purchases auto-refund when the transaction processor does not return a true successful delivery state.
Recharge-card printing is wallet-funded too. If the processor does not return a successful status, the wallet is refunded automatically.
Buy Logs products also use the generic purchase endpoint. First get the correct `buy_logs` service ID from `/services?type=buy_logs`.
Boost services also use the generic purchase endpoint. First get the correct `social_boost` service ID from `/services?type=social_boost`.
Bulk SMS is wallet-funded as well. If the processor does not return a successful send response, the wallet is refunded automatically.
Virtual Number purchases are available to API users through `/api/v1/virtual-numbers/*`. Use `/virtual-numbers/catalog` first to discover the current server and service keys before sending a purchase request.
USA Number 2 API purchases support optional `area_codes`, `carrier`, `rent_specific_number`, and `re_rent_number` fields. Send only the rent field that matches your flow.
Use `/services` first in Postman to discover the correct service IDs for airtime, data, and bills before sending a purchase request.
Recharge-card printing also uses the generic purchase endpoint. First get the correct `print_card` service ID from `/services?type=print_card`.
Buy Logs purchases can return account delivery data in the final transaction metadata. Encourage API users to read `/transactions` for the completed fulfillment payload.
Bulk SMS also uses the generic purchase endpoint. First get the correct SMS service ID from `/services?type=bulk_sms`.
Password reset and email verification depend on a working mail configuration in your Laravel `.env`.