I am using the eBay Trading API with C# .NET SDK
I created a ReturnPolicyType
ReturnPolicyType policy=new ReturnPolicyType();
I set the policy properties and everything seems to work except the restocking fee
policy.RestockingFeeValue = "Percent_15";
And:
policy.RestockingFeeValueOption = "Percent_15";
I’ve also tried “15%” instead of “Percent_15”
but neither of them show the restocking fee on the listing
I’ve also asked the question on eBay’s developer forums but they are pretty vacant of activity.
My full return policy code is below
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";
The rest of the return policy displays as expected on the listing
2
Answers
I fetched an item listed using our old listing method and looked through the API call log to see the XML format of the existing listing.
I noticed a tag
SellerReturnProfile
inside of a tagSellerProfiles
I was able to populate the tags in the
additem
call like soI had to list shipping profiles and payment profiles in the same way. It seems like if you list one seller profile the other 2 become required. In this case, the return profile was already defined in eBay as our default return profile.
They can be found in Account Settings -> Business Policies, but the id number has to be found with a
getitem
call on an existing item with the profile set.It seems like the other call method
ReturnPolicyType()
might be depreciated as per these two sourcesBusiness Policies Opt-In out soon to be enforced
Mapping Business Policies Management API Fields to Trading API Fields
and
https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/ReturnPolicyType.html