question

panku5545 avatar image
0 Likes"
panku5545 asked

not able to add product in uk site using ebay api

I am trying to add an item using eBay API but not able to add an item in the UK site sandbox.ebay.co.uk. i am getting the following error during add item


 Input data is invalid.Input data for tag  is invalid or missing. Please check API documentation.37ErrorItem.CountryRequestError


<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
 <RequesterCredentials>
 <eBayAuthToken>XXXXXXXXXXXXXXXXXX</eBayAuthToken>
 </RequesterCredentials>
 <Item>
 <StartPrice>500.0</StartPrice>
 <ConditionID>1000</ConditionID>
 <Country>United Kingdom</Country>
 <Currency>GBP</Currency>
 <DispatchTimeMax>3</DispatchTimeMax>
 <ListingDuration>Days_7</ListingDuration>
 <ListingType>FixedPriceItem</ListingType>
 <PaymentMethods>PayPal</PaymentMethods>
 <PayPalEmailAddress>XXXXXXXXXXXXX</PayPalEmailAddress>
 <PostalCode>LE14</PostalCode>
 <ProductListingDetails>
 <UPC></UPC>
 <IncludePrefilledItemInformation>true</IncludePrefilledItemInformation>
 <IncludeStockPhotoURL>true</IncludeStockPhotoURL>
 </ProductListingDetails>
 <Quantity>6</Quantity>
 <ReturnPolicy>
 <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption>
 <RefundOption>MoneyBack</RefundOption>
 <ReturnsWithinOption>Days_30</ReturnsWithinOption>
 <Description>If not satisfied, return the item for refund.</Description>
 </ReturnPolicy>
 <ShippingDetails>
 <ShippingServiceOptions>
 <ShippingServicePriority>1</ShippingServicePriority>
 <ShippingService>UPSGround</ShippingService>
 <ShippingServiceCost>0.00</ShippingServiceCost>
 <ShippingServiceAdditionalCost>0.00</ShippingServiceAdditionalCost>
 </ShippingServiceOptions>
 </ShippingDetails>
 <Site>UK</Site>
 <SiteId>3</SiteId>
 </Item></AddItemRequest>


Please help me what i am doing wrong

ebay sandboxebayitemlinkebay.uk
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
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @panku5545,

Please specify 'GB' in country for United Kingdom.
https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/CountryCodeType.html

Item.ReturnPolicy.Description field is valid in only Germany (DE), Austria (AT), France (FR), Italy (IT), Spain (ES) marketplaces otherwise this field is ignored.

https://developer.ebay.com/devzone/xml/docs/reference/ebay/AddItem.html#Request.Item.ReturnPolicy.Description

Please see Offering a Clear Return Policy for more details.

Note: Only GTC duration is supported for fixed price listings.

Best Regards ,
eBay Developer Support

· 1
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.

Hi,

Thanks for your help.
As you suggested. I changed the following param but getting the same error.

Input data is invalid. Input data for tag is invalid or missing. Please check API documentation.37ErrorItem.CountryRequestError


From <Country>United Kingdom</Country> to <Country>UK</Country>

remove description

<Description>If not satisfied, return the item for refund.</Description>

added GTC duration for fixed-price

 <ListingDuration>GTC</ListingDuration>
0 Likes 0 ·

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.