article

boande70 avatar image
0 Likes"
boande70 Posted · · edited ·

Steps to take in other to publish your items on ebay

Use the Account API to

1. Create a Fulfilment policy

 //C# Code
 
var headers = new List<KeyValuePair<string, string>>() {
new KeyValuePair<string, string>("Content-Type", "application/json"),
new KeyValuePair<string, string>("Accept", "application/json"),
new KeyValuePair<string, string>("Authorization", $"Bearer {await authenticationService.AccessToken}")}
 var item=new Request()
                    {
                        availability = new Availability()
                        {
                            shipToLocationAvailability = new Shiptolocationavailability()
                            {
                                quantity = item.Quantity
                            }
                        },
                        condition = ConditionEnum.NEW,
                        conditionDescription = item.CatAndSubCatName,
                        locale = LocaleEnum.en_GB,
                        sku = GetSKU(),

 

                        product = new Product()
                        {
                            aspects = { },
                            brand = item.BrandName,
                            description = item.CatAndSubCatName,
                            ean = { },
                            epid = "",
                            imageUrls = new string[] { "https://www.onlineautomotive.co.uk/cheap-car-parts/Brakes" },
                            isbn = { },
                            mpn = "",
                            subtitle = item.SubCatName,
                            title = item.CatName,
                            upc = { },
                        },


                    }
 var client = new RestClient("https://api.sandbox.ebay.com/sell/inventory/v1");
                client.Timeout = -1;
                var requestBody = JsonConvert.SerializeObject(item);
                var request = new RestRequest(Method.POST);
                keyValuePairs.ForEach(header => { request.AddHeader(header.Key, header.Value); });
                request.AddParameter("x-www-form-urlencoded", requestBody, ParameterType.RequestBody);
                IRestResponse response = client.Execute(request);

2. Create Payment policy

3. Create Return policy

Use the Location API to

4. Create Inventory location

Use the Inventory API to

5. Create an offer using the CreateOffer

6. Publish your offer to the Sandbox using the publishOffer endpoint


publish offer error
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Article

Contributors

boande70 contributed to this article

Related Articles