The Process Period Closing Voucher Detail object
Attributes
Unique identifier for the object.
Default: Queued
Default: Profit and Loss
{
"id": "process-period-closing-voucher-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"processing_date": "2024-01-15",
"status": "Queued",
"closing_balance": {},
"report_type": "Profit and Loss"
} /api/accounts/process-period-closing-voucher-detail?parent_id={id} List process period closing voucher details by parent
Returns all process period closing voucher details belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of process period closing voucher detail objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/process-period-closing-voucher-detail?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "process-period-closing-voucher-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"processing_date": "2024-01-15",
"status": "Queued",
"closing_balance": {},
"report_type": "Profit and Loss"
}
],
"has_more": false,
"total": 1
} /api/accounts/process-period-closing-voucher-detail Create a process period closing voucher detail
Creates a new process period closing voucher detail object.
Body parameters
Default: Queued
Default: Profit and Loss
Returns
Returns the newly created process period closing voucher detail object if the call succeeded.
curl https://api.overplane.dev/api/accounts/process-period-closing-voucher-detail \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example"}' {
"id": "process-period-closing-voucher-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"processing_date": "2024-01-15",
"status": "Queued",
"closing_balance": {},
"report_type": "Profit and Loss"
} /api/accounts/process-period-closing-voucher-detail/{id} Update a process period closing voucher detail
Updates the specified process period closing voucher detail by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the process period closing voucher detail to update.
Body parameters
Default: Queued
Default: Profit and Loss
Returns
Returns the updated process period closing voucher detail object.
curl https://api.overplane.dev/api/accounts/process-period-closing-voucher-detail/process-period-closing-voucher-detail_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "process-period-closing-voucher-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"processing_date": "2024-01-15",
"status": "Queued",
"closing_balance": {},
"report_type": "Profit and Loss"
} /api/accounts/process-period-closing-voucher-detail/{id} Delete a process period closing voucher detail
Permanently deletes a process period closing voucher detail. This cannot be undone.
Path parameters
The identifier of the process period closing voucher detail to delete.
Returns
Returns a confirmation that the process period closing voucher detail has been deleted.
curl https://api.overplane.dev/api/accounts/process-period-closing-voucher-detail/process-period-closing-voucher-detail_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "process-period-closing-voucher-detail_abc123",
"deleted": true
} /api/accounts/process-period-closing-voucher-detail/reorder Reorder process period closing voucher details
Updates the sort order of process period closing voucher details within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/process-period-closing-voucher-detail/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "process-period-closing-voucher-detail_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"processing_date": "2024-01-15",
"status": "Queued",
"closing_balance": {},
"report_type": "Profit and Loss"
}