---
title: "Get Terminal ID"
method: POST
path: "/public/getTerminalId"
tags: ["Merchant Portal services API"]
---

# Get Terminal ID

`POST /public/getTerminalId`

## Request

- Base URL: `https://test.tecs.at/merchantservices`
- URL: `https://test.tecs.at/merchantservices/public/getTerminalId`
- Auth: one of:
  - HTTP bearer
  - HTTP basic

Searches by given array of deviceSerialNumbers in 'TecsTerm' table in columns hwSerialNo or mpExpectedserialno.<br> 
If any duplicates mpExpectedserialno are found, put them the response objects to property duplicateTerminalIds.<br>

Required role for operation: SYSTEM_GET_TERMINAL_ID.<br>
Create MPauditlog record with event type : GetTerminalId (24).<br>

Supports authentication with the following types of tokens:<br>
* <b>Bearer</b> <token>, which is a Bearer token authentication. The bearer token is a cryptic string, usually generated by the server in response to a login request.  
* <b>Basic</b> &lt;credentials&gt;, where credentials is the Base64 encoding of username and password joined by a single colon :, CAS login service will be called for the given username and password for validating credentials.

## Request body

- GetTerminalIdRequest
  - `deviceSerialNumber` string[], required

## Response `200`

Successful operation

- GetTerminalIdResponse
  - `responseCode` integer
  - `responseMessage` string
  - `terminals` TerminalInfo[]
    - `termn` string
    - `hwSerialNo` string
    - `mpExpectedSerialNo` string
  - `duplicateTerminalIds` string[]

## Other responses

- `400`: Bad request. e.g, Input validation failed or there already exist a template with the same name.
- `401`: Unauthenticated - Authentication failed
- `403`: Unauthorized - Missing role SYSTEM_GET_TERMINAL_ID
- `500`: Internal server error

## Changes

- **2026-11-03** `6e0e5a5a2b2f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bluefin-com/apis/merchant-services/changes/public/getTerminalId/post.md)

---

[API](https://skmtc.dev/bluefin-com/apis/merchant-services.md) - [All operations](https://skmtc.dev/bluefin-com/apis/merchant-services/llms.txt) - [OpenAPI document](https://skmtc.dev/bluefin-com/apis/merchant-services/revisions/6e0e5a5a2b2f?raw)
