question

mchaban-47 avatar image
0 Likes"
mchaban-47 asked ·

createOrReplaceInventoryItem sample not working

Hi. I'm trying to call **createOrReplaceInventoryItem** method to eBay sandbox with sample, provided in docs: https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/createOrReplaceInventoryItem But response from API shows error: "Invalid value for .". Request: PUT https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/GP-Cam-01 Request Headers: Content-Language: en-US Authorization: Bearer HERE_IS_MY_TOKEN_THAT_I_REMOVED_FOR_SECURITY_REASONS Content-Type: application/json Accept: */* Host: api.sandbox.ebay.com Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 1129 Request Body: { "availability": { "shipToLocationAvailability": { "quantity": 50 } }, "condition": "NEW", "product": { "title": "GoPro Hero4 Helmet Cam", "description": "New GoPro Hero4 Helmet Cam. Unopened box.", "aspects": { "Brand": [ "GoPro" ], "Type": [ "Helmet/Action" ], "Storage Type": [ "Removable" ], "Recording Definition": [ "High Definition" ], "Media Format": [ "Flash Drive (SSD)" ], "Optical Zoom": [ "10x" ] }, "brand": "GoPro", "mpn": "CHDHX-401", "imageUrls": [ " http://i.ebayimg.com/images/i/182196556219-0-1/s-l1000.jpg";, " http://i.ebayimg.com/images/i/182196556219-0-1/s-l1001.jpg";, " http://i.ebayimg.com/images/i/182196556219-0-1/s-l1002.jpg"; ] } } Response Headers: Content-Length: 132 Content-Encoding: gzip Date: Thu, 06 Aug 2020 15:50:19 GMT nnCoection: close RlogId: t6pitnmsgwj%28ciuoopu0asu%60pkal%3C%3Dosutowoiudvn.077602%29pqtfwpu%29osu%29fgg%7E-fij-173c4774e0f-0x324b X-EBAY-C-REQUEST-ID: ri=hXYOFp6kZZAV,rci=691f331f3b2a5262 X-EBAY-C-VERSION: 1.0.0 X-EBAY-ESB-UPSTREAM: slrinvapi.vip.sandbox.ebay.com Content-Type: application/json Connection: keep-alive Response Body: { "errors": [ { "errorId": 25709, "domain": "API_INVENTORY", "subdomain": "Selling", "category": "REQUEST", "message": "Invalid value for ." } ] } Please, check the sample, or help me to figure out, if anything wrong on my side. Regards.
createorreplaceinventoryitem
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.

himapa5023 avatar image
0 Likes"
himapa5023 answered ·
Where to give the category details and price in the same JSON payload
· 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.

klaxian avatar image
0 Likes"
klaxian answered ·
Is this broken again? I am now getting an Internal Server Error (#25001) in response to most Inventory API calls in both the sandbox and production. An example RlogId is below. I tried to follow this thread, but the "follow" link goes to a 404 not found page. I can't find any way to report these problems to ebay. sandbox RlogId: t6pitnmsgwj%28ciuoopu0asu%60pkal%3C%3Dosutowoiudvn.445442%3F-174225a244e-0x5af1 Are the new selling APIs (ie. Inventory API) intended to be stable to use for production applications? The new APIs seem better suited to my application, but I have had lots of problems with them ever since they were launched 3 years ago. Can ebay please comment on the recommended APIs to use?
· 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.

sirasystems12 avatar image
0 Likes"
sirasystems12 answered ·
Still not working in production. The error went from:
"Invalid value for ."
To:
A user error has occurred. Invalid <ShippingPackage>.
The exact same request works sandbox but not production, so it is definitely a bug.
How can we get someone from eBay to look at this? There is no way to report a bug.
· 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.

yongkangtang avatar image
0 Likes"
yongkangtang answered ·
rlogid:t6pitnmsgwj70%3D9whhpitnmsgwj70*hfk%60a%28rbpv6702-173e7bdbba9-0x61e,rlogid:t6pitnmsgwj70%3D9whhpitnmsgwj70*hfk%60a%28rbpv6702-173e7bdbba9-0x61e Australia Prod
· 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.

naizarak2 avatar image
0 Likes"
naizarak2 answered ·
you should use the trading API unless you have a very compelling reason to use the inventory API. the inventory API is just a proxy to the trading API with only a small subset of features and significantly more issues
· 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.

sha-765148 avatar image
0 Likes"
sha-765148 answered ·
@sanjiv_developersupport - I don't have a production environment yet. I am still in development phase. All my developers are stuck because of this issue. This needs to get resolved ASAP.
· 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.

sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·
@naizarak2, Thanks for the confirmation. @sha-765148, can you please give a try in production also and share your feedback?
· 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.

naizarak2 avatar image
0 Likes"
naizarak2 answered ·
the calls are now working properly for me in production. i was able to publish a new listing from scratch on the US site
· 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.

crutchfield_electronics avatar image
0 Likes"
crutchfield_electronics answered ·
We started having issue with this API call on 8/7, and only get "a system error has occurred". Is there an ETA on when this will be fixed?
· 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.

sha-765148 avatar image
0 Likes"
sha-765148 answered ·
And the body - { "errors": [ { "errorId": 25709, "domain": "API_INVENTORY", "subdomain": "Selling", "category": "REQUEST", "message": "Invalid value for ." } ] }
· 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.