List active hold reasons
Returns the active hold-reason tree as a flat list of parent (system) reasons; each parent
inlines its user-defined child reasons via the children array. Schema enforces a single
nesting level — child reasons never carry a children key.
Cross-merchant by design (no website scoping). System reasons are always returned; user-defined reasons are returned regardless of which merchant created them.
See the Inventory Hold System documentation for hold semantics.
Authorizations
Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.
Query Parameters
Specify additional fields of the HoldReason object to be included in the response.
basic, all, code, label, parent_code, allow_relocation, sort_order, is_active, is_system, children, parent, merchants Specify additional fields of the parent HoldReason object to be included in the response. See the selecting fields page for more information.
Specify additional fields of the HoldReason object to be included in the response.
basic, all, code, label, parent_code, allow_relocation, sort_order, is_active, is_system, children, parent, merchants Using the filtering syntax, you may filter the results using the following fields:
id— reason_idcode
Default sort is ascending by id. Using the sorting syntax,
the following fields are available for sorting:
idcodesort_order
If specified as 1, the meta.count property of the response will be present and populated with the total count of items
matching the query before any paging is applied. This is not included by default to improve performance in some edge
cases and is not required to perform paging using the next property of the response.
See paging parameters for more information.
0 <= x <= 1A cursor for use in pagination which defines the last id of the next page of results, non-inclusive.
See paging parameters for more information on paging.
A cursor for use in pagination which defines the starting id of the next page of results.
See paging parameters for more information on paging.
A limit on the number of objects to be returned.
1 <= x <= 1000100
Response
A dictionary with a collection property containing an array of HoldReason objects (parents only;
each parent's children array carries any user-defined sub-reasons). If no active reasons exist
the array will be empty.
A list of parent HoldReason objects with their children inlined.
True if the collection has more items on the next page. Use the "next" link to retrieve the next page of results.
The resource path for the next page of results if any are expected.
The resource path for the previous page of results if any are expected.
Additional metadata pertaining to the response.