Retrieve the calling terminal
const url = 'https://terminal.api.example.com/v1/terminal/me';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://terminal.api.example.com/v1/terminal/meCalled by a paired terminal, over mutual TLS with its certificate, to learn who that certificate says it is: the terminal, and the merchant and store it is assigned to. The certificate is checked on this call, so a revoked, replaced or expired one is refused here as on any terminal call.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The terminal. Sent with Cache-Control: no-store.
object
The terminal’s id, as its pairing answered it.
The tenant of the merchant the terminal is assigned to.
The merchant the terminal is assigned to.
The store it is assigned to, as the operations team labelled it. Empty when none was given.
The certificate this call presented.
object
Its serial number, in lower case hex.
When it expires, as a Unix timestamp.
Always true. A terminal is a live device; there are no test terminals.
Example
{ "object": "terminal", "id": "3f6c2a9e-8b41-4d7a-9e25-0c1b7d4f8a63", "store_label": "Front counter", "certificate": { "serial_number": "5e1f0c9a3b7d2e48", "expires_at": 1790999400 }, "livemode": true}authentication_failure with terminal_credential_refused: the certificate does not count, because it is unknown, was revoked or replaced, or has expired, or the terminal was moved to another store or merchant since it was paired. Pair the terminal again. See Pairing a terminal.
object
object
A stable name for this refusal. Branch on this, never on message.
For the developer reading a log. May be reworded.
The field or parameter at fault, when there is one.
Example
{ "error": { "type": "authentication_failure", "code": "terminal_credential_refused", "message": "This terminal's certificate is not honoured. Pair the terminal again with a new Pairing Code.", "param": null, "request_id": "req_7a2e91c04b5d" }}dependency_failure with service_unavailable: something on our side, or a payment network behind it, did not answer. This call only reads, so nothing was changed; retry.
object
object
A stable name for this refusal. Branch on this, never on message.
For the developer reading a log. May be reworded.
The field or parameter at fault, when there is one.
Example
{ "error": { "type": "validation_failure" }}