Overview
When a request to the Payroll Integrations API fails, the response will include an error object with details about what went wrong. All error responses follow a consistent structure to make error handling straightforward and predictable.Error Object Structure
Error responses contain the following fields:A human-readable error message describing what went wrong. This provides a
high-level summary of the error.
An optional array of detailed error messages. When present, this provides
additional context or lists multiple validation errors that occurred.
Example Error Response
Here’s an example of a typical error response:Common HTTP Status Codes
The API uses standard HTTP status codes to indicate the type of error:| Status Code | Description |
|---|---|
400 | Bad Request - The request was invalid or cannot be processed. Check the error message for details about what needs to be corrected. |
401 | Unauthorized - Authentication failed or was not provided. Ensure you have a valid access token and proper credentials. |
403 | Forbidden - The authenticated user does not have permission to access the requested resource. |
404 | Not Found - The requested resource could not be found. |
500 | Internal Server Error - An unexpected error occurred on the server. If this persists, contact support. |