# MTP Common APIs

MTP stands for **Multi-Touchpoint**. The MTP Common APIs provide the shared interfaces used by retail store touchpoints, including staffed **Point-of-Sale (POS)** terminals and **Self-Checkout (SCO)** terminals.

## Overview

The APIs support the complete retail touchpoint workflow: managing sessions and shifts, building and finalizing baskets, processing payments, operating peripherals, and receiving asynchronous client and device updates.

## Capabilities

- **Sessions, clients, and shifts**: create sessions, report client status, and sign on, break, resume, declare, and sign off shifts.
- **Baskets and checkout**: create and recall baskets; add articles, barcodes, fuel, customers, loyalty members, returns, discounts, and vouchers; handle restrictions; select output options; and complete checkout and finalization.
- **Payments and documents**: execute and manage payments, preauthorizations, financial advice, payment responses, document search and details, printouts, and digital receipts.
- **Peripherals and store equipment**: manage scanners, RFID readers, identity document readers, keylocks, printers, EFT terminals, fiscal devices, and pole lights.
- **Configuration and shared services**: retrieve layouts, menus, payment methods, reasons, application settings, translations, permissions, assets, navigator configuration, and business-unit device assignments.
- **Forecourt and fuel**: retrieve fuel-point status and transactions and manage fuel-point presets.
- **Asynchronous updates**: receive payment, fuel-point, peripheral, shift, end-of-day, printout, basket-operation, scanner, and identity-document events over WebSocket.

## API Specifications

- **Common REST API**: synchronous HTTP API for retail touchpoint operations.
- **Common Async API**: asynchronous WebSocket API for client and device events.

## Security and Transport

The APIs use **OAuth 2.0** for authentication. The REST API uses **HTTPS** and the asynchronous API uses secure WebSocket (`wss`) connections.

## Available Versions

- **v2** - Current stable version
