Eazita Developers

Manage API: Get Accounts

Create, List or Update your Customer's account.

Request URL

https://api.eazita.com/accounts

Query Parameter

KeyDescriptionDefault
api
REQUIRED | string
Your API keyNone
pass
REQUIRED | string
Your account passwordNone
id
integer
Account id of the customer to retrive specific customer's details.None
filter
string
You can filter the results with & will not work with id parameter.None

Get list of all Accounts

https://api.eazita.com/accounts?api=YOUR_API_KEY&pass=YOUR_PASSWORD

Response Example

HTTP/1.1 200 OK
Content-Type: application/json
{
    "code": 1,
    "data": [
        {
            "id": "3895",
            "name": "Alice",
            "email": "[email protected]",
            "gsm": "+92312222222222",
            "type": "1",
            "status": "0",
            "balance": "86.98"
        },
        {
            "id": "3896",
            "name": "Asuka",
            "email": "[email protected]",
            "gsm": "+923133333333",
            "type": "1",
            "status": "0",
            "balance": "142.35"
        }
    ]
}

After submitting the request you will receive accounts array in 'data' parameter.

Response Parameters

ParameterDescription
id
Account id of the Customer.
name
Name of the Customer.
email
E-mail Address of the Customer.
gsm
Phone number of the Customer.
type
Type will be 0 or 1, 0 means Simple Customer & 1 means Reseller Account.
status
Status will be 0 or 1, 0 means acount is active & 1 means it is disabled.
balance
Current Balance of the Customer.

Get record of a specific Customer

https://api.eazita.com/accounts?api=YOUR_API_KEY&pass=YOUR_PASSWORD&id=ACCOUNT_ID

Response Example

HTTP/1.1 200 OK
Content-Type: application/json
{
    "code": 1,
    "data": [
        {
            "id": 3895,
            "name": "Alice",
            "email": "[email protected]",
            "gsm": "+92312222222222",
            "country": null,
            "city": "Ohio",
            "address": "Demo street road",
            "apikey": "bjhsa9GHbhj",
            "password": "123456",
            "masktype": "1",
            "type": "1",
            "status": "0",
            "phoneverified": "1",
            "balance": "75.88"
        }
    ]
}

After submitting the request you will receive data array in 'data' parameter same as above but with few more details:

Response Parameters

ParameterDescription
country
Country of the Customer.
city
City of the Customer.
address
Home Address of the Customer.
apikey
Secret API-KEY of the customer of the Customer.
password
Password of the customer.
masktype
Mask type will be 0 or 1, 0 means customer is free to use any mask & 1 means customer has to first register mask with us.
phoneverified
Phone status will be 0 or 1, 0 means not verified and 1 means verified.