Agent Registration

Use this API to become a agent of live.glidefares.com

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

requestBody

array

( query)

Must be an array with the following parameters

array('first_name'=>'Agent First Name', 'last_name'=>'Agent Last Name', 'email'=>'Agent eMail', 'companyname'=>'Agent Company Name', 'companyaddress'=>'Agent Address', 'gstnumber'=>'Agent GST Number', 'password'=>'Password', 'phone'=>'Phone No', 'phone_isd'=>'ISD Code', 'isautologin'=>'+91', 'phone'=>'0522-xxxxx');

REQUEST

API Endpoint: https://abengines.com/api/v1/console-api/agent-api/agent-register.php

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-PID-KEY',
'x-api-key:'ADD-API-YOUR-KEY'
);

POST:
{
  "first_name": "Shivam",
  "last_name": "Tiwari",
  "email": "shivam.05mar@gmail.com",
  "companyname": "Adivaha",
  "companyaddress": "Delhi",
  "gstnumber": "0000000000000000000",
  "password": "xxxxxxxx",
  "phone": "9565398000"
  "phone_isd": "+91"
  "isautologin": "yes"
  "phone": "011-xxxxxx"
}

Response

The API returns an HTTP response, which generally includes the result of the request invocation

 {
  "status": "200",
  "status_message": "OK",
  "responseData": {
  "Response": {
  "ResponseStatus": 1,
  "Error":{
  "ErrorCode": 100,
	"ErrorMessage": "Authentication failed, Please contact support team..."
    },
	{
	"ErrorCode": 101,
	"ErrorMessage": "Email-id already Exist!"
    },
	{
	"ErrorCode": 102,
	"ErrorMessage": "PID is not correct!"
    },
	{
	"ErrorCode": 103,
    "ErrorMessage": "Email-id can not blank!"
    },
	{
    "ErrorCode": 104,
    "ErrorMessage": "Password can not blank!"
    }
   }
  }
 }