Skip to main content
Aria Knowledge Central

reverse_authorized_electronic_payment_m Sample Call and Response

This example shows a call that reverses a pending authorization on a customer’s credit card because the goods associated with the order were never delivered. The example is based on the reverse_authorized_electronic_payment_m method defined in plsql_m_r73.yml.

This example includes every required field and a representative set of commonly used optional fields, not every field the method accepts. All identifiers shown are fictitious.

Sample call

{
  "rest_call": "reverse_authorized_electronic_payment_m",
  "output_format": "json",
  "client_no": 4521,
  "auth_key": "FAKE-AUTH-KEY-0001",
  "acct_no": 830147,
  "auth_no": 9021456,
  "reason_code": 2,
  "comments": "Order 55210 was canceled before shipment; authorization is no longer needed.",
  "client_receipt_id": "RCPT-FAKE-88213"
}

The account is identified with acct_no, the Aria-assigned account identifier. This is one of a group of alternative identifiers that includes client_acct_id; you supply only one of them, and acct_no is used here because it is the Aria-assigned numeric identifier. The reason_code value of two indicates “Goods/services not delivered.” Other allowed values include one for an account charged in error, three for customer dissatisfaction, four for cancellation of pre-paid service, five for goodwill, six for overpayment or duplicate payment, seven for a wrong or undesired payment source charged, and ninety-nine million, nine hundred ninety-nine thousand, nine hundred ninety-nine for other reasons not otherwise listed. The rest_call and output_format fields are not part of the method’s own documented arguments; they are added by the representational state transfer, or REST, gateway that routes the request to this method.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "proc_status_code": "00",
  "proc_status_text": "Approved",
  "proc_auth_id": "AUTHID-FAKE-77219",
  "proc_auth_code": "OK9214",
  "proc_merch_comments": "Reversal processed for canceled order 55210.",
  "applied_total_reversal_amt_2": 149.99
}

An error_code of zero and an error_msg of “OK” indicate that the reversal was accepted for processing. This example leaves out application_id and application_date, which are internal, nonpublic fields with no client-facing effect, and it leaves out error_details, which is likewise a nonpublic, internal-use field. It also leaves out applied_total_reversal_amount, which is deprecated as of update version nineteen, in favor of the non-deprecated applied_total_reversal_amt_2 field, which reflects the same total reversed amount.

TOP
  • Was this article helpful?