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": "e7f88f1b-ebaa-4d22-ac62-a365b847e184",
"storeID": 2,
"storeMachineID": 3,
"terminalGuid": "d1a884e8-a3d2-43ff-93b7-d398c444c07b",
"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>e7f88f1b-ebaa-4d22-ac62-a365b847e184</POSKey> <ScaleID>sample string 5</ScaleID> <StoreID>2</StoreID> <StoreMachineID>3</StoreMachineID> <TerminalGuid>d1a884e8-a3d2-43ff-93b7-d398c444c07b</TerminalGuid> </TerminalAssignment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.