Skip to main content
Aria Knowledge Central

get_acct_message_m Sample Call and Response

This example retrieves the body of a specific email message previously sent to an account holder, based on the get_acct_message_m method as defined in plsql_m_r73.yml. The message retrieved is an installment due reminder, matching notify_id 550021 from an earlier installment due reminder notification.

This example includes every required field and one representative optional field; it does not cover every combination of message types this method can retrieve.

Sample call

{
  "rest_call": "get_acct_message_m",
  "output_format": "json",
  "client_no": 68219,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "acct_no": 5004123,
  "message_id": 550021,
  "do_encoding": "false"
}

The rest_call and output_format fields are envelope fields that the REST layer adds; they do not appear in the method's own arguments list. The account is identified with acct_no, the Aria-assigned numeric identifier, instead of its alternative, client_acct_id. The do_encoding value of “false” requests the message body without Multipurpose Internet Mail Extensions encoding applied; setting it to “true” instead would return the message body after that encoding is applied.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "error_details": [],
  "message_body": "Dear Dana Whitfield,This is a reminder that your installment payment of $350.00 for invoice 771029 is due on 2026-06-15.Thank you for your business.Acme Corporation Billing Team",
  "mime_type": "text/html"
}

An error_code of zero and an error_msg of “OK” indicate that Aria found the requested message and returned its body successfully. The mime_type value of “text/html” indicates the message_body content is formatted as HyperText Markup Language; the method can also return a mime_type of “text/plain” for plain-text messages. This example shows only one message, since message_id identifies exactly one specific message rather than a collection of messages.

TOP
  • Was this article helpful?