question

lubefinder avatar image
0 Likes"
lubefinder asked ·

Deleting Inventory Item SKU="null"

Anyone know if it is possible to delete an SKU that has the value "null"

getInventoryItems shows I have one called "null"

    {
      "sku": "null",
      "condition": "NEW"
    }

but deleteInventoryItem gives me

https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/null

{
  "errors": [
    {
      "errorId": 25710,
      "domain": "API_INVENTORY",
      "subdomain": "Selling",
      "category": "REQUEST",
      "message": "We didn't find the resource/entity you are requesting. Please verify the request"
    }
  ]
}


inventoryapi
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.

lubefinder avatar image
0 Likes"
lubefinder answered ·

It appeared when I tried to do a bulkMigrateListing which failed with error 25001, the same way all publishOffer calls are failing so presume its something leftover from that failure.

See below for tests

GET https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item?limit=1&offset=95

rlogid:t6pitnmsgwj%28ciuoopu0asu%60pkal%3C%3Dosutowoiudvn.u%7E%3E7n%2Bsfvu7371-175e27a2b24-0x55f9

Response Body

{
  "total": 96,
  "size": 1,
  "href": "/sell/inventory/v1/inventory_item?offset=95&limit=1",
  "prev": "/sell/inventory/v1/inventory_item?offset=94&limit=1",
  "limit": 1,
  "inventoryItems": [
    {
      "sku": "null",
      "condition": "NEW"
    }
  ]
}

GET https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/null

rlogid:t6pitnmsgwj%28ciuoopu0asu%60pkal%3C%3Dosutowoiudvn.ovu%7Bs%2Bsfvu7371-175e27a78c0-0x58a5

Response Body

{
  "errors": [
    {
      "errorId": 25710,
      "domain": "API_INVENTORY",
      "subdomain": "Selling",
      "category": "REQUEST",
      "message": "We didn't find the resource/entity you are requesting. Please verify the request"
    }
  ]
}

DELETE https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/null

rlogid:t6pitnmsgwj%28ciuoopu0asu%60pkal%3C%3Dosutowoiudvn.u%7E%3E7n%2Bsfvu7371-175e279b823-0x5a05

Response Body

{
  "errors": [
    {
      "errorId": 25710,
      "domain": "API_INVENTORY",
      "subdomain": "Selling",
      "category": "REQUEST",
      "message": "We didn't find the resource/entity you are requesting. Please verify the request"
    }
  ]
}


· 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.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @lubefinder ,


I just added an inventory item with SKU that has the value "null" and and then tried to delete and was able to delete.

Can you please execute getInventoryItem call and pass "null" in sku and make sure that you have inventory item in your sandbox with sku value "null".

Best Regards
eBay Developer Support

· 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.