The Fiscal Year object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: false
Default: false
Default: false
{
"id": "fiscal-year_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"year": "year_example",
"disabled": false,
"year_start_date": "2024-01-15",
"year_end_date": "2024-01-15",
"auto_created": false,
"is_short_year": false
} /api/accounts/fiscal-year/{id} Retrieve a fiscal year
Retrieves the details of an existing fiscal year. Supply the unique fiscal year ID that was returned from a previous request.
Path parameters
The identifier of the fiscal year to retrieve.
Returns
Returns the fiscal year object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/fiscal-year/fiscal-year_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "fiscal-year_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"year": "year_example",
"disabled": false,
"year_start_date": "2024-01-15",
"year_end_date": "2024-01-15",
"auto_created": false,
"is_short_year": false
} /api/accounts/fiscal-year List all fiscal years
Returns a list of fiscal years. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of fiscal year objects.
curl https://api.overplane.dev/api/accounts/fiscal-year \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "fiscal-year_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"year": "year_example",
"disabled": false,
"year_start_date": "2024-01-15",
"year_end_date": "2024-01-15",
"auto_created": false,
"is_short_year": false
}
],
"has_more": false,
"total": 1
} /api/accounts/fiscal-year Create a fiscal year
Creates a new fiscal year object.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the newly created fiscal year object if the call succeeded.
curl https://api.overplane.dev/api/accounts/fiscal-year \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"year":"year_example","year_start_date":"2024-01-15","year_end_date":"2024-01-15"}' {
"id": "fiscal-year_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"year": "year_example",
"disabled": false,
"year_start_date": "2024-01-15",
"year_end_date": "2024-01-15",
"auto_created": false,
"is_short_year": false
} /api/accounts/fiscal-year/{id} Update a fiscal year
Updates the specified fiscal year by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the fiscal year to update.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the updated fiscal year object.
curl https://api.overplane.dev/api/accounts/fiscal-year/fiscal-year_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"year":"year_example","disabled":false}' {
"id": "fiscal-year_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"year": "year_example",
"disabled": false,
"year_start_date": "2024-01-15",
"year_end_date": "2024-01-15",
"auto_created": false,
"is_short_year": false
} /api/accounts/fiscal-year/{id} Delete a fiscal year
Permanently deletes a fiscal year. This cannot be undone.
Path parameters
The identifier of the fiscal year to delete.
Returns
Returns a confirmation that the fiscal year has been deleted.
curl https://api.overplane.dev/api/accounts/fiscal-year/fiscal-year_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "fiscal-year_abc123",
"deleted": true
} Line items
Child objects that belong to this fiscal year. These are accessed via the parent's ID.
Fiscal Year Company
Attributes
Endpoints
/api/accounts/fiscal-year-company?parent_id={id} /api/accounts/fiscal-year-company /api/accounts/fiscal-year-company/{id} /api/accounts/fiscal-year-company/{id} /api/accounts/fiscal-year-company/reorder {
"id": "fiscal-year-company_abc123",
"idx": 1,
"fiscal_year_id": "fiscal_year_id_example",
"company": "Example Corp"
}