Ebay Australia网站ID在Trading API上无效(修改后的EbayR)(Ebay Australia Site ID invalid on Trading API (Modified

编程入门 行业动态 更新时间:2024-10-24 12:33:11
Ebay Australia网站ID在Trading API上无效(修改后的EbayR)(Ebay Australia Site ID invalid on Trading API (Modified EbayR))

每次我尝试使用AddFixedPriceItem发布一个产品, AddFixedPriceItem Site ID设置为Australia(15)时,我会得到错误响应:

:errors => {:short_message =>“输入数据无效。”,:long_message =>“标记的输入数据无效或缺失。请检查API文档。”

我尝试了网站ID的每个变体(“AU”,“澳大利亚”,15,“15”),当我将其切换到美国网站ID(0)时,一切都很完美。 有什么东西我做错了吗?

我使用自己的自定义版本的EbayR (因为它没有正确解析xml)

无论如何,这里是完整的原始SOAP请求:

头:

{ 'X-EBAY-API-COMPATIBILITY-LEVEL' => @compatability_level.to_s, # => 837 'X-EBAY-API-DEV-NAME' => dev_id.to_s, 'X-EBAY-API-APP-NAME' => app_id.to_s, 'X-EBAY-API-CERT-NAME' => cert_id.to_s, 'X-EBAY-API-CALL-NAME' => @command.to_s, 'X-EBAY-API-SITEID' => @site_id.to_s, # => which is 15 'Content-Type' => 'text/xml' }

全身要求是:

<AddFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken>....</eBayAuthToken> </RequesterCredentials> <Item> <Title>dssddsheykduhfid</Title> <ListingDuration>GTC</ListingDuration> <ListingType>FixedPriceItem</ListingType> <Description>This is another test description with image</Description> <PrimaryCategory> <CategoryID>57989</CategoryID> </PrimaryCategory> <SKU>dfiuhdssdsdfggfmeesddffdeseddfda</SKU> <InventoryTrackingMethod>SKU</InventoryTrackingMethod> <PaymentMethods>PayPal</PaymentMethods> <PayPalEmailAddress>payments-facilitator@logicsaas.com</PayPalEmailAddress> <CategoryMappingAllowed>true</CategoryMappingAllowed> <ConditionID>1000</ConditionID> <Country>AU</Country> <Currency>AUD</Currency> <DispatchTimeMax>4</DispatchTimeMax> <PostalCode>3194</PostalCode> <ReturnPolicy> <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption> <RefundOption>MoneyBack</RefundOption> <ReturnsWithinOption>Days_30</ReturnsWithinOption> <Description>What! you dont want the product! .... ok</Description> <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption> </ReturnPolicy> <PictureDetails> <PictureURL>http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg</PictureURL> </PictureDetails> <ShippingDetails> <ShippingType>Flat</ShippingType> <ShippingServiceOptions> <ShippingServicePriority>1</ShippingServicePriority> <ShippingService>AU_eBayAusPost3kgFlatRateSatchel</ShippingService> <ShippingServiceCost>10</ShippingServiceCost> </ShippingServiceOptions> </ShippingDetails> <Site>15</Site> <Variations> <VariationSpecificsSet> <NameValueList> <Name>Size</Name> <Value>L</Value> <Value>S</Value> </NameValueList> <NameValueList> <Name>Color</Name> <Value>Red</Value> <Value>Blue</Value> </NameValueList> </VariationSpecificsSet> <Variation> <SKU>dfiuhdssdsdfggfmeesddffdeseddfdaOMG454fgfgfg</SKU> <StartPrice>100.99</StartPrice> <Quantity>1</Quantity> <VariationSpecifics> <NameValueList> <Name>Size</Name> <Value>L</Value> </NameValueList> <NameValueList> <Name>Color</Name> <Value>Red</Value> </NameValueList> </VariationSpecifics> </Variation> <Variation> <SKU>dfiuhdssdsdfggfmeesddffdeseddfdaOMG432325fgfgfg</SKU> <StartPrice>100.99</StartPrice> <Quantity>16</Quantity> <VariationSpecifics> <NameValueList> <Name>Size</Name> <Value>L</Value> </NameValueList> <NameValueList> <Name>Color</Name> <Value>Blue</Value> </NameValueList> </VariationSpecifics> </Variation> </Variations> </Item>

我还咬了一下子弹并支付了75美元用于技术支持。如果我在这里没有收到回复,我会粘贴他们的回复供大家查看。

Every time I try and publish a product with AddFixedPriceItem with the Site ID set to Australia (15) I get the error response:

:errors=>{:short_message=>"Input data is invalid.", :long_message=>"Input data for tag is invalid or missing. Please check API documentation."

I tried every variation of the site ID ("AU", "Australia", 15, "15") and when i switch it to the US site ID (0) everything works perfectly. Is there something that I'm doing wrong?

Im using my own customised version of EbayR (because it didn't parse the xml correctly)

Anyway here is the full raw SOAP request:

Headers:

{ 'X-EBAY-API-COMPATIBILITY-LEVEL' => @compatability_level.to_s, # => 837 'X-EBAY-API-DEV-NAME' => dev_id.to_s, 'X-EBAY-API-APP-NAME' => app_id.to_s, 'X-EBAY-API-CERT-NAME' => cert_id.to_s, 'X-EBAY-API-CALL-NAME' => @command.to_s, 'X-EBAY-API-SITEID' => @site_id.to_s, # => which is 15 'Content-Type' => 'text/xml' }

the full body request is:

<AddFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken>....</eBayAuthToken> </RequesterCredentials> <Item> <Title>dssddsheykduhfid</Title> <ListingDuration>GTC</ListingDuration> <ListingType>FixedPriceItem</ListingType> <Description>This is another test description with image</Description> <PrimaryCategory> <CategoryID>57989</CategoryID> </PrimaryCategory> <SKU>dfiuhdssdsdfggfmeesddffdeseddfda</SKU> <InventoryTrackingMethod>SKU</InventoryTrackingMethod> <PaymentMethods>PayPal</PaymentMethods> <PayPalEmailAddress>payments-facilitator@logicsaas.com</PayPalEmailAddress> <CategoryMappingAllowed>true</CategoryMappingAllowed> <ConditionID>1000</ConditionID> <Country>AU</Country> <Currency>AUD</Currency> <DispatchTimeMax>4</DispatchTimeMax> <PostalCode>3194</PostalCode> <ReturnPolicy> <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption> <RefundOption>MoneyBack</RefundOption> <ReturnsWithinOption>Days_30</ReturnsWithinOption> <Description>What! you dont want the product! .... ok</Description> <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption> </ReturnPolicy> <PictureDetails> <PictureURL>http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg</PictureURL> </PictureDetails> <ShippingDetails> <ShippingType>Flat</ShippingType> <ShippingServiceOptions> <ShippingServicePriority>1</ShippingServicePriority> <ShippingService>AU_eBayAusPost3kgFlatRateSatchel</ShippingService> <ShippingServiceCost>10</ShippingServiceCost> </ShippingServiceOptions> </ShippingDetails> <Site>15</Site> <Variations> <VariationSpecificsSet> <NameValueList> <Name>Size</Name> <Value>L</Value> <Value>S</Value> </NameValueList> <NameValueList> <Name>Color</Name> <Value>Red</Value> <Value>Blue</Value> </NameValueList> </VariationSpecificsSet> <Variation> <SKU>dfiuhdssdsdfggfmeesddffdeseddfdaOMG454fgfgfg</SKU> <StartPrice>100.99</StartPrice> <Quantity>1</Quantity> <VariationSpecifics> <NameValueList> <Name>Size</Name> <Value>L</Value> </NameValueList> <NameValueList> <Name>Color</Name> <Value>Red</Value> </NameValueList> </VariationSpecifics> </Variation> <Variation> <SKU>dfiuhdssdsdfggfmeesddffdeseddfdaOMG432325fgfgfg</SKU> <StartPrice>100.99</StartPrice> <Quantity>16</Quantity> <VariationSpecifics> <NameValueList> <Name>Size</Name> <Value>L</Value> </NameValueList> <NameValueList> <Name>Color</Name> <Value>Blue</Value> </NameValueList> </VariationSpecifics> </Variation> </Variations> </Item>

Also I bit the bullet and payed the 75 dollars for technical support, If I don't get a response here I'll paste the response from them for all to see.

最满意答案

很酷,所以看起来这是一个ebay问题。 他们正试图解决这个问题。 但他们回应了一个解决方案:

你好Avin,

感谢您报告此问题。 我可以重现这个问题,我已将其转发给我们的工程团队进行进一步调查。 我们将以“Waiting-BugFix”状态打开票证。

实际上,SiteID不是必填字段。 如果您没有传递SiteID,将从标题中获取SiteID。 作为解决方法,请省略该字段并继续列出。

请让我知道,如果你有任何问题。

最诚挚的问候,eBay开发人员支持

Cool, so it seems like this was an ebay issue. They are trying to fix it at the moment. But they responded with a work around:

Hello Avin ,

Thank you for reporting this issue. I can reproduce the problem and I have forwarded this to our engineering team for further investigation. We will keep the ticket open in "Waiting-BugFix" status.

Actually SiteID is not a mandatory field. SiteID will be taken from the header if you don't pass it. As a workaround, please omit the field and continue listing.

Please let me know if you have any questions.

Best Regards, eBay Developer Support

更多推荐

本文发布于:2023-08-07 22:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466412.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网站   ID   Trading   Australia   Ebay

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!