POST cyapi/pos/savebilling

Request Information

URI Parameters

None.

Body Parameters

SaveBillingRequest
NameDescriptionTypeAdditional information
jlbh

string

None.

goodsList

Collection of Goods

None.

order

Order

None.

sktno

string

None.

terminalNo

string

None.

proType

integer

None.

version

string

None.

timeStamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "jlbh": "sample string 1",
  "goodsList": [
    {
      "hasedRefundCount": 1.1,
      "mobileJLBH": 2,
      "id": 3,
      "name": "sample string 4",
      "code": "sample string 5",
      "barCode": "sample string 6",
      "crmInx": 7,
      "classType": "sample string 8",
      "classTypeName": "sample string 9",
      "unit": "sample string 10",
      "logo": 11,
      "logoName": "sample string 12",
      "packaged": true,
      "goodsType": 14,
      "price": 15,
      "vipPrice": 16,
      "discount": 17,
      "frontDiscount": 18,
      "backDiscount": 19,
      "memberDiscount": 20,
      "bLimitSell": true,
      "discountCount": 22.1,
      "decreaseDiscount": 23,
      "memberDiscRate": 24.1,
      "changeDiscount": 25,
      "iRefNo_ZK": 26,
      "iRefNo_MJ": 27,
      "singleDiscount": 28,
      "totalCount": 29.1,
      "saleCount": 30.1,
      "maxSaleCount": 31.1,
      "saleMoney": 32,
      "preferentialMoney": 33,
      "ctrlNegSell": 34,
      "status": 35,
      "deptId": 36,
      "deptCode": "sample string 37",
      "backDiscountBill": {
        "billId": 1,
        "inx": 2,
        "iREFNO": 3,
        "limitCount": 4.1,
        "discountedCount": 5.1,
        "discountRate": 6.1,
        "discountMoney": 7,
        "vipDiscountType": 8,
        "dicountPrecision": 9
      },
      "discountBillId": 38,
      "discountBillInx": 39,
      "subTicktInx_old": 40,
      "subGoodsInx_old": 41,
      "decreasePreferential": 42,
      "iBJ_DBJF": 43,
      "kqPerM": 44,
      "personId": 45,
      "personCode": "sample string 46",
      "personDeptidCode": "sample string 47",
      "totalAssignMoney": 48
    },
    {
      "hasedRefundCount": 1.1,
      "mobileJLBH": 2,
      "id": 3,
      "name": "sample string 4",
      "code": "sample string 5",
      "barCode": "sample string 6",
      "crmInx": 7,
      "classType": "sample string 8",
      "classTypeName": "sample string 9",
      "unit": "sample string 10",
      "logo": 11,
      "logoName": "sample string 12",
      "packaged": true,
      "goodsType": 14,
      "price": 15,
      "vipPrice": 16,
      "discount": 17,
      "frontDiscount": 18,
      "backDiscount": 19,
      "memberDiscount": 20,
      "bLimitSell": true,
      "discountCount": 22.1,
      "decreaseDiscount": 23,
      "memberDiscRate": 24.1,
      "changeDiscount": 25,
      "iRefNo_ZK": 26,
      "iRefNo_MJ": 27,
      "singleDiscount": 28,
      "totalCount": 29.1,
      "saleCount": 30.1,
      "maxSaleCount": 31.1,
      "saleMoney": 32,
      "preferentialMoney": 33,
      "ctrlNegSell": 34,
      "status": 35,
      "deptId": 36,
      "deptCode": "sample string 37",
      "backDiscountBill": {
        "billId": 1,
        "inx": 2,
        "iREFNO": 3,
        "limitCount": 4.1,
        "discountedCount": 5.1,
        "discountRate": 6.1,
        "discountMoney": 7,
        "vipDiscountType": 8,
        "dicountPrecision": 9
      },
      "discountBillId": 38,
      "discountBillInx": 39,
      "subTicktInx_old": 40,
      "subGoodsInx_old": 41,
      "decreasePreferential": 42,
      "iBJ_DBJF": 43,
      "kqPerM": 44,
      "personId": 45,
      "personCode": "sample string 46",
      "personDeptidCode": "sample string 47",
      "totalAssignMoney": 48
    }
  ],
  "order": {
    "id": 1,
    "shopId": 2,
    "hyId": 3,
    "hyType": 4,
    "personId": 5,
    "status": 6
  },
  "sktno": "sample string 2",
  "terminalNo": "sample string 3",
  "proType": 4,
  "version": "sample string 5",
  "timeStamp": "sample string 6"
}

application/xml, text/xml

