Errors

The Deel. PayAndBill API uses standard HTTP status codes to indicate the success or failure of a request.

Status Codes

Status CodeMeaningDescription
200OKThe request succeeded.
201CreatedA new resource was created successfully.
400Bad RequestThe request was invalid. Check required fields and validation rules.
401UnauthorizedAuthentication failed. The token is missing, invalid, or expired.
404Not FoundThe requested resource does not exist. Verify the ID or UUID.
429Too Many RequestsRate limit exceeded. See Rate Limits for details.
500Internal Server ErrorAn unexpected error occurred on the server.

Error Details

400 Bad Request

Returned when creating or updating a record and not all required values are present, or when any other validation fails.

1{
2 "error": "Bad Request",
3 "message": "Validation failed: entityName is required"
4}

401 Unauthorized

Returned when the request does not include a valid Bearer token or the token has expired.

If you receive a 401 response, re-authenticate using the OAuth Token Exchange endpoint or refresh your token.

404 Not Found

Returned when the requested resource could not be found (e.g. incorrect UUID).

The response body is typically empty.

429 Too Many Requests

Returned when the rate limit has been exceeded. Check the X-RateLimit-Reset header for when you can resume making requests.