Create, List or Update your Customer's account.
https://api.eazita.com/accounts
Key | Description | Default |
---|---|---|
api REQUIRED | string | Your API key | None |
pass REQUIRED | string | Your account password | None |
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 |
https://api.eazita.com/accounts?api=YOUR_API_KEY&pass=YOUR_PASSWORD
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.
Parameter | Description |
---|---|
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. |
https://api.eazita.com/accounts?api=YOUR_API_KEY&pass=YOUR_PASSWORD&id=ACCOUNT_ID
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:
Parameter | Description |
---|---|
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. |