# List terminals Fetches an paginated list of terminals Endpoint: GET /in-person/terminals Version: 1.1.0 Security: secretApiKeyAuth ## Header parameters: - `Account` (string) The linked accountId (use this when you want to list in person terminals under a linked account) Example: "ac_3fe8398f-8cdb-43a3-9be2-806c4f84c327" ## Query parameters: - `ascending` (boolean) Control the order (newest or oldest) in which the items are returned. false will arrange the results with newest first, whereas true shows oldest first. The default is false. - `limit` (integer) Control how many items are return in a given page The max limit we allow is 50. The default is 10. Example: 10 - `startsAfter` (string) A token to identify the item to start querying after. This is used to get the next page of results after a previous response returned a non-null paginationToken. The value of the paginationToken field from that response should be supplied here, to retrieve the next page of results for that timestamp range. Example: "tml_01FCTS1XMKH9FF43CAFA4CXT3P_1641912473" ## Response 200 fields (application/json): - `items` (array) - `items.id` (string) The unique Id of the terminal Example: "tml_01FCTS1XMKH9FF43CAFA4CXT3P" - `items.name` (string) Your name for the terminal. This can be used for display purposes. Example: "Front of house" - `items.location` (object) The location where the terminal resides - `items.location.id` (string) The unique location ID Example: "iploc_01FCTS1XMKH9FF43CAFA4CXT3P" - `items.device` (object) - `items.device.type` (string) The type of the device Example: "PAX A920 Pro" - `items.device.serialNumber` (string) The serial number of the device Example: "25050808291100" - `items.action` (object,null) The most recent action initiated on the terminal. - `items.action.type` (string) The type of action in progress on the terminal. Enum: "Transaction" - `items.action.status` (string) The status of the action on the terminal Enum: "InProgress", "Cancelled", "Failed", "Succeeded" - `items.action.id` (string) The unique ID of the action Example: "tmlact_01K7HNYENCZF6A784V5T625108_01K7KHC9ESPB1VZ9APGF3R5X7W" - `items.action.error` (object,null) - `items.action.transaction` (object,null) - `items.action.createdTimestamp` (integer) The epoch timestamp (seconds) when the action was initiated on the terminal Example: 1470989538 - `items.action.completedTimestamp` (integer,null) The epoch timestamp (seconds) when the action was completed on the terminal. This field will be populated once the action reaches a status of Cancelled, Failed or Succeeded. Example: 1470989538 - `items.metadata` (object) Your own custom key-value data for this object. These will be sent with any associated events on your webhooks. You can have a maximum of 10 pieces of metadata. Keys must be between 1 and 30 characters in length. Values must be between 1 and 250 characters in length. Example: {"internalID":"1"} - `items.createdTimestamp` (integer) The epoch timestamp (seconds) when the object was created Example: 1470989538 - `items.lastUpdatedTimestamp` (integer) The epoch timestamp (seconds) when the object was last updated Example: 1470989538 - `paginationToken` (string) A token to use for getting the next page of results - send the same request with this value in the 'paginationToken' query parameter. This field is null when there are no further items to return Example: "tml_01FCTS1XMKH9FF43CAFA4CXT3P_1641912473" ## Response 400 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON" ## Response 500 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON"