POST ActionApi/T_Orders/T_OrdersSalesOutReturn

保存销售退货入库单据

Request Information

URI Parameters

None.

Body Parameters

OrderWithPics
NameDescriptionTypeAdditional information
_Order

用于提交订单的实体

T_Orders

None.

_Pic

用于上传图片的实体

Collection of T_Pics

None.

Request Formats

application/json, text/json

Sample:
{
  "_Order": {
    "id": "af2c33e9-8274-4690-af65-c7689687573b",
    "cOrderCode": "sample string 2",
    "iOrderType": 1,
    "iPreparedId": "493ee932-8a32-49e9-be87-7391b66e648a",
    "dtPrepTime": "2021-10-19T22:25:23.2838963+08:00",
    "iAuthorizeId": "9ade8d17-ec1f-4608-8102-52c7fc33ecfd",
    "dtAuthorizeTime": "2021-10-19T22:25:23.2838963+08:00",
    "iSignId": "dde0061c-4dcc-45a8-8ef7-2bc22c755fcc",
    "dtSignTime": "2021-10-19T22:25:23.2838963+08:00",
    "iOrderState": 1,
    "iAuthoState": 1,
    "iStoreId": "a42270be-8bb4-4258-a3c4-bb39eed32316",
    "cSideId": "sample string 3",
    "cSideType": "sample string 4",
    "cLogisticsNo": "sample string 5",
    "iSourceId": "dad1112f-41c4-487f-a2dd-61f6fbee0f68",
    "cRemark": "sample string 6",
    "tTimeStamp": "QEA=",
    "iDirectorId": "00d112a1-3730-4965-ad7d-2ece31c41430",
    "dtUpdate": "2021-10-19T22:25:23.2838963+08:00",
    "cSignName": "sample string 7",
    "cSignTele": "sample string 8",
    "cSignAddress": "sample string 9",
    "cSidePic": "sample string 10",
    "cReturnReason": "sample string 11",
    "cLogisticsCode": "sample string 12",
    "iModifyStatue": 1,
    "cOrderNC": "sample string 13",
    "cCustomerTypeNc": "sample string 14",
    "cResponseNc": "sample string 15",
    "iToNcNumber": 1,
    "isToNcStatus": 1,
    "cCustomerNc": "sample string 16",
    "iAsync": 1,
    "cReturnType": "sample string 17",
    "iReturnId": 1,
    "iBrandUserId": "d42caa63-4f4c-4ae9-8c93-2d30dea37e51",
    "iBrandStatue": 1,
    "cReportSkuCode": "sample string 18",
    "iErrorSku": 1,
    "dtSalesTime": "2021-10-19T22:25:23.2838963+08:00",
    "iSalesSKU": 1,
    "iSalesSkuCount": 1,
    "iSalesSkuMoney": 1.0,
    "iSalesGiftSKU": 1,
    "iSalesGiftSkuCount": 1,
    "iSalesGiftSkuMoney": 1.0,
    "iTotalSKU": 1,
    "iTotalSkuCount": 1,
    "iTotalSkuMoney": 1.0,
    "T_Authorize": [
      {
        "iOrderId": "c7508535-2f71-4134-8871-3705ea2eff35",
        "id": "99e23789-cf72-4965-bafe-5a244d975ebc",
        "cAuthorize": "sample string 2",
        "dtAuthorTime": "2021-10-19T22:25:23.2838963+08:00",
        "cSign": "f2e48cd4-9312-4d4d-b183-a4c60a35388a"
      },
      {
        "iOrderId": "c7508535-2f71-4134-8871-3705ea2eff35",
        "id": "99e23789-cf72-4965-bafe-5a244d975ebc",
        "cAuthorize": "sample string 2",
        "dtAuthorTime": "2021-10-19T22:25:23.2838963+08:00",
        "cSign": "f2e48cd4-9312-4d4d-b183-a4c60a35388a"
      }
    ],
    "T_OrderDetail": [
      {
        "id": "1b1a4e03-47b8-4671-ad89-701c6c8167ec",
        "iOrderId": "86d3b48f-4104-42f3-b2fb-27455800faf6",
        "iProId": 1,
        "iCount": 1,
        "iPrice": 1.0,
        "iMoney": 1.0,
        "iSignCount": 1,
        "dtCreateTime": "2021-10-19T22:25:23.2838963+08:00",
        "tTimeStamp": "QEA=",
        "iInventtoryId": 1,
        "iSendCount": 1,
        "iStoreHouseId": 1,
        "iModifyCount": 1,
        "iLineNo": 1,
        "iAsync": 1,
        "cErrorType": "sample string 2",
        "iErrorId": 1,
        "cErrorContent": "sample string 3",
        "iErrorCount": 1,
        "cCarrierName": "sample string 4",
        "cCarrierCode": "sample string 5",
        "dtExpiryDate": "2021-10-19T22:25:23.2838963+08:00",
        "cRemark": "sample string 6",
        "iSalesType": 1
      },
      {
        "id": "1b1a4e03-47b8-4671-ad89-701c6c8167ec",
        "iOrderId": "86d3b48f-4104-42f3-b2fb-27455800faf6",
        "iProId": 1,
        "iCount": 1,
        "iPrice": 1.0,
        "iMoney": 1.0,
        "iSignCount": 1,
        "dtCreateTime": "2021-10-19T22:25:23.2838963+08:00",
        "tTimeStamp": "QEA=",
        "iInventtoryId": 1,
        "iSendCount": 1,
        "iStoreHouseId": 1,
        "iModifyCount": 1,
        "iLineNo": 1,
        "iAsync": 1,
        "cErrorType": "sample string 2",
        "iErrorId": 1,
        "cErrorContent": "sample string 3",
        "iErrorCount": 1,
        "cCarrierName": "sample string 4",
        "cCarrierCode": "sample string 5",
        "dtExpiryDate": "2021-10-19T22:25:23.2838963+08:00",
        "cRemark": "sample string 6",
        "iSalesType": 1
      }
    ]
  },
  "_Pic": [
    {
      "id": 1,
      "cPicPath": "sample string 2",
      "cPicType": "sample string 3",
      "cPicClass": "sample string 4",
      "iSize": 1.0,
      "dtCreateTime": "2021-10-19T22:25:23.2838963+08:00",
      "dtUploadTime": "2021-10-19T22:25:23.2838963+08:00",
      "iStoreId": "8590c589-4ff1-467c-9f80-73ce6ce9632b",
      "iUserId": "d1b572fd-f08b-40df-a755-da1afa67a200",
      "cRoleName": "sample string 5",
      "cUserName": "sample string 6",
      "iBrandName": "sample string 7",
      "iReportId": 1,
      "iTrainId": "d36f2446-72ed-4957-9d32-cb500cc7c765",
      "cOrderCode": "sample string 8",
      "iAsync": 1,
      "isShow": 1
    },
    {
      "id": 1,
      "cPicPath": "sample string 2",
      "cPicType": "sample string 3",
      "cPicClass": "sample string 4",
      "iSize": 1.0,
      "dtCreateTime": "2021-10-19T22:25:23.2838963+08:00",
      "dtUploadTime": "2021-10-19T22:25:23.2838963+08:00",
      "iStoreId": "8590c589-4ff1-467c-9f80-73ce6ce9632b",
      "iUserId": "d1b572fd-f08b-40df-a755-da1afa67a200",
      "cRoleName": "sample string 5",
      "cUserName": "sample string 6",
      "iBrandName": "sample string 7",
      "iReportId": 1,
      "iTrainId": "d36f2446-72ed-4957-9d32-cb500cc7c765",
      "cOrderCode": "sample string 8",
      "iAsync": 1,
      "isShow": 1
    }
  ]
}

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 'OrderWithPics'.

Response Information

Resource Description

保存销售退货入库单据

T_Orders
NameDescriptionTypeAdditional information
id

单据ID

globally unique identifier

None.

cOrderCode

单号

string

None.

iOrderType

单据类型 OrderType 必填

integer

None.

iPreparedId

制单人 必填

globally unique identifier

None.

dtPrepTime

制单日期 必填

date

None.

iAuthorizeId

审批人 必填

globally unique identifier

None.

dtAuthorizeTime

审批时间

date

None.

iSignId

签收人

globally unique identifier

None.

dtSignTime

签收时间

date

None.

iOrderState

单据状态 OrderState 必填

integer

None.

iAuthoState

审批状态 AuthorState 必填

integer

None.

iStoreId

门店ID 必填

globally unique identifier

None.

cSideId

对方ID

string

None.

cSideType

对方类型 门店 仓库

string

None.

cLogisticsNo

运单号

string

None.

iSourceId

来源单号

globally unique identifier

None.

cRemark

备注

string

None.

tTimeStamp

时间戳

Collection of byte

None.

iDirectorId

主管id 必填

globally unique identifier

None.

dtUpdate

更新时间

date

None.

cSignName

收货人

string

None.

cSignTele

收货人联系方式

string

None.

cSignAddress

收货地址

string

