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

Unable to create inventory location in order to publish an offer - using RESTful APIs

I am done with creating SKUs and their inventory group successfully. Further, I went ahead and created an offer but when I am publishing it, it throws the following error -

 

No <Item.Country> exists or <Item.Country> is specified as an empty tag in the request

 

After reading multiple articles over eBay and the internet, I found that it is required to set the "merchantLocationKey" to publish the offer as it is a required field. Again, I went ahead and used the "createInventoryLocation" API to create a location but it is not letting me and throwing the following error -

 

{
    "errors": [
    {
        "errorId": 25802,
        "domain": "API_INVENTORY",
        "category": "REQUEST",
        "message": "Input error. cannot be null or empty",
        "parameters": [
        {
            "name": "fieldName",
            "value": ""
        },
        {
            "name": "additionalInfo",
            "value": " cannot be null or empty" 
        }]
    }]
}

 

It has been 2 days since I am finding the solution of the same but no luck. Please help me to resolve this issue so that I can create and publish an offer on eBay.

Message 1 of 8
latest reply
7 REPLIES 7

Unable to create inventory location in order to publish an offer - using RESTful APIs

Could you share your Payload here?

This is mine and working

Post: https://api.ebay.com/sell/inventory/v1/location/au_qld

 

{
    "location": {
        "address": {
            "country": "AU",
            "city": "Brisbane"
        }
    },
    "locationTypes": [
        "WAREHOUSE"
    ],
    "merchantLocationKey": "au_qld",
    "merchantLocationStatus": "ENABLED"
}

 

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

Unable to create inventory location in order to publish an offer - using RESTful APIs

Please find the Payload below which is not working -

 

Request URI - https://api.sandbox.ebay.com/sell/inventory/v1/location/ship1

 

My Payload is -

{
    "location": {
    "address": {
        "country": "US",
        "city": "Florida"
    }
},
"locationTypes": [
    "WAREHOUSE"
],
"merchantLocationKey": "ship1",
"merchantLocationStatus": "ENABLED"
}

Message 3 of 8
latest reply

Unable to create inventory location in order to publish an offer - using RESTful APIs

If you are trying to sandbox, things would be different. Try on production If possible.

 

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

Unable to create inventory location in order to publish an offer - using RESTful APIs

Thanks for the suggestion. However, it should work on Sandbox so that we can move forward.

 

Is there any help if you can provide to make it work on sandbox?

 

 

Message 5 of 8
latest reply

Unable to create inventory location in order to publish an offer - using RESTful APIs

Facing same issue, looking for a solution!

Message 6 of 8
latest reply

Unable to create inventory location in order to publish an offer - using RESTful APIs

When I worked on sandbox, I noticed many weird issues. A payload which does not work in sandbox, actually does work in production, so I skipped sandbox and jumped onto production and saved lot of time and headache. Your choice.

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

Unable to create inventory location in order to publish an offer - using RESTful APIs

Getting the same error, tested provided payloads that seem to work for others, but doesn't work for me.

Message 8 of 8
latest reply