Error Object

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

Properties

Name Type Description
category string Required The high-level category for the error. For the list of categories, see ErrorCategory in the Square API Technical Reference.
code string Required The specific code of the error. For the list of codes, see ErrorCode in the Square API Technical Reference.
detail string A description of the error for debugging purposes.
field string The name of the field provided in the original request (if any) that the error pertains to.