Skip to content

Instantly share code, notes, and snippets.

@evanr76
Last active October 8, 2015 18:48
Show Gist options
  • Save evanr76/3373899 to your computer and use it in GitHub Desktop.
Save evanr76/3373899 to your computer and use it in GitHub Desktop.
Shipwire: Order Fulfillment API Example
POST /exec/FulfillmentServices.php
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE OrderList SYSTEM "http://www.shipwire.com/exec/download/OrderList.dtd">
<OrderList>
<Username>[email protected]</Username>
<Password>yourpassword</Password>
<Server>Test</Server>
<Referer>023YAHOO</Referer>
<Order id="test-485">
<Warehouse>00</Warehouse>
<AddressInfo type="ship">
<Name>
<Full>Sheridan Rawlins</Full>
</Name>
<Address1>321 Foo bar lane</Address1>
<Address2>Apartment #2</Address2>
<City>Nowhere</City>
<State>CA</State>
<Country>US</Country>
<Zip>12345</Zip>
<Phone>555-444-3210</Phone>
<Email>[email protected]</Email>
</AddressInfo>
<Shipping>GD</Shipping>
<Item num="0">
<Code>12345</Code>
<Quantity>1</Quantity>
</Item>
</Order>
<Order id="test-486">
<Warehouse>00</Warehouse>
<AddressInfo type="ship">
<Name>
<Full>Sheridan Rawlins</Full>
</Name>
<Address1>321 Foo bar lane</Address1>
<Address2>Apartment #2</Address2>
<City>Nowhere</City>
<State>CA</State>
<Country>US</Country>
<Zip>12345</Zip>
<Phone>(555)444-3210</Phone>
<Email>[email protected]</Email>
</AddressInfo>
<Shipping>2D</Shipping>
<Item num="0">
<Code>12345</Code>
<Quantity>1</Quantity>
</Item>
</Order>
<Order id="test-487">
<Warehouse>00</Warehouse>
<AddressInfo type="ship">
<Name>
<Full>Sheridan Rawlins</Full>
</Name>
<Address1>321 Foo bar lane</Address1>
<Address2>Apartment #2</Address2>
<City>Nowhere</City>
<State>CA</State>
<Country>US</Country>
<Zip>12345</Zip>
<Phone>555.444.3210</Phone>
<Email>[email protected]</Email>
</AddressInfo>
<Shipping>1D</Shipping>
<Item num="0">
<Code>654654</Code>
<Quantity>1</Quantity>
</Item>
</Order>
</OrderList>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE SubmitOrderResponse SYSTEM "http://www.shipwire.com/exec/download/SubmitOrderResponse.dtd">
<SubmitOrderResponse>
<Status>0</Status>
<TotalOrders>1</TotalOrders>
<TotalItems>1</TotalItems>
<TransactionId>1319266806-257193-1</TransactionId>
<OrderInformation>
<Order number="SG1011004883" id="1319266806-257193-1" status="accepted">
<Shipping>
<Warehouse>UK</Warehouse>
<Service>Royal Mail Airmail</Service>
<Cost>5.23</Cost>
</Shipping>
<Routing>
<Origin>
<Latitude>50.9118</Latitude>
<Longitude>0.12776</Longitude>
</Origin>
<Destination>
<Latitude>34.075</Latitude>
<Longitude>-117.378</Longitude>
</Destination>
</Routing>
</Order>
</OrderInformation>
<ProcessingTime units="ms">917</ProcessingTime>
</SubmitOrderResponse>
@iloveitaly
Copy link

👍 for @billda's comment on having a href attribute linking to https://merchant.beta.shipwire.com/merchants/ship/confirm/orderId/SHIPMENTID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment