expenses list
GET {{baseUrl}}/expenses
Returns a list of Expense
objects.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
created_after | string | If provided, will only return objects created after this datetime. | |
created_before | string | If provided, will only return objects created before this datetime. | |
cursor | string | The pagination cursor value. | |
expand | string | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | |
include_deleted_data | boolean | Whether to include data that was deleted in the third-party service. | |
include_remote_data | boolean | Whether to include the original data Merge fetched from the third-party to produce these models. | |
modified_after | string | If provided, will only return objects modified after this datetime. | |
modified_before | string | If provided, will only return objects modified before this datetime. | |
page_size | number | Number of results to return per page. | |
remote_id | string | The API provider's ID for the given object. | |
company_id | string | If provided, will only return objects for this company. | |
transaction_date_after | string | ||
transaction_date_before | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Account-Token | string | (Required) Token identifying the end user. | |
Accept | string |
RESPONSES
status: OK
{"next":"cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw","previous":"cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ","results":[{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"088899","transaction_date":"1979-01-31T19:58:52.104Z","remote_created_at":"2020-03-31T00:00:00Z","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","contact":"3d263469-51a1-4766-9205-f6c997826be1","total_amount":10000,"currency":"DEM","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"}]},{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"088899","transaction_date":"2014-09-19T07:54:15.903Z","remote_created_at":"2020-03-31T00:00:00Z","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","contact":"3d263469-51a1-4766-9205-f6c997826be1","total_amount":10000,"currency":"DEM","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"}]}]}