The following macros are not currently supported in the header:
- style
Get contract
UNDER DEVELOPMENT
Returns a contract identified by its id.
GET /contracts/:contract_id
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
 parameter. Underlined values are always returned.
id | Integer | Â A unique id assigned to the period. |
---|---|---|
title | String | Â |
date_created | unix timestamp | Â |
date_started | unix timestamp | Â |
date_expires | unix timestamp | Â |
date_period_expires | unix timestamp | Â |
against | String | Â The API url for the against object. |
against_id | Unsigned int | Â |
against_type | String | Â |
value | Decimal | Â |
auto_renew | String, yes or no | Â |
renew_days | Unsigned int | Â |
send_invoice | String | Â |
standing | String | Standing status |
period_template_id | Unsigned int | Â |
type | Unsigned int or object | Â |
manager | Unsigned int or object | Â |
billable | Unsigned int or object | Â |
affiliation | Unsigned int or object | Â |
status | Unsigned int or object | Â |
company | Unsigned int or object | Â |
job | Unsigned int or object | Â |
NEW affiliation | Object | Â |
NEW notes | String | Â |
NEW current_period | Object | Â |
DEPRECATED parent | Array | Please use breadcrumbs. |
NEW period_template | Object | Â |
NEW date_last_interacted | unix ts | Â |
NEW breadcrumbs | Array | Â |
For example, to get contract #10 with against type included in the response:
GET /contracts/10.xml?_fields=standing