Skip to main content
Aria Knowledge Central

get_acct_payment_methods_and_terms_m Sample Call and Response

This example retrieves both the active payment methods and the payment terms configured on an account, based on the get_acct_payment_methods_and_terms_m method defined in plsql_m_r73.yml. The account in this example has two persistent payment methods, a corporate credit card and an automated clearing house (ACH) bank account, along with a Net Terms payment term.

This example includes every required field, plus the two optional filters that shape which records come back, rather than every optional field the method accepts.

Sample call

{
  "rest_call": "get_acct_payment_methods_and_terms_m",
  "output_format": "json",
  "client_no": 3001,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "acct_no": 900154321,
  "filter_status": 1,
  "payments_returned": 3
}

The rest_call and output_format fields form the envelope that the REST layer adds to every call; they are not part of the method's own documented arguments. Unlike most Core API methods, this method's own definition overrides auth_key to nullable false, so auth_key is required here rather than optional. You identify the account using acct_no, the Aria-assigned account identifier, which is one side of an alternative pair with the client-defined client_acct_id; this example uses acct_no. The filter_status value of 1 restricts the results to active payment methods only, rather than disabled ones (0) or all of them regardless of status (2, the default). The payments_returned value of 3 tells Aria to return both payment methods and payment terms; the alternative values, 1 and 2, would return only payment terms or only payment methods, respectively.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "account_payment_methods": [
    {
      "bill_first_name": "Jane",
      "bill_last_name": "Smith",
      "bill_company_name": "Example Corp",
      "bill_address1": "500 Market Street",
      "bill_city": "San Francisco",
      "bill_state_prov": "CA",
      "bill_country": "USA",
      "bill_postal_cd": "94105",
      "bill_phone": "4155551212",
      "bill_email": "jsmith@examplecorp.com",
      "pay_method_name": "Corporate Visa",
      "client_payment_method_id": "PM-VISA-001",
      "pay_method_description": "Primary corporate credit card",
      "pay_method_type": 1,
      "suffix": "4242",
      "cc_expire_mm": 11,
      "cc_expire_yyyy": 2028,
      "cc_type": "Visa",
      "status": 1,
      "payment_method_no": 771002,
      "persistent_ind": 1,
      "from_date": "2025-01-15"
    },
    {
      "bill_first_name": "Jane",
      "bill_last_name": "Smith",
      "bill_company_name": "Example Corp",
      "bill_address1": "500 Market Street",
      "bill_city": "San Francisco",
      "bill_state_prov": "CA",
      "bill_country": "USA",
      "bill_postal_cd": "94105",
      "bill_phone": "4155551212",
      "bill_email": "jsmith@examplecorp.com",
      "pay_method_name": "Operating Account ACH",
      "client_payment_method_id": "PM-ACH-002",
      "pay_method_description": "Secondary ACH payment method for overflow billing",
      "pay_method_type": 2,
      "suffix": "6510",
      "bank_routing_num": "121000358",
      "status": 1,
      "payment_method_no": 771003,
      "persistent_ind": 1,
      "from_date": "2025-06-01"
    }
  ],
  "account_payment_terms": [
    {
      "payment_terms_type": "Net Terms",
      "client_payment_term_id": "NET30-STD",
      "payment_terms_name": "Net 30 Standard",
      "payment_terms_no": 4402
    }
  ]
}

An error_code value of 0 and an error_msg value of “OK” indicate that Aria processed the request successfully. The account_payment_methods array holds one entry per payment method on the account; this example shows two representative entries, a credit card (pay_method_type 1) and an ACH bank account (pay_method_type 2), though an account could have more or fewer active payment methods. The account_payment_terms array holds one entry per payment terms configuration; this example shows one entry, of type “Net Terms” rather than the alternative type, “EAN/GLN”, so the ean_gln_num and ean_gln_requisition_num fields, which only apply to the EAN/GLN type, are left out. This example also leaves out the payment_method_no filter argument, which would narrow the response to a single specified payment method, and several optional response fields such as bank_swift_cd, mandate_id, bill_info_api_receipt_id, and the proc_card_available_balance group of processor-specific fields.

TOP
  • Was this article helpful?