POST api/orders/CancelFromCourier

Request Information

URI Parameters

None.

Body Parameters

CancelOrderRequestVM
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CancelOrderRequestVM'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>