E-Commerce Order Status Processing

Purpose: The EC_STS_INQ job, started through Working with E-Commerce Job Control (EJCT), receives an E-Commerce Order Status Message (CWOrderStatus) from the web storefront, based on company, sold-to customer, order number, and, optionally, individual and/or bill-to customer. The E-Commerce Order Status Response Message (CWStatusResponse) returned to the web storefront includes order summary information.

Note: You can also inquire about a customer’s order history or detailed information about a single order through the Generic Customer History API.

What is order status used for? Typically, customers request order summary information before:

• cancelling the order or an order line on the order; see E-Commerce Cancel Process Overview.

• returning the order; see Creating Return Authorizations from the Web Storefront.

In this topic:

Registered customer?

Order status response includes response type?

E-Commerce Order Status Message (CWOrderStatus)

E-Commerce Order Status Response Message (CWStatusResponse)

Registered customer?

If the customer is not registered at the web storefront, the E-Commerce Order Status Message (CWOrderStatus) includes a ship_to_details flag you can use to indicate whether to display ship-to detail:

• If this flag is selected, the E-Commerce Order Status Response Message (CWStatusResponse) includes each ship-to on an order, so that the customer can review the items separately for each ship-to address.

• If this flag is unselected, the E-Commerce Order Status Response Message (CWStatusResponse) does not include the ship-to information; all items on the order will appear together regardless of ship-to address.

If the customer is registered, the E-Commerce Order Status Response Message (CWStatusResponse) includes a listing of all the customer’s e-commerce (order API) orders and all ship-tos. This message also includes a status flag indicating whether the order is eligible for maintenance, and the quantity of each item that is eligible for cancellation, if any. Once the customer selects an order for review, all the order ship-to detail is available for display on the web storefront.

Order status response includes response type?

If the Pass E-Commerce Order Status Response Type (H68) system control value is selected, the E-Commerce Order Status Response Message (CWStatusResponse) includes a response type code indicating if an order was found that matches the order status inquiry.

1 indicates an order was found that matches the order status inquiry. The Order Status Response message includes order information.

2 indicates an order was found that matches the order status inquiry, but the last name defined for the inquiry (bill_to_lname, ind_lname, or company_name) does not match the last name on the order. The Order Status Response message includes order information; however the response type 2 indicates the last name defined on the order status inquiry does not match the last name on the order.

3 indicates an order was not found that matches the order status inquiry. The Order Status Response message includes company, order number, and a response type of 3, but does not include order information.

If this system control value is unselected, the system only sends an Order Status Response message to the web storefront when an order number is found that matches the order_id in the Order Status message and a match is found on at least one of the name fields in the request (bill_to_lname, ind_lname, or company_name).

Note: The system sends the sequence number rather than the order line number from the Order Detail table in the E-Commerce Order Status Response Message (CWStatusResponse).

SO10_07 Serenade 5.0 March 2015