Machines
This resource represents machines.
Get machines
GET /api/Machine
Request
PARAMETERLESS NOTE
Without query parameters, this endpoint will only return running machines for the currently authenticated loyalty/retail user. For non-retail users the response will always be empty.
To get a specific machine, or all machines at a location, use one of the query parameters below.
Query parameters
Response
Get machine by id
Alternatively can use the ?MachineID query string with the base /Machine endpoint. See above.
Request
Path parameters
GET /api/Machine/{machID}
Response
Response returned same as base /Machine GET.
Get machines active for a particular WDF order
Request
Path parameters
Response
Response returned same as base /Machine GET.
GET /api/Location/{locID}/order/{orderID}/machine
Edit machine
Request to edit values for a specific machine.
Raw Body must be provided with request details consisting of one or more of the following editable fields. Response will be returned as Machine GET.
Request
Request body (application/json)
Response
Response returned same as base /Machine GET.
POST /api/Machine/{machID}
EXAMPLE: Setting a machine with label "Washer1" and Last-Service Date of Oct31,2020
{
"Label": "Washer1",
"LastServiceDate": "2020-10-31T00:00:00"
}Get machine history
Retrieve machine status history for a particular machine. Similar to admin site, only changes in status or error codes will be listed. Default 60 change records.
Request
Query parameters
Response
GET /api/Machine/{machID}/History
Get multiple machine history
Retrieve machine status history for machines at an account or location. Similar to admin site, only changes in status or uplinks will be listed.