{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/api-evangelist/verifone/refs/heads/main/json-schema/reporting-api-genericerror401.json", "title": "HTTP 401 Error", "description": "The request must be authenticated to access the resource.", "required": [ "code", "message", "title", "type" ], "type": "object", "properties": { "code": { "type": "string", "enum": [ "401" ], "default": "401" }, "title": { "type": "string", "enum": [ "Unauthorised" ], "default": "Unauthorised" }, "message": { "type": "string", "default": "The request requires client authentication." }, "timestamp": { "type": "string", "description": "The time that the error occurred. All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone.", "format": "date-time" }, "type": { "type": "string", "enum": [ "AUTHENTICATION_ERROR" ], "default": "AUTHENTICATION_ERROR" }, "param": { "type": "string", "description": "The parameter the error relates to if the error is parameter-specific. You can use this to display a message near the correct form field, for example." } } }