cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

update inventory location broken

The "update inventory location" endpoint is broken.

Example output from "get inventory location":
{
"name": "Test",
"phone": "+10000000000",
"location": {
"address": {
"addressLine1": "1234 Example St.",
"city": "Austin",
"stateOrProvince": "Texas",
"postalCode": "78726",
"country": "US"
},
"geoCoordinates": {
"latitude": 30.428183,
"longitude": -97.842524
},
"locationId": "316212D8DBF29123E0643CFDFEC2010C"
},
"locationTypes": [
"WAREHOUSE"
],
"timeZoneId": "America/Chicago",
"merchantLocationKey": "9d523af9-da1e-624e-58aa-d8ae16dd5f60",
"merchantLocationStatus": "ENABLED"
}

Example input to "update inventory location": (merchantLocationKey=9d523af9-da1e-624e-58aa-d8ae16dd5f60)
{
"name": "NewName"
}

Output of that example update request:
{
"errors": [
{
"errorId": 25802,
"domain": "API_INVENTORY",
"category": "REQUEST",
"message": "Input error."
}
]
}

This error is returned for any validly constructed request body. The only way I can get any other error is if I introduce new errors.

Message 1 of 4
latest reply
3 REPLIES 3

update inventory location broken

Working for me

 

zntswholesaleglobal_0-1748325361999.png

 

I changed postcode from 2000 to 2001 and updated.

I would suggest you try with minimum payload and then add more fields in it.

C# wrapper for eBay REST API
https://github.com/CMS365-PTY-LTD/EbaySharp
Message 2 of 4
latest reply

update inventory location broken

I'm not able to upload images, but I just ran this in postman:
It's nearly identical to your example, and I'm getting the same error.

curl --location 'https://api.sandbox.ebay.com/sell/inventory/v1/location/9d523af9-da1e-624e-58aa-d8ae16dd5f60/update_location_details' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <redacted>' \
--header 'Cookie: <redacted>' \
--data '{
    "name": "Test",
    "location": {
        "address": {
            "postalCode": "2001",
            "country": "AU"
        }
    },
    "locationTypes": [
        "WAREHOUSE"
    ],
    "merchantLocationKey": "9d523af9-da1e-624e-58aa-d8ae16dd5f60",
    "merchantLocationStatus": "ENABLED"
}'

 

400 Bad Request
 

{
    "errors": [
        {
            "errorId": 25802,
            "domain": "API_INVENTORY",
            "category": "REQUEST",
            "message": "Input error."
        }
    ]
}

 

Message 3 of 4
latest reply

update inventory location broken

You are trying on sandbox, so that could be the reason, there are countless posts in this form related to sandbox only problems.

C# wrapper for eBay REST API
https://github.com/CMS365-PTY-LTD/EbaySharp
Message 4 of 4
latest reply