Question by michealmckeown · Feb 21, 2018 at 07:04 AM · sdkautomationlistingsellingmanagerrelistsetsellingmanageritemautomationrulecall
listing automation Assign automation rules SetSellingManagerItemAutomationRuleCall auto relist Help
I really hope you can help out! I have created an MVC web app to connect in with eBay to manage selling and order processing etc. I would like to add the functionality to assign automation rules once item is listed, e.g. for it to be relisted immediately if it has not sold. I can't quite figure out exactly how to do this. I am using the NET SDK in my application. (My account has selling manager activated)
Here is the code i have written, but it doesnt do anything. This is being called after I have used the AddItemCall and successfully listed the item.
SetSellingManagerItemAutomationRuleCall AssignCall = new SetSellingManagerItemAutomationRuleCall();
SellingManagerAutoRelistType req = new SellingManagerAutoRelistType();
req.Type = SellingManagerAutoRelistTypeCodeType.RelistContinuouslyUntilSold;
req.RelistCondition = SellingManagerAutoRelistOptionCodeType.RelistImmediately;
SetSellingManagerItemAutomationRuleRequestType request = new SetSellingManagerItemAutomationRuleRequestType();
request.AutomatedRelistingRule = new SellingManagerAutoRelistType();
request.AutomatedRelistingRule.Type = SellingManagerAutoRelistTypeCodeType.RelistContinuouslyUntilSold;
request.AutomatedRelistingRule.RelistCondition = SellingManagerAutoRelistOptionCodeType.RelistImmediately;
request.ItemID = item.ItemID;
AssignCall.ApiRequest = request;
Your answer

Follow this Question
Related Questions
How to list a product that is Click and collect? 0 Answers
How to find the Product Reference ID before listing an item? 1 Answer
In what cases does error code 17 occur? 0 Answers
Getting ebaytkn null 0 Answers