accounting periods list
GET {{baseUrl}}/accounting-periods
Returns a list of AccountingPeriod
objects.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
cursor | string | The pagination cursor value. | |
include_deleted_data | boolean | Whether to include data that was marked as deleted by third party webhooks. | |
include_remote_data | boolean | Whether to include the original data Merge fetched from the third-party to produce these models. | |
page_size | number | Number of results to return per page. |
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":"3015f7b1-4d01-460d-bfab-02a52d16cbd0","remote_id":"2804580","created_at":"2021-09-15T00:00:00Z","modified_at":"2021-10-16T00:00:00Z","name":"April 2020 Financials","status":"ACTIVE","start_date":"2020-03-31T00:00:00Z","end_date":"2012-04-20T19:39:02.062Z","field_mappings":{"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},"remote_data":[{"path":"/actions","data":["Varies by platform"]}]},{"id":"3015f7b1-4d01-460d-bfab-02a52d16cbd0","remote_id":"2804580","created_at":"2021-09-15T00:00:00Z","modified_at":"2021-10-16T00:00:00Z","name":"April 2020 Financials","status":"ACTIVE","start_date":"2020-03-31T00:00:00Z","end_date":"1977-05-25T07:01:49.527Z","field_mappings":{"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},"remote_data":[{"path":"/actions","data":["Varies by platform"]}]}]}