Introduction

The Autify Reseller Apis Can be used to integrate autify services supported by the platform on the Reseller's applications.

Api keys

Kindly access your api keys on your dashboard Apis page

  • The Live key is the key to be used in production mode it shoud be passed in the header of every request as the value of "api-key"
  • The Test Key is the key to use while testing, response from test will be ideal responses
Base URL

Live Mode Base URL: https://ufardata.com.ng/api/reseller

Test Mode Base URL: https://ufardata.com.ng/api/testreseller

Buy Airtime

Endpoint is: /airtime

Request method is: POST

Request Parameters

{ "amount":100, "mobile":"phone number" }

Example Curl Request Below

curl --location --request POST 'https://ufardata.com.ng/api/reseller/airtime' \ --header 'Accept: application/json' \ --header 'api-key: Your API Key' \ --header 'Content-Type: application/json' \ --data-raw '{ "amount":100, "mobile":"phone number" }'

Ideal Response Example Below

{ "status": 200, "message": "Order Successful", "order": { "id": 62, "offer": "airtime", "amount_charged": 48.5, "status": "pending", "provider": "MTN", "balance_before": 3006, "balance_after": 2957.5 } }
Get Data Plans

Endpoint is: /data/plans/phone number

Request method is: GET

Example Curl Request Below

curl --location --request GET 'https://ufardata.com.ng/api/reseller/data/plans/phone number' \ --header 'Accept: application/json' \ --header 'api-key: your API key'

This Endpoint Returns The List of current Available Plans For the Phone Number Network

Buy Data

Endpoint is: /data

Request method is: POST

Request Parameters

{ "plan_id": id of plan gotten from Get Data Plans, "mobile":"phone number" }

Example Curl Request Below

curl --location --request POST 'https://ufardata.com.ng/api/reseller/data' \ --header 'Accept: application/json' \ --header 'api-key: your API key' \ --header 'Content-Type: application/json' \ --data-raw '{ "plan_id": id of plan gotten from Get Data Plans, "mobile":"09000000000" }'

Ideal Response Example Below

{ "status": 200, "message": "Order Successful", "order": { "id": 61, "offer": "data", "amount_charged": "300", "status": "pending", "provider": "MTN", "balance_before": 3306, "balance_after": 3006 } }
Monitor Order

Endpoint is: /order/id of the order

Request method is: GET

Example Curl Request Below

curl --location --request GET 'https://ufardata.com.ng/api/reseller/order/order id' \ --header 'Accept: application/json' \ --header 'api-key: Your API Key'

This Endpoint Returns The Details of an order including current status

Ideal Response Example Below

{ "status": 200, "message": "Order status is complete", "order": { "id": 62, "offer": "airtime", "amount_charged": 48.5, "status": "complete", "provider": "MTN", "balance_before": 3006, "balance_after": 2957.5 } }