1. List Accounts (api1/accounts)
This method will answer with a collection of iinsight's accounts (Options -> Financial Settings -> General Ledger) in JSON format.
The results would be paginated, having a maximum of 100 records per page. An empty collection and a status code 200 response, means that there is no records in the specified page.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-usa-uat.iinsightonline.com/api1/accounts |
GET |
| PRODUCTION |
https://api-usa.iinsightonline.com/api1/accounts |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| page |
The page number of the paginated results. (i.e.: 1)
|
Yes |
Response
[
{
"id": "1",
"code": "10001",
"description": "Account 10001"
},
{
"id": "2",
"code": "10002",
"description": "Account 10002"
}
]