Sample VSNORDER.XML file

The following sample lines are taken from a VSNORDER.XML file. {Comments to help you understand the code are included in brackets.}

<Orders>

<Order> {This is the start of the first order.}

<ExternalCustNum>503505</ExternalCustNum> {This is the customer number.}

<WebLoginID>884</WebLoginID>

<OrderNumber /> {Vision has not assigned an order number yet, so the OrderNumber element is left empty.}

<OrderType>StandardOrd</OrderType> {Only StandardOrd or Quote are acceptable order types at this time. Others may be added in the future.}

<ShipToNum>001</ShipToNum>

<PickTicketInstructions />

<ContactNum />

<ContactName />

<ContactPhone />

<ContactPhoneExtension />

<CustPONum />

<DeliveryCharge />

<BlanketPO />

<CustCode />

<LineItem>

<ProductNumber>ACD1</ProductNumber>

<CustPartNum />

<LineMsg />

<OrdQty>1</OrdQty>

<UM>EA        </UM>

<UnitPrice>2.99</UnitPrice>

<DisposalFee />

<ExciseTax />

</LineItem>

</Order> {This signals the end of the first order.}

<Order> {This is the start of the second order. You'll notice that this order has a ProcessTime element, but not an Errors element.}

<ProcessTime>7/2/2003 1:38:47 PM</ProcessTime> {This is ProcessTime element, which indicates the date and time when the system last attempted to process the e-catalog order into a Vision order.}

<ExternalCustNum>380825</ExternalCustNum>

<WebLoginID>884</WebLoginID>

<OrderNumber />

<OrderType>StandardOrd</OrderType>

<ShipToNum>001</ShipToNum>

<PickTicketInstructions />

<ContactNum />

<ContactName />

<ContactPhone />

<ContactPhoneExtension />

<CustPONum />

<DeliveryCharge />

<BlanketPO />

<CustCode />

<LineItem>

<ProductNumber>ACD31-900CT</ProductNumber>

<CustPartNum />

<LineMsg />

<OrdQty>1</OrdQty>

<UM>EA        </UM>

<UnitPrice>85.23</UnitPrice>

<DisposalFee />

<ExciseTax />

</LineItem>

</Order> {This signals the end of the second order.}

<Order> {This is the start of the third order. This order has both an Errors element and a ProcessTime element.}

<Errors> || Error Occurred During Order Save. Error details are: Credit Hold Exception:  || Order save failed. This Order Should be manually processed</Errors> {This is the Errors element, which indicates why the system could not create a Vision order or quote.}

<ProcessTime>7/2/2003 1:41:37 PM</ProcessTime>

<ExternalCustNum>380825</ExternalCustNum>

<WebLoginID>884</WebLoginID>

<OrderNumber />

<OrderType>StandardOrd</OrderType>

<ShipToNum>001</ShipToNum>

<PickTicketInstructions />

<ContactNum />

<ContactName />

<ContactPhone />

<ContactPhoneExtension />

<CustPONum />

<DeliveryCharge />

<BlanketPO />

<CustCode />

<LineItem>

<ProductNumber>ACD31-900CT</ProductNumber>

<CustPartNum />

<LineMsg />

<OrdQty>1</OrdQty>

<UM>EA        </UM>

<UnitPrice>85.23</UnitPrice>

<DisposalFee />

<ExciseTax />

</LineItem>

</Order> {This signals the end of the third order.}

</Orders>

 

Related Topics

Overview of electronic catalogs

Overview of error handling for e-catalogs