POST v1/Orders/{siteId}/{orderId}/Cancel
Cancels an order after CTT (Post).
URI template
v1/Orders/{siteId}/{orderId}/CancelRequest Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
siteId |
The site where the customer placed the order |
integer |
Required |
orderId |
The order id generated after the POST call |
integer |
Required |
Body Parameters
The customer id and whether to send an email
InCancelOrderCustomerInfoName | Description | Type | Additional information |
---|---|---|---|
CustomerId | globally unique identifier |
None. |
|
SendEmail | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": "2603cdc4-0596-4c97-8a24-3266be6848fe", "SendEmail": true }
application/xml, text/xml
Sample:
<InCancelOrderCustomerInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineOrderingAPI.Inbound"> <CustomerId>2603cdc4-0596-4c97-8a24-3266be6848fe</CustomerId> <SendEmail>true</SendEmail> </InCancelOrderCustomerInfo>
Response Information
Resource Description
HTTP status 200 for successful request otherwise error response with detailed information. Known internal errors are BadRequest, NotFound, OrderIdInvalid, CustomerIdInvalid, OrderPreviouslyCancelled, GiftCardCancellationAttempt, ErrorSendingEmail, OrderStatusInvalid, Error
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |