updateQuoteStatus
put
/ccadmin/v1/orders/updateQuoteStatus
Update Quote Status. This operation is used to update the externalID of quote in the case of quote success or to capture errorInfo and change the status of order to quote_request_failed in case of quote failure.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : updateQuoteStatus_request
{
"id":"o12345",
"quoteInfo":{
"externalID":"1234"
}
}
- id
-
Type:
stringOrder Id - quoteInfo
-
Type:
objectquoteInfoRequired:trueAdditional Properties Allowed:Details about quote info
Nested Schema : quoteInfo
Type:
objectDetails about quote info
- errorInfo
-
Type:
stringError note for failure of this quote - externalId
-
Type:
stringexternal id for this quote
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateQuoteStatus_response
- agentId
-
Type:
stringAgent id - errorInfo
-
Type:
stringError note for failure of this quote - expirationDate
-
Type:
stringExpiration date for this quote - externalId
-
Type:
stringexternal id for this quote - providerDate
-
Type:
stringProvider Date for this quote - providerNote
-
Type:
stringProvider note for this quote - rejectionDate
-
Type:
stringRejection date for this quote - rejectionNote
-
Type:
stringRejection note for this quote - requestDate
-
Type:
stringRequest Date for this quote - requesterNote
-
Type:
stringRequestor note for this quote
Example application/json
{
"providerNote":null,
"providerDate":"2016-09-22T07:23:43.315Z",
"agentId":"AgentID123",
"rejectionDate":null,
"requestDate":"2016-09-20T03:43:12.315Z",
"errorInfo":null,
"externalID":"1234",
"rejectionNote":null,
"requesterNote":"please give discount",
"expirationDate":null
}
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 Request:
{
"id": "o12345",
"quoteInfo": {"externalID": "1234"}
}
Sample Response Payload returned by endpoint:
{
"providerNote": null,
"providerDate": "2016-09-22T07:23:43.315Z",
"agentId": "AgentID123",
"rejectionDate": null,
"requestDate": "2016-09-20T03:43:12.315Z",
"errorInfo": null,
"externalID": "1234",
"rejectionNote": null,
"requesterNote": "please give discount",
"expirationDate": null
}