update_order_m Sample Call and Response
This example shows a call that updates an existing non-subscription order for a specified account, based on the update_order_m method defined in plsql_m_r73.yml.
The example releases an order that was previously placed in the held status, directing Aria to fulfill and bill it immediately using an alternate credit card supplied for this transaction. Unlike create_order_m, this method has no order line item array in its own argument list, since it only changes billing, fulfillment, and payment details on an order that already exists; it does not cover the automated clearing house or Direct Debit alternative payment fields, purchase order fulfillment date scheduling, or raw card track data.
Sample call
{
"rest_call": "update_order_m",
"output_format": "json",
"client_no": 1073,
"auth_key": "b19b2b3a4c5d6e7f8091a2b3c4d5e6f7",
"account_no": 3300521,
"order_no": 771002,
"bill_immediately": 1,
"alt_pay_method": 1,
"cc_number": "4111111111111111",
"cc_expire_mm": 11,
"cc_expire_yyyy": 2028,
"cvv": "321",
"bill_first_name": "Priya",
"bill_last_name": "Natarajan",
"bill_address1": "48 Harborview Lane",
"bill_city": "Portland",
"bill_state_prov": "OR",
"bill_zip": "97201",
"bill_country": "USA",
"bill_email": "priya.natarajan@example.com"
}
rest_call and output_format are envelope fields added by the REST layer. account_no is one side of an alternative pair with client_acct_id; this example uses the Aria-assigned account number. order_no identifies the specific order being updated and is required. bill_immediately uses the enumerated value one, meaning fulfill immediately and bill immediately; the order was previously placed with a value of two (held), and this call releases it. alt_pay_method is set to one to indicate that an alternate credit card, rather than the account’s current form of payment, should be used for this order; when this field is left empty, Aria uses the account’s existing payment method instead. cc_number is clearly a fake, non-real card number used only to illustrate the request shape. The bill_-prefixed fields override the billing contact for this specific transaction without changing the account’s stored contact. Left out of this example: the bank account and Direct Debit fields (bank_routing_num, bank_acct_num, iban, bank_check_digit, bank_swift_cd, bank_country_cd, mandate_id, bank_id_cd, bank_branch_cd, bank_name, bank_city, bank_acct_type, bank_acct_holder_type, mandate_signature_date), fulfilled_date, alt_inv_template_no, do_write (left at its documented default), track_data1 and track_data2 (raw card swipe data, not applicable to this manually entered card), fraud_filter, fraud_control_fields, alt_client_acct_group_id, and payment_method_verification_code.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"invoice_no": 8891301,
"total_charges_before_tax": 129.00,
"total_tax_charges": 10.32,
"total_charges_after_tax": 139.32,
"total_credit": 0,
"cart_invoice_line_items": [
{
"line_no": 1,
"service_no": 20890,
"service_name": "Wireless Router - Model RX200",
"line_units": 1,
"rate_per_unit": 129.00,
"line_amount": 129.00,
"description": "Non-subscription order item"
}
]
}
An error_code of zero together with an error_msg of “OK” indicates that Aria fulfilled and billed the order successfully. cart_invoice_line_items is a repeatable array describing every item on the resulting invoice; this example shows one representative entry. Left out of this response: transaction_id, which is deprecated; the processor response fields (proc_cvv_response, proc_avs_response, proc_cavv_response, proc_status_code, proc_status_text, proc_payment_id, proc_auth_code, proc_merch_comments); invoicing_error_code/invoicing_error_msg and invoicing_error_code_2; statement_error_cd/statement_error_msg; collection_error_code/collection_error_msg; third_party_errors; proc_fraud_filtering_info; threshold_billing_errors; proc_payment_response_field_list; and collection_payment_method_no.