get_child_for_item_class_m Sample Call and Response
This example shows a client retrieving the immediate child classes of a specified inventory item class, based on the get_child_for_item_class_m method defined in plsql_m_r73.yml. This method addresses the item class hierarchy used to organize a client's catalog; it does not deal with account hierarchies, which the similarly named get_child_accts_m method covers instead.
The example filters the catalog by one parent item class number and shows every field the method accepts. It does not cover a request for a class that has no child classes defined.
Sample call
{
"rest_call": "get_child_for_item_class_m",
"output_format": "json",
"client_no": 4009,
"auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"filter_class_no": 201
}
The filter_class_no field is required and identifies the parent item class whose immediate children Aria returns. The rest_call and output_format fields are added by the REST layer.
Sample response
{
"error_code": 0,
"error_msg": "",
"child_item_class": [
{
"class_no": 2011,
"class_label": "Streaming Video Plans",
"class_description": "Subscription plans for on-demand and live video streaming.",
"display_ind": 1
},
{
"class_no": 2012,
"class_label": "Streaming Music Plans",
"class_description": "Subscription plans for on-demand audio streaming.",
"display_ind": 1
},
{
"class_no": 2013,
"class_label": "Legacy Bundle Plans",
"class_description": "Discontinued bundle plans retained for existing subscribers.",
"display_ind": 0
}
]
}
An error_code value of zero together with an empty error_msg indicates that Aria found and returned the child item classes successfully. The child_item_class field is an array because a parent item class can have more than one immediate child class; this example shows three representative entries, but a broader catalog could return many more. The display_ind field is a boolean value; the first two entries show a value of one, meaning that class displays to customers, while the third entry shows a value of zero, meaning that legacy class does not display. This example omits the error_details field.