POST cyapi/pos/scannerOrder2Sale

Request Information

URI Parameters

None.

Body Parameters

ScannerOrder2SaleRequest
NameDescriptionTypeAdditional information
mobleBillId

string

None.

sktno

string

None.

terminalNo

string

None.

proType

integer

None.

version

string

None.

timeStamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "mobleBillId": "sample string 1",
  "sktno": "sample string 2",
  "terminalNo": "sample string 3",
  "proType": 4,
  "version": "sample string 5",
  "timeStamp": "sample string 6"
}

application/xml, text/xml

Sample:
<ScannerOrder2SaleRequest 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>
  <mobleBillId>sample string 1</mobleBillId>
</ScannerOrder2SaleRequest>

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

Response Information

Resource Description

ScannerOrder2SaleResponse
NameDescriptionTypeAdditional information
responseData

ScannerOrder2SaleResponseData

None.

retCode

string

None.

retMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "responseData": {
    "goodses": [
      {
        "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
      }
    ],
    "person": {
      "personId": 1,
      "personName": "sample string 2",
      "personDeptCode": "sample string 3",
      "personDeptId": 4,
      "personDeptName": "sample string 5",
      "personCode": "sample string 6",
      "shopId": 7
    }
  },
  "retCode": "sample string 1",
  "retMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ScannerOrder2SaleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PosLibrary.PubData">
  <retCode>sample string 1</retCode>
  <retMessage>sample string 2</retMessage>
  <responseData>
    <goodses>
      <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>
    </goodses>
    <person>
      <PersonCode>sample string 6</PersonCode>
      <PersonDeptCode>sample string 3</PersonDeptCode>
      <PersonDeptId>4</PersonDeptId>
      <PersonDeptName>sample string 5</PersonDeptName>
      <PersonId>1</PersonId>
      <PersonName>sample string 2</PersonName>
      <ShopId>7</ShopId>
    </person>
  </responseData>
</ScannerOrder2SaleResponse>