UNDER DEVELOPMENT
Returns an expense identified by its id.
GET /expenses/: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 timer. This ID can be used to manage the expense. |
---|---|---|
title | String | The title of the expense |
quantity | Integer | The quantity of the expense |
unit_cost | Decimal | The unit cost of the expense |
standing | String | The standing status of the expense |
against_id | Integer | Unique id of the object the expense is against. |
against_type | String | Name of the object the expense is against, if any. For example, issue or job. |
date_incurred | Unix timestamp | The incurred date of the expense |
activity_id | Integer | The activity id against the expense |
type_id | Integer | The type id of the expense |
approver_id | Integer | The approver id of the expense |
submitter_id | Integer | The submitter id of the expense |
billable | String | 'Yes' or 'No' |
approver | Object | The approver |
activity | Object | The activity |
submitter | Object | The submiitter |
type | Object | The expense type |
For example, to get timer #10 with against type included in the response:
GET /expenses/10.xml?_fields=against_type