Skip to main content
Published: June 15 2006, 12:00:00 AMUpdated: July 28 2022, 12:05:49 AM

Some of the ShippingServiceOptions containers that I had in my AddItem call are not showing up on the listing's ViewItem page.
Why is this happening?

Some of the InternationalShippingServiceOption containers that I had in my AddItem call are not showing up on the listing's ViewItem page.
Why is this happening?

I am getting a strange error that indicates I do not have any ShippingServiceOptions in my AddItem call, but in fact I do have them in my XML.
Why is this happening?

Why is my listing not showing shipping services that I had in my AddItem call?

This is a VERY important rule to remember:
Repeating elements must occur in a single contiguous block

This means there should never be other elements in between 2 instances of a repeating element (by the term "repeating element" we are referring to any element in the WSDL documentation that has [0..*] or any value in place of * that is greater than 1)

In the case of ShippingServiceOptions and InternationalShippingServiceOption containers, please keep all domestic (ShippingServiceOptions containers) shipping services together (contiguous) in the request, and keep all international (InternationalShippingServiceOption containers) shipping services together (contiguous) in the request. Do not do something like specify 2 domestic shipping services and then specify 2 international shipping services and then specify 1 domestic shipping service.

If you are using either the Java SDK and the .NET SDK, all ShippingServiceOptions and InternationalShippingServiceOption containers will automatically be serialized correctly.
Here are some examples of good and bad XML in a ShippingDetails container

Good:
<ShippingDetails>
...
  <ShippingServiceOptions>
    <ShippingService>USPSPriority</ShippingService>
    <ShippingServiceCost currencyID="USD">5.0</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>1</ShippingServicePriority>
    <ExpeditedService>false</ExpeditedService>
    <ShippingTimeMin>2</ShippingTimeMin>
    <ShippingTimeMax>3</ShippingTimeMax>
  </ShippingServiceOptions>
  <ShippingServiceOptions>
    <ShippingService>USPSFirstClass</ShippingService>
    <ShippingServiceCost currencyID="USD">6.0</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>2</ShippingServicePriority>
    <ExpeditedService>false</ExpeditedService>
    <ShippingTimeMin>2</ShippingTimeMin>
    <ShippingTimeMax>5</ShippingTimeMax>
  </ShippingServiceOptions>
  <ShippingServiceOptions>
    <ShippingService>USPSExpressMail</ShippingService>
    <ShippingServiceCost currencyID="USD">7.0</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>3</ShippingServicePriority>
    <ExpeditedService>true</ExpeditedService>
    <ShippingTimeMin>0</ShippingTimeMin>
    <ShippingTimeMax>1</ShippingTimeMax>
  </ShippingServiceOptions>
  <InternationalShippingServiceOption>
    <ShippingService>USPSEconomyParcel</ShippingService>
    <ShippingServiceCost currencyID="USD">15.5</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>1</ShippingServicePriority>
    <ShipToLocation>DE</ShipToLocation>
    <ShipToLocation>GB</ShipToLocation>
  </InternationalShippingServiceOption>
  <InternationalShippingServiceOption>
    <ShippingService>UPSWorldWideExpress</ShippingService>
    <ShippingServiceCost currencyID="USD">19.75</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>2</ShippingServicePriority>
    <ShipToLocation>MX</ShipToLocation>
  </InternationalShippingServiceOption>
  <InternationalShippingServiceOption>
    <ShippingService>UPSWorldWideExpedited</ShippingService>
    <ShippingServiceCost currencyID="USD">25.3</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>3</ShippingServicePriority>
    <ShipToLocation>Europe</ShipToLocation>
  </InternationalShippingServiceOption>
...
</ShippingDetails>

Bad (ShippingServiceOptions are not contiguous):
<ShippingDetails>
...
  <ShippingServiceOptions>
    <ShippingService>USPSPriority</ShippingService>
    <ShippingServiceCost currencyID="USD">5.0</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>1</ShippingServicePriority>
    <ExpeditedService>false</ExpeditedService>
    <ShippingTimeMin>2</ShippingTimeMin>
    <ShippingTimeMax>3</ShippingTimeMax>
  </ShippingServiceOptions>
  <InternationalShippingServiceOption>
    <ShippingService>USPSEconomyParcel</ShippingService>
    <ShippingServiceCost currencyID="USD">15.5</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>1</ShippingServicePriority>
    <ShipToLocation>DE</ShipToLocation>
    <ShipToLocation>GB</ShipToLocation>
  </InternationalShippingServiceOption>
  <ShippingServiceOptions>
    <ShippingService>USPSFirstClass</ShippingService>
    <ShippingServiceCost currencyID="USD">6.0</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>2</ShippingServicePriority>
    <ExpeditedService>false</ExpeditedService>
    <ShippingTimeMin>2</ShippingTimeMin>
    <ShippingTimeMax>5</ShippingTimeMax>
  </ShippingServiceOptions>
...
</ShippingDetails>

Bad (InternationalShippingServiceOption are not contiguous):
<ShippingDetails>
...
  <ShippingServiceOptions>
    <ShippingService>USPSPriority</ShippingService>
    <ShippingServiceCost currencyID="USD">5.0</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>1</ShippingServicePriority>
    <ExpeditedService>false</ExpeditedService>
    <ShippingTimeMin>2</ShippingTimeMin>
    <ShippingTimeMax>3</ShippingTimeMax>
  </ShippingServiceOptions>
  <InternationalShippingServiceOption>
    <ShippingService>USPSEconomyParcel</ShippingService>
    <ShippingServiceCost currencyID="USD">15.5</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>1</ShippingServicePriority>
    <ShipToLocation>DE</ShipToLocation>
    <ShipToLocation>GB</ShipToLocation>
  </InternationalShippingServiceOption>
  <SalesTaxPercent>0.0</SalesTaxPercent>
  <ShippingIncludedInTax>false</ShippingIncludedInTax>
  <InternationalShippingServiceOption>
    <ShippingService>UPSWorldWideExpress</ShippingService>
    <ShippingServiceCost currencyID="USD">19.75</ShippingServiceCost>
    <ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
    <ShippingServicePriority>2</ShippingServicePriority>
    <ShipToLocation>MX</ShipToLocation>
  </InternationalShippingServiceOption>
...
</ShippingDetails>

How well did this answer your question?
Answers others found helpful