GET api/Bag/GetById/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Bag| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| DeviceId | globally unique identifier |
None. |
|
| DeviceNumber | string |
None. |
|
| BagNumber | string |
None. |
|
| SealNumber | string |
None. |
|
| Status | string |
None. |
|
| TransactionDate | date |
None. |
|
| TransactionReference | string |
None. |
|
| TotalPaid | decimal number |
None. |
|
| TotalReceived | decimal number |
None. |
|
| TotalEOD | decimal number |
None. |
|
| Contents | MoneyCounter |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "09fad1e7-48f0-41c6-94f0-b04d8a4a6fac",
"DeviceId": "cab2e39e-e185-4792-b3d0-05ef8ce4c1a3",
"DeviceNumber": "sample string 3",
"BagNumber": "sample string 4",
"SealNumber": "sample string 5",
"Status": "sample string 6",
"TransactionDate": "2025-12-14T16:46:09.6587965+00:00",
"TransactionReference": "sample string 8",
"TotalPaid": 9.0,
"TotalReceived": 10.0,
"TotalEOD": 11.0,
"Contents": {
"Id": "51b3f267-f2fb-4bbe-a830-851410ac4716",
"PaymentItemId": "fff13eaa-ff33-4673-8a30-ebd6d65a7439",
"OrderChangeModelId": "532bd61e-c1c4-4f61-8813-583d1f070df4",
"MachineOneRand": 2,
"MachineTwoRand": 3,
"MachineFiveRand": 4,
"MachineTenRand": 5,
"MachineTwentyRand": 6,
"MachineFiftyRand": 7,
"MachineOneHundredRand": 8,
"MachineTwoHundredRand": 9,
"OneCents": 10,
"TwoCents": 11,
"FiveCents": 12,
"TenCents": 13,
"TwentyCents": 14,
"FiftyCents": 15,
"OneRand": 16,
"TwoRand": 17,
"FiveRand": 18,
"TenRand": 19,
"TwentyRand": 20,
"FiftyRand": 21,
"OneHundredRand": 22,
"TwoHundredRand": 23
}
}
application/xml, text/xml
Sample:
<Bag xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CashAutomation.Entities.ApiModels">
<BagNumber>sample string 4</BagNumber>
<Contents xmlns:d2p1="http://schemas.datacontract.org/2004/07/CashAutomation.Entities">
<d2p1:FiftyCents>15</d2p1:FiftyCents>
<d2p1:FiftyRand>21</d2p1:FiftyRand>
<d2p1:FiveCents>12</d2p1:FiveCents>
<d2p1:FiveRand>18</d2p1:FiveRand>
<d2p1:Id>51b3f267-f2fb-4bbe-a830-851410ac4716</d2p1:Id>
<d2p1:MachineFiftyRand>7</d2p1:MachineFiftyRand>
<d2p1:MachineFiveRand>4</d2p1:MachineFiveRand>
<d2p1:MachineOneHundredRand>8</d2p1:MachineOneHundredRand>
<d2p1:MachineOneRand>2</d2p1:MachineOneRand>
<d2p1:MachineTenRand>5</d2p1:MachineTenRand>
<d2p1:MachineTwentyRand>6</d2p1:MachineTwentyRand>
<d2p1:MachineTwoHundredRand>9</d2p1:MachineTwoHundredRand>
<d2p1:MachineTwoRand>3</d2p1:MachineTwoRand>
<d2p1:OneCents>10</d2p1:OneCents>
<d2p1:OneHundredRand>22</d2p1:OneHundredRand>
<d2p1:OneRand>16</d2p1:OneRand>
<d2p1:OrderChangeModelId>532bd61e-c1c4-4f61-8813-583d1f070df4</d2p1:OrderChangeModelId>
<d2p1:PaymentItemId>fff13eaa-ff33-4673-8a30-ebd6d65a7439</d2p1:PaymentItemId>
<d2p1:TenCents>13</d2p1:TenCents>
<d2p1:TenRand>19</d2p1:TenRand>
<d2p1:TwentyCents>14</d2p1:TwentyCents>
<d2p1:TwentyRand>20</d2p1:TwentyRand>
<d2p1:TwoCents>11</d2p1:TwoCents>
<d2p1:TwoHundredRand>23</d2p1:TwoHundredRand>
<d2p1:TwoRand>17</d2p1:TwoRand>
</Contents>
<DeviceId>cab2e39e-e185-4792-b3d0-05ef8ce4c1a3</DeviceId>
<DeviceNumber>sample string 3</DeviceNumber>
<Id>09fad1e7-48f0-41c6-94f0-b04d8a4a6fac</Id>
<SealNumber>sample string 5</SealNumber>
<Status>sample string 6</Status>
<TotalEOD>11</TotalEOD>
<TotalPaid>9</TotalPaid>
<TotalReceived>10</TotalReceived>
<TransactionDate>2025-12-14T16:46:09.6587965+00:00</TransactionDate>
<TransactionReference>sample string 8</TransactionReference>
</Bag>