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