ReturnPolicy 是这样设置的:
ReturnPolicyType returnPolicy = new ReturnPolicyType
{
ReturnsAcceptedOption = "ReturnsAccepted",
RefundOption = "MoneyBack",
ReturnsWithinOption = "Days_30",
Description = @"",
Refund = "Items returned that do not have any quality issues are subject to a 11% restocking fee of the original total order, in order for us to offer the enormous selection of products at below-retail prices."
};
后来改成这样:
ReturnPolicyType returnPolicy = new ReturnPolicyType
{
ReturnsAcceptedOption = "ReturnsAccepted",
RefundOption = "MoneyBack",
ReturnsWithinOption = "Days_30",
Description = @" Items returned that do not have any quality issues are subject to a 11% restocking fee of the original total order, in order for us to offer the enormous selection of products at below-retail prices.",
};
结果上传产品的时候,还是报错了。
谁帮忙解决此问题,谢谢!
http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/RefundOptionsCodeType.html
fanny_wan 请参考这个链接
我之前看的这个页面,因为我调用的是AddItem 这个方法
http://developer.ebay.com/devzone/xml/docs/reference/ebay/AddItem.html#Request.Item.ReturnPolicy
里面有对description 和 Refund 的描述。
使用GetEbayDetails 方法来获取当前帐号可使用的return policy
DetailNameCodeType request.DetailName = new DetailNameCodeType[] { DetailNameCodeType.ReturnPolicyDetails };
根据提示,我将return policy 改成如下就可以上传产品了:
ReturnPolicyType returnPolicy = new ReturnPolicyType
{
Refund = "MoneyBack",
ReturnsWithin = "Days_30",
ReturnsAccepted = "ReturnsAccepted",
ReturnsAcceptedOption = "ReturnsAccepted",
Description = "Items returned that do not have any quality issues are subject to a 11% restocking fee of the original total order, in order for us to offer the enormous selection of products at below-retail price"
};