eBay - 无效的商店名称

eBay - Invalid Store Name

当我使用用户 ID "goneatr" 请求购物 API 的 "GetUserProfile" 时。我得到商店名称 "New England Auto Truck Recyclers" 作为商店名称。

没错!!但是,当我请求 "findItemsIneBayStore" 查找商店名称 "New England Auto Truck Recyclers" 的 API 时,我得到了错误

失败

<error>
   <errorId>5</errorId>
   <domain>Marketplace</domain>
   <severity>Error</severity>
   <category>Request</category>
   <message>Invalid store name.</message>
   <subdomain>Search</subdomain>
   <parameter>New England Auto Truck Recyclers</parameter>
 </error>

谁能解决我的问题?

当您使用商店名称向 eBay 购物 API 发出请求时,您需要确保将商店名称参数中的空格转换为“+”。所以你的请求应该包含一个参数

&storeName=New+England+Auto+Truck+Recyclers

您发出 API 请求的客户端可能将它们呈现为“ ”或“%20”。

这在此处记录:https://developer.ebay.com/devzone/finding/callref/findItemsIneBayStores.html#Samples