POST api/terminal/{id}/assignMachine

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

TerminalAssignment
NameDescriptionTypeAdditional 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.

Request Formats

application/json, text/json

Sample:
{
  "posKey": "b1d7084e-1946-4818-bf07-2aa40b8fa649",
  "storeID": 2,
  "storeMachineID": 3,
  "terminalGuid": "8051564e-caaa-4169-bc4d-fab90fe5ed6d",
  "scaleID": "sample string 5"
}

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">
  <POSKey>b1d7084e-1946-4818-bf07-2aa40b8fa649</POSKey>
  <ScaleID>sample string 5</ScaleID>
  <StoreID>2</StoreID>
  <StoreMachineID>3</StoreMachineID>
  <TerminalGuid>8051564e-caaa-4169-bc4d-fab90fe5ed6d</TerminalGuid>
</TerminalAssignment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.