- style
Get contract period
UNDER DEVELOPMENT
Returns a contract period identified by its id.
GET /contracts/periods/:period_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. |
---|---|---|
budget_type | String | Â |
allowance_type | String | Â |
date_created | unix timestamp | Â |
date_commenced | unix timestamp | Â |
date_expires | unix timestamp | Â |
date_closed | unix timestamp | Â |
rate_type | String | Â |
rate_id | Unsigned int | Â |
service_item_id | Unsigned int | Â |
duration_type | String | Â |
rollover | String | Â |
standing | String | Standing status |
contract | String | API url for the contract |
contract_id | Unsigned int | Â |
contract_budget | Unsigned int or object | Â |
NEW budget_used | Object. If the type is time, the value is time in seconds If the type is currency, the value is decimal. | Â |
NEW budget | Object. If the type is time, the value is time in seconds If the type is currency, the value is decimal. | Â |
NEW allowance | Object. billable: time in seconds. | Â |
NEW total | Â Decimal | Â |
NEW unapproved_budget_used | Â Unsigned int | Â |
NEW on_budget | Â Boolean, whether the it's on budget. | 1 or 0 |
NEW overflow | Â Decimal | Â |
NEW usage | Â Decimal | Â |
NEW time_allocations | Array, time allocations for a period | Each element is the details of the time allocation. It has three types, time allocated directly against the period, time allocated to the task against period and time allocated to other objects against period. The item contains: against title, against_id, against_type, period_id, nonbillable (time in seconds), billable (time in seconds), charged (currency). |
NEW rate | Object | value: Decimal |
NEW price | Decimal | Â |
For example, to get contract period #10 with against type included in the response:
GET /contracts/periods/10.xml?_fields=standing