get_services_m Sample Call and Response
This example shows a call to get_services_m, which retrieves the full list of services configured for an Aria client, optionally including each service’s translated name for a given locale. The example is based on methods_m_r73.yml.
This example includes every required field, along with the optional locale_no and include_translations fields to illustrate how translated service names are returned. It does not represent a filtered or paged lookup of services; the method itself returns all configured services in a single response, with no arguments for limiting or paging the result set.
Sample call
{
"rest_call": "get_services_m",
"output_format": "json",
"client_no": 32001,
"auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"locale_no": 250,
"include_translations": "true"
}
The rest_call and output_format fields are envelope fields added by the REST layer; they are not part of the method’s own documented arguments. The client_no and auth_key fields are required for every call. The remaining fields are optional: locale_no and locale_name are an alternative pair used to identify the locale whose translated service names you want returned, and this example uses locale_no, the Aria-assigned numeric identifier for the locale, rather than locale_name, the client-defined locale name. The include_translations field is set to "true" to request that translated service names be included in the response; if you omit this field, or set it to "false", the response omits the service_translations array shown below.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"services": [
{
"service_no": 40021,
"service_name": "Premium Support Plan Fee",
"service_type": "Recurring",
"client_service_id": "PREM-SUPPORT-001",
"service_translations": [
{
"locale_no": 250,
"locale_name": "fr_FR",
"service_no": 40021,
"service_name": "Frais du plan de support premium"
}
]
},
{
"service_no": 40022,
"service_name": "Standard Activation Fee",
"service_type": "Activation",
"service_translations": [
{
"locale_no": 250,
"locale_name": "fr_FR",
"service_no": 40022,
"service_name": "Frais d’activation standard"
}
]
}
]
}
An error_code of 0 and an error_msg of "OK" indicate that the call succeeded. The service_type field shown for each service is a description Aria produces from the service type codes documented under get_service_types_m; this example uses the values "Recurring" and "Activation", though "Usage Based" is also a valid value for a usage-based service. The client_service_id field is optional and client-defined, so it is shown on the first entry and omitted from the second to illustrate that a service is not required to have one. The services array in this example shows two representative entries; a real response would list every service configured for the client, which is very likely to include more than two. Each service_translations array in this example shows a single translated entry for the French locale (locale_no 250); if include_translations had been requested for a client with translations defined in several locales, each service’s service_translations array would include one entry per locale rather than only one. This example does not show what the response looks like when include_translations is omitted or set to "false", in which case the service_translations array is absent entirely rather than empty.