The POS Closing Entry Taxes object
Attributes
Unique identifier for the object.
{
"id": "p-o-s-closing-entry-taxes_abc123",
"idx": 1,
"pos_closing_entry_id": "pos_closing_entry_id_example",
"amount": 0,
"account_head": "account_head_example"
} /api/accounts/p-o-s-closing-entry-taxes?parent_id={id} List pos closing entry taxess by parent
Returns all pos closing entry taxess belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of pos closing entry taxes objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/p-o-s-closing-entry-taxes?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "p-o-s-closing-entry-taxes_abc123",
"idx": 1,
"pos_closing_entry_id": "pos_closing_entry_id_example",
"amount": 0,
"account_head": "account_head_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/p-o-s-closing-entry-taxes Create a pos closing entry taxes
Creates a new pos closing entry taxes object.
Body parameters
Returns
Returns the newly created pos closing entry taxes object if the call succeeded.
curl https://api.overplane.dev/api/accounts/p-o-s-closing-entry-taxes \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"pos_closing_entry_id":"pos_closing_entry_id_example"}' {
"id": "p-o-s-closing-entry-taxes_abc123",
"idx": 1,
"pos_closing_entry_id": "pos_closing_entry_id_example",
"amount": 0,
"account_head": "account_head_example"
} /api/accounts/p-o-s-closing-entry-taxes/{id} Update a pos closing entry taxes
Updates the specified pos closing entry taxes by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the pos closing entry taxes to update.
Body parameters
Returns
Returns the updated pos closing entry taxes object.
curl https://api.overplane.dev/api/accounts/p-o-s-closing-entry-taxes/p-o-s-closing-entry-taxes_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"pos_closing_entry_id":"pos_closing_entry_id_example"}' {
"id": "p-o-s-closing-entry-taxes_abc123",
"idx": 1,
"pos_closing_entry_id": "pos_closing_entry_id_example",
"amount": 0,
"account_head": "account_head_example"
} /api/accounts/p-o-s-closing-entry-taxes/{id} Delete a pos closing entry taxes
Permanently deletes a pos closing entry taxes. This cannot be undone.
Path parameters
The identifier of the pos closing entry taxes to delete.
Returns
Returns a confirmation that the pos closing entry taxes has been deleted.
curl https://api.overplane.dev/api/accounts/p-o-s-closing-entry-taxes/p-o-s-closing-entry-taxes_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "p-o-s-closing-entry-taxes_abc123",
"deleted": true
} /api/accounts/p-o-s-closing-entry-taxes/reorder Reorder pos closing entry taxess
Updates the sort order of pos closing entry taxess within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/p-o-s-closing-entry-taxes/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "p-o-s-closing-entry-taxes_abc123",
"idx": 1,
"pos_closing_entry_id": "pos_closing_entry_id_example",
"amount": 0,
"account_head": "account_head_example"
}