Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1009 Bytes

error.md

File metadata and controls

31 lines (21 loc) · 1009 Bytes

Error

Represents an error encountered during a request to the Connect API.

See Handling errors for more information.

Structure

Error

Fields

Name Type Tags Description
category str (Error Category) Required Indicates which high-level category of error has occurred during a
request to the Connect API.
code str (Error Code) Required Indicates the specific error that occurred during a request to a
Square API.
detail str Optional A human-readable description of the error for debugging purposes.
field str Optional The name of the field provided in the original request (if any) that
the error pertains to.

Example (as JSON)

{
  "category": "API_ERROR",
  "code": "INVALID_PAUSE_LENGTH",
  "detail": "detail0",
  "field": "field8"
}