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
Root Schema : updateQuoteStatus_request
Type:
Show Source
object
-
id(optional):
string
Order Id
-
quoteInfo:
object quoteInfo
Details about quote info
Example:
{
"id":"o12345",
"quoteInfo":{
"externalID":"1234"
}
}
Nested Schema : quoteInfo
Type:
object
Details about quote info
Show Source
-
errorInfo(optional):
string
Error note for failure of this quote
-
externalId(optional):
string
external id for this quote
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateQuoteStatus_response
Type:
Show Source
object
-
agentId(optional):
string
Agent id
-
errorInfo(optional):
string
Error note for failure of this quote
-
expirationDate(optional):
string
Expiration date for this quote
-
externalId(optional):
string
external id for this quote
-
providerDate(optional):
string
Provider Date for this quote
-
providerNote(optional):
string
Provider note for this quote
-
rejectionDate(optional):
string
Rejection date for this quote
-
rejectionNote(optional):
string
Rejection note for this quote
-
requestDate(optional):
string
Request Date for this quote
-
requesterNote(optional):
string
Requestor note for this quote
Example Response (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
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code