question

shchaoyan0 avatar image
0 Likes"
shchaoyan0 asked ·

RelistFixedPriceItem always show me error as There is no active item matching the specified SKU

Hi , I am now working on a project regarding ebay. I am using below code to set quantity for an fixed price SKU product. ApiContext apiContext = new ApiContext(); apiContext.setApiServerUrl(" https://api.ebay.com/wsapi";); ApiCredential apiCredential = new ApiCredential(); apiCredential.seteBayToken("*****"); apiContext.setApiCredential(apiCredential); EBaySaleStockNumBean[] eBaySaleStockNumBeans = new EBaySaleStockNumBean[1]; eBaySaleStockNumBeans[0] = new EBaySaleStockNumBean(); eBaySaleStockNumBeans[0].setItemId("2016080402"); eBaySaleStockNumBeans[0].setQuantity(30); ItemType itemType = new ItemType(); itemType.setInventoryTrackingMethod(InventoryTrackingMethodCodeType.SKU); itemType.setSKU(eBaySaleStockNumBeans[0].getItemId()); itemType.setQuantity(eBaySaleStockNumBeans[0].getQuantity()); RelistFixedPriceItemRequestType relistFixedPriceItemRequestType = new RelistFixedPriceItemRequestType(); relistFixedPriceItemRequestType.setItem(itemType); RelistFixedPriceItemCall relistFixedPriceItemCall = new RelistFixedPriceItemCall(); relistFixedPriceItemCall.setApiContext(apiContext); I think that above code is correct, and I am sure that the sku product is active and have fixed price. But why I start to execute it and throw me error as "There is no active item matching the specified SKU"? Anyone can help? I have searched a lot via google, but I didn't see anyone have solved this problem. Should it be the bug for the jdk?
skurelistfixedpriceitem
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.

1 Answer

· Write an Answer
shchaoyan0 avatar image
0 Likes"
shchaoyan0 answered ·
Anyone had have this problem before?
· 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.