The Accounting Period 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
{
"id": "accounting-period_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"period_name": "period_name_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"company": "Example Corp",
"disabled": false,
"exempted_role": "exempted_role_example"
} /api/accounts/accounting-period/{id} Retrieve a accounting period
Retrieves the details of an existing accounting period. Supply the unique accounting period ID that was returned from a previous request.
Path parameters
The identifier of the accounting period to retrieve.
Returns
Returns the accounting period object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/accounting-period/accounting-period_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "accounting-period_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"period_name": "period_name_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"company": "Example Corp",
"disabled": false,
"exempted_role": "exempted_role_example"
} /api/accounts/accounting-period List all accounting periods
Returns a list of accounting periods. 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 accounting period objects.
curl https://api.overplane.dev/api/accounts/accounting-period \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "accounting-period_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"period_name": "period_name_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"company": "Example Corp",
"disabled": false,
"exempted_role": "exempted_role_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/accounting-period Create a accounting period
Creates a new accounting period object.
Body parameters
Default: false
Returns
Returns the newly created accounting period object if the call succeeded.
curl https://api.overplane.dev/api/accounts/accounting-period \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"period_name":"period_name_example","start_date":"2024-01-15","end_date":"2024-01-15","company":"Example Corp"}' {
"id": "accounting-period_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"period_name": "period_name_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"company": "Example Corp",
"disabled": false,
"exempted_role": "exempted_role_example"
} /api/accounts/accounting-period/{id} Update a accounting period
Updates the specified accounting period by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the accounting period to update.
Body parameters
Default: false
Returns
Returns the updated accounting period object.
curl https://api.overplane.dev/api/accounts/accounting-period/accounting-period_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"period_name":"period_name_example","start_date":"2024-01-15"}' {
"id": "accounting-period_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"period_name": "period_name_example",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"company": "Example Corp",
"disabled": false,
"exempted_role": "exempted_role_example"
} /api/accounts/accounting-period/{id} Delete a accounting period
Permanently deletes a accounting period. This cannot be undone.
Path parameters
The identifier of the accounting period to delete.
Returns
Returns a confirmation that the accounting period has been deleted.
curl https://api.overplane.dev/api/accounts/accounting-period/accounting-period_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "accounting-period_abc123",
"deleted": true
} Line items
Child objects that belong to this accounting period. These are accessed via the parent's ID.
Closed Document
Attributes
Endpoints
/api/accounts/closed-document?parent_id={id} /api/accounts/closed-document /api/accounts/closed-document/{id} /api/accounts/closed-document/{id} /api/accounts/closed-document/reorder {
"id": "closed-document_abc123",
"idx": 1,
"accounting_period_id": "accounting_period_id_example",
"document_type": "document_type_example",
"closed": false
}