Resource URL
Returns the recently created companies first.
...
| Code Block | ||
|---|---|---|
| ||
GET /companies/recent |
Parameters
Table of allowed paramaters.
...
...
Handling the response
Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields paramater; see included examples. Underlined values are default.
| id | unsigned int | |
|---|---|---|
| name | string | |
| website | string | |
| standing | string | |
| status | unsigned int or object | |
| phone | string | |
| fax | string | |
| date_created | unsigned int | |
| date_modified | unsigned int | |
| comments | string | |
| contact | unsigned int or object |
Fields that can be object indicate the field can be requested as a resource. For example.
| Code Block | ||
|---|---|---|
| ||
GET /companies/recent.json?_fields=contact |
would return the contacts id. Where as,
| Code Block | ||
|---|---|---|
| ||
GET /companies/recent.json?_fields=contact() |
would return the contact's object, including any optional fields or objects within the parenthesis.
Sample Response
| Code Block | ||
|---|---|---|
| ||
GET /companies/recent.json?_fields=contact(),standing&_limit=2 |
...
| language | javascript |
|---|
...
For details on filters, fields and responses, please see list companies.