POST api/Product/SellProduct

销售登记

Request Information

URI Parameters

None.

Body Parameters

sellProductPost
NameDescriptionTypeAdditional information
kehutype

客户类型,1:零售客户,2:会员:100:其他

integer

None.

paymode

付款方式,xianjin = 1,shuaka = 2,huiyuanka = 3,zhifubao=4, weixinpay=5,qita=100

integer

None.

huiyuantel

当客户类型为会员的时候,此字段必填,会员账号(电话)

string

None.

zhekou

折扣类型,1:正常折扣、2,内部折扣,3,内部优惠折扣, 4,定价

integer

None.

zhekoucause

折扣原因

string

None.

productCode

货品代码

string

None.

count

数量

integer

None.

sellId

销售订单id(继续购买时,需要传递)

integer

None.

tel

登录账号

string

None.

token

token

string

None.

uid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "kehutype": 1,
  "paymode": 2,
  "huiyuantel": "sample string 3",
  "zhekou": 4,
  "zhekoucause": "sample string 5",
  "productCode": "sample string 6",
  "count": 1,
  "sellId": 1,
  "tel": "sample string 7",
  "token": "sample string 8",
  "uid": 1
}

application/xml, text/xml

Sample:
<sellProductPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 7</tel>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 8</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <count>1</count>
  <huiyuantel>sample string 3</huiyuantel>
  <kehutype>1</kehutype>
  <paymode>2</paymode>
  <productCode>sample string 6</productCode>
  <sellId>1</sellId>
  <zhekou>4</zhekou>
  <zhekoucause>sample string 5</zhekoucause>
</sellProductPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

sellProductResult
NameDescriptionTypeAdditional information
sellId

销售订单id。用于会员继续购买

integer

None.

list

数组: sellMapItem

None.

allAmount

decimal number

None.

allCount

integer

None.

code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

Sample:
{
  "sellId": 1,
  "list": [
    {
      "proCode": "sample string 1",
      "yanse": "sample string 2",
      "chima": "sample string 3",
      "price": 4.0,
      "count": 5
    },
    {
      "proCode": "sample string 1",
      "yanse": "sample string 2",
      "chima": "sample string 3",
      "price": 4.0,
      "count": 5
    }
  ],
  "allAmount": 2.0,
  "allCount": 3,
  "code": 4,
  "msg": "sample string 5"
}

application/xml, text/xml

Sample:
<sellProductResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">4</code>
  <msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 5</msg>
  <allAmount>2</allAmount>
  <allCount>3</allCount>
  <list>
    <sellMapItem>
      <chima>sample string 3</chima>
      <count>5</count>
      <price>4</price>
      <proCode>sample string 1</proCode>
      <yanse>sample string 2</yanse>
    </sellMapItem>
    <sellMapItem>
      <chima>sample string 3</chima>
      <count>5</count>
      <price>4</price>
      <proCode>sample string 1</proCode>
      <yanse>sample string 2</yanse>
    </sellMapItem>
  </list>
  <sellId>1</sellId>
</sellProductResult>