None.

cSidePic

签收图

string

None.

cReturnReason

反馈信息

string

None.

cLogisticsCode

物流单号

string

None.

iModifyStatue

有调整的状态 0无调整 1有调整

integer

None.

cOrderNC

NC单号

string

None.

cCustomerTypeNc

客户类型

string

None.

cResponseNc

NC反馈信息

string

None.

iToNcNumber

导入次数

integer

None.

isToNcStatus

导入obc状态 0 无下传 1已下传

integer

None.

cCustomerNc

NC客户编码

string

None.

iAsync

同步BI标志

integer

None.

cReturnType

异常原因 盘盈 StockInType 盘亏 StockType 必填

string

None.

iReturnId

异常原因id 盘盈 StockInType 盘亏 StockType 必填

integer

None.

iBrandUserId

品牌经理用户id

globally unique identifier

None.

iBrandStatue

审核状态 0待审核 1审核通过 2驳回 必填

integer

None.

cReportSkuCode

库存盘点单号 撤柜必填

string

None.

iErrorSku

integer

None.

dtSalesTime

date

None.

iSalesSKU

integer

None.

iSalesSkuCount

integer

None.

iSalesSkuMoney

decimal number

None.

iSalesGiftSKU

integer

None.

iSalesGiftSkuCount

integer

None.

iSalesGiftSkuMoney

decimal number

None.

iTotalSKU

integer

None.

iTotalSkuCount

integer

None.

iTotalSkuMoney

decimal number

None.

T_Authorize

Collection of T_Authorize

None.

T_OrderDetail

Collection of T_OrderDetail

None.

Response Formats

application/json, text/json

