Skip to content

Undelete Machines

Undeletes the specified machines.

Verb POST
Endpoint {base-url}/machines/undelete
Max Page Size N/A

Request Body

{
  "requestFilter": {
    "machineIdentifiers": ["PROSE1234567890"]
  }
}

Filters Honored

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

The list of undeleted machines.

Response Body

[
  {
    "id": 1166,
    "assetId": 318,
    "organizationId": 1,
    "siteId": 1,
    "typeId": 0,
    "machineMasterId": 0,
    "forceUpdate": false,
    "prose": null,
    "name": "PROSEV0000000875",
    "modelNumber": "",
    "taxPercentage": 0.0,
    "commissionPercentage": 0.0,
    "callInCode": "U3EA142DP4",
    "creditProcessingFee": 0.0,
    "externalAccountsTerminalId": null,
    "createdAt": "2014-08-06T09:56:58.55",
    "provisionedAt": "0001-01-01T00:00:00",
    "canRollbackFirmware": false,
    "controllerFirmware": {
      "current": null,
      "pendingUpdate": null
    },
    "pcFirmware": {
      "current": null,
      "pendingUpdate": null
    },
    "hasPlanogramChange": true,
    "enableAccountSales": false,
    "enableCashSales": false,
    "enableCreditSales": false,
    "mode": "unknown",
    "isVisible": true,
    "isProvisioned": false,
    "enableSlotCountTracking": true,
    "useInternetPricing": false,
    "hardwareSettingsChanged": true,
    "usePlangramPrice": false,
    "useMachineTaxRate": false,
    "useMachineCommissionRate": false,
    "lastHeartBeat": {
      "server": "0001-01-01T00:00:00",
      "local": "0001-01-01T00:00:00"
    },
    "lastCashSale": {
      "server": "0001-01-01T00:00:00",
      "local": "0001-01-01T00:00:00"
    },
    "lastCreditSale": {
      "server": "0001-01-01T00:00:00",
      "local": "0001-01-01T00:00:00"
    },
    "lastAccountSale": {
      "server": "0001-01-01T00:00:00",
      "local": "0001-01-01T00:00:00"
    },
    "latestRestockToPicklist": {
      "server": "2015-04-22T10:53:20.883",
      "local": "2015-04-22T10:53:17.617"
    },
    "offerSmsReceipts": 0
  }
]

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the specified machines belongs to an organization you do not have access to.
404 MISSING_RECORD No machines were found matching the provided identifiers.