POST api/orders/CancelFromCourier
Request Information
URI Parameters
None.
Body Parameters
CancelOrderRequestVM| Name | Description | Type | Additional information |
|---|---|---|---|
| orderId | integer |
None. |
|
| packageRejectReason | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"orderId": 1,
"packageRejectReason": "sample string 2"
}
application/xml, text/xml
Sample:
<OrdersController.CancelOrderRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HizirYetisAPI.Controllers"> <orderId>1</orderId> <packageRejectReason>sample string 2</packageRejectReason> </OrdersController.CancelOrderRequestVM>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>