eBay 交易 API 重新入库费用未显示在列表中



我正在使用带有C# .NET SDK 的eBay Trading API

我创建了一个ReturnPolicyType

ReturnPolicyType policy=new ReturnPolicyType();

我设置了政策属性,除了重新入库费外,一切似乎都正常

policy.RestockingFeeValue = "Percent_15";

和:

policy.RestockingFeeValueOption = "Percent_15";

我也尝试了"15%"而不是"Percent_15" 但他们都没有在列表上显示重新入库费

我也在eBay的开发者论坛上问过这个问题,但他们的活动非常空洞。

我的完整退货政策代码如下

ReturnPolicyType policy=new ReturnPolicyType();
policy.Refund="MoneyBack";
policy.ReturnsWithinOption="Days_30";
policy.ShippingCostPaidBy = "Buyer";
policy.RestockingFeeValue = "15%";
policy.RestockingFeeValueOption = "Percent_15";
policy.Description = "Returns are welcome on all items other than those sold on an 'AS - IS' basis. Buyers returning items shipped outside of the US will be responsible for all customs fees as well. Please read and fully understand the terms of our policy in advance if you wish to request a return.";
policy.ReturnsAcceptedOption="ReturnsAccepted";
policy.ShippingCostPaidByOption="Buyer";

退货政策的其余部分按预期显示在商品上

要获取当前支持的值的列表,请调用 GeteBayDetails,并将 DetailName 设置为 ReturnPolicyDetails。然后,在响应的"退货政策详细信息.重新入库费用价值"容器中查找重新入库费用百分比值的列表。

https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/ReturnPolicyType.html

我获取了使用旧列表方法列出的项目,并查看了 API 调用日志以查看现有列表的 XML 格式。

我注意到标签SellerReturnProfile在标签SellerProfiles

我能够像这样填充additem调用中的标签

item.SellerProfiles = new SellerProfilesType();
var returnpolicy = new SellerReturnProfileType();
returnpolicy.ReturnProfileID = 63410125011;               
returnpolicy.ReturnProfileName = "Returns Accepted,Buyer,30 Days,Money Default";
item.SellerProfiles.SellerReturnProfile = returnpolicy;

我必须以相同的方式列出运输配置文件和付款配置文件。似乎如果您列出一个卖家资料,其他 2 个成为必需的。在这种情况下,退货配置文件已在 eBay 中定义为我们的默认退货配置文件。

可以在"帐户设置"-">业务策略"中找到它们,但必须在对具有配置文件集的现有项目进行getitem调用时找到 ID 号。

似乎根据这两个来源,另一种调用方法可能会ReturnPolicyType()

贬值业务策略 即将实施选择退出

将业务策略管理 API 字段映射到交易 API 字段

任何选择加入商业政策的卖家都将无法在任何新商品中使用"付款"、"退货"或"配送"的旧字段。如果将旧字段传递到请求中,它们将被忽略并删除,卖方可能会收到一条警告消息。

如果传入业务策略配置文件 ID 和旧字段,则将忽略并删除旧字段。

最新更新