How to retrieve customer details on AYAN PDF?
User can retrieve details of an existing customer using two ways:
- Login via AYAN PDF: User can navigate to “AYAN PDF” page and can click a button (on top right corner) “Login” to login to an existing account for AYAN PDF. Once the login information is filled up, it will redirect user on to dashboard page of AYAN PDF account.
- Using AYAN Retrieve Customer API: User can use the retrieve customer api of AYAN PDF to retrieve the details for any existing customer of AYAN PDF. Once the request is made with all the required information, the api will return the customer details in the callout response.
Parameter | Value | Description |
---|---|---|
Endpoint URL | https://sf.filezipo.io:3003/api/getCustomer | The API endpoint url on which request will be sent |
Method | POST | Set the Callout method as POST |
Content-Type | application/json | Set “application/json” as content type for this request |
Request Body (JSON) |
{ “username”:”mohitbansal@gmail.com”, “password”:”Today@2023″ } |
All the information in the JSON Body are mandatory. Each attribute represents as below:
|
Response with Code =1 | { “message”: “ok”, “data”: { “customer_name”: “Mohit Bansal”, “company_name”: “AYAN Softwares”, “company_address”: “NIT Faridabad”, “username”: “mohitbansal3@gmail.com”, “active_plan”: “Free”, “storage_location”: “asia”, “account_status”: “active”, “companyInformationkeys”: [ { “start_date”: “2023-02-06T04:49:31.822Z”, “end_date”: “2023-02-13T04:49:31.822Z”, “key_code”: “<<API Key Code>>”, “token”: “<<Token>>”, “total_connects”: 50, “connects_used”: 6, “connects_remaining”: 44, “key_type”: “Free”} ] }, “code”: 1 } |
If the response “code” is 1, then it represents your request is successfully submitted and api returns the below the parameters:
|
Response with code=0 | { “message”: “error”, “data”: { “message”: “Invalid customer information.” }, “code”: 0 } |
|
An API Key is must to use any API on AYAN PDF. If you are facing any issues in retrieve account or finding an api key, you can reach us at support@ayansoftwares.com.