POST api/machines/{machineID}/uploadTransactions?regCode={regCode}
Upload Transaction Collection Data
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
machineID |
The machineID of the machine that the transaction data was received from. |
string |
Required |
regCode |
The registration code assigned to the tablet. Contained in RegistrationToken returned by "RequestRegistrationToken" |
string |
None. |
Body Parameters
TransactionCollectionName | Description | Type | Additional information |
---|---|---|---|
CollectionTime | date |
None. |
|
Transactions | Collection of TransactionRecord |
None. |
Request Formats
application/json, text/json
Sample:
{ "CollectionTime": "2025-04-04T02:43:56.6471747+00:00", "Transactions": [ { "TransactionType": 1, "CardNumber": 2, "StartingBalance": 3, "EndingBalance": 4, "Year": 5, "Month": 6, "Day": 7, "Hour": 8, "Min": 9, "Sec": 10 }, { "TransactionType": 1, "CardNumber": 2, "StartingBalance": 3, "EndingBalance": 4, "Year": 5, "Month": 6, "Day": 7, "Hour": 8, "Min": 9, "Sec": 10 } ] }
text/html
Sample:
{"CollectionTime":"2025-04-04T02:43:56.6471747+00:00","Transactions":[{"TransactionType":1,"CardNumber":2,"StartingBalance":3,"EndingBalance":4,"Year":5,"Month":6,"Day":7,"Hour":8,"Min":9,"Sec":10},{"TransactionType":1,"CardNumber":2,"StartingBalance":3,"EndingBalance":4,"Year":5,"Month":6,"Day":7,"Hour":8,"Min":9,"Sec":10}]}
application/xml, text/xml
Sample:
<TransactionCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GI.Tablet.Interface"> <CollectionTime>2025-04-04T02:43:56.6471747+00:00</CollectionTime> <Transactions> <TransactionRecord> <CardNumber>2</CardNumber> <Day>7</Day> <EndingBalance>4</EndingBalance> <Hour>8</Hour> <Min>9</Min> <Month>6</Month> <Sec>10</Sec> <StartingBalance>3</StartingBalance> <TransactionType>1</TransactionType> <Year>5</Year> </TransactionRecord> <TransactionRecord> <CardNumber>2</CardNumber> <Day>7</Day> <EndingBalance>4</EndingBalance> <Hour>8</Hour> <Min>9</Min> <Month>6</Month> <Sec>10</Sec> <StartingBalance>3</StartingBalance> <TransactionType>1</TransactionType> <Year>5</Year> </TransactionRecord> </Transactions> </TransactionCollection>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Upload Transaction Collection Data
None.