A TaxDutyQuoteRequest requires a ShippingOrigin for each OrderItem. This ShippingOrigin maps from the ShippingAddress in each InventoryDetail in the InventoryDetailsResponseMessage.

Mapping

The InventoryDetailsResponseMessage field mappings start at: /InventoryDetailsResponsesMessage/InventoryDetails/InventoryDetail
The TaxDutyQuoteRequest field mappings start at: /TaxDutyQuoteRequest/Shipping/ShipGroups/ShipGroup/Items/OrderItem/Origins
The lineId attribute on InventoryDetail elements match up with the lineNumber attribute on the OrderItem elements.

InventoryDetailsResponseMessage Field TaxDutyQuoteRequest Field Transform Comment

//ShipFromAddress/Line1

//ShippingOrigin/Line1

copy as is

//ShipFromAddress/Line2

//ShippingOrigin/Line2

copy as is

//ShipFromAddress/Line3

//ShippingOrigin/Line3

copy as is

//ShipFromAddress/Line4

//ShippingOrigin/Line4

copy as is

//ShipFromAddress/City

//ShippingOrigin/City

copy as is

//ShipFromAddress/MainDivision

//ShippingOrigin/MainDivision

copy as is

//ShipFromAddress/CountryCode

//ShippingOrigin/CountryCode

copy as is

//ShipFromAddress/PostalCode

//ShippingOrigin/PostalCode

copy as is

Mapping Example

<?xml version="1.0" encoding="UTF-8"?><InventoryDetailsResponseMessage
    xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
  <InventoryDetails>
    <InventoryDetail lineId="1" 
                    itemId="12-345"> <!-- MAP1 MAP2 --> 
      ...
      <ShipFromAddress>
        <Line1>935 First Ave</Line1> <!-- MAP3 --> 
        <City>King of Prussia</City> <!-- MAP4 --> 
        <MainDivision>PA</MainDivision> <!-- MAP5 --> 
        <CountryCode>US</CountryCode> <!-- MAP6 --> 
        <PostalCode>19406</PostalCode> <!-- MAP7 --> 
      </ShipFromAddress>
    </InventoryDetail>
    ...
  </InventoryDetails>
</InventoryDetailsResponseMessage>
<?xml version="1.0" encoding="UTF-8"?><TaxDutyQuoteRequest
    xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
  ...
  <Shipping>
    <ShipGroups>
      <ShipGroup chargeType="FLATRATE" id="shipgroup_1">
        <DestinationTarget ref="dest_1"/>
        <Items>
          <OrderItem lineNumber="1"> <!-- MAP1 --> 
            <ItemId>12-345</ItemId> <!-- MAP2 --> 
            <Origins>
              ...
              <ShippingOrigin>
                <Line1>935 First Ave</Line1> <!-- MAP3 --> 
                <City>King of Prussia</City> <!-- MAP4 --> 
                <MainDivision>PA</MainDivision> <!-- MAP5 --> 
                <CountryCode>US</CountryCode> <!-- MAP6 --> 
                <PostalCode>19406</PostalCode> <!-- MAP7 --> 
              </ShippingOrigin>              ...
            </Origins>
            ...
          </OrderItem>
          ...
        </Items>
      </ShipGroup>
    </ShipGroups>
    ...
  </Shipping>
</TaxDutyQuoteRequest>