expenses retrieve

GET {{baseUrl}}/expenses/:id

Returns an Expense object with the given id.

Request Params

KeyDatatypeRequiredDescription
expandstringWhich relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
include_remote_databooleanWhether to include the original data Merge fetched from the third-party to produce these models.

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Acceptstring

RESPONSES

status: OK

{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"088899","transaction_date":"1982-07-23T03:25:53.747Z","remote_created_at":"2020-03-31T00:00:00Z","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","contact":"3d263469-51a1-4766-9205-f6c997826be1","total_amount":10000,"currency":"ZRZ","memo":"New employee supplies","lines":[{"remote_id":"121222","net_amount":25.54,"trackingCategory":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"MacBook Pro"},{"remote_id":"121223","net_amount":10,"trackingCategory":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","item":"b38c59b0-a9d7-4740-b1ee-5436c6751e3d","account":"2a56344a-a491-11ec-b909-0242ac120002","description":"Desk Lamp"}]}