|
Acutrack will notify (HTTP Post) the following shipping confirmation xml with TrackingNumber to a web page URL, something like www.yourserver.com/ReceiveShippingConfirmation.aspx with a variable name xmlStrShipping You have to email this URL to us, so that we can configure this URL in our shipping system. <?xml version="1.0" encoding="utf-8" ?> <ShippingConfirmation> <Orders> <Order> <ApprovalCode>Your Purchase order Number</ApprovalCode> <TrackingNumber /> <DealerID /> </Order> </Orders> </ShippingConfirmation> You can use any programming languages like PHP, ASP, ASPX, CGI etc… that can request the XML. For example, in .ASP language you can write RequestShippingXml=Request (“xmlStrShipping”) In your web page do the following...
- Get the Shipping Confirmation xml notified by Acutrack
- Get the TrackingNumber from the XML
- Update your system with TrackingNumber
- Write a script to create a ShippingConfirmationResponse XML as below and Response to the post (Response.write or echo to the browser)
<?xml version="1.0" encoding="utf-8" ?> <ShippingConfirmationResponse> <Orders> <Order> <ApprovalCode>Your Purchase order Number</ApprovalCode> <Status>Success/Error</Status> <Message>Description if the status is error</Message> </Order> </Orders> </ShippingConfirmationResponse> Success: If your system is updated with tracking number, then <Status>Success</Status> Already Shipped: If your order is already shipped, then <Status>Error</Status> <Message>Already Shipped</Message> Internal Error: If there is any error on your end and could not update the tracking nuumber, then
<Status>Error</Status> <Message>Internal Error</Message>
|