<?xml version="1.0" encoding="UTF-8" ?>
<!--

  InventoryUpdate.dtd

  Copyright (C) 2011, Shipwire Inc.  All rights reserved.

  Last modified: 2011-06-05

-->
<!ELEMENT InventoryUpdate ((EmailAddress|Username), Password?, Server, Warehouse?, WarehouseCountry?, ProductCode*, IncludeEmpty?) >

<!--
    Shipwire login email address, for legacy authentication [deprecated]

    New integrations should authenticate with API users via <Username>
-->
<!ELEMENT EmailAddress (#PCDATA)>

<!-- API username -->
<!ELEMENT Username (#PCDATA)>

<!--
    Password for the provided API user (<Username>) or Shipwire login (<EmailAddress>)

    Please enclose in a CDATA block if appropriate
-->
<!ELEMENT Password (#PCDATA)>

<!--
    Server to which to submit requests

    Production: Query live orders
          Test: Return test data
-->
<!ELEMENT Server (#PCDATA)>

<!--
  Warehouse for which to retrieve inventory

  CHI: Chicago
  LAX: Los Angeles
  PHL: Philadelphia

  VAN: Vancouver
  TOR: Toronto

  UK: United Kingdom

  HKG: Hong Kong

-->
<!ELEMENT Warehouse (#PCDATA)>

<!--
  Warehouse country from which to retrieve inventory

  This is appropriate e.g. for users with inventory in multiple US warehouses

  Please use ISO-3166-2 codes e.g.

  US: United States
  CA: Canada
  GB: United Kingdom
-->
<!ELEMENT WarehouseCountry (#PCDATA)>

<!--
  If present, will retrieve inventory for a specific SKU.  If left empty, all products that have ever carried inventory will be displayed.

  Multiple <ProductCode> elements may be provided.
-->
<!ELEMENT ProductCode (#PCDATA)>

<!-- If flag is present, all products will be returned, even those which have never had inventory. -->
<!ELEMENT IncludeEmpty EMPTY>

