The Cashier Closing 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
Default: 0
Default: 0
Default: 0
Default: 0
{
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
} /api/accounts/cashier-closing/{id} Retrieve a cashier closing
Retrieves the details of an existing cashier closing. Supply the unique cashier closing ID that was returned from a previous request.
Path parameters
The identifier of the cashier closing to retrieve.
Returns
Returns the cashier closing object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/cashier-closing/cashier-closing_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
} /api/accounts/cashier-closing List all cashier closings
Returns a list of cashier closings. 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 cashier closing objects.
curl https://api.overplane.dev/api/accounts/cashier-closing \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
}
],
"has_more": false,
"total": 1
} /api/accounts/cashier-closing Create a cashier closing
Creates a new cashier closing object.
Body parameters
Default: draft
Default: 0
Default: 0
Default: 0
Default: 0
Returns
Returns the newly created cashier closing object if the call succeeded.
curl https://api.overplane.dev/api/accounts/cashier-closing \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"user":"user_example","from_time":"from_time_example","time":"time_example"}' {
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
} /api/accounts/cashier-closing/{id} Update a cashier closing
Updates the specified cashier closing by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the cashier closing to update.
Body parameters
Default: draft
Default: 0
Default: 0
Default: 0
Default: 0
Returns
Returns the updated cashier closing object.
curl https://api.overplane.dev/api/accounts/cashier-closing/cashier-closing_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","user":"user_example"}' {
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
} /api/accounts/cashier-closing/{id} Delete a cashier closing
Permanently deletes a cashier closing. This cannot be undone.
Path parameters
The identifier of the cashier closing to delete.
Returns
Returns a confirmation that the cashier closing has been deleted.
curl https://api.overplane.dev/api/accounts/cashier-closing/cashier-closing_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "cashier-closing_abc123",
"deleted": true
} /api/accounts/cashier-closing/{id}/submit Submit a cashier closing
Submits a draft cashier closing, transitioning its status from draft to submitted.
Path parameters
The identifier of the cashier closing to act on.
Returns
Returns the cashier closing object with updated status.
curl https://api.overplane.dev/api/accounts/cashier-closing/cashier-closing_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
} /api/accounts/cashier-closing/{id}/cancel Cancel a cashier closing
Cancels a submitted cashier closing, transitioning its status to cancelled.
Path parameters
The identifier of the cashier closing to act on.
Returns
Returns the cashier closing object with updated status.
curl https://api.overplane.dev/api/accounts/cashier-closing/cashier-closing_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "cashier-closing_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"user": "user_example",
"date": "2024-01-15",
"from_time": "from_time_example",
"time": "time_example",
"expense": 0,
"custody": 0,
"returns": 0,
"outstanding_amount": 0,
"net_amount": 0
} Line items
Child objects that belong to this cashier closing. These are accessed via the parent's ID.
Cashier Closing Payments
Attributes
Endpoints
/api/accounts/cashier-closing-payments?parent_id={id} /api/accounts/cashier-closing-payments /api/accounts/cashier-closing-payments/{id} /api/accounts/cashier-closing-payments/{id} /api/accounts/cashier-closing-payments/reorder {
"id": "cashier-closing-payments_abc123",
"idx": 1,
"cashier_closing_id": "cashier_closing_id_example",
"mode_of_payment": "mode_of_payment_example",
"amount": 0
}