POST api/vender/takeback/request

预约提货,根据仓库/品种/品级来确定库存id参数。当库存数量(所有项)小于预约提货数量时,会返回错误(提示重新填写数量)

Request Information

URI Parameters

None.

Body Parameters

TakebackRequestModel
NameDescriptionTypeAdditional information
StockTime

出库时间

date

Required

Items

提货项

Collection of TakeBackRequestItem

Required

Request Formats

application/json, text/json

Sample:
{
  "StockTime": "2025-12-26T20:15:47.8662397+08:00",
  "Items": [
    {
      "StockingId": 1,
      "Count": 2
    },
    {
      "StockingId": 1,
      "Count": 2
    }
  ]
}

application/xml, text/xml

Sample:
<TakebackRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModel.Api.Vender">
  <Items>
    <TakeBackRequestItem>
      <Count>2</Count>
      <StockingId>1</StockingId>
    </TakeBackRequestItem>
    <TakeBackRequestItem>
      <Count>2</Count>
      <StockingId>1</StockingId>
    </TakeBackRequestItem>
  </Items>
  <StockTime>2025-12-26T20:15:47.8662397+08:00</StockTime>
</TakebackRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseBase
NameDescriptionTypeAdditional information
errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 1</errcode>
  <errmsg>sample string 2</errmsg>
</ResponseBase>