question

transit_auto avatar image
0 Likes"
transit_auto asked ·

createOrReplaceInventoryItem: Internal error

Hello, I try to create an inventory item using the API and it always fails. It works fine using the API Explorer. The same token, URL, payload doesn't work using my code. I thought there was a problem with the headers but I tried _everything_ to make this works. Here is the complete request and response. **REQUEST:** PUT https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/K01-100001 Headers: 1. Authorization = Bearer *access token removed* 2. ContentLanguage = en-US 3. ContentType = application/json 4. X-EBAY-C-MARKETPLACE-ID = EBAY_US Content: {"availability":{"shipToLocationAvailability":{"quantity":12}},"condition":"NEW","product":{"aspects":{"Condition":["New"],"Disc Diameter (mm)":["456"],"Vented or Solid":["Vented"],"Fitment Type":["Direct Replacement"],"Warranty":["3 Year"],"Disc Studs/Holes":["5"],"Disc Material":["Premium Cast Iron"],"Placement on Vehicle":["Front","Left","Right"],"Pads Material":["Semi-Metallic"],"Brand":["GCR & TEC"],"Manufacturer Part Number":["K01-100001"]},"brand":null,"description":"some html here","imageUrls":[" https://demo.phpgang.com/crop-images/demo_files/pool.jpg","http://kb4images.com/images/image/36466818-image.jpg","https://www.promessedefleurs.com/blogwp/wp-content/uploads/2017/03/potager-sur-pieds-burger.jpg"],"title":"Kit";}} **RESPONSE:** Headers: 1. Cneonction = close 2. RlogId = t6pitnmsgwj%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Dukqlhqbuo*1423766-162da181c51-0x49ef 3. X-EBAY-C-REQUEST-ID = ri=rNel1pxAIXNK,rci=01up9dSA1eBXgbzD 4. X-EBAY-C-VERSION = 1.0.0 5. X-EBAY-REQUEST-ID = 162da181c38.a096c7e.67b3c.ffeabc51!/sell/inventory/v1/!10.9.108.126!esbnewesbngcos[]!inventory_item_PUT!10.9.102.208!r1slrinvapi-envadvcdhidzs5k[] 6. Connection = keep-alive 7. Date = Wed, 18 Apr 2018 18:50:35 GMT Content: {"errors":[{"errorId":2003,"domain":"ACCESS","category":"APPLICATION","message":"Internal error","longMessage":"There was a problem with an eBay internal system or process. Contact eBay developer support for assistance","parameters":[{"name":"code","value":"415"}]}]} Thank you for your help, Luc
api-probleminventory apiinternal server errorapi explorer
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
ezydvd_au avatar image
0 Likes"
ezydvd_au answered ·
You might want to remove the "condition" field inside the "aspect" field as "condition" is already defined outside.
· 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.