Submit cancel of an order
put
/ccstore/v1/orders/submitCancelOrder
This is used to submit the cancel order.
Request
Supported Media Types
- application/json
Header Parameters
-
X-CCAsset-Language: string
Instructs the endpoint to use the specified locale code for content returned in the response. The locale supplied in the header must be supported by your store.
-
X-CCOrganization: string
Current organization context of the logged in user
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 following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
The error response:
Error Code | Description | Possible Fix |
---|---|---|
28302, 28318 | Server error caused cancel failure. | Check error messages for further information |
200139 | Cancel not allowed. | Ensure details of cancel order being submitted match the original order being cancelled. |
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