Documentation Index
Fetch the complete documentation index at: https://gusto-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Basic Error Shape
All errors start with the basic error shape and can be expanded upon. When a request results in an error, the response JSON contains an array of errors with the following fieldserror_key: specifies where the error occurs. Typically this key identifies the attribute/parameter related to the error. In the example below, the error is a request error. category: specifies the type of error. The category provides error groupings and can be used to build custom error handling in your integration. For a complete list of all error categories please review the error categories guide. message : provides details about the error. Except for a few types of errors, the message can be surfaced directly to the end user. metadata: contains relevant data to identify the resource in question when applicable. In the majority of cases, entity_uuid and entity_type will be provided, but the data may change based on the domain of the endpoint.
Resource Error Shape
When working with a specific resource (employee, company, payroll, etc), multiple errors can be returned.Nested Error Shape
When the error attribute is nested inside a parent attribute, the errors are nested inside a wrapping error with “nested_error” category. Use the category (nested_errors) to programmatically identify and parse nested errors.
API fundamentals Error Categories