question

drl4ls01* avatar image
0 Likes"
drl4ls01* asked

ItemID Is Not Being Recognized by ReviseFixedPriceItem

I'm trying to revise the title of a fixed price listing using the Trading API and the ReviseFixedPriceItem call. itemrev_request = {"ItemID": itemnumber, "Title": newtitle} revision = api.execute("ReviseFixedPriceItem", itemrev_request) Where itemnumber and newtitle are strings. The calls throws this error: 'ReviseFixedPriceItem: Class: RequestError, Severity: Error, Code: 21916256, ItemID or SKU must be provided ItemID or SKU must be provided'". Earlier in the same script, I'm using the GetItem call with success: itemget_request = {"ItemID": itemnumber} itemresponse = api.execute("GetItem",itemget_request) Any help would certainly be appreciated.
revisefixedpriceitem
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.

homedeco-24 avatar image
0 Likes"
homedeco-24 answered
Hi, try the following request and just make sure that the ItemID is passed as a string, e.g.: item_id = '123456789101' newtitle = 'Whatsoever' pic_url = 'https://....jpg' itemget_request = {'Item': {'ItemID': item_id, 'Title': newtitle, 'PictureDetails': {'PictureURL': pic_url}}}. Did this work for you?
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 @drl4ls01*, Although we represent item IDs as strings in the schema, we recommend you to store them as 64-bit signed integers. If you choose to store item IDs as strings, allocate at least 19 characters (assuming decimal digits are used) to hold them [Item.ItemID][1] Best Regards eBay Developer Support [1]: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/ReviseFixedPriceItem.html#Request.Item.ItemID
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.