POST api/terminal/{id}/assignMachine
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
TerminalAssignment| Name | Description | Type | Additional information |
|---|---|---|---|
| POSKey |
Unique key used to identify the physical device that is to be linked |
globally unique identifier |
None. |
| StoreID |
Store this machine belongs to |
integer |
None. |
| StoreMachineID |
Machine Id of the machine at the store level (ScaleDescription.StoreScaleID). This will be used as a back-up if lookup via fails |
integer |
None. |
| TerminalGuid |
The terminal this machine will be linked to |
globally unique identifier |
None. |
| ScaleID |
unique id of the physical machine |
string |
None. |
| MachineName |
Name of the machine |
string |
None. |
| MachineDescription |
Description of the machine |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"posKey": "b9205474-1a1c-444a-95de-db4540f02708",
"storeID": 2,
"storeMachineID": 3,
"terminalGuid": "f804997d-bd25-4842-b4ba-1c01cd795955",
"scaleID": "sample string 5",
"machineName": "sample string 6",
"machineDescription": "sample string 7"
}
application/xml, text/xml
Sample:
<TerminalAssignment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Pos.Devices"> <MachineDescription>sample string 7</MachineDescription> <MachineName>sample string 6</MachineName> <POSKey>b9205474-1a1c-444a-95de-db4540f02708</POSKey> <ScaleID>sample string 5</ScaleID> <StoreID>2</StoreID> <StoreMachineID>3</StoreMachineID> <TerminalGuid>f804997d-bd25-4842-b4ba-1c01cd795955</TerminalGuid> </TerminalAssignment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.