Skip to main content

Overview

Actions are commands you send to the WebSocket API to interact with terminals. Each action has a specific request format and returns a corresponding response.

getTerminals

Request a list of available terminals in your group.

Request

Response

Response Fields

Code Examples


payment

Initiate a payment request to a terminal. The terminal processes the payment and returns the result via a paymentComplete push notification.

Request

Parameters

string
required
Must be "payment"
string
required
The terminal identifier to send the payment to. Resolved as deviceId first, falling back to connectionId. See Terminal ID Resolution.
object
required
The payment details

Message Sent to Terminal

When you send a payment action, the terminal receives:

Response

The payment result is delivered via a paymentComplete push notification when the terminal finishes processing.

Code Examples

Error Responses


ping / pong

Keep-alive mechanism to maintain connection health and detect stale connections.

Ping Request

Pong Response

Code Examples

Server-Initiated Pong

The server may also send pong messages to check client responsiveness. Your client should update its activity tracking when receiving these messages.

Error Response Format

All error responses follow this format:

Common Errors

Next Steps

Push Notifications

Handle payment and terminal status notifications

Data Types Reference

Complete schema documentation

Quickstart

Review connection and authentication

Introduction

Return to Terminal Gateway overview