POST api/HXHOrders/Cancel

Request Information

URI Parameters

None.

Body Parameters

OrderMainRequest
NameDescriptionTypeAdditional information
ExpressNo

string

None.

ExpressCode

string

None.

ExpressName

string

None.

ExpressRemark

string

None.

ExpressOpId

integer

None.

OrderId

integer

None.

OrderItemList

Collection of OrderItemModel

None.

Id

integer

None.

OrderNo

string

None.

UserId

integer

None.

Nick

string

None.

UserPhone

string

None.

OrderStatus

integer

None.

PayStatus

integer

None.

TransactionId

string

None.

TotalAmount

decimal number

None.

DiscountAmount

decimal number

None.

FreightAmount

decimal number

None.

PayAmount

decimal number

None.

RefundAmount

decimal number

None.

ReceiverName

string

None.

ReceiverPhone

string

None.

ReceiverProvince

string

None.

ReceiverCity

string

None.

ReceiverDistrict

string

None.

ReceiverAddress

string

None.

Source

integer

None.

BuyerRemark

string

None.

AdminRemark

string

None.

CouponId

integer

None.

InvoiceStatus

integer

None.

IsSplit

integer

None.

CloseReason

string

None.

CreateTime

date

None.

PayTime

date

None.

DeliveryTime

date

None.

ReceiveTime

date

None.

UpdateTime

date

None.

DataState

integer

None.

State

integer

None.

Transaction_id

string

None.

ResponseContent

string

None.

RefundId

string

None.

RefundRemark

string

None.

OutRefundNo

string

None.

Paging

PaginRequest

None.

OrderBys

string

None.

QueryValue

string

None.

OrderNum

string

None.

FieldName

string

None.

Column

Collection of Object

None.

WarehouseId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ExpressNo": "sample string 1",
  "ExpressCode": "sample string 2",
  "ExpressName": "sample string 3",
  "ExpressRemark": "sample string 4",
  "ExpressOpId": 5,
  "OrderId": 1,
  "OrderItemList": [
    {
      "CartId": 1,
      "Id": 2,
      "OrderId": 3,
      "OrderNo": "sample string 4",
      "GoodsId": 5,
      "SkuId": 6,
      "GoodsName": "sample string 7",
      "SkuSpec": "sample string 8",
      "GoodsImg": "sample string 9",
      "Price": 10.0,
      "Quantity": 11,
      "SubtotalAmount": 12.0,
      "RefundQuantity": 13,
      "CreateTime": "2026-11-04T06:15:09.6708251+08:00",
      "UpdateTime": "2026-11-04T06:15:09.6708251+08:00",
      "DataState": 16,
      "State": 17
    },
    {
      "CartId": 1,
      "Id": 2,
      "OrderId": 3,
      "OrderNo": "sample string 4",
      "GoodsId": 5,
      "SkuId": 6,
      "GoodsName": "sample string 7",
      "SkuSpec": "sample string 8",
      "GoodsImg": "sample string 9",
      "Price": 10.0,
      "Quantity": 11,
      "SubtotalAmount": 12.0,
      "RefundQuantity": 13,
      "CreateTime": "2026-11-04T06:15:09.6708251+08:00",
      "UpdateTime": "2026-11-04T06:15:09.6708251+08:00",
      "DataState": 16,
      "State": 17
    }
  ],
  "Id": 1,
  "OrderNo": "sample string 6",
  "UserId": 1,
  "Nick": "sample string 7",
  "UserPhone": "sample string 8",
  "OrderStatus": 1,
  "PayStatus": 9,
  "TransactionId": "sample string 10",
  "TotalAmount": 11.0,
  "DiscountAmount": 12.0,
  "FreightAmount": 13.0,
  "PayAmount": 1.0,
  "RefundAmount": 14.0,
  "ReceiverName": "sample string 15",
  "ReceiverPhone": "sample string 16",
  "ReceiverProvince": "sample string 17",
  "ReceiverCity": "sample string 18",
  "ReceiverDistrict": "sample string 19",
  "ReceiverAddress": "sample string 20",
  "Source": 21,
  "BuyerRemark": "sample string 22",
  "AdminRemark": "sample string 23",
  "CouponId": 24,
  "InvoiceStatus": 25,
  "IsSplit": 26,
  "CloseReason": "sample string 27",
  "CreateTime": "2026-11-04T06:15:09.6708251+08:00",
  "PayTime": "2026-11-04T06:15:09.6708251+08:00",
  "DeliveryTime": "2026-11-04T06:15:09.6708251+08:00",
  "ReceiveTime": "2026-11-04T06:15:09.6708251+08:00",
  "UpdateTime": "2026-11-04T06:15:09.6708251+08:00",
  "DataState": 33,
  "State": 34,
  "Transaction_id": "sample string 35",
  "ResponseContent": "sample string 36",
  "RefundId": "sample string 37",
  "RefundRemark": "sample string 38",
  "OutRefundNo": "sample string 39",
  "Paging": {
    "PageIndex": 1,
    "PageSize": 1
  },
  "OrderBys": "sample string 40",
  "QueryValue": "sample string 41",
  "OrderNum": "sample string 42",
  "FieldName": "sample string 43",
  "Column": [
    {},
    {}
  ],
  "WarehouseId": 1
}

application/xml, text/xml

