POST Api/Format/ChannelCancelOrder

渠道取消订单请求

Request Information

URI Parameters

None.

Body Parameters

请求模型

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.ChannelCancelOrderRequestModel
NameDescriptionTypeAdditional information
OrderExternalNumber

外部订单号

string

Required

String length: inclusive between 0 and 128

SiteSetting

站点配置项

SpeedPower.Utility.Models.Project.Agents.Service.Setting.ParentSiteSettingModel

None.

OperationTag

操作标签

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.OperationTagModel

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderExternalNumber": "sample string 1",
  "SiteSetting": {
    "SiteExpandSettings": [
      {
        "ID": "40337216-d4e3-46d1-8a22-a6f0a0b12765",
        "SiteSettingId": "sample string 2",
        "SettingKey": "sample string 3",
        "SettingValue": "sample string 4"
      },
      {
        "ID": "40337216-d4e3-46d1-8a22-a6f0a0b12765",
        "SiteSettingId": "sample string 2",
        "SettingKey": "sample string 3",
        "SettingValue": "sample string 4"
      }
    ],
    "ID": "sample string 1",
    "CompanyId": "sample string 2",
    "ChannelCode": "sample string 3",
    "SiteCode": "sample string 4",
    "SiteName": "sample string 5",
    "SiteStatus": true,
    "SiteProfile": "sample string 7",
    "Time": "2025-04-03T15:38:29.2654549+08:00"
  },
  "OperationTag": {
    "OrderId": "56f5ba65-2bbc-44ee-bc76-b28ff19f4f50",
    "Creater": "sample string 2"
  }
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="OrderExternalNumber"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[0].ID"

40337216-d4e3-46d1-8a22-a6f0a0b12765
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[0].SiteSettingId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[0].SettingKey"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[0].SettingValue"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[1].ID"

40337216-d4e3-46d1-8a22-a6f0a0b12765
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[1].SiteSettingId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[1].SettingKey"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteExpandSettings[1].SettingValue"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.ID"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.CompanyId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.ChannelCode"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteCode"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteName"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteStatus"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.SiteProfile"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SiteSetting.Time"

2025-04-03T15:38:29.2654549+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="OperationTag.OrderId"

56f5ba65-2bbc-44ee-bc76-b28ff19f4f50
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="OperationTag.Creater"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

渠道取消订单请求

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.ChannelCancelOrderResponseModel
NameDescriptionTypeAdditional information
ErrorType

错误类型(可为NULL)

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.ChannelCancelOrderErrorType

None.

Request

请求模型返回

SpeedPower.Utility.Models.Project.Orders.Service.Automatic.ChannelCancelOrderRequestModel

None.

Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorType": 0,
  "Request": {
    "OrderExternalNumber": "sample string 1",
    "SiteSetting": {
      "SiteExpandSettings": [
        {
          "ID": "2ca0d93f-4b20-42a4-9f39-b16c37ae9fc4",
          "SiteSettingId": "sample string 2",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        },
        {
          "ID": "2ca0d93f-4b20-42a4-9f39-b16c37ae9fc4",
          "SiteSettingId": "sample string 2",
          "SettingKey": "sample string 3",
          "SettingValue": "sample string 4"
        }
      ],
      "ID": "sample string 1",
      "CompanyId": "sample string 2",
      "ChannelCode": "sample string 3",
      "SiteCode": "sample string 4",
      "SiteName": "sample string 5",
      "SiteStatus": true,
      "SiteProfile": "sample string 7",
      "Time": "2025-04-03T15:38:29.2654549+08:00"
    },
    "OperationTag": {
      "OrderId": "559321ce-d32d-4837-86c2-4c1a8e4a7df7",
      "Creater": "sample string 2"
    }
  },
  "Succeed": true,
  "Message": "sample string 2"
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ErrorType"

ChannelError
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.OrderExternalNumber"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[0].ID"

2ca0d93f-4b20-42a4-9f39-b16c37ae9fc4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[0].SiteSettingId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[0].SettingKey"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[0].SettingValue"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[1].ID"

2ca0d93f-4b20-42a4-9f39-b16c37ae9fc4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[1].SiteSettingId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[1].SettingKey"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteExpandSettings[1].SettingValue"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.ID"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.CompanyId"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.ChannelCode"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteCode"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteName"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteStatus"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.SiteProfile"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.SiteSetting.Time"

2025-04-03T15:38:29.2654549+08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.OperationTag.OrderId"

559321ce-d32d-4837-86c2-4c1a8e4a7df7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Request.OperationTag.Creater"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Succeed"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Message"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e--