Sample:
<SaveBillingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PosLibrary.PubData">
  <proType>4</proType>
  <sktno>sample string 2</sktno>
  <terminalNo>sample string 3</terminalNo>
  <timeStamp>sample string 6</timeStamp>
  <version>sample string 5</version>
  <goodsList>
    <Goods>
      <BLimitSell>true</BLimitSell>
      <BackDiscount>19</BackDiscount>
      <BackDiscountBill>
        <BillId>1</BillId>
        <DicountPrecision>9</DicountPrecision>
        <DiscountMoney>7</DiscountMoney>
        <DiscountRate>6.1</DiscountRate>
        <DiscountedCount>5.1</DiscountedCount>
        <IREFNO>3</IREFNO>
        <Inx>2</Inx>
        <LimitCount>4.1</LimitCount>
        <VipDiscountType>8</VipDiscountType>
      </BackDiscountBill>
      <BarCode>sample string 6</BarCode>
      <ChangeDiscount>25</ChangeDiscount>
      <ClassType>sample string 8</ClassType>
      <Code>sample string 5</Code>
      <CrmInx>7</CrmInx>
      <CtrlNegSell>34</CtrlNegSell>
      <DecreaseDiscount>23</DecreaseDiscount>
      <DecreasePreferential>42</DecreasePreferential>
      <DeptCode>sample string 37</DeptCode>
      <DeptId>36</DeptId>
      <Discount>17</Discount>
      <DiscountBillId>38</DiscountBillId>
      <DiscountBillInx>39</DiscountBillInx>
      <DiscountCount>22.1</DiscountCount>
      <FrontDiscount>18</FrontDiscount>
      <GoodsType>14</GoodsType>
      <HasedRefundCount>1.1</HasedRefundCount>
      <IBJ_DBJF>43</IBJ_DBJF>
      <IRefNo_MJ>27</IRefNo_MJ>
      <IRefNo_ZK>26</IRefNo_ZK>
      <Id>3</Id>
      <KqPerM>44</KqPerM>
      <Logo>11</Logo>
      <MaxSaleCount>31.1</MaxSaleCount>
      <MemberDiscRate>24.1</MemberDiscRate>
      <MemberDiscount>20</MemberDiscount>
      <Name>sample string 4</Name>
      <Packaged>true</Packaged>
      <PersonCode>sample string 46</PersonCode>
      <PersonDeptidCode>sample string 47</PersonDeptidCode>
      <PersonId>45</PersonId>
      <PreferentialMoney>33</PreferentialMoney>
      <Price>15</Price>
      <SaleCount>30.1</SaleCount>
      <SaleMoney>32</SaleMoney>
      <SingleDiscount>28</SingleDiscount>
      <Status>35</Status>
      <SubGoodsInx_old>41</SubGoodsInx_old>
      <SubTicktInx_old>40</SubTicktInx_old>
      <TotalAssignMoney>48</TotalAssignMoney>
      <TotalCount>29.1</TotalCount>
      <Unit>sample string 10</Unit>
      <VipPrice>16</VipPrice>
      <classTypeName>sample string 9</classTypeName>
      <logoName>sample string 12</logoName>
      <mobileJLBH>2</mobileJLBH>
    </Goods>
    <Goods>
      <BLimitSell>true</BLimitSell>
      <BackDiscount>19</BackDiscount>
      <BackDiscountBill>
        <BillId>1</BillId>
        <DicountPrecision>9</DicountPrecision>
        <DiscountMoney>7</DiscountMoney>
        <DiscountRate>6.1</DiscountRate>
        <DiscountedCount>5.1</DiscountedCount>
        <IREFNO>3</IREFNO>
        <Inx>2</Inx>
        <LimitCount>4.1</LimitCount>
        <VipDiscountType>8</VipDiscountType>
      </BackDiscountBill>
      <BarCode>sample string 6</BarCode>
      <ChangeDiscount>25</ChangeDiscount>
      <ClassType>sample string 8</ClassType>
      <Code>sample string 5</Code>
      <CrmInx>7</CrmInx>
      <CtrlNegSell>34</CtrlNegSell>
      <DecreaseDiscount>23</DecreaseDiscount>
      <DecreasePreferential>42</DecreasePreferential>
      <DeptCode>sample string 37</DeptCode>
      <DeptId>36</DeptId>
      <Discount>17</Discount>
      <DiscountBillId>38</DiscountBillId>
      <DiscountBillInx>39</DiscountBillInx>
      <DiscountCount>22.1</DiscountCount>
      <FrontDiscount>18</FrontDiscount>
      <GoodsType>14</GoodsType>
      <HasedRefundCount>1.1</HasedRefundCount>
      <IBJ_DBJF>43</IBJ_DBJF>
      <IRefNo_MJ>27</IRefNo_MJ>
      <IRefNo_ZK>26</IRefNo_ZK>
      <Id>3</Id>
      <KqPerM>44</KqPerM>
      <Logo>11</Logo>
      <MaxSaleCount>31.1</MaxSaleCount>
      <MemberDiscRate>24.1</MemberDiscRate>
      <MemberDiscount>20</MemberDiscount>
      <Name>sample string 4</Name>
      <Packaged>true</Packaged>
      <PersonCode>sample string 46</PersonCode>
      <PersonDeptidCode>sample string 47</PersonDeptidCode>
      <PersonId>45</PersonId>
      <PreferentialMoney>33</PreferentialMoney>
      <Price>15</Price>
      <SaleCount>30.1</SaleCount>
      <SaleMoney>32</SaleMoney>
      <SingleDiscount>28</SingleDiscount>
      <Status>35</Status>
      <SubGoodsInx_old>41</SubGoodsInx_old>
      <SubTicktInx_old>40</SubTicktInx_old>
      <TotalAssignMoney>48</TotalAssignMoney>
      <TotalCount>29.1</TotalCount>
      <Unit>sample string 10</Unit>
      <VipPrice>16</VipPrice>
      <classTypeName>sample string 9</classTypeName>
      <logoName>sample string 12</logoName>
      <mobileJLBH>2</mobileJLBH>
    </Goods>
  </goodsList>
  <jlbh>sample string 1</jlbh>
  <order>
    <HyId>3</HyId>
    <HyType>4</HyType>
    <Id>1</Id>
    <PersonId>5</PersonId>
    <ShopId>2</ShopId>
    <Status>6</Status>
  </order>
</SaveBillingRequest>

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

Response Information

Resource Description

SaveBillingResponse
NameDescriptionTypeAdditional information
billingNo

integer

None.

retCode

string

None.

retMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "billingNo": 1,
  "retCode": "sample string 2",
  "retMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<SaveBillingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PosLibrary.PubData">
  <retCode>sample string 2</retCode>
  <retMessage>sample string 3</retMessage>
  <billingNo>1</billingNo>
</SaveBillingResponse>