Sample:
<OrderMainRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Read.Model.Request">
  <Column xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </Column>
  <FieldName>sample string 43</FieldName>
  <OrderBys>sample string 40</OrderBys>
  <OrderNum>sample string 42</OrderNum>
  <Paging>
    <PageIndex>1</PageIndex>
    <PageSize>1</PageSize>
  </Paging>
  <QueryValue>sample string 41</QueryValue>
  <WarehouseId>1</WarehouseId>
  <AdminRemark>sample string 23</AdminRemark>
  <BuyerRemark>sample string 22</BuyerRemark>
  <CloseReason>sample string 27</CloseReason>
  <CouponId>24</CouponId>
  <CreateTime>2026-11-04T06:15:09.6708251+08:00</CreateTime>
  <DataState>33</DataState>
  <DeliveryTime>2026-11-04T06:15:09.6708251+08:00</DeliveryTime>
  <DiscountAmount>12</DiscountAmount>
  <ExpressCode>sample string 2</ExpressCode>
  <ExpressName>sample string 3</ExpressName>
  <ExpressNo>sample string 1</ExpressNo>
  <ExpressOpId>5</ExpressOpId>
  <ExpressRemark>sample string 4</ExpressRemark>
  <FreightAmount>13</FreightAmount>
  <Id>1</Id>
  <InvoiceStatus>25</InvoiceStatus>
  <IsSplit>26</IsSplit>
  <Nick>sample string 7</Nick>
  <OrderId>1</OrderId>
  <OrderItemList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Project.Read.Model.HXH">
    <d2p1:OrderItemModel>
      <d2p1:CartId>1</d2p1:CartId>
      <d2p1:CreateTime>2026-11-04T06:15:09.6708251+08:00</d2p1:CreateTime>
      <d2p1:DataState>16</d2p1:DataState>
      <d2p1:GoodsId>5</d2p1:GoodsId>
      <d2p1:GoodsImg>sample string 9</d2p1:GoodsImg>
      <d2p1:GoodsName>sample string 7</d2p1:GoodsName>
      <d2p1:Id>2</d2p1:Id>
      <d2p1:OrderId>3</d2p1:OrderId>
      <d2p1:OrderNo>sample string 4</d2p1:OrderNo>
      <d2p1:Price>10</d2p1:Price>
      <d2p1:Quantity>11</d2p1:Quantity>
      <d2p1:RefundQuantity>13</d2p1:RefundQuantity>
      <d2p1:SkuId>6</d2p1:SkuId>
      <d2p1:SkuSpec>sample string 8</d2p1:SkuSpec>
      <d2p1:State>17</d2p1:State>
      <d2p1:SubtotalAmount>12</d2p1:SubtotalAmount>
      <d2p1:UpdateTime>2026-11-04T06:15:09.6708251+08:00</d2p1:UpdateTime>
    </d2p1:OrderItemModel>
    <d2p1:OrderItemModel>
      <d2p1:CartId>1</d2p1:CartId>
      <d2p1:CreateTime>2026-11-04T06:15:09.6708251+08:00</d2p1:CreateTime>
      <d2p1:DataState>16</d2p1:DataState>
      <d2p1:GoodsId>5</d2p1:GoodsId>
      <d2p1:GoodsImg>sample string 9</d2p1:GoodsImg>
      <d2p1:GoodsName>sample string 7</d2p1:GoodsName>
      <d2p1:Id>2</d2p1:Id>
      <d2p1:OrderId>3</d2p1:OrderId>
      <d2p1:OrderNo>sample string 4</d2p1:OrderNo>
      <d2p1:Price>10</d2p1:Price>
      <d2p1:Quantity>11</d2p1:Quantity>
      <d2p1:RefundQuantity>13</d2p1:RefundQuantity>
      <d2p1:SkuId>6</d2p1:SkuId>
      <d2p1:SkuSpec>sample string 8</d2p1:SkuSpec>
      <d2p1:State>17</d2p1:State>
      <d2p1:SubtotalAmount>12</d2p1:SubtotalAmount>
      <d2p1:UpdateTime>2026-11-04T06:15:09.6708251+08:00</d2p1:UpdateTime>
    </d2p1:OrderItemModel>
  </OrderItemList>
  <OrderNo>sample string 6</OrderNo>
  <OrderStatus>1</OrderStatus>
  <OutRefundNo>sample string 39</OutRefundNo>
  <PayAmount>1</PayAmount>
  <PayStatus>9</PayStatus>
  <PayTime>2026-11-04T06:15:09.6708251+08:00</PayTime>
  <ReceiveTime>2026-11-04T06:15:09.6708251+08:00</ReceiveTime>
  <ReceiverAddress>sample string 20</ReceiverAddress>
  <ReceiverCity>sample string 18</ReceiverCity>
  <ReceiverDistrict>sample string 19</ReceiverDistrict>
  <ReceiverName>sample string 15</ReceiverName>
  <ReceiverPhone>sample string 16</ReceiverPhone>
  <ReceiverProvince>sample string 17</ReceiverProvince>
  <RefundAmount>14</RefundAmount>
  <RefundId>sample string 37</RefundId>
  <RefundRemark>sample string 38</RefundRemark>
  <ResponseContent>sample string 36</ResponseContent>
  <Source>21</Source>
  <State>34</State>
  <TotalAmount>11</TotalAmount>
  <TransactionId>sample string 10</TransactionId>
  <Transaction_id>sample string 35</Transaction_id>
  <UpdateTime>2026-11-04T06:15:09.6708251+08:00</UpdateTime>
  <UserId>1</UserId>
  <UserPhone>sample string 8</UserPhone>
</OrderMainRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />