update_acct_invoice_m Sample Call and Response
This example shows a client updating the custom status label and client notes on an existing invoice, based on the update_acct_invoice_m method defined in plsql_m_r73.yml.
This example covers updating both custom invoice fields that this method supports. It does not cover any other invoice attributes, since custom_status_label and client_notes are the only fields this method updates.
Sample call
{
"rest_call": "update_acct_invoice_m",
"output_format": "json",
"client_no": 4471,
"auth_key": "b92f6e1c8a3d4f0e9b7c2a1d5e6f8091",
"acct_no": 100381,
"src_transaction_id": 771002,
"custom_status_label": "Under Dispute Review",
"client_notes": "Customer disputes the line 3 charge; hold collections pending review by billing support."
}
The rest_call and output_format fields form the envelope added by the REST layer; they are not part of the method's own argument list in the yml. This example identifies the account using acct_no rather than the alternative client_acct_id. The src_transaction_id field is required and holds either the Aria invoice number or the Aria transaction ID for the invoice; Aria prefers the invoice number when both would match, and this example supplies the invoice number. The custom_status_label field must match a value already configured in the client's custom invoice field settings. The client_notes field is free text.
Sample response
{
"error_code": 0,
"error_msg": "OK"
}
An error_code of zero with an error_msg of "OK" indicates the invoice update succeeded. This method's returns block defines only error_code and error_msg, so there are no additional output fields or arrays to describe.