POST api/UnPos/Shop/SellBill/Add

添加一个联营零售售货单

Request Information

URI Parameters

None.

Body Parameters

MerchantShopSellBillAddParm
NameDescriptionTypeAdditional information
BillNum

单据号

string

Required

BusiFrom

交易来源 1-前台 2-互联网

string

Required

DayIndexCode

当日的订单序号码

string

Required

BusiFromSubType

子交易来源 1-营业员小程序 2-码牌

string

None.

CodeCardType

码牌类型 P-门店快捷码牌,C公共码牌,T-门店桌面码牌

string

None.

CardId

码牌ID

string

None.

CardName

码牌名/桌台号

string

None.

TableOrCallNum

等号牌或餐台

string

None.

HappenDate

发生日期

string

Required

HappenTime

发生时间

string

Required

GuiderNumber

导游证号

string

None.

CustomerType

客户类型

string

None.

CustomerId

客户单位ID

string

None.

RebateMode

返利模式 1-允许(门店自行返利),2-允许(出租人统一返利),0禁止。

string

Required

PersonalMemberId

会员ID

integer

None.

Details

售货明细

Collection of MerchantShopSellBillDetailParm

None.

Request Formats

application/json, text/json

Sample:
{
  "BillNum": "sample string 1",
  "BusiFrom": "sample string 2",
  "DayIndexCode": "sample string 3",
  "BusiFromSubType": "sample string 4",
  "CodeCardType": "sample string 5",
  "CardId": "sample string 6",
  "CardName": "sample string 7",
  "TableOrCallNum": "sample string 8",
  "HappenDate": "sample string 9",
  "HappenTime": "sample string 10",
  "GuiderNumber": "sample string 11",
  "CustomerType": "sample string 12",
  "CustomerId": "sample string 13",
  "RebateMode": "sample string 14",
  "PersonalMemberId": 15,
  "Details": [
    {
      "ProductId": 1,
      "Unit": "sample string 2",
      "Standard": "sample string 3",
      "Amount": 4.0,
      "RetailPrice": 5.0,
      "LowestRentailPrice": 6.0,
      "Reserve1": "sample string 7",
      "Reserve2": "sample string 8"
    },
    {
      "ProductId": 1,
      "Unit": "sample string 2",
      "Standard": "sample string 3",
      "Amount": 4.0,
      "RetailPrice": 5.0,
      "LowestRentailPrice": 6.0,
      "Reserve1": "sample string 7",
      "Reserve2": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<MerchantShopSellBillAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms">
  <BillNum>sample string 1</BillNum>
  <BusiFrom>sample string 2</BusiFrom>
  <BusiFromSubType>sample string 4</BusiFromSubType>
  <CardId>sample string 6</CardId>
  <CardName>sample string 7</CardName>
  <CodeCardType>sample string 5</CodeCardType>
  <CustomerId>sample string 13</CustomerId>
  <CustomerType>sample string 12</CustomerType>
  <DayIndexCode>sample string 3</DayIndexCode>
  <Details>
    <MerchantShopSellBillDetailParm>
      <Amount>4</Amount>
      <LowestRentailPrice>6</LowestRentailPrice>
      <ProductId>1</ProductId>
      <Reserve1>sample string 7</Reserve1>
      <Reserve2>sample string 8</Reserve2>
      <RetailPrice>5</RetailPrice>
      <Standard>sample string 3</Standard>
      <Unit>sample string 2</Unit>
    </MerchantShopSellBillDetailParm>
    <MerchantShopSellBillDetailParm>
      <Amount>4</Amount>
      <LowestRentailPrice>6</LowestRentailPrice>
      <ProductId>1</ProductId>
      <Reserve1>sample string 7</Reserve1>
      <Reserve2>sample string 8</Reserve2>
      <RetailPrice>5</RetailPrice>
      <Standard>sample string 3</Standard>
      <Unit>sample string 2</Unit>
    </MerchantShopSellBillDetailParm>
  </Details>
  <GuiderNumber>sample string 11</GuiderNumber>
  <HappenDate>sample string 9</HappenDate>
  <HappenTime>sample string 10</HappenTime>
  <PersonalMemberId>15</PersonalMemberId>
  <RebateMode>sample string 14</RebateMode>
  <TableOrCallNum>sample string 8</TableOrCallNum>
</MerchantShopSellBillAddParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

添加一个联营零售售货单

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.