get_acct_supp_fields_m Sample Call and Response
This example retrieves the list of supplemental field names and values associated with an account. It is based on the get_acct_supp_fields_m method definition in plsql_m_r73.yml.
This example includes every required field. The method accepts no optional filtering fields beyond the account identifier itself.
Sample call
{
"rest_call": "get_acct_supp_fields_m",
"output_format": "json",
"client_no": 6423,
"auth_key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"acct_no": 3004521
}
The acct_no field identifies the account, using the Aria-assigned numeric identifier rather than its alternative, client_acct_id.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"supp_field": [
{
"supp_field_name": "loyalty_tier",
"supp_field_value": "Gold"
},
{
"supp_field_name": "preferred_language",
"supp_field_value": "en-US"
},
{
"supp_field_name": "account_source_channel",
"supp_field_value": "Partner Referral"
}
]
}
An error_code value of zero and an error_msg value of "OK" together indicate that Aria retrieved the supplemental fields successfully. The supp_field array shows three supplemental field name and value pairs for illustration; an account with more or fewer configured supplemental fields would return a correspondingly different number of entries. This example leaves out the supp_fields field that this method's definition also lists, since that field is deprecated as of update version 21 and unused.