Create, Update, Delete or Login into your Customer's account.
https://api.eazita.com/account
Key | Description | Default |
---|---|---|
api REQUIRED | string | Your API key | None |
pass REQUIRED | string | Your account password | None |
action REQUIRED | string | With action parameter you can tell the API what you want to do. Valid actions are newaccount,updateaccount, loginaccount, addtransaction and deleteaccount. | None |
accountname string | Full name of your customer. | None |
accountpassword string | Password for your customer. | None |
accountemail string | Email of your customer. | None |
accountcountry string | Valid Country-ISO of your customer. | None |
accountgsm string | Phone number of your customer. | None |
accountcity string | City of your customer. | None |
accountaddress string | Home Address of your customer. | None |
masktype integer | Valid values are 0 for default, 1 for Dynamic masking and 2 for fixed masking. | None |
gsmverification integer | Is number is verified or not. Valid values are 0 for unverified & 1 for verified. | None |
accountstatus integer | Status of the account. Valid values are 0 for active & 1 for suspend. | None |
accounttype integer | Type of the account Valid values are 0 for customer & 1 for reseller. | None |
accountid integer | Account id of your customer. | None |
https://api.eazita.com/account?api=YOUR_API_KEY&pass=YOUR_PASSWORD&action=newaccount&accountname=Test&accountpassword=1234567&accountemail=[email protected]&accountcountry=US&accountgsm=923123456789&accountcity=CITY&accountaddress=DEMO
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 1,
"error": "Account successfully registered.",
"data": {
"id": "2574",
"api": "ueiu87cmmxyfbj98nqpbrtsh",
"gsm": "+923123456789"
}
}
After submitting the request you will receive new account's details in 'data' parameter.
Parameter | Description |
---|---|
id | Account id of your new Customer. |
api | API-KEY of your new Customer. |
gsm | Phone number on which the account is registered. |
https://api.eazita.com/account?api=YOUR_API_KEY&pass=YOUR_PASSWORD&action=updateaccount&accountname=Test&accountpassword=1234567&accountemail=[email protected]&accountcountry=US&accountgsm=923123456789&accountcity=CITY&accountaddress=DEMO&masktype=1&gsmverification=1&accountstatus=0&accounttype=1&accountid=2594
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 1,
"data": {
"id": "2594"
}
}
https://api.eazita.com/account?api=YOUR_API_KEY&pass=YOUR_PASSWORD&action=loginaccount&accountid=2594
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 1,
"error": "Login URL Successfully generated.",
"data": {
"userid": 2594,
"session": "0ba03321a84",
"url": "\/\/autologin.php?session=0ba03321a84&userid=2594"
}
}
https://api.eazita.com/account?api=YOUR_API_KEY&pass=YOUR_PASSWORD&action=addtransaction&accountid=2594&amount=1.00&processed=true&type=receipt&transkey=abc123&description=testing
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 1,
"error": "Transaction Successfully processed.",
"data": {
"amount": "1.0000",
"userid": 2594,
"balance_before": "0.00000",
"balance_after": "1.00000",
"processed": "true",
"transid": "2989"
}
}
https://api.eazita.com/account?api=YOUR_API_KEY&pass=YOUR_PASSWORD&action=addtransaction&accountid=2594&amount=1.00&processed=true&type=invoice&transkey=abc123&description=deduct
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 1,
"error": "Transaction Successfully processed.",
"data": {
"amount": "1.0000",
"userid": 2594,
"balance_before": "1.00000",
"balance_after": "0.00000",
"processed": "true",
"transid": "2990"
}
}
https://api.eazita.com/account?api=YOUR_API_KEY&pass=YOUR_PASSWORD&action=deleteaccount&accountid=2594
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 1,
"data": {
"id": "2594"
}
}