Authorization


Registration   Forgot password?

Changing Order Status and Shipping Information


If you wish to change the status of order or/and its shipping information please open the following file:

orders_process.php


Legend:
<element> – optional elements
param – required parameters
param – optional parameters

API Request:
POST /API/orders_process.php?api_id=id&api_key=key HTTP/1.1
Host: www.shopxml.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

status[order_id]=integer&shipping_info[order_id]=string&...
(All the possible request parameters can be found below)

API Response:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8" ?> 
<orders>
  <orders_wrong>order_id[,...]</orders_wrong>
  <statuses_wrong>order_id[,...]</statuses_wrong>
  <statuses_not_changed>order_id[,...]</statuses_not_changed>
</orders>


Request parameters ():

status[] it is status array which assigned to each order. Index array is an order ID where its value specifies its status. The status has to be assigned to the current order. For example: status[44]=2&status[45]=3
shipping_info[] shipping array information that should be assigned to the certain order. Array index is an order ID, where its value is its information (string might be empty) that should be assigned to the particular order.
jlby bp shipping_info_mail should be set in field 1, if the information needs to be sent to the customers (never incomplete).

status or shipping_info - AT LEAST ONE OF THESE FIELDS SHOULD BE COMPLETED


Response parameters:

Please remember, there is always a possibility of an error in the particular interface. When the error does not occur the answer field gives the information in XML format as following:

<orders> - external container
<orders> - external container
<orders_wrong> - incorrect order ID numbers separated by commas in the current order generated by key arrays such as status and shipping_info (e.g. if specified order does not exist in the product database)
<statuses_wrong> - the list of incorrect ID numbers from the current order separated by commas with an incorrect status.
<statuses_not_changed> - the list of incorrect ID numbers from the current order that is separated by commas with an assigned statuses matching to existent statuses.

All the orders containing no errors are processed successfully.
Contact Us Legal and Policies Sitemap
© XMLShop.com 2004 – 2018