question

$$anonymous$$ avatar image
1 Like"
$$anonymous$$ asked ·

How to implement - FREE Standard Int'l Shipping

Hi All,

 

I need to implement adding and item to ebay using api with shipping status  FREE Standard Int'l Shipping. As example see this link http://www.ebay.com/itm/NEW-USB-2-0-Data-Sync-Cable-Charger-4-iPod-iPhone-4-4S-4G-3G-3GS-White-/130698994765?pt=US_Cell_Phone_PDA_Chargers&hash=item1e6e44644d.

The main question what is the ShippingService should I set in ShippingDetails? 

 

Thanks,

Stanislav

additem
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ answered ·

 ShippingDetailsType sd = new ShippingDetailsType();

 

            sd.ApplyShippingDiscount = true;

            sd.PaymentInstructions = "eBay .Net SDK test instruction.";

            sd.ShippingRateType = ShippingRateTypeCodeType.StandardList;

            

           // Shipping type and shipping service options

            //adding international shipping

            InternationalShippingServiceOptionsType internationalShipping1 = new InternationalShippingServiceOptionsType();

            internationalShipping1.ShippingService = ShippingServiceCodeType.StandardInternational.ToString();

            internationalShipping1.ShippingServiceCost = new AmountType {Value = 0, currencyID = CurrencyCodeType.USD};

            internationalShipping1.ShippingServicePriority = 1;

            internationalShipping1.ShipToLocation = new StringCollection(new[] { "Worldwide"});

            sd.ShippingServiceUsed = ShippingServiceCodeType.StandardInternational.ToString();

            sd.InternationalShippingServiceOption = new InternationalShippingServiceOptionsTypeCollection(new[] { internationalShipping1 });

            

            //adding domestic shipping

            ShippingServiceOptionsType domesticShipping1 = new ShippingServiceOptionsType();

            domesticShipping1.ShippingService =  ShippingServiceCodeType.ShippingMethodStandard.ToString();

            domesticShipping1.ShippingServiceCost = new AmountType { Value = 0, currencyID = CurrencyCodeType.USD };

            domesticShipping1.ShippingInsuranceCost = new AmountType { Value = 0, currencyID = CurrencyCodeType.USD };

            domesticShipping1.ShippingServicePriority = 4;

            domesticShipping1.LocalPickup = true;

            domesticShipping1.FreeShipping = true;

            sd.ShippingServiceOptions = new ShippingServiceOptionsTypeCollection(new[] { domesticShipping1 });

            sd.ShippingType = ShippingTypeCodeType.Flat; 

            

            return sd;

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.