question

leolb-i5bwyfn4u avatar image
0 Likes"
leolb-i5bwyfn4u asked ·

How to change custom label(SKU) of item variation.

What is the best practice to change item variation SKU via .NET SDK. It appears that after the SKU was changed, the item quantity also had changed for no reason. Lets look at item witn parent and variations. I do the following steps: 1. itemtype OriginalItem = apicall.GetItem("#1234"); // recieved the parent data 2. ItemType itemToUpdate = new ItemType(); // create new item itemToUpdate.ItemID = OriginalItem.ItemID; itemToUpdate.Variations = new VariationsType(); itemToUpdate.Variations.Variation = OriginalItem.Variations.Variation; int index = 0; foreach (VariationType var in OriginalItem.Variations.Variation) { UpdatedItem.Variations.Variation[index].SKU = "New SKU"; index++; } 3. apicall.Item = updatedItem; // publish the new item (It should change the original SKU) apicall.Execute(); After the 3rd step, the item SKU is changed but also the quantity of the item. Why does it happen? Can some one please help me. Thank you :) .
.net sdksku.net apicustom label#c
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.

eram_developersupport avatar image
0 Likes"
eram_developersupport answered ·
Hi @ leolb-i5bwyfn4u , Best practice to change item variation SKU via .NET SDK REF: https://ebaydts.com/eBayKBDetails?KBid=1650 Hope the above will help you!!! Best Regards, eBay Developer Support
· Share
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.

mobiesoft avatar image
0 Likes"
mobiesoft answered ·
How i can update sku by Ebay API
· Share
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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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