Skip to main content
Aria Knowledge Central

get_order_items_m Sample Call and Response

This example retrieves just the line items belonging to one non-subscription order (NSO), given the order number. It is based on the get_order_items_m method as defined in plsql_m_r73.yml. Use get_order_m instead when you need the order-level record itself, such as its status, associated invoice, and fulfillment dates.

This example covers the required order_no lookup and a representative set of line-item attributes. It does not cover order line qualifiers or installment term summaries.

Sample call

{
  "rest_call": "get_order_items_m",
  "output_format": "json",
  "client_no": 100234,
  "auth_key": "8f3d2a19c6b74e0a9d1f5c6e7a8b9c0d",
  "order_no": 7788001
}

The order_no field is the only argument this method accepts beyond client_no and auth_key, and it is required; there is no alternative client-defined identifier for the order in this method. In this example, order_no 7788001 identifies a one-time purchase of a wireless router along with expedited shipping and an extended warranty. The rest_call and output_format fields are added by the REST layer and are not part of the method's own argument list.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "order_items_list": [
    {
      "line_no": 1,
      "client_sku": "RTR-AX3000",
      "label": "Wireless Router AX3000",
      "alt_label": "AX3000 Router",
      "long_desc": "Dual-band wireless router supporting Wi-Fi 6, up to 3000 Mbps.",
      "units": 1,
      "unit_amount": 129.99,
      "line_amount": 129.99,
      "line_comments": "Customer requested black finish.",
      "item_svc_location_no": 55012,
      "client_item_svc_location_id": "WH-EAST-01",
      "nso_rate_schedule_no": 71005,
      "client_nso_rate_schedule_id": "RTR-RATE-STD",
      "rate_seq_no": 1,
      "custom_rate_ind": 0,
      "client_order_line_id": "LINE-7788001-1",
      "item_svc_location_name": "East Coast Warehouse",
      "nso_rate_schedule_name": "Standard Router Rate"
    },
    {
      "line_no": 2,
      "client_sku": "SHIP-EXP",
      "label": "Expedited Shipping",
      "alt_label": "Expedited Shipping",
      "long_desc": "Two-day expedited shipping for the order.",
      "units": 1,
      "unit_amount": 14.99,
      "line_amount": 14.99,
      "line_comments": null,
      "item_svc_location_no": 55012,
      "client_item_svc_location_id": "WH-EAST-01",
      "nso_rate_schedule_no": 71010,
      "client_nso_rate_schedule_id": "SHIP-RATE-EXP",
      "rate_seq_no": 1,
      "custom_rate_ind": 0,
      "client_order_line_id": "LINE-7788001-2",
      "item_svc_location_name": "East Coast Warehouse",
      "nso_rate_schedule_name": "Expedited Shipping Rate"
    },
    {
      "line_no": 3,
      "client_sku": "WARR-EXT-2YR",
      "label": "Extended Warranty, 2-Year",
      "alt_label": "2-Year Warranty",
      "long_desc": "Extends the manufacturer warranty on the router by two additional years.",
      "units": 1,
      "unit_amount": 19.99,
      "line_amount": 19.99,
      "line_comments": null,
      "item_svc_location_no": 55012,
      "client_item_svc_location_id": "WH-EAST-01",
      "nso_rate_schedule_no": 71020,
      "client_nso_rate_schedule_id": "WARR-RATE-2YR",
      "rate_seq_no": 1,
      "custom_rate_ind": 1,
      "client_order_line_id": "LINE-7788001-3",
      "item_svc_location_name": "East Coast Warehouse",
      "nso_rate_schedule_name": "Extended Warranty Rate"
    }
  ]
}

An error_code of zero, paired with an error_msg of "OK", indicates the call succeeded. The order_items_list array shown here contains three representative line items for order 7788001: the router itself, its shipping charge, and an extended warranty; a larger order could return many more lines. The custom_rate_ind value of one on the warranty line indicates that its unit price was overridden at the time the order was created, while the router and shipping lines use their standard rate schedule pricing. The error_details field is left out of this response entirely because it is a nonpublic field not exposed to callers. The item_dest_contact_no field is also omitted because this order does not have a distinct destination contact recorded. The deprecated schedule_no and tier_no fields (deprecated as of version twenty-eight) are left out in favor of their replacements, nso_rate_schedule_no and rate_seq_no. This example also leaves out the order_line_qualifier_list array, which is only populated when order line qualifiers have been defined, and the installment_term_summary array, since this order was not purchased on an installment plan.

TOP
  • Was this article helpful?