GET /v1.1/devices 

 

Request headers

Attribute

Type

Condition

Description

X-Request-ID

UUID

Mandatory

ID of the request, unique to the call.

Authorization

String

Mandatory

The oAuth2 Bearer token

API-Key

String

Mandatory

The Client ID obtained from the myPOS Account

 

 

Query parameters

Attribute

Type

Condition

Description

page

Number

Optional

The page with transactions to be returned. Default is 1

size

Number

Optional

The number of returned transactions transactions. Possible values are 1÷100. Default value is 20. 

terminal_id

String

Optional

The unique identifier of the POS device.

serial_number

String

Optional

The serial number of the POS device.

model

String

Optional

The model of the POS device.

  

 

Response headers

Attribute

Type

Condition

Description

X-Request-ID

UUID

Mandatory

ID of the request, unique to the call.

Content-Type

String

Mandatory

application/json

 

 

Response body

Attribute

Type

Condition

Description

devices

List of

Devices

Mandatory

A list of device objects.

 

 

Examples

curl -X GET 'https://devices-api.mypos.com/v1.1/devices/transactions?page=1&size=5' \
  -H 'Authorization: Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP' \
  -H 'API-Key: MY_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'X-Request-ID: 232465ab-66ea-4776-b3f0-f7a123f988e4' \
  -d '{}'
import requests
 
requests.request(
    'GET',
    url='https://devices-api.mypos.com/v1.1/devices/transactions?page=1&size=5',
    data=dict(),
    headers={
        'Authorization': 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
        'Content-Type': 'application/json',
        'X-Request-ID': '232465ab-66ea-4776-b3f0-f7a123f988e4'
    }
)
const request = require("request");
 
const options = {
    method: 'GET',
    url: 'https://devices-api.mypos.com/v1.1/devices/transactions?page=1&size=5',
    body: {},
    json: true,
    headers: {
        'Authorization': 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
        'Content-Type': 'application/json',
        'X-Request-ID': '232465ab-66ea-4776-b3f0-f7a123f988e4'
    }
};
 
request(options, (error, response, body) => {
 
});
<?php
 
$request = new HttpRequest();
$request->setUrl('https://devices-api.mypos.com/v1.1/devices/transactions?page=1&size=5');
$request->setMethod(HTTP_METH_GET);
 
$request->setHeaders(array(
  'Authorization' => 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
  'Content-Type' => 'application/json',
  'X-Request-ID' => '232465ab-66ea-4776-b3f0-f7a123f988e4'
));
 
$request->setBody('{}');
 
try {
  $response = $request->send();
 
  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

{
    "devices": [
        {
            "terminal_id": "90005826",
            "serial_number": "D20050667462",
            "model": "D200"
        },
        {
            "terminal_id": "90005822",
            "serial_number": "A9200820299622",
            "model": "A920"
        },
        {
            "terminal_id": "90005813",
            "serial_number": "Q20C1140056053",
            "model": "Q20C"
        },
        {
            "terminal_id": "90005811",
            "serial_number": "IM201500000345",
            "model": "IM20"
        },
        {
            "terminal_id": "90005753",
            "serial_number": "D21051004170",
            "model": "D210"
        },
        {
            "terminal_id": "90005730",
            "serial_number": "K300W801487",
            "model": "K300"
        }
    ],
    "pagination": {
        "page": 1,
        "size": 20,
        "total": 6
    }
}