Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Resource URL

Returns the recently created companies first.

...

Code Block
languagebash
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.

idunsigned int 
namestring 
websitestring 
standingstring 
statusunsigned int or object 
phonestring 
faxstring 
date_createdunsigned int 
date_modifiedunsigned int 
commentsstring 
contactunsigned int or object 

Fields that can be object indicate the field can be requested as a resource. For example.

Code Block
languagebash
GET /companies/recent.json?_fields=contact

would return the contacts id. Where as,

Code Block
languagebash
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
languagebash
GET /companies/recent.json?_fields=contact(),standing&_limit=2

...

languagejavascript

...

For details on filters, fields and responses, please see list companies.