GET /v1/devices/<terminal_id>
Path parameters
Attribute |
Type |
Condition |
Description |
terminal_id |
String |
Mandatory |
The unique reference of the device. |
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. |
Content-Type |
String |
Mandatory |
application/json |
Response body
Attribute |
Type |
Condition |
Description |
— |
Mandatory |
Details of the device. |
Examples
curl -X GET \ https://devices-api.mypos.com/v1/devices/90005826 \ -H 'Authorization: Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP' \ -H 'Content-Type: application/json' \ -H 'X-Request-ID: 232465ab-66ea-4776-b3f0-f7a123f988e4'
import requests requests.get( url='https://devices-api.mypos.com/v1/devices/90005826', 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/devices/90005826', 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/devices/90005826'); $request->setMethod(HTTP_METH_GET); $request->setHeaders(array( 'Authorization' => 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP', 'Content-Type' => 'application/json', 'X-Request-ID' => '232465ab-66ea-4776-b3f0-f7a123f988e4' )); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }
{ "last_transaction_date": "2019-10-22 15:38:00", "terminal_name": "D20050667462", "outlet_id": 73, "outlet_name": "", "device_currency": "EUR", "status": "Active", "transactions_count": 5, "settlement_account_number": "01182161", "settlement_account_name": "Primary currency", "settlement_account_currency": "EUR", "billing_descriptor": "D20050667462", "receipt_footer_row_1": "", "receipt_footer_row_2": "", "forbidden_preauthorization": 0, "forbidden_moto": 0, "forbidden_reversal": 0, "forbidden_refund": 0, "forbidden_topup": 0, "card_topup_enabled": 0, "receipt_address_preference": 0, "terminal_id": "90005826", "serial_number": "D20050667462", "model": "D200" }