Skip to main content
Published: December 18 2008, 10:35:00 PMUpdated: August 09 2022, 1:35:06 AM

When AddItem request as below is made against SiteID 0,  the API returns Error 737- Invalid PostalCode.  Moving the OriginatingPostalCode tag does not help either.

<?xml version="1.0" encoding="utf-8"?>
<VerifyAddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>xxxx</eBayAuthToken>
  </RequesterCredentials>
  <ErrorHandling>BestEffort</ErrorHandling>
  <Item>
    <ReturnPolicy>
      <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
      <Description>You will get credit</Description>
      <RefundOption>MerchandiseCredit</RefundOption>
      <ReturnsWithinOption>Days_7</ReturnsWithinOption>
    </ReturnPolicy>
    <Title>Test Item . Do not bid</Title>
    <PrimaryCategory>
      <CategoryID>3827</CategoryID>
    </PrimaryCategory>
    <Description>Test Item . Do not bid</Description>
    <Location>Canada</Location>
    <Quantity>1</Quantity>
    <Currency>USD</Currency>
    <Country>CA</Country>
    <StartPrice currencyId="USD">12.0</StartPrice>
    <ListingDuration>Days_7</ListingDuration>
    <Site>US</Site>
    <PayPalEmailAddress>test@aol.com</PayPalEmailAddress>
    <PaymentMethods>PayPal</PaymentMethods>
    <ShippingDetails>
      <PromotionalShippingDiscount>true</PromotionalShippingDiscount>
      <ShippingType>Calculated</ShippingType>
      <PaymentInstructions><![CDATA[addnl checkout instructions from ebay]]></PaymentInstructions>
      <ChangePaymentInstructions>1</ChangePaymentInstructions>
      <ShippingServiceOptions>
        <ShippingService>USPSFirstClass</ShippingService>
        <ShippingServicePriority>1</ShippingServicePriority>
      </ShippingServiceOptions>
      <InternationalShippingServiceOption>
        <ShippingService>UPSWorldWideExpressPlus</ShippingService>
        <ShippingServicePriority>1</ShippingServicePriority>
        <ShipToLocation>Worldwide</ShipToLocation>
      </InternationalShippingServiceOption>
      <CalculatedShippingRate>
       <OriginatingPostalCode>K2L2V2</OriginatingPostalCode>
          <WeightMajor unit="lbs">0</WeightMajor>
        <WeightMinor unit="oz">1</WeightMinor>
        <ShippingPackage>Letter</ShippingPackage>
        <PackageDepth>1.0</PackageDepth>
        <PackageWidth>1.0</PackageWidth>
        <PackageLength>1.0</PackageLength>
      </CalculatedShippingRate>
      <SalesTax>
        <SalesTaxState>CA</SalesTaxState>
        <SalesTaxPercent>8.0</SalesTaxPercent>
        <ShippingIncludedInTax>true</ShippingIncludedInTax>
      </SalesTax>
    </ShippingDetails>
    <ListingType>Chinese</ListingType>
    <CategoryMappingAllowed>true</CategoryMappingAllowed>
       <ShippingTermsInDescription>true</ShippingTermsInDescription>
    <DispatchTimeMax>4</DispatchTimeMax>
  </Item>
</VerifyAddItemRequest>

What is the problem?  How to fix it?

Summary

There are a couple of problems for the AddItem request that is populatd with the following properties:

    <ShippingType>Calculated</ShippingType> , SiteID =0,  <Country>CA</Country> and <OriginatingPostalCode>K2L2V2</OriginatingPostalCode>

 

   1. For Calculated Shipping, OriginatingPostalCode is a required tag which is validated against the SiteID  the request is routed to. Specifing a non-numeric value as K2L2V2  for CalculatedShippingRate.OriginatingPostalCode tag in AddItem request, the API will return the request Error 737 - Invalid PostalCode since  K2L2V2 is not an valid US (SiteID 0) post code


  2. Further more,  note that the tag Item.Country is specified as CA, which means the item is located outside US.  When an item is not located on US, the listing is not allowed to be listed with CalculateShipping that one should use FlatShippng  instead.


 

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