Skip to main content
Aria Knowledge Central

get_statement_content_m Sample Call and Response

This example retrieves the full contents of a specific statement associated with an account, based on the plsql_m_r73.yml definition file for release seventy-three.

This example includes every required field and the optional field that controls MIME encoding of the returned content, not every field the method accepts. Unlike get_statement_content_size_m, which returns only a character count for this same statement, this method returns the actual statement content.

Sample call

{
    "rest_call": "get_statement_content_m",
    "output_format": "json",
    "client_no": 92310,
    "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "acct_no": 300587421,
    "statement_no": 4471002,
    "do_encoding": "false"
}

The rest_call and output_format fields form the envelope that the REST layer adds to every call. The acct_no field is one side of an alternative-field pair with client_acct_id; this example uses the Aria-assigned acct_no. The statement_no field identifies the specific statement whose contents this call retrieves. The do_encoding field is a boolean expressed as a string; this example sets it to “false,” the default, so the returned content is not MIME encoded. A value of “true” would return the content after MIME encoding has been applied.

Sample response

{
    "error_code": 0,
    "error_msg": "OK",
    "statement_content": "Statement for Account 300587421Billing period: 2026-06-01 to 2026-06-30Total due: $149.99",
    "mime_type": "text/html"
}

An error_code value of zero and an error_msg value of “OK” indicate that the call succeeded. The statement_content field holds the full text of the statement; this example shows a short, illustrative excerpt, and a real statement would typically contain much more content. The mime_type field describes the format of that content, here text/html. The error_details field is left out because it is marked nonpublic in the shared param_defaults block.

TOP
  • Was this article helpful?