Error 401: You are probably not sending the header “Authorization” with the API Token.
Error 403: You might be sending the Authorization header but the token is not valid. Check the format “Token yourtokenhere”. Notice the word “Token” is part of the header content, then It’s followed by a space and the token itself.
Error 400: Some data validation failed. You can see some more details inside the response body. i.e: “The document number is required”.
Error 404: The URI you are calling is wrong.