Skip to main content
Published: April 28 2006, 3:53:00 PMUpdated: July 25 2022, 9:20:28 AM

How to use the System and Unit attributes for AddItem with Calculated Shipping

Currently, it is not required to send in the System and Unit attributes in an AddItem Request using calculated shipping. These properties are optional, and default to System="English" and Unit="in" for the item. You will see the settings for these properties in the GetItem response.

Sample AddItem with System and Unit specified for package dimension attributes:

<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<DetailLevel>ItemReturnDescription</DetailLevel>
<Version>967</Version>
<Item>
<Country>US</Country>
<Currency>USD</Currency>
<Description>Large Pack Item</Description>
<ListingDuration>Days_7</ListingDuration>
<Location>San Jose, CA</Location>
<PaymentMethods>PaymentSeeDescription</PaymentMethods>
<PrimaryCategory>
<CategoryID>357</CategoryID>
</PrimaryCategory>
<Quantity>1</Quantity>
<StartPrice>1.0</StartPrice>
<Title>Large Pack Item</Title>
<ShippingDetails>
<ShippingType>Calculated</ShippingType>
<CalculatedShippingRate>
<PackageDepth system="English" unit="in">30</PackageDepth>
<PackageLength system="English" unit="in">10</PackageLength>
<PackageWidth system="English" unit="in">20</PackageWidth>
<ShippingPackage>USPSLargePack</ShippingPackage>
<WeightMajor>2</WeightMajor>
<WeightMinor>15</WeightMinor>
<OriginatingPostalCode>95125</OriginatingPostalCode>
</CalculatedShippingRate>
<ShippingServiceOptions>
<ShippingService>UPS2ndDay</ShippingService>
<ShippingServicePriority>1</ShippingServicePriority>
</ShippingServiceOptions>
</ShippingDetails>
</Item>
</AddItemRequest>

Sample AddItemRequest with no System or Unit attributes specified for package dimensions:

<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<DetailLevel>ItemReturnDescription</DetailLevel>
<Version>967</Version>
<Item>
<Country>US</Country>
<Currency>USD</Currency>
<Description>Large Pack Item</Description>
<ListingDuration>Days_7</ListingDuration>
<Location>San Jose, CA</Location>
<PaymentMethods>PaymentSeeDescription</PaymentMethods>
<PrimaryCategory>
<CategoryID>357</CategoryID>
</PrimaryCategory>
<Quantity>1</Quantity>
<StartPrice>1.0</StartPrice>
<Title>Large Pack Item</Title>
<ShippingDetails>
<ShippingType>Calculated</ShippingType>
<CalculatedShippingRate>
<PackageDepth>30</PackageDepth>
<PackageLength>10</PackageLength>
<PackageWidth>20</PackageWidth>
<ShippingPackage>USPSLargePack</ShippingPackage>
<WeightMajor>2</WeightMajor>
<WeightMinor>15</WeightMinor>
<OriginatingPostalCode>95125</OriginatingPostalCode>
</CalculatedShippingRate>
<ShippingServiceOptions>
<ShippingService>UPS2ndDay</ShippingService>
<ShippingServicePriority>1</ShippingServicePriority>
</ShippingServiceOptions>
</ShippingDetails>
</Item>
</AddItemRequest>

GetItem Response for both cases:
- <ShippingDetails>
<AllowPaymentEdit>true</AllowPaymentEdit>
<ApplyShippingDiscount>true</ApplyShippingDiscount>
- <CalculatedShippingRate>
<OriginatingPostalCode>95125</OriginatingPostalCode>
<PackageDepth system="English" unit="in">30</PackageDepth>
<PackageLength system="English" unit="in">10</PackageLength>
<PackageWidth system="English" unit="in">20</PackageWidth>
<PackagingHandlingCosts currencyID="USD">0.0</PackagingHandlingCosts>
<ShippingIrregular>false</ShippingIrregular>
<ShippingPackage>USPSLargePack</ShippingPackage>
<WeightMajor system="English" unit="lbs">2</WeightMajor>
<WeightMinor system="English" unit="oz">15</WeightMinor>
</CalculatedShippingRate>
<InsuranceOption>NotOffered</InsuranceOption>
- <SalesTax>
<SalesTaxPercent>0.0</SalesTaxPercent>
<ShippingIncludedInTax>false</ShippingIncludedInTax>
</SalesTax>
<SellerPostalCode />
- <ShippingServiceOptions>
<ShippingService>UPS2ndDay</ShippingService>
<ShippingServicePriority>1</ShippingServicePriority>
<ExpeditedService>false</ExpeditedService>
<ShippingTimeMin>1</ShippingTimeMin>
<ShippingTimeMax>2</ShippingTimeMax>
</ShippingServiceOptions>
<ThirdPartyCheckout>false</ThirdPartyCheckout>
<TaxTable />
</ShippingDetails>

 

 

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