API - Application Programming Interface
Documentação API Preventech
Códigos de Erros e Respostas
Code | Text | Description |
---|---|---|
200 | OK | Success! |
201 | Created | Resource created successfully. |
400 | Bad Request | The Request Method is invalid. |
401 | Access denied | General Authentication Error. |
404 | Not Found | The requested resource does not exist. |
422 | Unprocessable Entity | Some parameters were incorrect. |
429 | Too Many Requests! | API's quota has been exceeded! |
501 | Not Implemented | Resource Not Implemented! |
Erros possíveis para HTTP Status Code 401:
Autenticação
- Authentication Error!
- Invalid Content-Type!
- The API Key parameter is missing or is incorrectly entered!
- The Access Key parameter is missing or is incorrectly entered!
Erros possíveis para HTTP Status Code 422:
Ocorrências
- Date From: Invalid Date!
- Date To: Invalid Date!
- Invalid Period! Maximum period of 1 year!