07-21-2023 11:40 AM
(Note - I am reposting this here as it seems a better forum for the question than my original post in "eBay APIs: Talk to your fellow developers")
Attempting to write a connector to eBay's inventory API, I'm using the API explorer to test out some method calls in the sandbox environment. The example request for the "createInventoryLocation" call seems to error out with a 400 code, despite all attempts to correct the body and merchantLocationKey parameter. The error message is particularly (some would say aggressively) useless in this case - included below for clarity:
```
{
"errors": [
{
"errorId": 25802,
"domain": "API_INVENTORY",
"category": "REQUEST",
"message": "errorDetails(20400/Invalid request.)"
}
]
}
```
Note that this is with the default example request body in the API explorer. Nothing has been changed except several attempts at unique merchantLocationKeys - there are no inventory locations in our sandbox environment anyway, so I would expect any string shorter than 36 characters (as per the documentation) to work. Additionally, I would expect any errors from that field to be relayed in the error message response.
Does anyone have any experience with this endpoint, or could shed any light on this bug?
07-30-2023 05:57 AM
Same experience - using payload data that was previously functioning and also with the sample data from the api explorer it returns this error.
Not the first time encountering some issues with the ebay api here 😞
CURL:
07-30-2023 06:00 AM
To note:
Production version of this api seems to be working fine, but the sandbox does not... It's blocking when working on new development features.
07-31-2023 10:23 PM
I just tested this and it is the same with me. Works on production but not sandbox.
08-16-2023 07:50 AM
Same here. Can't create inventory location and hence can't create offer🤷
09-08-2023 07:56 AM
Problem still remains, I got the the same error, even with the default payload..
09-21-2023 10:15 AM
Hi @raretrocollectibles @vin460 @kcastizo @dianam-5801202
Create and manage inventory location API calls like createInventoryLocation, updateInventoryLocation are working fine on the Sandbox environment and you should be able to create/manage the inventory locations in the Sandbox.