Skip to main content
Aria Knowledge Central

get_acct_uuids_m Sample Call and Response

This example shows a client retrieving the universally unique identifiers (UUIDs) generated for all credit card payment methods associated with one account, based on the get_acct_uuids_m method defined in plsql_m_r73.yml.

The example covers an account with two credit card payment methods on file, each returned with its own UUID. It does not cover accounts that use non-card payment methods, which do not generate a UUID, or accounts that have no payment methods on file.

Sample call

{
  "rest_call": "get_acct_uuids_m",
  "output_format": "json",
  "client_no": 4009,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "acct_no": 3300145
}

The acct_no field and the client_acct_id field form an alternative-required pair; this example supplies the Aria-assigned acct_no and omits client_acct_id. The rest_call and output_format fields are added by the REST layer and are not part of the method's own argument list.

Sample response

{
  "error_code": 0,
  "error_msg": "",
  "uuid_info": [
    {
      "payment_method_no": 88213,
      "client_payment_method_id": "PM-CARD-001",
      "uuid": "9f8e7d6c-5b4a-4321-9f10-abcdef123456"
    },
    {
      "payment_method_no": 88214,
      "client_payment_method_id": "PM-CARD-002",
      "uuid": "1a2b3c4d-5e6f-4789-8a9b-0123456789ab"
    }
  ]
}

An error_code value of zero together with an empty error_msg indicates that Aria found the account and returned its UUID information successfully. The uuid_info field is an array because an account can hold more than one credit card payment method; this example shows two entries to illustrate that repeatability, but a real account could have only one or many more. The uuid field carries masked logging in the yml, meaning Aria treats the value as sensitive in system logs even though it is returned in the API response itself. This example omits the nonpublic error_details field.

TOP
  • Was this article helpful?