Sample:
{
  "id": "d1bd3808-75e6-4fd7-966b-fcede0665167",
  "cOrderCode": "sample string 2",
  "iOrderType": 1,
  "iPreparedId": "eca5a6bb-d4ca-4365-bc79-c9115a50201a",
  "dtPrepTime": "2021-10-19T22:25:23.2844491+08:00",
  "iAuthorizeId": "2fb514e8-f2a5-4b6f-88fe-3bc014cf3289",
  "dtAuthorizeTime": "2021-10-19T22:25:23.2844491+08:00",
  "iSignId": "39311edd-bea1-42af-ac33-7029c5b68df2",
  "dtSignTime": "2021-10-19T22:25:23.2844491+08:00",
  "iOrderState": 1,
  "iAuthoState": 1,
  "iStoreId": "ae725fae-18c9-4cc5-8ab5-677de24c7558",
  "cSideId": "sample string 3",
  "cSideType": "sample string 4",
  "cLogisticsNo": "sample string 5",
  "iSourceId": "c8eb8acd-6635-46b1-a6e1-4b2cdcc13700",
  "cRemark": "sample string 6",
  "tTimeStamp": "QEA=",
  "iDirectorId": "dd5778ad-c577-4b1c-88c5-e9f7fe9137b5",
  "dtUpdate": "2021-10-19T22:25:23.2844491+08:00",
  "cSignName": "sample string 7",
  "cSignTele": "sample string 8",
  "cSignAddress": "sample string 9",
  "cSidePic": "sample string 10",
  "cReturnReason": "sample string 11",
  "cLogisticsCode": "sample string 12",
  "iModifyStatue": 1,
  "cOrderNC": "sample string 13",
  "cCustomerTypeNc": "sample string 14",
  "cResponseNc": "sample string 15",
  "iToNcNumber": 1,
  "isToNcStatus": 1,
  "cCustomerNc": "sample string 16",
  "iAsync": 1,
  "cReturnType": "sample string 17",
  "iReturnId": 1,
  "iBrandUserId": "10b66c93-82a5-4325-86a2-d740dd29ec84",
  "iBrandStatue": 1,
  "cReportSkuCode": "sample string 18",
  "iErrorSku": 1,
  "dtSalesTime": "2021-10-19T22:25:23.2844491+08:00",
  "iSalesSKU": 1,
  "iSalesSkuCount": 1,
  "iSalesSkuMoney": 1.0,
  "iSalesGiftSKU": 1,
  "iSalesGiftSkuCount": 1,
  "iSalesGiftSkuMoney": 1.0,
  "iTotalSKU": 1,
  "iTotalSkuCount": 1,
  "iTotalSkuMoney": 1.0,
  "T_Authorize": [
    {
      "iOrderId": "3ed59519-b5ad-4023-829f-b9bd05ac56a8",
      "id": "82f31d55-42e8-4c9e-83e1-cb82222b1695",
      "cAuthorize": "sample string 2",
      "dtAuthorTime": "2021-10-19T22:25:23.2844491+08:00",
      "cSign": "6cce2839-76eb-463c-8a38-748a2f3b0a7c"
    },
    {
      "iOrderId": "3ed59519-b5ad-4023-829f-b9bd05ac56a8",
      "id": "82f31d55-42e8-4c9e-83e1-cb82222b1695",
      "cAuthorize": "sample string 2",
      "dtAuthorTime": "2021-10-19T22:25:23.2844491+08:00",
      "cSign": "6cce2839-76eb-463c-8a38-748a2f3b0a7c"
    }
  ],
  "T_OrderDetail": [
    {
      "id": "9bdb86c4-bf34-4a0c-ad92-0245db28a976",
      "iOrderId": "84e759d6-a751-4f0c-8dfb-54e0a77f94b6",
      "iProId": 1,
      "iCount": 1,
      "iPrice": 1.0,
      "iMoney": 1.0,
      "iSignCount": 1,
      "dtCreateTime": "2021-10-19T22:25:23.2844491+08:00",
      "tTimeStamp": "QEA=",
      "iInventtoryId": 1,
      "iSendCount": 1,
      "iStoreHouseId": 1,
      "iModifyCount": 1,
      "iLineNo": 1,
      "iAsync": 1,
      "cErrorType": "sample string 2",
      "iErrorId": 1,
      "cErrorContent": "sample string 3",
      "iErrorCount": 1,
      "cCarrierName": "sample string 4",
      "cCarrierCode": "sample string 5",
      "dtExpiryDate": "2021-10-19T22:25:23.2844491+08:00",
      "cRemark": "sample string 6",
      "iSalesType": 1
    },
    {
      "id": "9bdb86c4-bf34-4a0c-ad92-0245db28a976",
      "iOrderId": "84e759d6-a751-4f0c-8dfb-54e0a77f94b6",
      "iProId": 1,
      "iCount": 1,
      "iPrice": 1.0,
      "iMoney": 1.0,
      "iSignCount": 1,
      "dtCreateTime": "2021-10-19T22:25:23.2844491+08:00",
      "tTimeStamp": "QEA=",
      "iInventtoryId": 1,
      "iSendCount": 1,
      "iStoreHouseId": 1,
      "iModifyCount": 1,
      "iLineNo": 1,
      "iAsync": 1,
      "cErrorType": "sample string 2",
      "iErrorId": 1,
      "cErrorContent": "sample string 3",
      "iErrorCount": 1,
      "cCarrierName": "sample string 4",
      "cCarrierCode": "sample string 5",
      "dtExpiryDate": "2021-10-19T22:25:23.2844491+08:00",
      "cRemark": "sample string 6",
      "iSalesType": 1
    }
  ]
}