get_supp_obj_fields_m Sample Call and Response
This example shows a call that retrieves the full configuration of one specific client-defined supplemental object (product) field, identified by its Aria-assigned field number, based on the get_supp_obj_fields_m method defined in methods_m_r73.yml.
This example covers a single supplemental object field lookup, including its allowed values, its associated object types, its field category, and one translation; it is a separate method from the get_supp_field_details_m and get_supp_fields_m pair, which cover supplemental account fields rather than supplemental object fields, and this example does not cover that account-field scope.
Sample call
{
"rest_call": "get_supp_obj_fields_m",
"output_format": "json",
"client_no": 30215,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"field_no": 4521,
"locale_no": 10,
"include_translations": true
}
The rest_call and output_format fields are REST-layer additions that sit outside the method’s own documented arguments, not part of the yml’s arguments block; every sample call includes them, and output_format requests a JSON response. The client_no and auth_key fields are required for every call. The field_no field is also required for this method; it is the Aria-assigned unique number of the single supplemental object field whose details you want. This is the key structural difference from the supp_field pair of methods: get_supp_obj_fields_m identifies a supplemental object field by field_no, a number, while get_supp_field_details_m identifies a supplemental account field by field_name, a string, and the two families of fields describe different things (product-and-plan-level object fields here, versus account-level fields there). The locale_no and locale_name fields are an alternative pair (a caller supplies one or the other, never both); this example uses locale_no, the Aria-assigned numeric identifier, rather than locale_name. The include_translations field is optional and defaults to false if omitted; setting it to true, as shown here, tells the method to include the supp_obj_field_translations array in the specified locale.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"field_no": 4521,
"field_name": "shirt_size",
"description": "Size specification for apparel plan products",
"datatype": "string",
"min_no_sel": 1,
"max_no_sel": 1,
"form_input_type": "select",
"allowed_values": [
{ "value": "Small" },
{ "value": "Medium" },
{ "value": "Large" }
],
"associated_objects": [
{ "associated_object": "plan" },
{ "associated_object": "plan_instance" }
],
"field_categories": [
{
"field_category_no": 200,
"field_category_name": "Product Attributes"
}
],
"allow_instance_override": 1,
"supp_obj_field_translations": [
{
"locale_no": 10,
"locale_name": "fr_FR",
"field_no": 4521,
"field_name": "taille_de_chemise",
"description": "Specification de taille pour les produits de type plan d'habillement",
"allowed_values_t": [
{ "value": "Petit" },
{ "value": "Moyen" },
{ "value": "Grand" }
]
}
]
}
An error_code of zero and an error_msg of “OK” together indicate that the call succeeded. The datatype field describes the field’s underlying data type (string, in this example), and the form_input_type field describes how the field is presented, here “select,” alongside other values such as “input” and “checkbox.” The allowed_values and associated_objects arrays are each represented as an array of single-key objects (value and associated_object, respectively), matching the nested structure the yml defines for them, rather than as flat arrays of plain strings; this example shows three allowed values and two associated objects in full for this field, though another field could define a different number of either. The field_categories array holds one entry per category this field belongs to; this example shows one category, and a field assigned to more than one category would return additional entries. The allow_instance_override field is an enum: zero means the value is set once on the plan in the product catalog, one (used here) means the value can be set separately for a specific instance of the plan assigned to an account, and two means the value can be set separately for a specific unit of a plan assigned to an account. Because the sample call requested translations for one locale, locale_no ten, the supp_obj_field_translations array contains exactly one entry, itself carrying a translated copy of allowed_values_t; a call requesting more locales would return one translation entry per locale. This example leaves out fields with no allowed values or no category assignment, and it leaves out the case where include_translations is left at its default of false, in which case the supp_obj_field_translations key would not appear.