The Journal Entry Template 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: No
Default: false
{
"id": "journal-entry-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"is_opening": "No",
"template_title": "template_title_example",
"multi_currency": false
} /api/accounts/journal-entry-template/{id} Retrieve a journal entry template
Retrieves the details of an existing journal entry template. Supply the unique journal entry template ID that was returned from a previous request.
Path parameters
The identifier of the journal entry template to retrieve.
Returns
Returns the journal entry template object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/journal-entry-template/journal-entry-template_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "journal-entry-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"is_opening": "No",
"template_title": "template_title_example",
"multi_currency": false
} /api/accounts/journal-entry-template List all journal entry templates
Returns a list of journal entry templates. 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 journal entry template objects.
curl https://api.overplane.dev/api/accounts/journal-entry-template \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "journal-entry-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"is_opening": "No",
"template_title": "template_title_example",
"multi_currency": false
}
],
"has_more": false,
"total": 1
} /api/accounts/journal-entry-template Create a journal entry template
Creates a new journal entry template object.
Body parameters
Default: No
Default: false
Returns
Returns the newly created journal entry template object if the call succeeded.
curl https://api.overplane.dev/api/accounts/journal-entry-template \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"voucher_type":"voucher_type_example","company":"Example Corp","template_title":"template_title_example"}' {
"id": "journal-entry-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"is_opening": "No",
"template_title": "template_title_example",
"multi_currency": false
} /api/accounts/journal-entry-template/{id} Update a journal entry template
Updates the specified journal entry template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the journal entry template to update.
Body parameters
Default: No
Default: false
Returns
Returns the updated journal entry template object.
curl https://api.overplane.dev/api/accounts/journal-entry-template/journal-entry-template_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"voucher_type":"voucher_type_example","company":"Example Corp"}' {
"id": "journal-entry-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"voucher_type": "voucher_type_example",
"company": "Example Corp",
"is_opening": "No",
"template_title": "template_title_example",
"multi_currency": false
} /api/accounts/journal-entry-template/{id} Delete a journal entry template
Permanently deletes a journal entry template. This cannot be undone.
Path parameters
The identifier of the journal entry template to delete.
Returns
Returns a confirmation that the journal entry template has been deleted.
curl https://api.overplane.dev/api/accounts/journal-entry-template/journal-entry-template_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "journal-entry-template_abc123",
"deleted": true
} Line items
Child objects that belong to this journal entry template. These are accessed via the parent's ID.
Journal Entry Template Account
Attributes
Endpoints
/api/accounts/journal-entry-template-account?parent_id={id} /api/accounts/journal-entry-template-account /api/accounts/journal-entry-template-account/{id} /api/accounts/journal-entry-template-account/{id} /api/accounts/journal-entry-template-account/reorder {
"id": "journal-entry-template-account_abc123",
"idx": 1,
"journal_entry_template_id": "journal_entry_template_id_example",
"account": "account_example",
"party_type": "party_type_example",
"party": "party_example",
"cost_center": "cost_center_example",
"project": "project_example"
}