1. Home
  2. Knowledge Base
  3. API & Integrations
  4. Order-XML-Output

Order XML Output Sample:

<?xml version=”1.0″ encoding=”utf-8″?>
<order>
<orderId>135</orderId>
<orderDate>2014-12-09T14:25:43.867</orderDate>
<payment>
<method>Purchase Order</method>
<poNumber>65749</poNumber>
</payment>
<shipping>
<method>UPS Ground</method>
</shipping>
<billingAddress>
<firstName>Todd</firstName>
<lastName>Gordner</lastName>
<street1>630 Silver Street</street1>
<street2>Somewhere, MA 01001</street2>
<city>Agawam</city>
<state>MA</state>
<zip>02184</zip>
</billingAddress>
<shippingAddress>
<firstName>Todd</firstName>
<lastName>Gordner</lastName>
<street1>630 Silver Street</street1>
<street2>Somewhere, MA 01001</street2>
<city>Agawam</city>
<state>MA</state>
<zip>02184</zip>
</shippingAddress>
<items>
<item>
<itemid>361</itemid>
<id>3642</id>
<integrationId>3DP001</integrationId>
<modelnumber>P</modelnumber>
<itemnumber>GB1PK</itemnumber>
<vendor></vendor>
<name>GB-2ball-1</name>
<quantity>1000</quantity>
<price>$649.98</price>
<options>
<option name=”Color”>Full Color</option>
<option name=”Size”>single sleeve-holds 1 ball</option>
<option name=”Turnaround”>5 Business Days</option>
</options>
<notes></notes>
<files>
<file path=”\pn135-361-0.pdf” />
</files>
</item>
</items>
<subTotal>$649.98</subTotal>
<taxTotal>$0.00</taxTotal>
<shippingTotal>$24.67</shippingTotal>
<grandTotal>$674.65</grandTotal>
</order>

Order XML Output with API

  • All api urls are relative to your base web service url (usually
    http://ws.`your-domain.com`)
  • All parameters will be passed via query string unless otherwise
    specified.

POST api/v1/shiplineitem
Updates a specific line item in an order to shipped status.

Parameters:

  • orderId: id number of the order involved
  • lineId: id number of the line item within the order
  • tracking: (optional) comma separated list of tracking numbers

Example Request/Response

Request:
POST /api/v1/shiplineitem?orderid=12&lineitem=32&tracking=1Z12345 HTTP/1.1
Host: ws.mystorefront.com

Response:
HTTP/1.1 200 OK

POST api/v1/shiporder

Updates an entire order to shipped status.

Parameters:

  • orderId: id number of order involved
  • tracking: (option) comma separated list of tracking numbers

Example Request/Response

Request:
POST /api/v1/shiporder?orderid=12&tracking=1Z12345 HTTP/1.1
Host: ws.mystorefront.com

Response:
HTTP/1.1 200 OK

Success/Error Responses
Success and error conditions can be determined based on the status code
returned in the http response along with any additional information in the
response body.

Response Codes:

  • 200 OK: indicates that the api call completed successfully
  • 400 Bad Request: indicates that the api call failed and a plain text
    description of the error can be found in the body of the response

Example Error Response

HTTP/1.1 400 Bad Request
Content-Length: 21
Content-Type: text/plain

Line item does not exist.

Was this article helpful?

Related Articles

© Copyright 2003 - 2016 PrintNow Technologies, Inc. All Rights Reserved.

Log in with your credentials

or    

Forgot your details?

Create Account