xml - eBay Trading API AddFixedPriceItem error -
i want create bot automate listing procedure on ebay.in. testing various calls develop template bot fetch info database , send ebay. have been trying list new product in sandbox provided ebay.
here xml
<?xml version="1.0" encoding="utf-8"?> <addfixedpriceitemrequest xmlns="urn:ebay:apis:eblbasecomponents"> <requestercredentials> <ebayauthtoken>token inserted here</ebayauthtoken> </requestercredentials> <!-- call-specific input fields --> <item> <conditionid>1000</conditionid> <country>in</country> <currency>inr</currency> <description>this description</description> <inventorytrackingmethod>sku</inventorytrackingmethod> <dispatchtimemax>3</dispatchtimemax> <listingduration>days_7</listingduration> <listingtype>fixedpriceitem</listingtype> <outofstockcontrol>true</outofstockcontrol> <paymentmethods>creditcard</paymentmethods> <paymentmethods>directdebit</paymentmethods> <picturedetails> <galleryurl>http://cdn3.purplle.com/static/img/cache/product/pplb121hd110/250x250_1.jpg?1390916568</galleryurl> </picturedetails> <postalcode>400086</postalcode> <primarycategory> <categoryid>11858</categoryid> </primarycategory> <quantity>1</quantity> <shippingdetails> <shippingtype>flat</shippingtype> <shippingserviceoptions> <shippingservice>in_courier</shippingservice> <shippingservicecost>49.0</shippingservicecost> </shippingserviceoptions> </shippingdetails> <shiptolocations>in</shiptolocations> <!--more shiptolocations values allowed here--> <site>india</site> <sku>pplb121hd110</sku> <startprice>2258.00</startprice> <!--subtitle> string </subtitle--> <title>braun satin hair 1 dryer hd 110 hair dryer</title> </item> <!-- standard input fields --> <errorlanguage>en_us</errorlanguage> <!--messageid> string </messageid> <version> string </version--> <warninglevel>high</warninglevel> </addfixedpriceitemrequest>
now after doing many modification in xml request, above 1 latest one. next error response on submitting above request everytime.
<?xml version="1.0" encoding="utf-8"?> <addfixedpriceitemresponse xmlns="urn:ebay:apis:eblbasecomponents"> <timestamp>2014-06-24t07:19:29.784z</timestamp> <ack>failure</ack> <errors> <shortmessage>input info invalid.</shortmessage> <longmessage>input info tag <item.shippingdetails> invalid or missing. please check api documentation.</longmessage> <errorcode>37</errorcode> <severitycode>error</severitycode> <errorparameters paramid="0"> <value>item.shippingdetails</value> </errorparameters> <errorclassification>requesterror</errorclassification> </errors> <version>873</version> <build>e873_uni_api5_16868630_r1</build> </addfixedpriceitemresponse>
i have done google search, went through api, tried re-create sample code still same error. wondering if error in xml or else might missing.
the value shippingservice
case sensitive, think have utilize "in_courier" uppercase "n".
a list of valid options shippingservice
you'll find here:
http://developer.ebay.com/devzone/xml/docs/reference/ebay/types/shippingservicecodetype.html
xml api ebay
No comments:
Post a Comment