My Products
Help
adrianm
PARTNER

Inventory endpoint returns bad request on not found

by adrianm

I have PUT calls returning bad request when a product is not found.

I was expecting 404 Not Found

 

PUT: https://integration.visma.net/API/controller/api/v1/inventory/15392
{ ... }
Response: 400 Bad Request
{"message":"Document not found : 15392"}

 

This is another call to the same company a couple of months ago.

PUT: https://integration.visma.net/API/controller/api/v1/inventory/000121
{...}
Response: 404 Not Found
{"message":"Inventory with number 000121 could not be found"}

 

0 REPLIES 0