The Period Closing Voucher 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: draft
{
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
} /api/accounts/period-closing-voucher/{id} Retrieve a period closing voucher
Retrieves the details of an existing period closing voucher. Supply the unique period closing voucher ID that was returned from a previous request.
Path parameters
The identifier of the period closing voucher to retrieve.
Returns
Returns the period closing voucher object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/period-closing-voucher/period-closing-voucher_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
} /api/accounts/period-closing-voucher List all period closing vouchers
Returns a list of period closing vouchers. 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 period closing voucher objects.
curl https://api.overplane.dev/api/accounts/period-closing-voucher \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
}
],
"has_more": false,
"total": 1
} /api/accounts/period-closing-voucher Create a period closing voucher
Creates a new period closing voucher object.
Body parameters
Default: draft
Returns
Returns the newly created period closing voucher object if the call succeeded.
curl https://api.overplane.dev/api/accounts/period-closing-voucher \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"fiscal_year":"fiscal_year_example","company":"Example Corp","closing_account_head":"closing_account_head_example","remarks":"remarks_example","period_end_date":"2024-01-15","period_start_date":"2024-01-15"}' {
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
} /api/accounts/period-closing-voucher/{id} Update a period closing voucher
Updates the specified period closing voucher by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the period closing voucher to update.
Body parameters
Default: draft
Returns
Returns the updated period closing voucher object.
curl https://api.overplane.dev/api/accounts/period-closing-voucher/period-closing-voucher_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","transaction_date":"2024-01-15"}' {
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
} /api/accounts/period-closing-voucher/{id} Delete a period closing voucher
Permanently deletes a period closing voucher. This cannot be undone.
Path parameters
The identifier of the period closing voucher to delete.
Returns
Returns a confirmation that the period closing voucher has been deleted.
curl https://api.overplane.dev/api/accounts/period-closing-voucher/period-closing-voucher_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "period-closing-voucher_abc123",
"deleted": true
} /api/accounts/period-closing-voucher/{id}/submit Submit a period closing voucher
Submits a draft period closing voucher, transitioning its status from draft to submitted.
Path parameters
The identifier of the period closing voucher to act on.
Returns
Returns the period closing voucher object with updated status.
curl https://api.overplane.dev/api/accounts/period-closing-voucher/period-closing-voucher_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
} /api/accounts/period-closing-voucher/{id}/cancel Cancel a period closing voucher
Cancels a submitted period closing voucher, transitioning its status to cancelled.
Path parameters
The identifier of the period closing voucher to act on.
Returns
Returns the period closing voucher object with updated status.
curl https://api.overplane.dev/api/accounts/period-closing-voucher/period-closing-voucher_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "period-closing-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"transaction_date": "2024-01-15",
"fiscal_year": "fiscal_year_example",
"company": "Example Corp",
"closing_account_head": "closing_account_head_example",
"remarks": "remarks_example",
"gle_processing_status": "gle_processing_status_example",
"error_message": "error_message_example",
"period_end_date": "2024-01-15",
"period_start_date": "2024-01-15"
}