I'm doing some tests in Ebay Sandbox to understand how Large Merchant Service works, so lookong at some examples here i came up with some classes and an xml file setup for US site.
It works fine if I use this xml file, items are listed on ebay, but when i try to set the xml output for the italian site I mess something.
So, this is the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<BulkDataExchangeRequests>
<Header>
<SiteID>101</SiteID>
<Version>577</Version>
</Header>
<AddFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ErrorLanguage>it_IT</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<Version>577</Version>
<MessageID>Request 1</MessageID>
<Item>
<SKU>49203489082034</SKU>
<Country>IT</Country>
<Currency>EUR</Currency>
<Description>Item description</Description>
<DispatchTimeMax>3</DispatchTimeMax>
<InventoryTrackingMethod>SKU</InventoryTrackingMethod>
<ListingDuration>Days_7</ListingDuration>
<ListingType>FixedPriceItem</ListingType>
<PostalCode>25121</PostalCode>
<PaymentMethods>PayPal</PaymentMethods>
<PayPalEmailAddress>[email protected]</PayPalEmailAddress>
<PrimaryCategory>
<CategoryID>118326</CategoryID>
</PrimaryCategory>
<Quantity>10</Quantity>
<StartPrice>5.0</StartPrice>
<ShippingDetails>
<ShippingType>Flat</ShippingType>
<ShippingServiceOptions>
<ShippingServicePriority>1</ShippingServicePriority>
<ShippingService>SDA</ShippingService>
<ShippingServiceCost>2.50</ShippingServiceCost>
<ShippingServiceAdditionalCost>1.50</ShippingServiceAdditionalCost>
</ShippingServiceOptions>
</ShippingDetails>
<Title>Test Item</Title>
<ReturnPolicy>
<ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
<RefundOption>MoneyBack</RefundOption>
<ReturnsWithinOption>Days_30</ReturnsWithinOption>
<Description>Return policy details</Description>
<ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption>
</ReturnPolicy>
</Item>
</AddFixedPriceItemRequest>
</BulkDataExchangeRequests>
Seems that the values for site id and version are correct, refering to the ebay docs. The category id is taken from sanbox.ebay.it.
Am I doing the api call in the right way? Have i forgot to declare some values? Or some values are not valid?
I answer myself the question: i was messing the category_id and the ShippingService (IT_ExpressCourrier), besides for the italian version (101) you need to specify ShippingTimeMax.