This method is used to validate whether a channel cancellation can be submitted for a given order
Name | Type | Description |
---|---|---|
orderId | Guid | The relevant order ID |
The following request format is required for this method.
GET https://eu-ext.linnworks.net/api/PostSale/GetCancellationOptions
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
orderId=338d4ad3-e6f5-4df5-afd5-ceda225c1e72
This is an example of the response JSON. Results will vary depending on your data.
{
"CanCancelInternally": true,
"AutomaticRefundOnCancel": false,
"CanCancel": false,
"CanCancelOrderLines": false,
"CanCancelPartially": false,
"CanCancelFreeText": false,
"CancelFreeTextOrNoteMaxLength": 255,
"CancellationReasons": [],
"Order": null,
"AllowRefundOnCancel": true,
"Errors": [
"The ConnectionString property has not been initialized."
],
"OrderIsLockedOnUnhandledError": false
}