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