listExecutionStatusForScheduledOrderById
get
/ccstore/v1/scheduledOrders/status/{id}
List Execution Status For Scheduled Order By Id. It will list the execution status for a scheduled order . Optionally takes the X-CCOrganization header to specify current Organization context of logged in user.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueThe id of the Scheduled order.
Query Parameters
- limit
-
Type:
integerlimit of the scheduled orders list.- offset
Type:integerOffset of the scheduled orders list.
Header Parameters
- X-CCOrganization
-
Type:
stringCurrent organization context of the logged in user
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listExecutionStatusForScheduledOrderById_response
- items
-
Type:
arrayitemsAdditional Properties Allowed:The array of the Scheduled orders by the id. - limit
-
Type:
integerThe limit results of the Scheduled orders in a page. - offset
-
Type:
integerThe offset results of the Scheduled orders. - total
-
Type:
integerThe total number of the Scheduled orders. - totalResults
-
Type:
integerThe total results of the Scheduled orders.
Nested Schema : items
Nested Schema : items
Type:
object- endDate
-
Type:
stringThe end date of the Scheduled order. - executionStatusList
-
Type:
arrayexecutionStatusListAdditional Properties Allowed:The status list of executed scheduled orders - Id
-
Type:
stringThe Id of the Scheduled order.
Nested Schema : executionStatusList
Nested Schema : items
Type:
object- errorMessages
-
Type:
stringThe error messages list. - executionDate
-
Type:
stringThe date for previous scheduled run - id
-
Type:
stringThe Id of the Scheduled order. - orderId
-
Type:
stringThe Id of the Scheduled order. - orderSubmitted
-
Type:
booleanThe status of order. - orderTotal
-
Type:
numberTotal order value. - repositoryId
-
Type:
stringThe Id of the Scheduled order. - scheduledOrderId
-
Type:
stringThe Id of the Scheduled order.
Example application/json
{
"total":1,
"totalResults":1,
"offset":0,
"limit":250,
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccstoreui/v1/scheduledOrders/status/sco20002"
}
],
"items":[
{
"scheduledOrderId":"sco20002",
"errorMessages":[
"hi this is error"
],
"orderId":"o40414",
"repositoryId":"0001",
"executionDate":"2016-12-08T00:00:00.000Z",
"id":"0001",
"orderSubmitted":false,
"orderTotal":123
}
]
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"total": 1,
"totalResults": 1,
"offset": 0,
"limit": 250,
"links": [{
"rel": "self",
"href": "http://localhost:9080/ccstoreui/v1/scheduledOrders/status/sco20002"
}],
"items": [{
"scheduledOrderId": "sco20002",
"errorMessages": ["hi this is error"],
"orderId": "o40414",
"repositoryId": "0001",
"executionDate": "2016-12-08T00:00:00.000Z",
"id": "0001",
"orderSubmitted": false,
"orderTotal": 123
}]
}