POST cyapi/pos/calDecMoney
Request Information
URI Parameters
None.
Body Parameters
CalDecMResquest| Name | Description | Type | Additional information |
|---|---|---|---|
| serverBillId | integer |
None. |
|
| paymentList | Collection of Payment |
None. |
|
| sktno | string |
None. |
|
| terminalNo | string |
None. |
|
| proType | integer |
None. |
|
| version | string |
None. |
|
| timeStamp | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"serverBillId": 1,
"paymentList": [
{
"id": 1,
"name": "sample string 2",
"paymentType": 3,
"changeType": 4,
"yhjid": 5,
"payedMoney": 6,
"morePayedMoney": 7,
"realuserMoney": 8,
"zlclfs": 9,
"mZLYYJE": 10,
"xssx": 11,
"bj_jf": 12,
"yYje": 13,
"sumSkfsMoney": 14,
"sumSkfsNumber": 15
},
{
"id": 1,
"name": "sample string 2",
"paymentType": 3,
"changeType": 4,
"yhjid": 5,
"payedMoney": 6,
"morePayedMoney": 7,
"realuserMoney": 8,
"zlclfs": 9,
"mZLYYJE": 10,
"xssx": 11,
"bj_jf": 12,
"yYje": 13,
"sumSkfsMoney": 14,
"sumSkfsNumber": 15
}
],
"sktno": "sample string 2",
"terminalNo": "sample string 3",
"proType": 4,
"version": "sample string 5",
"timeStamp": "sample string 6"
}
application/xml, text/xml
Sample:
<CalDecMResquest 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>
<paymentList>
<Payment>
<ChangeType>4</ChangeType>
<Id>1</Id>
<MorePayedMoney>7</MorePayedMoney>
<Name>sample string 2</Name>
<PayedMoney>6</PayedMoney>
<PaymentType>3</PaymentType>
<Yhjid>5</Yhjid>
<bj_jf>12</bj_jf>
<mZLYYJE>10</mZLYYJE>
<realuserMoney>8</realuserMoney>
<sumSkfsMoney>14</sumSkfsMoney>
<sumSkfsNumber>15</sumSkfsNumber>
<xssx>11</xssx>
<yYje>13</yYje>
<zlclfs>9</zlclfs>
</Payment>
<Payment>
<ChangeType>4</ChangeType>
<Id>1</Id>
<MorePayedMoney>7</MorePayedMoney>
<Name>sample string 2</Name>
<PayedMoney>6</PayedMoney>
<PaymentType>3</PaymentType>
<Yhjid>5</Yhjid>
<bj_jf>12</bj_jf>
<mZLYYJE>10</mZLYYJE>
<realuserMoney>8</realuserMoney>
<sumSkfsMoney>14</sumSkfsMoney>
<sumSkfsNumber>15</sumSkfsNumber>
<xssx>11</xssx>
<yYje>13</yYje>
<zlclfs>9</zlclfs>
</Payment>
</paymentList>
<serverBillId>1</serverBillId>
</CalDecMResquest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CalDecMResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| data | CalDecMData |
None. |
|
| retCode | string |
None. |
|
| retMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"decMoney": 1,
"decGoodsList": [
{
"goodsInx": 1,
"goodsDecMoney": 2,
"decMoneyIsExpense": 3
},
{
"goodsInx": 1,
"goodsDecMoney": 2,
"decMoneyIsExpense": 3
}
]
},
"retCode": "sample string 1",
"retMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<CalDecMResponse 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>
<data>
<decGoodsList>
<DecMGoods>
<DecMoneyIsExpense>3</DecMoneyIsExpense>
<GoodsDecMoney>2</GoodsDecMoney>
<GoodsInx>1</GoodsInx>
</DecMGoods>
<DecMGoods>
<DecMoneyIsExpense>3</DecMoneyIsExpense>
<GoodsDecMoney>2</GoodsDecMoney>
<GoodsInx>1</GoodsInx>
</DecMGoods>
</decGoodsList>
<decMoney>1</decMoney>
</data>
</CalDecMResponse>