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