HTTP status code 200
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Recent items GET response schema",
"type": "object",
"properties": {
"numberOfOpenItems": {
"type": "integer",
"description": "Total number of open items"
},
"recentOpenItems": {
"type": "array",
"description": "Recent open items",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Recent item schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Id of the recent item"
},
"name": {
"type": "string",
"description": "Human-readable name of the recent item"
},
"description": {
"type": "string",
"description": "Description of the recent item"
},
"statusDescription": {
"type": "string",
"description": "Status description of the recent item"
},
"modifiedAt": {
"type": "string",
"format": "date-time",
"description": "Date and time the recent item was last changed at"
}
},
"required": [
"id"
]
}
},
"numberOfClosedItems": {
"type": "integer",
"description": "Total number of closed items"
},
"recentClosedItems": {
"type": "array",
"description": "Recent closed items",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Recent item schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Id of the recent item"
},
"name": {
"type": "string",
"description": "Human-readable name of the recent item"
},
"description": {
"type": "string",
"description": "Description of the recent item"
},
"statusDescription": {
"type": "string",
"description": "Status description of the recent item"
},
"modifiedAt": {
"type": "string",
"format": "date-time",
"description": "Date and time the recent item was last changed at"
}
},
"required": [
"id"
]
}
}
}
}
Example:
{
"numberOfOpenItems": 9,
"recentOpenItems": [
{
"id": "55a66652e10e1b156b8837d5",
"name": "1000000205",
"description": "Request for regular maintenance",
"statusDescription": "In Process",
"modifiedAt": "2015-07-15T13:55:30.155+0000"
},
{
"id": "55a387bf7ecef0f015cbd214",
"name": "1000000008",
"description": "Request for regular maintenance",
"statusDescription": "In Process",
"modifiedAt": "2015-07-13T09:41:19.863+0000"
},
{
"id": "55a38710e10e1b156b882a9e",
"name": "1000000009",
"description": "Request for regular maintenance",
"statusDescription": "In Process",
"modifiedAt": "2015-07-13T09:38:24.562+0000"
},
{
"id": "55a3536c7d4e63c7dc41e81b",
"name": "1000000204",
"description": "Request for regular maintenance",
"statusDescription": "In Process",
"modifiedAt": "2015-07-13T05:58:04.761+0000"
},
{
"id": "55a3530de10e1b156b8829f8",
"name": "1000000203",
"description": "Request for regular maintenance",
"statusDescription": "In Process",
"modifiedAt": "2015-07-13T05:56:29.678+0000"
}
],
"numberOfClosedItems": 3,
"recentClosedItems": [
{
"id": "55a391cc7ecef0f015cbd23c",
"name": "83964",
"description": "Burst Tyre; Under Warranty; Status changed",
"statusDescription": "Confirmed",
"modifiedAt": "2015-07-17T07:17:55.565+0000"
},
{
"id": "55a50921e10e1b156b8830bb",
"name": "1000000001",
"description": "Request for regular maintenance",
"statusDescription": "Completed",
"modifiedAt": "2015-07-14T13:07:46.455+0000"
},
{
"id": "55a504dee10e1b156b8830a4",
"name": "1000000001",
"description": "Request for regular maintenance",
"statusDescription": "Completed",
"modifiedAt": "2015-07-14T12:49:50.360+0000"
}
]
}
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"type": "validation_violation",
"message": "The tenants passed in the request header hybris-tenant and in the resource path do not match.",
"details": [
{
"type": "tenant_mismatch",
"message": "The tenants passed in the request header hybris-tenant and in the resource path do not match."
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"type": "insufficient_permissions",
"message": "The credentials indicate a system-known user, but the user is not allowed to perform the requested operation."
}
HTTP status code 408
Request timed out.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 408,
"type": "request_timeout",
"message": "The request timed out."
}
HTTP status code 500
An internal server error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 500,
"type": "internal_service_error",
"message": "An internal server error occured."
}