JuiceyBrucey wrote:All other requests using the same API key are successful, so not sure why it would return 401 on postman.
This indicates your Postman request does not have the API key set correctly - nothing mysterious - you've made a mistake in your Postman.
JuiceyBrucey wrote:Ok, so I tried doing it using the swagger.
This is the reply I got:
{
"ResponseStatus": {
"ErrorCode": "Exception",
"Message": "Can Not Delete. In use by : \r\n\r\nStock On Hand Transfer.\r\n",
"Errors": []
}
}
After seeing this, I found and instance on JIWA of this inventory item being open in the inventory form. I closed it and tried again, still no luck.
Is there something else I should be looking at?
That won't be a 401, that will be a different HTTP code. And the reason is exactly as stated - the inventory item is on a stock transfer document, so you can't delete it.
Again, nothing mysterious - just read the error.