cancel
Showing results for 
Search instead for 
Did you mean: 

API POST returns 0 without an error

API POST returns 0 without an error

Hi,

 

I'm trying to make an insert to taxClasses, I make the POST.

 

and it returns me "0", with Status OK and the taxClass has not been inserted. What does it mean??  I cannot find that on documentation.

 

 

Thanks.

1 REPLY

Re: API POST returns 0 without an error

Ok I found the error myself:

 

The documentation says:

 

{
  "taxClass": {
    "classId": 0,
    "className": "string",
    "classType": "string",
    "extensionAttributes": {}
  }
}

 

But classId MUST NOT be sent, if it is sent as 0, it returns 0 and the insert is not made.