submitCancelOrder
put
/ccagent/v1/orders/submitCancelOrder
This is used to submit the cancel order.
Request
Supported Media Types
- application/json
Header Parameters
-
X-CCAgentContext.shopperProfileId(required): string
the profile id from which the order was placed
-
X-CCOrganization: string
Current organization context of the logged in user
-
x-ccsite(required): string
the site id on which the orders needs to be placed
Root Schema : submitCancelOrder_request
Type:
Show Source
object
-
id(required):
string
the cancel order id for which we want to submit cancel order.
Example:
{
"id":"o30411"
}
Response
Supported Media Types
- application/json
200 Response
Following result is returned when operation succeeds.
Root Schema : submitCancelOrder_response
Type:
Show Source
object
-
orderCancelled:
boolean
True if order is cancelled else False
-
orderId:
string
The original order Id which has been cancelled.
Example Response (application/json)
{
"orderCancelled":true,
"orderId":"o10004"
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code