我正在尝试使用 eBay API 提交新产品,但无论我尝试什么,都会发生以下错误:
标签的输入数据无效或缺失。 请查看 API 文档。(错误代码 37)。
它不会显示"运输详细信息"中的哪个字段无效。我已经尝试了所有方法,但没有成功。
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ebay:apis:eBLBaseComponents">
<SOAP-ENV:Header>
<ns1:RequesterCredentials>
<ns1:eBayAuthToken>(hidden)</ns1:eBayAuthToken>
<ns1:Credentials>
<ns1:AppId>(hidden)</ns1:AppId>
<ns1:DevId>(hidden)</ns1:DevId>
<ns1:AuthCert>(hidden)</ns1:AuthCert>
</ns1:Credentials>
</ns1:RequesterCredentials>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:AddFixedPriceItemRequest>
<ns1:ErrorLanguage>en_US</ns1:ErrorLanguage>
<ns1:Version>837</ns1:Version>
<ns1:Item>
<ns1:Country>NL</ns1:Country>
<ns1:Currency>EUR</ns1:Currency>
<ns1:Description><div style="font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"></div></ns1:Description>
<ns1:ListingDuration>GTC</ns1:ListingDuration>
<ns1:Location>Oirsbeek</ns1:Location>
<ns1:PaymentMethods>PayPal</ns1:PaymentMethods>
<ns1:PayPalEmailAddress>info@sfeerleven.nl</ns1:PayPalEmailAddress>
<ns1:PrimaryCategory>
<ns1:CategoryID>11700</ns1:CategoryID>
</ns1:PrimaryCategory>
<ns1:Quantity>20</ns1:Quantity>
<ns1:ShippingDetails>
<ns1:ShippingServiceOptions>
<ns1:ShippingService>DE_GLSInternational</ns1:ShippingService>
<ns1:ShippingServiceCost>5.95</ns1:ShippingServiceCost>
<ns1:ShippingServicePriority>1</ns1:ShippingServicePriority>
<ns1:FreeShipping>false</ns1:FreeShipping>
</ns1:ShippingServiceOptions>
<ns1:ShippingType>Flat</ns1:ShippingType>
</ns1:ShippingDetails>
<ns1:StartPrice>85.95</ns1:StartPrice>
<ns1:Title>Clayre &amp; Eef Bett&uuml;berwurf 180x260 | Q103.060</ns1:Title>
<ns1:VATDetails>
<ns1:VATPercent>21</ns1:VATPercent>
</ns1:VATDetails>
<ns1:SKU>Q103.060</ns1:SKU>
<ns1:CategoryBasedAttributesPrefill>true</ns1:CategoryBasedAttributesPrefill>
<ns1:PostalCode>6438 BB</ns1:PostalCode>
<ns1:PictureDetails>
<ns1:PictureURL>https://sfeerleven.nl/perry/Afbeeldingen/originals/Q103.060.jpg</ns1:PictureURL>
</ns1:PictureDetails>
<ns1:DispatchTimeMax>0</ns1:DispatchTimeMax>
<ns1:ReturnPolicy>
<ns1:ReturnsAcceptedOption>ReturnsAccepted</ns1:ReturnsAcceptedOption>
</ns1:ReturnPolicy>
<ns1:ConditionID>1000</ns1:ConditionID>
</ns1:Item>
</ns1:AddFixedPriceItemRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
DE_GLSInternational值不是有效的配送服务。eBay上可用的服务确实会随着时间的推移而变化,因此获取最新服务的最佳方法如下。
- 致电GeteBay详细信息以获取您要列出的网站。
- 在请求中,确保将"详细信息名称"设置为"装运服务详细信息"。
- 在响应中,循环访问每个 ShippingServiceDetails 元素并检查是否存在 ValidForSellingFlow。
- 如果 ValidForSellingFlow 存在且值为"true",请读入 ShippingService 的值。
- 您还可以检查国际服务的值,以查看该服务是否可用于国际运输。
不要使用官方 eBay 文档中提供的任何值。此页面已过时,列出的许多服务已不复存在。