POS API V2: Terminals and Receipts
Use POS V2 to list your terminals, inspect their configuration, look up terminal models and retrieve receipt data for a transaction. These four read-only endpoints use the /pos/v2 prefix.
V2 here covers terminal management and receipt retrieval, not Banking or a new version of the entire ePOS payment API. Existing V1 payment endpoints and V1 terminal endpoints remain documented separately. The supplied V2 specification does not declare V1 deprecated.
Choose an Endpoint
| Task | GET endpoint | Response |
|---|---|---|
| List or filter terminals | /pos/v2/terminals | Paginated terminal list |
| Inspect one terminal | /pos/v2/terminals/{terminal_id} | Terminal configuration, permissions and receipt settings |
| Look up terminal models | /pos/v2/terminals/models | Array of model codes, descriptions and ordering positions |
| Retrieve a receipt's data | /pos/v2/terminals/receipt/{transaction_id} | Template name and template data, not a rendered receipt |
Authentication and Environments
Every request requires a bearer token and all three integration headers:
| Required Header | Purpose |
|---|---|
Authorization | Bearer authentication. Obtain access through the Identity API. |
X-Session | Identifies the authenticated merchant session. |
X-Application-Id | Identifies your application. |
X-Partner-Id | Identifies your partner integration. |
Keep authentication credentials on your backend and out of documentation, source control and browser-based applications. Send Accept: application/json; none of these GET requests has a request body. See the Identity API guide for the authenticated request flow.
The V2 Swagger does not declare public server URLs. Examples and the request console use the existing POS demo and production gateways: https://demo-api-gateway.mypos.com and https://api-gateway.mypos.com. Confirm that V2 is enabled for your integration and chosen environment with myPOS before making requests.
Make Your First Request
Retrieve the terminal list without optional filters first. Set these environment variables in your shell or secret manager, then run the request from a trusted server-side environment. Do not paste credentials into shared examples or documentation.
curl --request GET \
--url "https://demo-api-gateway.mypos.com/pos/v2/terminals" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
--header "X-Session: ${SESSION}" \
--header "X-Application-Id: ${APPLICATION_ID}" \
--header "X-Partner-Id: ${PARTNER_ID}"
- Read terminals from the response's
itemsarray. Useterminal_idto request details, nottidorserial_number. - Request
/pos/v2/terminals/{terminal_id}to inspect the settlement account, outlet, permissions and receipt settings. - Use
/pos/v2/terminals/modelswhen you need model codes for filtering. - To retrieve receipt data, supply a numeric transaction ID to
/pos/v2/terminals/receipt/{transaction_id}. These four endpoints do not include a transaction-list operation; obtain the ID from your transaction workflow, not an ePOS payment ID or UUID.
Filters and Pagination
GET /pos/v2/terminals accepts optional page and size integer query parameters, plus status, outlet and model filters. For example, append ?status=Active&model=A920Pro to filter by status and model. URL-encode query values.
The allowed status values are Active, Deactivated, Reset, ToBeConfigured, Initial and DoNotActivate. These are terminal lifecycle statuses; the specification does not define them as live connectivity or readiness indicators.
The response contains items, page, page_size, total_pages, total_count, has_previous_page and has_next_page. Continue to the next page only while has_next_page is true, retaining the same filters. Handle an empty or null items value.
The Swagger does not specify pagination defaults, maximum page size or whether the first page is zero or one. Confirm these values for your environment rather than assuming them.
Identifiers and Nullable Fields
| Field | How to Use It |
|---|---|
terminal_id | List responses use an int64; the details path and response use a string. Preserve the value when building the details URL. |
tid | A separate terminal identifier. Do not substitute it for terminal_id. |
outlet.outlet_id | An int64 in the terminal list, but a nullable string in terminal details. |
transaction_id | An int64 path parameter for receipt retrieval, not a payment ID or transaction UUID. |
For int64 identifiers, avoid parsers that round values outside your language's safe integer range. Preserve the exact digits. Many response fields are nullable; for example, is_fiscal and is_unattended are booleans in list items but nullable booleans in details. Do not treat null as false or assume a field is always populated. See V2 Models & Types for the full schemas.
Working With Receipt Data
The receipt response has tpl_name and tpl_data. The latter contains receipt fields such as merchant information, amounts, currency, card information, transaction status, logo settings and optional DCC or installment data. This endpoint returns JSON, not a PDF, HTML document or image. The specification does not include receipt templates or a rendering API.
Treat receipt data as sensitive. Avoid logging cardholder or transaction information, and handle nullable fields before displaying them.
Handle Errors
All four endpoints document the same error status codes:
| Status | Next Step |
|---|---|
400 Bad Request | Inspect the validation response's errors map and correct the request. |
401 Unauthorized | Check the bearer token and session credentials. |
403 Forbidden | Check the integration's access to the requested resource with myPOS. |
404 Not Found | Check the identifier, resource and environment. |
500 Internal Server Error | Use bounded retries with backoff; contact support if the failure persists. |
Errors use Problem Details fields such as title, status, detail and instance. Validation responses also expose errors. Read the returned details; the Swagger does not define application-specific error codes or retry limits.
Using V1 and V2 Together
Keep existing payment, refund, activation and transaction integrations on their documented endpoints. The supplied V2 definition contains no replacements for those operations. Do not migrate by replacing /v1 with /v2 in every URL.
For terminal reads, update both the request path and response parsing against the V2 reference. In particular, account for the pagination envelope, lifecycle status values, identifier types, nested configuration and nullable fields. Receipt retrieval in V2 requires a numeric transaction ID; do not reuse a V1 payment reference as that path parameter.
V2 Endpoint Reference
Download the POS V2 OpenAPI JSON or browse V2 Models & Types. The downloadable specification adds stable documentation operation IDs, explanatory descriptions and the gateway availability caveat; its parameters, responses and schemas match the supplied Swagger.