Card-present terminals · back office · TMS · reporting

Handpoint API

Take card-present payments on PAX terminals and HiLite readers from a server, an on-terminal Android app, a mobile app or a desktop POS. Reverse, refund, capture and charge stored cards from your back office. Board merchants and terminals, and pull transaction data for reporting.

Overview

Introduction

Handpoint connects your software to in-person payment terminals. Card data is encrypted on the terminal before any software sees it. Handpoint is a PCI DSS v4.0 Level 1 Service Provider and its Android SDK is PCI-P2PE validated.

This page covers every Handpoint surface an integrator uses:

  • Cloud API: your server tells a PAX terminal to run a sale, refund, pre-authorization or tokenization.
  • Back office: server-side operations with no terminal: reversals, MOTO on a stored token, tip adjustment, capture, batch.
  • SDKs: Android (on the PAX terminal, or paired with a HiLite reader), iOS (HiLite), JavaScript, Windows (.NET) and Cordova.
  • Device commands: remote reboot, locale, brightness, unattended mode and security policy.
  • TMS API: create merchants, add terminals, assign and publish them, mint Cloud API keys.
  • Transaction Feed API: read-only transaction data for reporting and reconciliation.
Using Handpoint with Merchant360

EPI merchants take card-present sales with the Merchant360 Payment App on PAX readers. Your software sends the sale through the Merchant360 API and gets back the same payment object a keyed charge returns, with your Merchant360 key. You do not need a Handpoint API key, device type or serial number. This page is for direct Handpoint integrations.

Merchant360 card-present docs
Pick one per workflow

Integration paths

Different parts of one product can use different paths. Back-office operations work alongside every path.

PathUse it whenTerminalCredential
Cloud APIYour POS runs on a server, browser or any stack and drives a separate terminal.PAX (Wi-Fi, 4G, Ethernet)ApiKeyCloud (merchant)
Android SDK (PAX)Your Android app runs on the PAX terminal itself.PAXsharedSecret, optional cloudApiKey
Android SDK (HiLite)Your Android phone or tablet app pairs with a compact reader.HiLite (Bluetooth)sharedSecret
iOS SDK (HiLite)Your iPhone or iPad app pairs with a compact reader.HiLite (Bluetooth / Lightning)sharedSecret
JavaScript SDKBrowser or Node software drives a PAX terminal through the Cloud.PAXApiKeyCloud
Windows SDK (.NET)Windows POS drives a PAX terminal (Cloud) or a HiLite (Bluetooth).PAX or HiLitesharedSecret, cloudApiKey for PAX
Cordova / IonicHybrid mobile app.PAX (Cloud) or HiLiteapiKey or sharedSecret
Back officeOperations with no cardholder at the terminal.NoneApiKeyCloud
  • HiLite readers connect over Bluetooth to the native SDKs only. They do not work with the Cloud API.
  • HiLite does not support on-device pre-authorization, keyed entry on the reader, or getTransactionStatus.
  • Device names on the Cloud paths are serialNumber-terminalType, for example 0821032395-PAXA920.
One credential per surface

Authentication

ApiKeyCloudoptionalheader
Merchant Cloud API key. Valid for every terminal assigned to that merchant. A merchant can have several keys; keys are never shared across merchants. Minted through the TMS API.
sharedSecret (SSK)optionalSDK credential
64-character hex string, one per merchant. Authenticates the Android, iOS, Windows and Cordova SDKs to the terminal or reader. GET /devices returns it as ssk.
cloudApiKeyoptionalSDK credential
Android PAX: needed for keyed entry, getTransactionStatus() and integrated (cloud) mode. Windows: needed for the PAX Cloud connection.
Partner credentialsoptionalTMS
TMS calls use a partner login, separate from any merchant key.
AnalyticsApiKeyoptionalheader
Transaction Feed key. Separate from the Cloud API key and read-only.

Multi-merchant POS software must map each merchant to its own key. Debug (.io) and production (.com) credentials are not interchangeable, and a merchant going live gets new credentials; it does not inherit the DEMO key.

Header per surface
↑ Request – what you send
# Cloud API, back office, device commands
ApiKeyCloud: <merchant-api-key>

# TMS API (tmsdoc.handpoint.com reference)
Authorization: Bearer <accessToken from POST /ops/login>

# Transaction Feed API
AnalyticsApiKey: <analytics-api-key>
Wrong or missing key
↑ Request – what you send
curl -X GET https://cloud.handpoint.com/devices \
  -H "ApiKeyCloud: <merchant-api-key>"
Pick the host by terminal type

Environments and hosts

TerminalBase URLNotes
PAX debug devicecloud.handpoint.ioStaging. Watermark on screen. Accepts unsigned APKs.
PAX production device, DEMO merchantcloud.handpoint.comRecommended test path. ViscusDummy mock acquirer, no funds move, any card works.
PAX production device, live merchantcloud.handpoint.comReal acquirer, real funds.
HiLiteNone (Bluetooth)No staging path. Test against a DEMO merchant on production.
  • Choose the host by the terminal type, not by where your code runs. Set it at configuration time.
  • /transactions/{ref}/status lives only on transactions.*. Calling it on cloud.* returns 404.
  • Amount units differ by endpoint family. POST /transactions and the SDKs take minor units as digit strings ("1000" = 10.00). /moto/*, /reversal and /preauthorization/* take decimal major units ("10.00"). Tip adjustment takes a major-unit number (8 = 8.00). Do not share formatting code between them.
↑ Request – what you send
# Cloud API + back office + device commands
https://cloud.handpoint.com          # production terminals: DEMO and live merchants
https://cloud.handpoint.io           # PAX debug terminals (staging)

# Status / recovery by transactionReference
https://transactions.handpoint.com
https://transactions.handpoint.io

# Transaction Feed
https://txnfeed.handpoint.com
https://txnfeed.handpoint.io

# Hosted receipts
https://receipts.handpoint.com/receipts/{transactionID}/customer.html
https://receipts.handpoint.com/receipts/{transactionID}/merchant.html
GET /devices

List devices and terminal types

Returns the terminals assigned to the merchant behind the key. A serial missing from this list fails with error 1004 on POST /transactions. Send the returned serial_number and terminal_type on every terminal operation.

terminal_type accepts the long form or the short alias (PAXA920PRO = A920PRO):

ValueAliasNotes
PAXA920A920
PAXA920PROA920PROPrinter
PAXA920MAXA920MAXPrinter
PAXA910A910Printer
PAXA910SA910SPrinter
PAXA930A930Printer
PAXA960A960Printer
PAXA6650A6650Printer
PAXA8700A8700Printer
PAXA8900A8900Printer
PAXA80A80Printer and keyboard
PAXA800A800Printer
PAXA30A30Keyboard
PAXA35A35Keyboard
PAXA50A50
PAXA60A60
PAXA77A77
PAXA3700A3700
PAXA6630A6630
PAXARIES6ARIES6Keyboard
PAXARIES8ARIES8Keyboard
PAXE500E500Printer
PAXE600E600Printer
PAXE700E700Printer
PAXE800E800Printer
PAXIM25IM25
PAXIM30IM30
TELPOTPS900TPS900Telpo, printer

HiLite and DATECS devices (HILITE, MPED400 and similar) use Bluetooth and do not work with the Cloud API.

↑ Request – what you send
curl -X GET https://cloud.handpoint.com/devices \
  -H "ApiKeyCloud: <merchant-api-key>"
2 requests per second per key

Rate limits

The Cloud API allows 2 requests per second per ApiKeyCloud, across POST /transactions and every back-office endpoint. Above that it returns 429. Back off and retry after 1 second.

One terminal runs one transaction at a time (1001 Device is busy), so the limit matters when one key drives several terminals in parallel. Each merchant key has its own limit.

↓ Response – what comes back
{
  "error": {
    "statusCode": 429,
    "name": "TooManyRequestsError",
    "message": "Too many requests, please try again later."
  }
}
DEMO merchant · ViscusDummy

Testing and trigger amounts

Every integration uses real hardware; there is no virtual terminal. A DEMO merchant runs against ViscusDummy, a mock acquirer: any physical card works, no funds move, and the amount alone decides the outcome. Integration Support provides DEMO credentials and can enable tokenization on the DEMO merchant for MOTO testing.

Amount (minor units)finStatusBehavior
3779DECLINEDIssuer code 01, Refer to card issuer
3784DECLINEDIssuer code 05, Not authorized
3793DECLINEDIssuer code 04, Pick-up card
3757PARTIAL_APPROVALPartial amount approved (US)
3768FAILEDError connecting to authorization provider (timeout)
3741FAILEDProcessing error
Any otherAUTHORISED

Tip adjustment triggers: 3784 (not authorized), 3768 (timeout). SCA challenge amounts such as 6165, 155, 165 and 1101 to 1119 make the mock issuer return codes 61, 65 or 70; watch the terminal screen during those tests.

Interac

ViscusDummy has no Interac routing. Interac tests use a separate TNSDummy merchant (ask Integration Support), currency CAD, chip insert only. Test PANs 001202000071200 and 001202000071135 always approve.

Sandbox quirk (KI-2026-009)
In the DEMO environment a ViscusDummy decline on POST /moto/sale returns HTTP 400 “Unable to perform Viscus operation” instead of finStatus: DECLINED.
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "3784",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "5c7056aa-b0a6-4ee9-891e-aae6ce7ea725"
}'
PCI DSS v4.0 Level 1 · PCI-P2PE

Security and PCI scope

  • Handpoint is a PCI DSS v4.0 Level 1 Service Provider (listed on the Visa Global Registry of Service Providers).
  • The Handpoint Android SDK, used by the Handpoint Payments App on all PAX devices, is PCI-P2PE validated (listed on the PCI SSC solution search).
  • Card data is encrypted at the point of interaction, so integrators typically qualify for SAQ P2PE instead of SAQ D.
  • Store a callback token in an environment variable, not in source code. Do not log billing addresses in clear text.
App certificate per application

Validation and go-live

Handpoint Integration Support validates each application and issues an app certificate listing what was tested. The certificate is required before going live with merchants. Required for every Cloud API integration:

  • transactionReference persisted before the POST.
  • Transaction recovery tested: connection dropped mid-transaction, outcome resolved, automatic reversal sent on AUTHORISED with no callback.
  • Application timeout implemented; no silent abandonment.
  • Partial approval handled (US): polling continues 60 s or more; split tender or reversal for totalAmount.
  • EMV forced reversal handled: the final DECLINED is recorded, not an intermediate AUTHORISED from /status.
  • Callback endpoint is idempotent on transactionReference.

Per operation: sale (approval, cardholder cancel, issuer decline, connection drop), refund (linked, amount above original), reversal (same day, after batch, double reversal), pre-auth lifecycle if used. See Transaction recovery.

01
Terminal operations

Cloud API

Your server sends an operation to a PAX terminal; the terminal reads the card and returns the result by callback or poll.

cloud.handpoint.comAuth: ApiKeyCloud header
Using Handpoint with Merchant360

EPI merchants take card-present sales with the Merchant360 Payment App on PAX readers. Your software sends the sale through the Merchant360 API and gets back the same payment object a keyed charge returns, with your Merchant360 key.

Merchant360 card-present docs
202 Accepted, then the result

How a terminal operation works

  1. Your server sends POST /transactions with the operation, amount, currency, terminal and your transactionReference.
  2. The Cloud validates the request and answers 202 Accepted immediately with a transactionResultId. The terminal starts prompting for the card.
  3. You get the result by callback (if you sent callbackUrl) or by polling GET /transaction-result/{transactionResultId}.
Poll responses
204 No Contentoptionalstatus
Still processing. The body is empty: check the status before calling .json().
200 OKoptionalstatus
Result ready. Read finStatus. Stop when it is final (anything except IN_PROGRESS, UNDEFINED and PARTIAL_APPROVAL).
404 Not Foundoptionalstatus
Result id unknown or expired.
  • Poll about every 3 seconds. A full fallback path (contactless fail, chip fail, swipe, wrong PINs) can take up to 6 minutes.
  • transactionReference is echoed in the 202 only when you sent it. transactionResultId is always present.
  • Store transactionID from every approved result: reversals, refunds, captures, tip adjustments and tokens use it.
  • POST /reversal and POST /preauthorization/capture are synchronous: no poll.
Step 1: send the operation
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "15012",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "5c7056aa-b0a6-4ee9-891e-aae6ce7ea725"
}'
Step 2: poll for the result
↑ Request – what you send
curl -X GET https://cloud.handpoint.com/transaction-result/1850025030-1788700677769 \
  -H "ApiKeyCloud: <merchant-api-key>"
callbackUrl + token · auth-token header

Callback URL

When the terminal finishes it POSTs the full transaction result to your callbackUrl with your token in the auth-token header. Compare the header case-insensitively (AUTH-TOKEN is the same header) and reject a mismatch. Answer any 2xx as soon as you have the payload.

PhaseWhenInterval
Phase 10 to 100 sEvery 5 s (20 attempts)
Phase 2After 100 sExponential backoff 4 s, 8 s, 16 s, 32 s, 64 s and up, capped at 15 min
AbandonedAfter 2 daysNo further retries
  • Per attempt: 30 s total, 15 s read and 5 s connect timeouts. Any non-2xx or network error triggers a retry; any 2xx stops it.
  • The retry loop runs on the terminal. It restarts from phase 1 when the Payments App restarts.
  • Deliveries can repeat (recoveredTransaction: true marks a redelivery). Dedupe on transactionReference.
  • PAX terminals run Android 5.1 to 12 and check your certificate against their built-in CA list. DigiCert, GlobalSign and Comodo/Sectigo certificates are confirmed to work. Self-signed certificates and newer or uncommon issuers fail the TLS handshake silently: you get no error and the result is only recoverable by polling.
  • If the endpoint was down for more than 2 days, recover the outcome through status by reference.
Sale with a callback
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "1000",
  "currency": "USD",
  "terminal_type": "PAXA920",
  "serial_number": "082104578",
  "transactionReference": "e0b8ea26-f9b7-4eee-b7a2-a5d9032ea47f",
  "callbackUrl": "https://your-server.com/handpoint/result",
  "token": "<per-request-webhook-token>"
}'
What Handpoint POSTs to your URL
↑ Request – what you send
POST /handpoint/result HTTP/1.1
Content-Type: application/json
auth-token: <per-request-webhook-token>
POST /transactions · operation sale

Sale

Body parameters
operationrequiredstring
"sale"
serial_numberrequiredstring
Terminal serial number.
terminal_typerequiredstring
PAX model, for example PAXA920PRO. See terminal types.
amountrequiredstring
Minor units as digits: "1000" = 10.00. Max 12 characters. "0" returns 400.
currencyrequiredstring
ISO 4217 alpha-3: USD, CAD, EUR, GBP.
transactionReferencerecommendedstring
UUID v4. Persist it before sending; it drives recovery. Honoured only on sale, refund, saleAndTokenizeCard and preAuthorization. Auto-generated when omitted.
callbackUrloptionalstring
HTTPS endpoint. The result is POSTed here when the terminal finishes.
tokenoptionalstring
Sent back as the auth-token header on the callback. Use a unique value per request.
customerReferenceoptionalstring
Free-text order reference stored with the transaction and echoed in the result.
duplicate_checkoptionalboolean
Default true. A recent reuse of the same reference shows a 30 s accept / decline prompt on the terminal; decline returns CANCELLED with no charge. Set false only when replaying a reference you confirmed was not charged.
bypassOptionsoptionalobject
{ signatureBypass, pinBypass }. See request objects.
tipConfigurationoptionalobject
Tip selection screen. Valid on sale only.
merchantAuthoptionalarray
Multi-MID routing: [{ externalId }]. See Multi-MID.
metadataoptionalobject
metadata1 to metadata5, 250 characters each.
billingoptionalobject
AVS: { zipCode, address? }.
taxInformationoptionalobject
Level 2: { taxAmount, taxExempt }, taxAmount in minor units. Must be sent with purchaseOrderNumber.
purchaseOrderNumberoptionalstring
Level 2. Alphanumeric, max 25. Must be sent with taxInformation.
moneyRemittanceOptionsoptionalobject
EmerchantPay, Mastercard only. See Money remittance.

The tip the cardholder picks comes back as tipAmount (minor units) and is included in totalAmount. Do not also send a tip adjustment on a sale that used tipConfiguration: it overwrites the cardholder’s tip.

Card-present sale
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "15012",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "5c7056aa-b0a6-4ee9-891e-aae6ce7ea725"
}'
Sale with tip screen
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "3800",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "2bfde1fc-23b1-4c67-93d9-1d4a557f4d4f",
  "tipConfiguration": {
    "baseAmount": "3800",
    "tipPercentages": [
      15,
      18,
      20
    ],
    "enterAmountEnabled": true,
    "skipEnabled": true,
    "footer": "Thank you!"
  }
}'
saleAndTokenizeCard · tokenizeCard

Sale and tokenize · Tokenize card

saleAndTokenizeCard charges the card and returns a cardToken for later MOTO or back-office charges. It takes the sale parameters except tipConfiguration. tokenizeCard reads the card and returns a token with no charge: no amount or currency, finStatus: PROCESSED, and transactionReference is not honoured.

The merchant needs a card token provider. Handpoint’s example token K33f40000000000093 is the Cygma token format. When no provider is configured the result is DECLINED “Card token failure” with an empty transactionID and requestedAmount: 0: the acquirer was never contacted.

Missed tokenizing at the time? Retrieve the token later with Get card token (EPI).

Sale and tokenize
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "saleAndTokenizeCard",
  "amount": "1215",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "b777a62d-9bfb-4b6a-b188-7f842a930770"
}'
Tokenize only (no charge)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "tokenizeCard",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030"
}'
Token provider not configured
↑ Request – what you send
{
  "finStatus": "DECLINED",
  "statusMessage": "Card token failure",
  "errorMessage": "",
  "cardToken": "",
  "transactionID": "",
  "requestedAmount": 0,
  "type": "SALE"
}
preAuthorization · preAuthorizationReversal

Pre-authorization

Places a hold without capturing funds. Needs preAuthAllowed = true on the merchant. Only the create needs the terminal; increase, decrease, capture and release are back-office calls that can run hours or days later. Body: operation, serial_number, terminal_type, amount, currency, transactionReference, callbackUrl, token, customerReference, duplicate_check, bypassOptions, merchantAuth, metadata.

StepCallReferences
CreatePOST /transactions preAuthorizationReturns transactionID A
Increase / decreasePOST /preauthorization/increaseoriginalGuid A (never a previous increase)
CapturePOST /preauthorization/captureoriginalGuid A
Release (void hold)POST /reversal or preAuthorizationReversaloriginalGuid / originalTransactionId A
Capture reversalPOST /reversaloriginalGuid = transactionID of the capture
  • Adjustments are cumulative deltas, not new totals: to move a 100.00 hold to 120.00, send 20.00.
  • A decrease to zero or below is rejected; release the hold with a reversal instead.
  • Holds expire after 7 to 30 days depending on network and issuer. Capture or release before then.
  • Interac never supports increase or decrease. Amex does not when the merchant has a separate Amex agreement.
  • The gateway decides between a hold void and a capture reversal from the state of the original transaction.
Create the hold (card present)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "preAuthorization",
  "amount": "10000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "e4826edd-7579-48ca-9553-743e5b76d855"
}'
Release the hold on the terminal
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "preAuthorizationReversal",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "originalTransactionId": "4b2c4470-a9f5-11f1-99ee-c974d92ef76f"
}'
Pre-auth not enabled
↑ Request – what you send
{
  "finStatus": "DECLINED",
  "statusMessage": "Pre-authorizations are not enabled for this terminal",
  "errorMessage": "",
  "arc": "1000",
  "cardEntryType": "ICC",
  "type": "PRE_AUTHORIZATION",
  "transactionID": "4b2c4470-a9f5-11f1-99ee-c974d92ef76f",
  "issuerResponseCode": "00"
}
refund · refundReversal · saleReversal

Refund and on-terminal reversals

Card-present refund. Needs refundAllowed = true. Add originalTransactionId (the sale’s transactionID) to link it: the gateway caps the amount at the original and, with refundOriginalCardOnly, requires the same card. A wallet tap and the physical card are different cards for this check. Send transactionReference only on an unlinked refund.

Body parameters
operationrequiredstring
refund, refundReversal or saleReversal.
serial_numberrequiredstring
Terminal serial number.
terminal_typerequiredstring
PAX model, for example PAXA920PRO. See terminal types.
amountrequiredstring
Minor units. On refundReversal, acquirers without partial reversal reverse the full refund regardless.
currencyrequiredstring
ISO 4217.
originalTransactionIdoptionalstring
Required on refundReversal and saleReversal; optional on refund (links it).
transactionReferenceoptionalstring
Unlinked refund only.
callbackUrl / token / customerReferenceoptionalstring
As on a sale.
duplicate_check, bypassOptions, merchantAuth, metadataoptionalmixed
Refund only, as on a sale.
  • Use a reversal for a same-day cancellation before batch close (no interchange); after settlement send a refund.
  • saleReversal with an amount below the original is a partial reversal where the acquirer supports it (EPI).
  • A sale taken while refundAllowed = false stays non-refundable after the flag changes; Handpoint support can clear it.
  • TSYSDummy rejects a refund with HTTP 400 when refunds are off; ViscusDummy returns 202 and declines after the card read. Handle both.
Linked refund
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "refund",
  "amount": "5000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "originalTransactionId": "67905570-a9f5-11f1-a943-f9c9f04151d9"
}'
Unlinked refund
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "refund",
  "amount": "5000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "transactionReference": "eb6a9a5e-ad43-4014-a8a0-b0b7243169d5"
}'
Reverse a refund
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "refundReversal",
  "amount": "5000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "originalTransactionId": "5e88eeb0-a9f5-11f1-a943-f9c9f04151d9"
}'
Reverse a sale on the terminal
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "saleReversal",
  "amount": "1100",
  "currency": "USD",
  "terminal_type": "PAXA920",
  "serial_number": "0821599465",
  "originalTransactionId": "f2075470-9194-11f1-90c9-a73194216a3b"
}'
Error results
↑ Request – what you send
{
  "finStatus": "DECLINED",
  "statusMessage": "Refund not allowed",
  "errorMessage": "",
  "arc": "0000",
  "cardEntryType": "ICC",
  "type": "REFUND"
}
moToSale · moToRefund · moToReversal · moToPreAuthorization

Keyed entry and MOTO on the terminal

Card-not-present operations run through the terminal: the operator keys the card on the terminal’s manual entry screen, or you pass a stored cardToken. Needs supportsMoto (TMS motoEnabled) on the merchant. Results arrive by poll or callback like any terminal operation.

Body parameters
operationrequiredstring
moToSale, moToRefund, moToReversal or moToPreAuthorization.
serial_numberrequiredstring
Terminal serial number.
terminal_typerequiredstring
PAX model, for example PAXA920PRO. See terminal types.
amountrequiredstring
Minor units.
currencyrequiredstring
ISO 4217.
cardTokenoptionalstring
Stored token. Omit to show the manual card entry screen.
originalTransactionIdoptionalstring
Required on moToReversal; links a moToRefund.
channeloptionalstring
"MO" mail order or "TO" telephone order (moToSale).
enableAvsFieldsoptionalboolean
The terminal asks for ZIP and address. Ignored when billing is set.
billingoptionalobject
AVS { zipCode, address? }. Needs avsForMoto on the merchant (EPI).
taxInformation / purchaseOrderNumberoptionalobject / string
Level 2 on moToSale.
callbackUrl, token, customerReference, merchantAuth, metadataoptionalmixed
moToSale, as on a sale.
KI-2026-008 (CUS-837), open
moToSale ignores the transactionReference you send, so status by reference finds nothing. Poll by transactionResultId and store transactionID from the result.

Keyed-entry receipts come back as raw HTML, not a hosted URL. The DEMO merchant returns FAILED “HMAC mismatch” when MOTO is off; real acquirers may return DECLINED. Branch on finStatus, not the message.

Keyed sale (manual entry screen)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "moToSale",
  "amount": "2000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "channel": "TO",
  "billing": {
    "zipCode": "10001",
    "address": "123 Main St"
  }
}'
MOTO sale on a stored token
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "moToSale",
  "amount": "2000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "cardToken": "K33f40000000000093"
}'
MOTO refund / reversal / pre-auth
↑ Request – what you send
{
  "operation": "moToRefund",
  "amount": "2000",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "originalTransactionId": "57cd25a0-a9f5-11f1-a943-f9c9f04151d9"
}
MOTO not enabled (DEMO)
↑ Request – what you send
{
  "finStatus": "FAILED",
  "statusMessage": "HMAC mismatch",
  "errorMessage": "HMAC mismatch",
  "paymentScenario": "MOTO",
  "cardEntryType": "CNP",
  "type": "MOTO_SALE"
}
stopCurrentTransaction · pingDevice · printReceipt

Cancel, ping and print

operationWhat it does
stopCurrentTransactionCancels the active terminal operation. The pending result resolves CANCELLED.
pingDeviceConnectivity check. The result carries PING_PONG when the terminal answers.
printReceiptPrints a receipt on a terminal with a printer.

Cancel errors: 1003 “Cancel operation not allowed” (nothing cancellable right now) and 1005 “No transaction to cancel” (REST API 2.29.0+).

↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "pingDevice",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030"
}'
bypassOptions · tipConfiguration · merchantAuth · metadata

Request objects and operation values

bypassOptions (both fields required when the object is sent)
signatureBypassoptionalboolean
Default false. The signature screen is not shown at all.
pinBypassoptionalboolean
Default false. The PIN screen shows but the green key skips it; the result records verificationMethod: PIN_BYPASS. Chip cards that enforce PIN ignore it.
tipConfiguration (sale only)
tipPercentagesrequiredinteger[]
Buttons to show, for example [15, 18, 20]. Must be non-empty.
baseAmountoptionalstring
Minor units used for the percentages. Defaults to amount.
headerNameoptionalstring
Default "Tip".
enterAmountEnabledoptionalboolean
Default true. Custom amount option.
skipEnabledoptionalboolean
Default true. No-tip button.
footeroptionalstring
Default "".
merchantAuth[] (Credential)
externalIdrequiredstring
Handpoint-assigned sub-merchant id, max 23 characters, exact match to a provisioned subMerchantExternalId. No other field in the same object; one credential per acquirer.
metadata
metadata1 … metadata5optionalstring
Custom fields, max 250 characters each, echoed in the result.

operation values

ValueDescription
saleCard-present sale
refundCard-present refund
saleAndTokenizeCardSale plus tokenization
tokenizeCardTokenize only, no charge
moToSaleMOTO keyed entry on the terminal
moToRefundMOTO refund on the terminal
moToPreAuthorizationMOTO pre-auth on the terminal
moToReversalMOTO reversal on the terminal
preAuthorizationPre-auth hold (card present)
preAuthorizationIncreaseAdjust the hold amount
preAuthorizationCaptureCapture the hold (also POST /preauthorization/capture)
preAuthorizationReversalVoid / release the hold
saleReversalOn-terminal reversal of a sale
refundReversalOn-terminal reversal of a refund
stopCurrentTransactionCancel the active operation
pingDeviceConnectivity check
printReceiptPrint a receipt

originalTransactionId is required on saleReversal, refundReversal, moToReversal, preAuthorizationIncrease, preAuthorizationCapture and preAuthorizationReversal. transactionReference is honoured only on sale, refund, saleAndTokenizeCard and preAuthorization; on every other value it is replaced with a system-generated reference.

↑ Request – what you send
{
  "bypassOptions": {
    "signatureBypass": true,
    "pinBypass": false
  },
  "tipConfiguration": {
    "baseAmount": "3800",
    "headerName": "Tip",
    "tipPercentages": [
      15,
      18,
      20
    ],
    "enterAmountEnabled": true,
    "skipEnabled": true,
    "footer": ""
  },
  "merchantAuth": [
    {
      "externalId": "dr-smith"
    }
  ],
  "metadata": {
    "metadata1": "order-1042",
    "metadata2": "table-7"
  },
  "billing": {
    "zipCode": "10001",
    "address": "123 Main St"
  },
  "taxInformation": {
    "taxAmount": "500",
    "taxExempt": false
  },
  "purchaseOrderNumber": "PO4711"
}
Callback body · GET /transaction-result/{id}

Transaction result object

The same object arrives on the callback and on the poll. Amounts are integers in minor units. Branch on finStatus; statusMessage is in the card’s language (cardLanguagePreference), not the terminal’s, so display it but never parse it.

Identifiers and status
transactionIDoptionalstring
Gateway GUID. Store it for reversals, refunds, tip adjustments, tokens and receipts.
efttransactionIDoptionalstring
Alias of transactionID.
efttimestampoptionalnumber
Unix epoch milliseconds.
transactionReferenceoptionalstring
Your UUID on sale, refund, saleAndTokenizeCard, preAuthorization; system-generated on every other operation.
originalEFTTransactionIDoptionalstring
On refunds, reversals and captures: the original transactionID. Empty on originals.
transactionOriginoptionalstring
CLOUD (Cloud API) or STANDALONE (started on the terminal).
finStatusoptionalenum
Primary result. See the table below.
typeoptionalenum
Transaction type. See the table below.
statusMessage / errorMessageoptionalstring
Localized text. errorMessage is empty on success.
multiLanguageStatusMessages / multiLanguageErrorMessagesoptionalobject
Locale to message maps. May be empty.
issuerResponseCodeoptionalstring
ISO 8583 code. "00" is also used as a placeholder when the issuer was never reached; check finStatus first.
authorisationCodeoptionalstring
6-character approval code.
recoveredTransactionoptionalboolean
true when delivered by the terminal's retry loop.
Amounts
requestedAmountoptionalinteger
Amount requested. Differs from totalAmount on partial approvals and tips.
totalAmountoptionalinteger
Amount charged, tip included. Use this on receipts.
tipAmount / tipPercentageoptionalinteger / number
Tip chosen on the terminal. 0 when none.
dueAmountoptionalinteger
Outstanding amount after a partial payment.
taxInformationoptionalobject
Level 2 as sent: taxAmount (minor units), taxExempt. Absent when not sent.
purchaseOrderNumberoptionalstring
Level 2 as sent.
taxAmountoptionalinteger
Deprecated. Use taxInformation.taxAmount.
surchargeoptionalinteger | object
Surcharge applied by the acquirer (App 4.14.0 / REST API 2.28.0+). Handpoint’s field table says integer, 0 when none; its sample result shows an object { amount, applied, reason }. Accept both.
currencyoptionalstring
ISO 4217.
Card
cardEntryTypeoptionalenum
ICC, CONTACTLESS_ICC, MAG_STRIPE (also MSR), CNP, UNDEFINED.
paymentScenariooptionalenum
CHIP, CHIPCONTACTLESS, MAGSTRIPE, MAGSTRIPECONTACTLESS, CHIPFAILMAGSTRIPE, MOTO, SWIPED, FALLBACK_SWIPE, UNKNOWN.
tenderTypeoptionalenum
CREDIT, DEBIT, PREPAID, NOT_SET (MOTO and cancelled).
verificationMethodoptionalenum
NOT_REQUIRED, PIN, SIGNATURE, PIN_SIGNATURE, MOBILE_PASS_CODE, PIN_BYPASS, CVC, FAILED, UNDEFINED.
cardSchemeNameoptionalstring
Uppercase network name: VISA, MASTERCARD, AMEX.
maskedCardNumber / cardTypeIdoptionalstring
************1234.
expiryDateMMYYoptionalstring
"1027" = October 2027.
cardHolderName / cardLanguagePreferenceoptionalstring
From the card. Name may be empty.
cardTokenoptionalstring
Set only on tokenizeCard and saleAndTokenizeCard.
accountType / balanceoptionalstring / object
Account selected by the cardholder; issuer balance or null.
unMaskedPanoptionalstring
Empty in standard operation.
addressVerification.resultCodeoptionalenum
MOTO sale and pre-auth with AVS (REST API 2.31.0+). See AVS.
EMV, merchant and device
aid, applicationLabel, tvr, tsi, iad, arc, chipTransactionReportoptionalstring
EMV tags 9F06, label, 95, 9B, 9F10, 8A. Empty on swipe and CNP.
mid / tidoptionalstring
Acquirer merchant and terminal ids. With Multi-MID, mid is the terminal's default, not the sub-MID.
merchantName / merchantAddressoptionalstring
As configured on the terminal.
rrnoptionalstring
Retrieval reference number.
customerReference / metadataoptionalstring / object
Echoed from the request.
batchNumberoptionalstring
Acquirer batch, when returned (REST API 2.23.1+).
budgetNumberoptionalstring
Instalment number (South African acquirers).
customFieldsoptionalarray | null
Acquirer data. Carries messageReasonCode on terminal-initiated reversals.
customerReceipt / merchantReceipt / signatureUrloptionalstring
deviceStatusoptionalobject
applicationName, applicationVersion, batteryStatus, batteryCharging, batterymV, externalPower, bluetoothName, serialNumber, statusMessage.

finStatus

ValueFinalMeaning / action
IN_PROGRESSNoStill processing. Keep polling.
UNDEFINEDNoTerminal sent it but got no result. Do not retry; run recovery.
PARTIAL_APPROVALNoUS. Less than requested approved; the terminal is asking accept or decline. Keep polling 60 s or more.
AUTHORISEDYesApproved (or hold placed). Do not retry.
DECLINEDYesDeclined by issuer or gateway. Not charged.
CANCELLEDYesCancelled at the terminal, or reversed by the terminal after approval.
FAILEDYesTechnical failure. Run recovery before retrying.
PROCESSEDYesNon-financial operation done (tokenizeCard and similar).
REFUNDEDYesStatus queries: the original was fully refunded.
CAPTUREDYesPre-authorization captured.

type

SALE, REFUND, REVERSAL, PRE_AUTHORIZATION, PRE_AUTHORIZATION_INCREASE, PRE_AUTHORIZATION_CAPTURE, PRE_AUTHORIZATION_REVERSAL, MOTO_SALE, MOTO_REFUND, MOTO_REVERSAL, MOTO_PRE_AUTHORIZATION, TOKENIZE_CARD, SALE_AND_TOKENIZE_CARD, TIP_ADJUSTMENT, VOID_SALE, REFUND_REVERSAL, TRANSACTION_STATUS, UNDEFINED. VOID_SALE is a saleReversal and the Interac VOID.

issuerResponseCode and arc

CodeMeaning
00Approved (or terminal-local decision)
01 / 02Refer to card issuer
05Do not honour
12Invalid transaction
13Invalid amount
14Invalid card number
41 / 43Lost / stolen card
51Insufficient funds
54Expired card
55Incorrect PIN
57Not permitted to cardholder
61Exceeds withdrawal amount limit
62Restricted card
65Exceeds withdrawal frequency limit
75PIN tries exceeded
91Issuer unavailable
96System malfunction
arc 0000Online approval
arc 0010Online decline
arc 1000Gateway error or offline decline (also capability restrictions)
↓ Response – what comes back
{
  "transactionID": "9985dba0-9cbb-11f1-b018-b122502914b1",
  "efttransactionID": "9985dba0-9cbb-11f1-b018-b122502914b1",
  "efttimestamp": 1787246502000,
  "transactionReference": "5ad2dcf3-56b8-4295-b73f-0628a45d21b9",
  "transactionOrigin": "CLOUD",
  "type": "SALE",
  "finStatus": "AUTHORISED",
  "statusMessage": "Aprobado o completado con éxito",
  "errorMessage": "",
  "multiLanguageStatusMessages": {},
  "multiLanguageErrorMessages": {},
  "recoveredTransaction": false,
  "requestedAmount": 1002,
  "totalAmount": 1002,
  "tipAmount": 0,
  "tipPercentage": 0,
  "dueAmount": 0,
  "taxAmount": null,
  "surcharge": {
    "amount": 0,
    "applied": false,
    "reason": ""
  },
  "currency": "USD",
  "cardEntryType": "ICC",
  "paymentScenario": "CHIPCONTACTLESS",
  "tenderType": "CREDIT",
  "verificationMethod": "NOT_REQUIRED",
  "cardSchemeName": "VISA",
  "maskedCardNumber": "************0936",
  "cardTypeId": "************0936",
  "expiryDateMMYY": "1027",
  "cardHolderName": "",
  "cardLanguagePreference": "es_ES",
  "cardToken": "",
  "accountType": "",
  "unMaskedPan": "",
  "balance": null,
  "authorisationCode": "123456",
  "issuerResponseCode": "00",
  "rrn": "0000820374195",
  "aid": "A0000000031010",
  "applicationLabel": "VISA CLASICA",
  "tvr": "0000000000",
  "tsi": "",
  "iad": "06011203A00000",
  "arc": "0000",
  "chipTransactionReport": "",
  "mid": "630000026730",
  "tid": "08215994",
  "merchantName": "Postman Test1",
  "merchantAddress": "Test Address 2 10111 London",
  "customerReference": "",
  "budgetNumber": "",
  "batchNumber": "123",
  "originalEFTTransactionID": "",
  "metadata": null,
  "customFields": null,
  "customData": "",
  "customerReceipt": "https://receipts.handpoint.io/receipts/9985dba0-9cbb-11f1-b018-b122502914b1/customer.html",
  "merchantReceipt": "https://receipts.handpoint.io/receipts/9985dba0-9cbb-11f1-b018-b122502914b1/merchant.html",
  "signatureUrl": "",
  "deviceStatus": {
    "applicationName": "Payments",
    "applicationVersion": "20.4.14.0-RC.66",
    "batteryCharging": "Not Charging",
    "batteryStatus": "59",
    "batterymV": "3829",
    "bluetoothName": "PAXA920",
    "externalPower": "Unknown",
    "serialNumber": "0821599465",
    "statusMessage": ""
  }
}
Hosted URL · raw HTML · empty

Receipts

Card networks require a receipt to be available on request for every transaction where a card was read, declines and failures included. Delivery is your choice: print, email, SMS or screen.

SituationcustomerReceipt / merchantReceipt
Normal card-present transactionHosted URL: receipts.handpoint.com/receipts/{transactionID}/customer.html
Upload failed, or keyed MOTO on the terminalFull HTML string (starts with <)
Connection lost before the response, or UNDEFINEDEmpty string
POST /moto/sale, or recovered through /statusNo receipt fields. Build it from the result.
  • The customer receipt renders in the card’s language; the merchant receipt in the terminal’s language.
  • signatureUrl is an https URL, or base64 image data when the upload failed. Empty when no signature was taken.
  • Required on a receipt you build: date and time, type, outcome, totalAmount and currency, scheme, masked PAN, authorisation code, issuer response, transactionID, merchant name and address, MID, TID; plus RRN, AID, TVR, TSI, IAD and ARC when present.
  • Suggested retention: 13 months, matching the gateway’s transaction data retention.
Surcharge and other fees on the receipt
A surcharge prints as its own labelled line, never inside the total and never mixed with tax. An admin fee prints as its own line. Dual pricing prints no fee line. A fee the gateway dropped (fee.applied: false) gets no line. See Fee mitigation.
↑ Request – what you send
function displayReceipt(receiptField) {
  if (receiptField && receiptField.startsWith('http')) {
    openWebview(receiptField);        // hosted URL
  } else if (receiptField) {
    renderHtml(receiptField);         // raw HTML
  } else {
    buildReceiptFromResult();         // nothing returned
  }
}
GET /transactions/{transactionReference}/status

Transaction status by reference

Looks a transaction up by the transactionReference you set, on transactions.handpoint.com (or .io); the cloud.* host returns 404. Use it after a crash, a lost callback or an UNDEFINED result. Supports MOTO since REST API 2.23.0.

transactionReferencerequiredpath
Your UUID from the originating operation.
selectoroptionalpath
After /status/: first (default), last, all or a number n. all returns the whole chain (sale, captures, refunds, reversals).
  • No customerReceipt / merchantReceipt here; build the receipt from the fields.
  • With Level 2 data it adds taxInformation (taxAmount in decimal major units, taxAmountIdentifier "1" local sales tax or "2" exempt) and purchaseOrderNumber.
  • With AVS on a MOTO sale or pre-auth it adds addressVerification.resultCode (REST API 2.31.0+).
  • A 404 means the original never reached the gateway; a retry with the same reference is safe.
First operation for the reference
↑ Request – what you send
curl -X GET https://transactions.handpoint.com/transactions/5c7056aa-b0a6-4ee9-891e-aae6ce7ea725/status \
  -H "ApiKeyCloud: <merchant-api-key>"
Every linked operation
↑ Request – what you send
curl -X GET https://transactions.handpoint.com/transactions/5c7056aa-b0a6-4ee9-891e-aae6ce7ea725/status/all \
  -H "ApiKeyCloud: <merchant-api-key>"
Persist first · never retry blind

Transaction recovery

A lost connection does not mean the payment failed. Find the state before starting another payment.

  1. Generate a UUID v4 transactionReference and write it to your database before the POST.
  2. After the 202, store the transactionReference to transactionResultId mapping.
  3. Poll GET /transaction-result/{id} (or wait for the callback). On your application timeout (typically 90 s) mark the record pending.
  4. Poll GET /transactions/{ref}/status every 10 s.
  5. AUTHORISED with no record on your side: send an automatic reversal. Any other final status: clear the pending record.
  6. Still UNDEFINED at the gateway, or no reference (keyed MOTO): search the Transaction Feed by terminal serial and time window.

Two-thread variant

  • Thread A polls the terminal channel (transaction-result); it is authoritative.
  • Thread B polls /status. UNDEFINED there means the acquirer has no record and the card was not charged.
  • /status AUTHORISED with no terminal result: send pingDevice. Unreachable: ask the merchant to reconnect the device. After a 5-minute overall timeout, treat /status as provisional.
Do not act on /status alone
/status can show AUTHORISED while a partial-approval prompt is open or while the SDK is sending an EMV forced reversal. Keep polling transaction-result for at least 60 s; escalate to /status only when nothing arrives after 2 to 3 minutes or the result is UNDEFINED.

Never auto-retry with a new reference before the outcome is known. Retry only after a final non-charged status (DECLINED, CANCELLED, FAILED after recovery).

Automatic reversal when the card was charged with no record
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "saleReversal",
  "amount": "15012",
  "currency": "USD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030",
  "originalTransactionId": "67905570-a9f5-11f1-a943-f9c9f04151d9"
}'
Is the terminal reachable?
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "pingDevice",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850025030"
}'
US · PARTIAL_APPROVAL

Partial approval and EMV forced reversal

A US issuer can approve less than requested. The terminal asks the cardholder to accept or decline. If they accept, the result is PARTIAL_APPROVAL: totalAmount is what was approved, requestedAmount the original, and the difference is uncollected. Collect the rest with another tender, or reverse the partial charge based on totalAmount. If they decline, the SDK reverses automatically and the result is CANCELLED: do not record a sale. Test with amount 3757.

EMV forced reversal

When a chip card is pulled out after the gateway approved but before the EMV flow finished, or the card itself declines the authorization, the SDK reverses the hold automatically. /status may briefly show AUTHORISED; the final result is DECLINED with a message such as “card declined the online authorization”. Record the final result.

Cardholder accepted the partial amount
↑ Request – what you send
{
  "finStatus": "PARTIAL_APPROVAL",
  "requestedAmount": 5000,
  "totalAmount": 3000,
  "currency": "USD",
  "transactionID": "a4c21bd0-65ab-11f1-b4d2-aab210c7e31c",
  "authorisationCode": "654321"
}
Reverse it instead of split tender
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/reversal \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "a4c21bd0-65ab-11f1-b4d2-aab210c7e31c"
}'
CANCELLED + customFields.messageReasonCode

Terminal-initiated reversals

The terminal can reverse a transaction the host already approved. The result is finStatus: CANCELLED and customFields carries messageReasonCode twice: 4000 (terminal reversal marker) and the specific cause. The reversal is already done: do not send another, and do not retry automatically. A new transaction can start right away.

CodeCause
4000Generic marker, always present
4002Suspected terminal malfunction
4021System timeout after approval (also phone second presentation and partial-approval dialog timeouts)
4351Chip card removed early
4352Chip card declined after host approval
4353Signature not provided in time
4354Signature declined, or partial approval rejected by the cardholder
4580Processing error (also reported on remote sale responses)
↑ Request – what you send
{
  "finStatus": "CANCELLED",
  "customFields": [
    {
      "key": "messageReasonCode",
      "value": "4000"
    },
    {
      "key": "messageReasonCode",
      "value": "4351"
    }
  ]
}
UUID v4 · originating operations only

transactionReference rules

OperationSend transactionReference?Link with
Sale, pre-auth create, unlinked refund, saleAndTokenizeCardYes
Remote sale (POST /moto/sale)Yes
Pre-auth increase, capture, reversalNooriginalGuid / originalTransactionId
Reversal, linked refundNooriginalGuid / originalTransactionId
Tip adjustment, get card tokenNotransactionID in the path
Batch closeNo
  • Format xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx: version digit 4, variant 8, 9, a or b. Anything else returns 400 “TransactionReference with wrong uuidv4 format”. Use your platform’s UUID library.
  • Generate a fresh one per originating operation; reuse breaks recovery and risks a double charge.
  • customerReference is only an echo. Duplicate protection is duplicate_check.
↑ Request – what you send
POST /transactions { "operation": "preAuthorization", "transactionReference": "AAA" }
→ transactionID "111"

POST /preauthorization/increase { "originalGuid": "111", "increaseAmount": "20.00" }
POST /preauthorization/capture  { "originalGuid": "111", "capturedAmount": "120.00" }

GET https://transactions.handpoint.com/transactions/AAA/status/all
→ all three operations
02
No terminal

Back office

Reversals, remote sales on stored tokens, refunds, tip adjustment, pre-auth capture and batch operations, answered synchronously.

cloud.handpoint.comAuth: ApiKeyCloud header
No terminal · synchronous

Back-office operations

These calls go straight to the payment gateway with the merchant’s ApiKeyCloud: no 202, no poll, no transactionResultId. They work for transactions taken through any path (Cloud API, Android, iOS, Cordova), subject to acquirer support.

OperationEndpointAcquirers
Remote reversal (full or partial)POST /reversalAll (partial: EPI, TMS-enabled)
Remote sale on a tokenPOST /moto/saleEPI (Cygma token), EmerchantPay, Paystrax
Remote refundPOST /moto/refundEPI, EmerchantPay, Paystrax
Remote MOTO reversal (deprecated)POST /moto/reversalEPI, EmerchantPay, Paystrax
Get card tokenGET /transactions/{id}/tokenEPI
Tip adjustmentPOST /transactions/{id}/tip-adjustmentEPI, Paysafe
Pre-auth increase / decreasePOST /preauthorization/increaseAcquirer-dependent
Pre-auth capturePOST /preauthorization/captureAcquirer-dependent
Batch close / summary / detailPOST /batch/*EPI

Paysafe single-use tokens cannot be used for remote sales. Error shape for these endpoints: { error: { statusCode, name, message, code, details } }; read error.code.

POST /reversal

Remote reversal

Reverses a sale, a pre-auth hold or a capture by its transactionID, with no terminal. Same day, before batch close; after settlement send a refund. Omit amount for the full amount. Also the way to release a hold remotely.

Body parameters
originalGuidrequiredstring
transactionID of the original AUTHORISED sale, pre-auth or capture.
amountoptionalstring
Decimal major units, "50.04". Omit for a full reversal. Partial reversal needs partialReversalAllowed.
currencyoptionalstring
ISO 4217. Required when amount is sent.
messageReasonCodeoptionalstring
CUSTOMER_CANCELLATION (default) or TIMEOUT_WAITING_FOR_RESPONSE (no authorization response in time).
codeMessageWhat to do
3051Already reversedNo further action.
3052Authorization has already been completedAlready captured or reversed. Check state.
3109Partial reversals are not supportedPartial reversal not enabled for the merchant.
3153Unable to find message to reverse.originalGuid not found. Use the transactionID from the result.
3158Original transaction not foundListed on Handpoint's acquirer pages for the same case. If the batch closed, refund instead.
4066Partial reversal amount exceeds original amountLower the amount or omit it.

The response has no transactionID: reversalGuid identifies the reversal; authorizationGuid and originalGuid point to the original.

Full reversal
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/reversal \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "a03b8a30-9cbb-11f1-b018-b122502914b1"
}'
Partial reversal
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/reversal \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "67905570-a9f5-11f1-a943-f9c9f04151d9",
  "amount": "50.04",
  "currency": "USD"
}'
Errors
↑ Request – what you send
{
  "error": {
    "statusCode": 400,
    "name": "BadRequestError",
    "message": "Partial reversals are not supported",
    "code": "3109",
    "details": {
      "errorCode": "3109",
      "reason": "Partial reversals are not supported"
    }
  }
}
POST /moto/sale · /moto/refund · /moto/reversal

Remote sale, refund and MOTO reversal

Charge or refund a stored card with no cardholder and no terminal (phone orders, recurring). MOTO must be enabled for the merchant in TMS and the acquirer must have the merchant set up for card-not-present. Use guid from the response as originalGuid for later reversals or linked refunds. No receipt fields come back; build the receipt.

POST /moto/sale
amountrequiredstring
Decimal major units matching ^\d+(\.\d+)?$ (else 422); max 12 digits, no leading zeros except one 0 before the point (else 400).
currencyrequiredstring
ISO 4217, exactly 3 characters.
cardTokenrequiredstring
Token from a card-present tokenization. Max 64.
transactionReferencerecommendedstring
UUID v4, max 50. Your only recovery path if the call fails.
customerReferenceoptionalstring
Max 50.
channeloptionalstring
MO or TO.
billingoptionalobject
AVS { zipCode, address? }. Needs avsForMoto.
taxInformation / purchaseOrderNumberoptionalobject / string
Level 2, taxAmount in decimal major units. Sent together.
merchantAuthoptionalarray
Routes the charge to a sub-MID.
POST /moto/refund
originalGuidoptionalstring
Linked refund: guid of the original MOTO sale. Within 12 months.
cardTokenoptionalstring
Unlinked refund: the stored token.
amountrequiredstring
Decimal major units. Not above the original.
currencyrequiredstring
Must match the original.
transactionReference / customerReference / channeloptionalstring
As on the sale.
codeEndpointMeaning
3107/moto/saleCVV required: the merchant has mandatory CVV for card-not-present. Ask Handpoint to turn it off for remote sales.
5252/moto/saleCard token failure: the token provider (Cygma and others) is unreachable. The token is still valid; retry later.
3209/moto/refundRefund amount greater than the original sale.
3210/moto/refundCurrency does not match the original.
3153/moto/reversalUnable to find message to reverse.
KI-2024-005, open
A /moto/refund on a sale older than 90 days returns 200 SUCCESS but is not applied on TSYS-backed acquirers.
Remote sale on a stored token
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/sale \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "10.00",
  "currency": "USD",
  "cardToken": "<card-token>",
  "transactionReference": "a1b2c3d4-0000-4000-8000-000000000002"
}'
Remote refund: linked / unlinked
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/refund \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "10.00",
  "currency": "USD",
  "originalGuid": "<guid-of-moto-sale>",
  "transactionReference": "c1e1a7ee-1432-4a9c-9171-414e203dbb49"
}'
MOTO reversal (use /reversal for new work)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/reversal \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "b28bdb10-cf87-11f0-b588-a122fae316de",
  "amount": "20.00",
  "currency": "USD"
}'
GET /transactions/{transactionID}/token · EPI

Get card token (deferred tokenization)

Gets a token from a completed card-present transaction with no card re-read (REST API 2.26.0). Eligible: sale, refund, preAuthorizationCapture, moToSale, moToRefund. A sale that was later reversed or cancelled can still be tokenized.

  • Errors are nested: read error.details.body.error.errorCode. error.message always reads “Viscus operation failed”.
  • 3112: the id is not a sale. After a partial approval that was cancelled, the polled id is the reversal; use originalEFTTransactionID.
  • TOKENIZATION_NOT_ENABLED: ask Integration Support to enable tokenization.
Retrieve the token
↑ Request – what you send
curl -X GET https://cloud.handpoint.com/transactions/7cd7a1d0-xxxx-11f1-xxxx-xxxxxxxxxxxx/token \
  -H "ApiKeyCloud: <merchant-api-key>"
Error (nested)
↓ Response – what comes back
{
  "error": {
    "statusCode": 400,
    "name": "BadRequestError",
    "message": "Viscus operation failed",
    "details": {
      "status": 403,
      "body": {
        "error": {
          "errorCode": "3112",
          "reason": "Transaction type is not eligible for deferred tokenization",
          "httpStatus": "403",
          "errorGuid": "..."
        }
      }
    }
  }
}
POST /transactions/{transactionID}/tip-adjustment · EPI, Paysafe

Tip adjustment

Adds a tip after the sale and before batch close, for table service where staff enter the tip from a signed receipt. amount is a number in major units: 8 is 8.00. The last adjustment before batch close wins. To remove a tip, Handpoint’s tipping guide says to send amount: 0; do not use /reversal, which cancels the whole sale.

transactionIDrequiredpath
transactionID of the AUTHORISED sale (not transactionReference).
amountrequirednumber
Tip in major units.
taxInformationoptionalobject
Optional taxAmount (number, major units) and taxExempt. purchaseOrderNumber is not supported here.
  • Not on Interac, EmerchantPay or Paystrax; use a sale with tip there.
  • Do not combine with tipConfiguration on the same sale; the adjustment overwrites the cardholder’s tip.
  • After batch close an adjustment is not applied. For EPI, send it before the automatic close (about 11 PM Eastern).
Set the tip to 8.00
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions/67905570-a9f5-11f1-a943-f9c9f04151d9/tip-adjustment \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 8
}'
With Level 2 tax
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions/67905570-a9f5-11f1-a943-f9c9f04151d9/tip-adjustment \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 5.25,
  "taxInformation": {
    "taxAmount": 0.5
  }
}'
POST /preauthorization/increase · /capture

Pre-auth increase, decrease and capture

Server-side steps of the pre-auth lifecycle (REST API 2.27.0). Always reference the create’s transactionID, never an earlier increase. Amounts are decimal major-unit strings.

POST /preauthorization/increase
originalGuidrequiredstring
transactionID of the pre-auth create. Max 64.
increaseAmountrequiredstring
Delta, always positive, major units, max 32 characters. Sending amount instead returns 422.
subtractoptionalstring
"1" decreases the hold. The only accepted value.
tipAmount / customerReferenceoptionalstring
Max 32 / 64.
POST /preauthorization/capture
originalGuidrequiredstring
transactionID of the pre-auth create. Max 64.
capturedAmountrequiredstring
Major units, max 12 digits, no leading zeros except one 0 before the point. Not above the current hold.
tipAmountoptionalstring
Tip added on capture, same unit.
customerReferenceoptionalstring
Max 64.
taxInformation / purchaseOrderNumberoptionalobject / string
Level 2, major units. Sent together.
codeHTTPMeaning
3052400Authorization has already been completed (captured or reversed).
3156404No pre-authorization found for originalGuid.
3207400The referenced transaction is not a pre-authorization.
3211403Declined, already captured or already reversed.
3212403Decrease would take the hold to zero or below. Send a reversal.
3215403Capture above the current hold. Increase first.
5001400Internal error returned for unknown GUIDs.
KI-2024-001, open
If the terminal loses its Cloud connection between pre-auth and capture, the capture can be lost with no connection-loss callback, leaving the pre-auth open with no failure shown on the POS.
Increase the hold by 20.00
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/preauthorization/increase \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "4b2c4470-a9f5-11f1-99ee-c974d92ef76f",
  "increaseAmount": "20.00",
  "customerReference": "tab-14"
}'
Decrease the hold by 5.00
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/preauthorization/increase \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "4b2c4470-a9f5-11f1-99ee-c974d92ef76f",
  "increaseAmount": "5.00",
  "subtract": "1"
}'
Capture with tip and Level 2
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/preauthorization/capture \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "4b2c4470-a9f5-11f1-99ee-c974d92ef76f",
  "capturedAmount": "110.00",
  "tipAmount": "10.00",
  "customerReference": "tab-14",
  "taxInformation": {
    "taxAmount": "9.08",
    "taxExempt": false
  },
  "purchaseOrderNumber": "PO55122"
}'
Capture above the hold
↓ Response – what comes back
{
  "error": {
    "statusCode": 400,
    "name": "BadRequestError",
    "message": "Capture amount cannot be greater than pre-auth hold amount",
    "code": "3215",
    "details": {
      "errorCode": "3215",
      "httpStatus": 403
    }
  }
}
POST /batch/close · /summary · /detail · EPI

Batch close, summary and detail

Closing a batch triggers settlement with the acquirer. US host-capture merchants (EPI) close automatically at about 11 PM Eastern; a manual close is for when you need to control settlement timing, not an extra step. EU acquirers (EmerchantPay, Paystrax) settle automatically and need no batch calls. Beta since REST API 2.25.0.

serialNumberrequiredstring
Terminal serial number.
deviceTyperequiredstring
Terminal model, PAXA920.
batchNumberoptionalstring
Batch to close or query. Omit it and the gateway uses the terminal's current open batch.
retrievalReferenceNumberoptionalstring
Detail only. Page cursor: the retrievalReferenceNumber of the last (oldest) item of the previous page. Omit on the first call.
  • Detail is paged, 5 per page, newest first. The page size is fixed. A page can hold fewer than 5 items while older ones remain (the gateway leaves out types it does not report, such as voids): stop only when details is empty or missing.
  • details[].transactionType: SALE, REFUND, TIP_ADJUSTMENT, PREAUTHORIZATION_INCREASE or PREAUTHORIZATION_CAPTURE. A pre-authorization is reported as SALE. On a closed batch amount is the settled amount, on an open batch the authorized amount. Detail does not list every type: reconcile totals with the summary.
  • On an open batch, new transactions go to the top and do not appear in later pages. Start again without the cursor to include them.
  • Summary: transactionCount counts every type; salesCount and refundsCount are in customFields.entry[]. closedAt (YYYYMMDDHHmmssSSS) is present only when batchStatus is CLOSED.
  • Amount units: the EPI acquirer page says netAmount and detail amount are minor units (644397 = 6,443.97), and its examples are EPI responses. Handpoint’s general back-office guide shows major units ("1000.00"). Check against a batch you know before relying on either.
  • After a close, tip adjustments and reversals no longer apply; only refunds.
  • An already-closed batch (automatic close ran, or an earlier close succeeded) returns the nested closebatch error with issuerResponseCode 03 “NOT ALLOWED”. A summary for a batch that does not exist, or a closed batch with no transactions, returns 02 “COULD NOT FIND”; a detail for an unknown batch number carries batchStatus: UNKNOWN. A missing serialNumber or deviceType returns 422 VALIDATION_FAILED. The back-office guide names the close errors BATCH_ALREADY_CLOSED and NO_TRANSACTIONS; neither needs action.
  • EPI: a missed daily close produces BATCH_NUM_ERR_005 the next day.
Close the open batch
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/batch/close \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "serialNumber": "082104578",
  "deviceType": "PAXA920"
}'
Already closed
↓ Response – what comes back
{
  "error": {
    "statusCode": 400,
    "name": "BadRequestError",
    "message": "Viscus operation failed",
    "details": {
      "status": 403,
      "body": {
        "closebatch": {
          "httpStatus": "403",
          "batchNumber": "63",
          "closeBatchGuid": "34645ff0-bcb2-11f1-a903-a92d2c2c7176",
          "issuerResponseCode": "03",
          "issuerResponseText": "NOT ALLOWED",
          "batchStatus": "CLOSED"
        }
      }
    }
  }
}
Summary
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/batch/summary \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "serialNumber": "082104578",
  "deviceType": "PAXA920",
  "batchNumber": "132"
}'
Detail, page 1
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/batch/detail \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "serialNumber": "082104578",
  "deviceType": "PAXA920",
  "batchNumber": "132"
}'
Detail, next page
↑ Request – what you send
{
  "serialNumber": "082104578",
  "deviceType": "PAXA920",
  "batchNumber": "132",
  "retrievalReferenceNumber": "627121800441"
}
billing { zipCode, address } · EPI

Address verification (AVS)

Attaches a postal code and optional street address to a remote sale or remote pre-authorization. Handpoint forwards it to the acquirer and does not validate it. Not for card-present sales or refunds. Needs motoEnabled and the Handpoint-set flag avsForMoto (the Android SDK reads it as "AVS"). Android SDK 7.1014.0+.

  • zipCode is required whenever billing is sent; address is optional.
  • enableAvsFields: true makes the terminal ask; it is ignored when billing is set.
  • Do not store or log the address in clear text. The postal code can be logged.
addressVerification.resultCode (REST API 2.31.0+, MOTO sale and pre-auth)
FULL_MATCH / EXACT_MATCHoptionalenum
Postal code and street both match.
ADDRESS_MATCHoptionalenum
Street matches, postal code does not.
ZIP_MATCH / ZIP9_MATCHoptionalenum
5- or 9-digit postal code matches, street does not.
NO_MATCHoptionalenum
Neither matches.
UNSUPPORTED / INTERNATIONALoptionalenum
Card or issuer does not take part in AVS.
RETRY / UNAVAILABLE / UNKNOWNoptionalenum
Issuer unavailable, not available, or not recognized. Treat as unverified.

A match does not prevent disputes and a mismatch does not force a decline. The field is omitted when no AVS result comes back.

Remote sale with billing
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/sale \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "33.09",
  "currency": "USD",
  "cardToken": "<card-token>",
  "transactionReference": "c1e1a7ee-1432-4a9c-9171-414e203dbb49",
  "billing": {
    "zipCode": "10001",
    "address": "123 Main St"
  }
}'
Android SDK
↑ Request – what you send
// Option A: your own billing screen
val billing = Billing(zipCode = "10001", address = "123 Main St")
val options = MoToOptions(cardToken = "<card-token>", billing = billing)
hapi.motoSale(BigInteger("1000"), Currency.USD, options)

// Option B: the terminal asks for the ZIP code
val options = MoToOptions(cardToken = "<card-token>", enableAvsFields = true)
hapi.motoSale(BigInteger("1000"), Currency.USD, options)

// Read the merchant flag to show or hide your billing fields
val isAvsEnabled = hapi.getDeviceCapabilities()?.let { it.options["AVS"] == true } ?: false
taxInformation + purchaseOrderNumber · REST API 2.34.0

Level 2 purchasing data

Tax amount, tax-exempt flag and PO number. On commercial and corporate cards it can qualify for lower interchange. Must be enabled on the merchant’s acquirer agreement.

EndpointWheretaxAmount format
POST /transactionssale, moToSale, saleAndTokenizeCard, preAuthorizationCapture, tipAdjustmentString, minor units ("100" = 1.00)
POST /moto/saleAlwaysString, decimal major units ("1.00")
POST /preauthorization/captureAlwaysString, decimal major units
POST /transactions/{guid}/tip-adjustmentAlwaysNumber, major units (1.00)
  • taxInformation and purchaseOrderNumber travel together; one without the other returns 400 (except on tip adjustments, which take no PO).
  • Tip adjustments relax the tax rules: taxAmount is optional ({ taxExempt: true } alone is valid) and can be 0 when not exempt, which is how the tax on a tip is corrected to zero.
  • taxAmount is required: 0 when taxExempt is true, greater than 0 otherwise, and never above the amount.
  • purchaseOrderNumber: A-Z a-z 0-9 only, 25 characters or fewer.
  • The top-level taxAmount on POST /transactions is deprecated.
  • The result echoes what you sent (taxExempt); gateway responses return taxAmountIdentifier ("1" local sales tax, "2" exempt) in major units.
  • A field of the wrong type is rejected earlier with 422.
Sale (minor units)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "10000",
  "currency": "EUR",
  "terminal_type": "PAXA920",
  "serial_number": "1547854757",
  "taxInformation": {
    "taxAmount": "500",
    "taxExempt": false
  },
  "purchaseOrderNumber": "PO4711"
}'
Tax-exempt remote sale (major units)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/sale \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "20.00",
  "currency": "EUR",
  "cardToken": "<card-token>",
  "taxInformation": {
    "taxAmount": "0",
    "taxExempt": true
  },
  "purchaseOrderNumber": "PO12345"
}'
Validation error
↓ Response – what comes back
{
  "error": {
    "statusCode": 400,
    "name": "BadRequestError",
    "message": "Missing purchaseOrderNumber, mandatory when taxInformation is present"
  }
}
merchantAuth [{ externalId }]

Multi-MID

One merchant credential, several merchant accounts: a clinic with a sub-MID per doctor, stylists who settle separately, vendors at an event. Handpoint provisions the sub-MIDs and gives you an externalId for each; you send it on each originating transaction. Same API key or SSK for all.

OperationmerchantAuth
Sale, pre-auth create, terminal increase / reversalYes
POST /moto/sale, unlinked /moto/refundYes
POST /preauthorization/capture and /increaseAllowed; routing comes from the original
Reversal, tip adjustment, card token, batch closeNo; inherited from the original
  • Exact, case-sensitive match to a provisioned subMerchantExternalId, max 23 characters. No fallback to the main MID: an unknown id declines “Invalid Merchant” (arc 1000) after the card is read.
  • The externalId is not echoed in the result, and mid in the result is the terminal default. Store the id you sent with the transactionID.
  • Report per sub-MID from the Transaction Feed (Cloud API: filter by externalId).
  • Supported: Cloud API, Android SDK (PAX), iOS SDK (raw acquirer / mid / tid, no externalId). Not supported: Android HiLite, Windows SDK, Cordova.
Route a sale to a sub-MID
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "5000",
  "currency": "USD",
  "terminal_type": "PAXA920",
  "serial_number": "082104578",
  "transactionReference": "2bfde1fc-23b1-4c67-93d9-1d4a557f4d4f",
  "merchantAuth": [
    {
      "externalId": "dr-smith"
    }
  ]
}'
Unknown externalId
↑ Request – what you send
{
  "finStatus": "DECLINED",
  "statusMessage": "Invalid Merchant",
  "arc": "1000"
}
Sale with tip or tip adjustment, never both

Tipping

Sale with tipTip adjustment
WhenCardholder picks before the card is processedStaff enter it from the signed receipt
HowtipConfiguration on the salePOST /transactions/{id}/tip-adjustment
AcquirersAllEPI and Paysafe (not Interac)
BatchNo dependencyBefore batch close
FitsCounter or handheldTable service

For pre-auth flows (tabs, hotels) put the tip in tipAmount on the capture. iOS HiLite has no tipConfiguration: tipping is turned on per terminal profile in the Handpoint Portal.

Under development at Handpoint · Android PAX first

Fee mitigation

Availability
Handpoint marks this feature under development. The Android SDK on PAX carries it first. The Cloud API does not forward fee yet; POST /transactions takes only the deprecated flat surchargeAmount. HiLite, iOS, Windows and Cordova do not support it.
ProgramCustomer seesCards
SurchargePrice plus a separate credit card feeCredit only, never debit or prepaid
Dual pricingA cash price and a higher card priceEvery card
Admin feeA fee on every payment methodEvery card
Cash discountCard price, lower price for cashNone; the gateway refuses it on a card
fee (request, minor units)
amountrequiredinteger
The whole fee, tax inside it included. The SDK adds it to the operation amount. Never negative.
mitigationProgramrequiredenum
SURCHARGE, ADMIN_FEE, CASH_DISCOUNT, DUAL_PRICING. On the wire: surcharge, adminFee, cashDiscount, dualPricing.
taxOnFeeoptionalinteger
The part of amount that is tax. Not above taxInformation.taxAmount.
fee (result, major units)
amount / taxOnFeeoptionaldecimal
Fee recorded. When applied is false, this is what you asked for, not what was paid.
mitigationProgramoptionalenum
Program applied.
appliedoptionalboolean
Whether the gateway charged the fee.
reasonoptionalenum
APPLIED, NOT_ELIGIBLE_DEBIT, NOT_ELIGIBLE_PREPAID, PROGRAM_NOT_ENABLED, PROGRAM_NOT_SUPPORTED, UNKNOWN. The current build returns the first two.
reasonDetailoptionalstring
Raw gateway text when reason is UNKNOWN.
  • Allowed on sale, sale with tip, sale with tokenization and remote sale; surcharge and admin fee also on pre-auth capture. Never on pre-auth create, refunds, tip adjustment, tokenization or batch. Reversals carry the original fee automatically.
  • A refund does not return the fee for you: add the proportional fee to the refund amount yourself.
  • Refused before authorization: 4258 SURCHARGE_NOT_ENABLED, 4268 FEE_SURCHARGE_AMOUNT_CONFLICT (fee and surchargeAmount disagree), 4269 FEE_TAX_ON_FEE_EXCEEDS_L2_TAX, FIELD_REQUIRED, AMOUNT_FORMAT, MITIGATION_PROGRAM_INVALID.
  • Only a surcharge reaches the card networks as a fee; admin fees and dual prices travel inside the amount.
  • The fee values are not in merchant reports or the Transaction Feed yet. Store the fee result yourself.

Surcharge rules belong to the merchant: notice at the entrance and point of sale, 30 days notice to the networks and acquirer, a 3% cap or the cost of acceptance if lower, and no surcharge in the states and territories that prohibit it.

Android SDK (PAX)
↑ Request – what you send
val fee = Fee(
    amount            = BigInteger("360"),   // 3.60
    mitigationProgram = FeeMitigationProgram.SURCHARGE,
    taxOnFee          = BigInteger("60")     // 0.60, already inside amount
)
val options = SaleOptions()
options.fee = fee
hapi.sale(BigInteger("10000"), Currency.USD, options)   // base 100.00; the SDK adds the fee

override fun endOfTransaction(result: TransactionResult, device: Device) {
    val feeResult = result.fee ?: return
    if (feeResult.applied) { /* print the fee line, settle result.totalAmount */ }
    else { /* no fee line; read feeResult.reason */ }
}
Cloud API (planned shape)
↑ Request – what you send
{
  "operation": "sale",
  "amount": "10000",
  "currency": "USD",
  "terminal_type": "PAXA920",
  "serial_number": "082104578",
  "fee": {
    "amount": "360",
    "mitigationProgram": "surcharge",
    "taxOnFee": "60"
  }
}
moneyRemittanceOptions · EmerchantPay · MCC 4829 / 6540

Money remittance

Flags a card-present sale as a cross-border money transfer. Mastercard needs moneyRemittanceOptions; for Visa send a normal sale with the object omitted. The brand cannot be detected before the tap, so ask which card is being used first. Android SDK 7.1004.1+; not on iOS HiLite.

fullNamerequiredstring
Recipient full name, max 30 characters.
countryCoderequiredstring
Destination country, ISO 3166-1 alpha-3 (GBR, USA, DEU). An invalid code can surface as “No device listening”.
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "10000",
  "currency": "EUR",
  "terminal_type": "PAXA920",
  "serial_number": "082104578",
  "moneyRemittanceOptions": {
    "fullName": "Peter Parker",
    "countryCode": "GBR"
  },
  "transactionReference": "8a1d2c3b-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
}'
POST /devices/{terminal_type}/{serial_number}/{command}

Device commands

Commands travel over the Cloud message channel to a connected PAX terminal. Every command returns 202 Accepted and runs on the device shortly after. The terminal must be online, in integrated (Cloud) mode set in Handpoint TMS, with Payments App 4.6.0+ (Android SDK 7.1006.0+). Without integrated mode the API still answers 202 but nothing happens.

POST/devices/{terminal_type}/{serial_number}/set-security-policy
Set each restriction on its own; omitted fields stay unchanged; {} changes nothing. Survives restarts and reboots; the app returns to the payment screen. Recommended over set-unattended-mode.
POST/devices/{terminal_type}/{serial_number}/set-unattended-mode
Kiosk mode: hides the Android navigation bar and the History, Analytics and Settings tabs. Body { status }.
POST/devices/{terminal_type}/{serial_number}/set-locale
Body { locale }, for example en_US, en_CA, fr_CA, es_ES.
POST/devices/{terminal_type}/{serial_number}/set-password-protected
PIN on the Payments App settings screen. Body { status }.
POST/devices/{terminal_type}/{serial_number}/reboot
Body { force }: false checks for a transaction in progress first; true reboots immediately.
POST/devices/{terminal_type}/{serial_number}/set-screen-brightness
Body { minimumBrightnessLevel, maximumBrightnessLevel }, integers 0 to 100.
POST/devices/{terminal_type}/{serial_number}/set-reboot-time
Daily reboot at a random minute in hour (0 to 23). Production devices only.
set-security-policy body
hideTabBaroptionalboolean
true hides the bottom tab bar (History, Analytics, Settings); Android system menus stay reachable.
blockSystemUIoptionalboolean
true locks the Android status and navigation bars.
brightnessoptionalboolean
true dims the screen when idle and restores it when a transaction starts.
passwordToExitoptionalboolean
true requires a PIN before restrictions can be lifted.
StatusMeaning
202Accepted; will run on the device
400Device not listening (offline or not in integrated mode), or a value out of range
403Authentication failed
422Invalid request body
Not available from Handpoint
Idle-screen branding or logos, hiding the cancel key, and pushing customer-display messages are not device commands. A merchant theme (logos and colors in the Payments App) is set in TMS with theme.
Security policy (App 4.14.1+)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/devices/PAXA920/082104578/set-security-policy \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "hideTabBar": true,
  "blockSystemUI": false
}'
Unattended (kiosk) mode
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/devices/PAXA920PRO/1850025030/set-unattended-mode \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "status": true
}'
Reboot
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/devices/PAXA920PRO/1850025030/reboot \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "force": false
}'
Brightness range
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/devices/PAXA920PRO/1850025030/set-screen-brightness \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "minimumBrightnessLevel": 20,
  "maximumBrightnessLevel": 100
}'
03
Native and web

SDKs

Run on the PAX terminal, pair with a HiLite reader, or drive a terminal through the Cloud from a browser or desktop POS.

Android · iOS · JavaScript · Windows · CordovaAuth: sharedSecret or API key
Your app runs on the terminal · com.handpoint.api:sdk

Android SDK (PAX)

Your Android app and the Handpoint Payments App share the PAX terminal; the SDK talks to it over IPC. Use it when the terminal is your product (tableside ordering, mobile POS, ticketing, parking). Unsigned APKs need a PAX debug device and release-candidate builds from Integration Support.

  • Wait for InitialisationComplete before any financial call, or you get CommandNotAllowed / NotInitialised.
  • OperationStartResult.operationStarted means accepted, not approved. The outcome is always in endOfTransaction.
  • Amounts are BigInteger minor units.
MethodNotes
sale(amount, currency, options?)SaleOptions: transactionReference, tipConfiguration, merchantAuth, bypassOptions, metadata, fee
sale(amount, currency, SaleAndTokenizeOptions())Charge and tokenize; result.cardToken, result.cardTokenProvider (EPI / PROCHARGE)
tokenizeCard()Token only, no charge
tokenizedOperation(amount, currency)Fires Events.CardTokenized; resume with OperationDto.Sale or cancel
refund(amount, currency, originalTransactionID?)Linked when the id is passed
saleReversal(amount, currency, originalTransactionID)Same day, before batch close
refundReversal(amount, currency, originalTransactionID)Same day, before batch close
automaticRefund(originalTransactionID) / (amount, currency, id)Refund on the stored token, no card
preAuthorization(amount, currency)Hold
preAuthorizationIncrease(amount, currency, preAuthID)Adjust the hold
preAuthorizationCapture(amount, currency, preAuthID, options?)PreAuthorizationCaptureOptions for Level 2 (7.1015.0, pending)
preAuthorizationReversal(preAuthID)Release the hold or reverse a capture
motoSale(amount, currency, options?)Manual entry screen; MoToOptions(cardToken, billing, enableAvsFields, duplicationCheck)
motoRefund(amount, currency, originalTransactionID?) / motoReversal(id) / motoPreauthorization(amount, currency)Card-not-present on the terminal; needs cloudApiKey and MOTO enabled
tipAdjustment(tipAmount, currency, originalTransactionID)Returns Boolean and also fires endOfTransaction
deferredTokenization(originalTransactionID)Token from an earlier transaction (7.1013.0+)
getTransactionStatus(transactionReference)Recovery; result in transactionResultReady
cardPan()Full PAN for card ranges Handpoint whitelists (loyalty)
stopCurrentTransaction()false when idle
getEMVConfiguration(), deleteDeviceConfig(), setLocale(locale), getDeviceManufacturer(), disconnect(), update(), getDeviceLogs()Device management
Gradle
↑ Request – what you send
// app module build.gradle
dependencies {
    implementation 'com.handpoint.api:sdk:7.x.x'   // latest: 7.1014.1
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'   // 7.1014.0+
}
android {
    defaultConfig {
        minSdkVersion 22
        multiDexEnabled true
        ndk { abiFilters "armeabi-v7a" }
    }
    compileOptions { coreLibraryDesugaringEnabled true }
    packaging { jniLibs { pickFirsts += ['**/*.so'] } }
}
// AndroidManifest.xml: <application android:extractNativeLibs="true">
// and android:launchMode="singleTask" on the activity
Initialise and take a sale
↑ Request – what you send
class MainActivity : AppCompatActivity(), Events.SmartposRequired {
    private lateinit var hapi: Hapi

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val credentials = HandpointCredentials(
            sharedSecret = "<64-char-hex-shared-secret>",
            cloudApiKey  = "<cloud-api-key>"   // keyed entry, recovery, integrated mode
        )
        hapi = HapiFactory.getAsyncInterface(this, this, credentials, Settings())
    }

    override fun currentTransactionStatus(statusInfo: StatusInfo, device: Device) {
        if (statusInfo.status == StatusInfo.Status.InitialisationComplete) {
            // safe to start financial operations
        }
    }

    fun charge() {
        val ref = UUID.randomUUID().toString()
        db.savePendingTransaction(ref)                 // persist first
        val options = SaleOptions().apply { transactionReference = ref }
        val op = hapi.sale(BigInteger("1000"), Currency.USD, options)  // 10.00
        // op.operationStarted == true means the SDK accepted the command
    }

    override fun endOfTransaction(result: TransactionResult, device: Device) {
        when (result.finStatus) {
            FinancialStatus.AUTHORISED       -> save(result.transactionID)
            FinancialStatus.PARTIAL_APPROVAL -> handlePartialApproval(result)
            else                             -> {}
        }
    }

    override fun connectionStatusChanged(status: ConnectionStatus, device: Device) { }
    override fun transactionResultReady(result: TransactionResult, device: Device) { }
}
Unsigned APK · adb install · staging

PAX debug terminals and manual injection

PAX production terminals only install APKs signed with a PAX-issued key. To run your own build during development you need a PAX debug terminal, ordered through your referring partner. Debug terminals accept unsigned APKs and connect to the Handpoint staging environment on their own: trigger amounts work, real cards are accepted, no money moves.

TerminalSDK buildExample
Debug (staging)RC / SNAPSHOT build from Handpoint's private Nexus7.1012.1-RC.1-SNAPSHOT
ProductionStandard release7.1012.1
  1. Ask Integration Support for the Nexus URL and credentials after the debug device is ordered, and add the repository to Gradle.
  2. Build an unsigned debug APK.
  3. Connect the terminal by USB and enable USB debugging. Some models expose it under Settings, About (tap the build number); others need an engineer-menu code from Integration Support. On Windows, install the PAX USB driver first.
  4. Run adb install. A production terminal rejects it with INSTALL_FAILED_UPDATE_INCOMPATIBLE or INSTALL_FAILED_ABORTED.
SymptomFix
adb devices returns nothingInstall the PAX USB driver, enable USB debugging, check the cable.
adb devices shows unauthorizedAccept the RSA prompt on the terminal.
INSTALL_FAILED_TEST_ONLYInstall with adb install -t, or remove android:testOnly="true" from the manifest.
INSTALL_FAILED_UPDATE_INCOMPATIBLEVersion conflict: adb uninstall the package first.
App runs but cannot reach the gatewayProduction SDK on a debug terminal. Use the RC / SNAPSHOT build.
App crashes on startUse only armeabi-v7a in abiFilters. arm64-v8a crashes on 64-bit PAX devices.
  • Debug terminals do not get EMV kernel updates through PAXStore; they stay on the firmware Handpoint provisioned.
  • Keep debug terminals and Nexus credentials with developers. Never deploy a debug terminal to a merchant or connect it to live acquirer credentials.
Gradle: RC build from Handpoint Nexus
↑ Request – what you send
// settings.gradle (or top-level build.gradle)
dependencyResolutionManagement {
  repositories {
    google()
    mavenCentral()
    maven {
      name = "HandpointNexus"
      url = uri("<nexus-url-from-integration-support>")
      credentials {
        username = "<nexus-username>"
        password = "<nexus-password>"
      }
    }
  }
}

// app/build.gradle
dependencies {
  implementation 'com.handpoint.api:sdk:7.x.x-RC.x-SNAPSHOT'   // build supplied by Integration Support
}
Build and install
↑ Request – what you send
./gradlew assembleDebug
# APK: app/build/outputs/apk/debug/app-debug.apk

adb devices               # the terminal must show as authorized
adb install app-debug.apk
adb install -r app-debug.apk   # replace an existing install
On-terminal app + Cloud API on one terminal

Android SDK: integrated (Cloud) mode

The terminal takes sales from your on-terminal app and from your server through the Cloud API at the same time. Both land in endOfTransaction; transactionOrigin is STANDALONE or CLOUD.

  • cloudApiKey opens the cloud channel. Without it InitialisationComplete fires but CloudConnected never does.
  • InitialisationComplete arrives within about 1 s; CloudConnected about 3 s later. If it has not come 15 s after initialisation, show an error.
  • Implement Events.TransactionStarted to know when a server-sent transaction arrives.
  • TMS defaultCloudMode: true starts the Payments App in integrated mode.
Two readiness events
↑ Request – what you send
val credentials = HandpointCredentials(sharedSecret = ssk, cloudApiKey = apiKey)
val hapi = HapiFactory.getAsyncInterface(
    delegate = this, context = applicationContext,
    credentials = credentials, settings = Settings()
)
hapi.registerEventsDelegate(this)   // required from SDK 7.1010.x
hapi.connect(Device("My Terminal", "", "", ConnectionMethod.ANDROID_PAYMENT))   // address must be ""

override fun connectionStatusChanged(status: ConnectionStatus, device: Device) {
    if (status == ConnectionStatus.CloudConnected) markCloudReady()
}

// Cloud API transactions fire this before the first status update
override fun transactionStarted(type: TransactionType, amount: BigInteger,
                                currency: Currency, transactionReference: String) { }

override fun endOfTransaction(result: TransactionResult, device: Device) {
    val isCloud = result.transactionOrigin == TransactionOrigin.CLOUD
}
Phone or tablet + Bluetooth reader

Android SDK (HiLite)

Same SDK, ConnectionMethod.BLUETOOTH, sharedSecret only. Latest HiLite SDK 7.1004.3. Add BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions on Android 12+. MAC addresses are upper case. The SDK reconnects automatically unless Settings.automaticReconnection = false.

  • Not on HiLite: pre-authorization, keyed entry on the reader, getTransactionStatus, Multi-MID, fee mitigation. Use back-office calls to fill gaps.
  • Bluetooth callbacks run on a background thread: post UI work to the main looper.
Connect and sell
↑ Request – what you send
class MainActivity : AppCompatActivity(), Events.MposRequired {
    private lateinit var hapi: Hapi

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        hapi = HapiFactory.getAsyncInterface(this, this,
            HandpointCredentials(sharedSecret = "<64-char-hex-shared-secret>"), Settings())
        hapi.searchDevices(ConnectionMethod.BLUETOOTH)
        // or: hapi.connect(Device("PP0513901435", "68:AA:D2:00:D5:27", "", ConnectionMethod.BLUETOOTH))
    }

    override fun deviceDiscoveryFinished(devices: List<Device>) {
        if (devices.isNotEmpty()) hapi.connect(devices.first())
    }

    // HiLite has no signature screen: show yours, then answer
    override fun signatureRequired(signatureRequest: SignatureRequest, device: Device) {
        hapi.signatureResult(true)
    }

    fun charge() { hapi.sale(BigInteger("1000"), Currency.USD) }

    override fun endOfTransaction(result: TransactionResult, device: Device) { }
    override fun currentTransactionStatus(statusInfo: StatusInfo, device: Device) { }
    override fun connectionStatusChanged(status: ConnectionStatus, device: Device) { }
    override fun transactionResultReady(result: TransactionResult, device: Device) { }
}
Events.* interfaces

Android SDK events

Required interface by device
Events.SmartposRequiredoptionalPAX
connectionStatusChanged, currentTransactionStatus, endOfTransaction, transactionResultReady.
Events.MposRequiredoptionalHiLite
Adds deviceDiscoveryFinished(devices) and signatureRequired(request, device).
Events.PosRequiredoptionalBoth
All six methods, for one app that supports both device types.
Optional interfaceCallback
Events.TransactionStartedtransactionStarted(type, amount, currency, reference): Cloud-initiated transaction started
Events.CardTokenizationCard tokenized during tokenizedOperation
Events.PrinterEventsprintSuccess() / printError(error)
Events.ReportResultreportResult(type, report, status, device): reports and EMV configuration
Events.ReceiptEvent / ReceiptUploadingEventReceipt HTML (guid, merchantReceipt, customerReceipt) / hosted URLs (merchantUrl, customerUrl)
Events.MessageHandlingshowMessage(message, dismissible, duration) / hideMessage(message)
Events.NetworkStatusChangednetworkStatusChanged(networkStatus, device)
Events.LogonMessageLogged(level, message), deviceLogsReady(logs, device)
Events.CardBrandDisplay, DependantRefundReceived, DependantReversalReceived, DeviceCapabilitiesReady, HardwareStatusChanged, PhysicalKeyboardEventDevice and flow notifications

transactionResultReady can fire alongside endOfTransaction; make your handler idempotent. PAX (ANDROID_PAYMENT) callbacks run on the main thread; Bluetooth callbacks on a background thread.

pod 'HandpointSDK' · HeftManager / HeftClient

iOS SDK (HiLite)

Latest 4.0.2. Connects over Bluetooth, or Lightning for HiPro (skip discovery and use connectedCardReaders). Your provisioning profile must include com.datecs.pinpad. Each method returns BOOL (sent or not); results arrive in responseFinanceStatus:.

MethodNotes
saleWithAmount:currency:cardholder: / options:SaleOptions: customerReference, merchantAuth, divideByMonths
saleAndTokenizeWithAmount:currency:options:Token in CardToken
saleReversalWithAmount:currency:transactionId:options:Same day; amount and currency must match
refundWithAmount:currency:transaction:options:Linked to the original sale
refundReversalWithAmount:currency:transactionId:options:Void a refund
Tokenize card, accept signature, retrieve pending transaction, tip adjustment, stopSee Handpoint's iOS reference
  • Not on iOS: pre-authorization, keyed entry, getTransactionStatus (recover from your server), transactionReference as a request field, tipConfiguration (tipping is set per terminal profile in the Handpoint Portal), fee mitigation.
  • Multi-MID uses raw acquirer / mid / tid on Credential; there is no externalId.
  • Delegates: didFindAccessoryDevice:, didDiscoverFinished, didConnect:, responseStatus:, responseError:, responseFinanceStatus:, requestSignature:, cancelSignature, responseRecoveredTransactionStatus:, responseLogInfo:.
  • KI-2024-004 (open): after an iOS 17.4+ background refresh the Bluetooth connection is not re-established automatically.
Setup
↑ Request – what you send
# Podfile
pod 'HandpointSDK'

<!-- Info.plist -->
<key>UISupportedExternalAccessoryProtocols</key>
<array><string>com.datecs.pinpad</string></array>
<key>UIBackgroundModes</key>
<array><string>external-accessory</string></array>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Used to connect to the HiLite card reader</string>

# Build settings: Other Linker Flags -lc++ ; Build Active Architecture Only YES
Connect and sell
↑ Request – what you send
class ViewController: UIViewController, HeftDiscoveryDelegate, HeftStatusReportDelegate {
    var manager: HeftManager!
    var heftClient: HeftClient?

    override func viewDidLoad() {
        super.viewDidLoad()
        manager = HeftManager.sharedManager()
        manager.delegate = self
        manager.startDiscovery()
    }

    func didDiscoverFinished() {
        if let device = manager.connectedCardReaders().first as? HeftRemoteDevice {
            manager.clientForDevice(device, sharedSecret: "<64-char-hex-shared-secret>", delegate: self)
        }
    }

    func didConnect(_ client: HeftClient!) {
        heftClient = client
        heftClient?.saleWithAmount(1000, currency: "USD", cardholder: true)
    }

    func responseFinanceStatus(_ info: FinanceResponseInfo!) {
        let approved = info.statusMessage == "AUTHORISED"
    }
}
npm @handpoint/cloud-js-sdk · PAX through the Cloud

JavaScript SDK

Runs in the browser or Node and drives a PAX terminal through the Handpoint Cloud with the merchant API key. Amounts are minor-unit strings.

MethodNotes
init(apiKey, environmentIsDevelopment, recovery_EoT_callback)Promise<Device[]>
connect(deviceName) / disconnect(deviceName) / stopListeningDevice()Connect once and keep the channel
sale / saleAndTokenization / preAuthorization / moToSale (amount, currency, saleOptions?, callback?)Return { transactionReference, transactionResult }
refund / moToRefund (amount, currency, originalTransactionId?, refundOptions?, callback?)Linked when the id is passed
saleReversal / refundReversal (amount, currency, originalId, ...)Voids
preAuthorizationIncrease (amount, currency, originalId, ...)Negative amount decreases
preAuthorizationCapture, preAuthorizationReversal, moToReversal, tokenizeCard(options, callback)
tipAdjustment(tipAmount, originalTransactionID)Promise<{ finStatus, statusMessage }>; minor units
stopCurrentTransaction(), getTransactionStatus(ref)Cancel; recovery
batchSummary / batchDetail / closeBatch (serialNumber, deviceType, batchNumber)Back office
printReceipt(receipt), pingDevice(), update(), cardPan()Utilities

SaleOptions: customerReference, tokenize, duplicate_check, tipConfiguration, bypassOptions, merchantAuth (acquirer, mid, tid, mcc or externalId), metadata, moneyRemittanceOptions. JS tip adjustment is documented by Handpoint for TSYS and Worldpay/Vantiv.

Init, connect, sell
↑ Request – what you send
// npm install @handpoint/cloud-js-sdk
const hp = require('@handpoint/cloud-js-sdk');

// true routes to debug terminals (cloud.handpoint.io)
await hp.init('<merchant-api-key>', false, (pendingEoT) => {
  // a previous transaction has no stored result; must return a Promise
  return hp.getTransactionStatus(pendingEoT.transactionReference);
});

await hp.connect('0821032395-PAXA920');   // serialNumber-terminalType; keep it open

const op = hp.sale('1000', 'USD', { customerReference: 'ORDER-123' }, (stat) => {
  console.log(stat.status, stat.message, stat.isCancelAllowed);
});
await db.savePendingTransaction(op.transactionReference);   // before awaiting
const result = await op.transactionResult;
console.log(result.finStatus);
NuGet HandpointSDK · PAX (Cloud) or HiLite (Bluetooth)

Windows SDK (.NET)

PAX through the Cloud (ConnectionMethod.CLOUD, address serialNumber-terminalType) or HiLite over Bluetooth (pair in Windows first). Operations mirror Android: Sale, SaleAndTokenizeCard, SaleReversal, Refund, RefundReversal, MoToSale, MoToRefund, MoToReversal, MoToPreAuthorization, PreAuthorization, increase / capture / reversal, TokenizeCard, TipAdjustment, StopCurrentTransaction, PrintReceipt, GetTransactionStatus.

Device management: Disconnect, SetLogLevel, GetDeviceLogs, GetPendingTransaction, Update, SearchDevices, StartMonitoringConnections. Multi-MID is not implemented on Windows.

Connect and sell
↑ Request – what you send
// dotnet add package HandpointSDK
using com.handpoint.api;

public class PaymentHandler : Events.Required, Events.Status
{
    private Hapi hapi;

    public void Initialize()
    {
        var credentials = new HandpointCredentials(
            sharedSecret: "<64-char-hex-shared-secret>",
            cloudApiKey:  "<cloud-api-key>"   // omit for Bluetooth only
        );
        hapi = HapiFactory.GetAsyncInterface(this, credentials);
        hapi.Connect(new Device("MyTerminal", "0821032395-PAXA920", "", ConnectionMethod.CLOUD));
    }

    public void Charge()
    {
        OperationStartResult op = hapi.Sale(new BigInteger(1000), Currency.USD);
        // result arrives in EndOfTransaction, not here
    }

    // Runs on a background thread: marshal to the UI thread
    public void EndOfTransaction(TransactionResult result, Device device) { }
    public void CurrentTransactionStatus(StatusInfo status, Device device) { }
    public void DeviceDiscoveryFinished(List<Device> devices) { }
    public void SignatureRequired(SignatureRequest request, Device device) { hapi.SignatureResult(true); }
    public void TransactionResultReady(TransactionResult result, Device device) { }
}
cordova-plugin-handpoint

Cordova / Ionic plugin

Wraps the native Android (PAX and HiLite) and iOS (HiLite) SDKs. Call handpoint.setup() once at start-up. Results arrive as DOM events. transactionReference is a top-level option on HAPI.sale. Latest plugin 4.14.0.

Not on HiLite through Cordova: pre-authorization and keyed entry. Multi-MID and fee mitigation are not implemented in the plugin.

Choosing
Use the integration paths table to pick a path; any of them can add the back-office calls.
Setup and sale
↑ Request – what you send
// cordova plugin add cordova-plugin-handpoint
// Ionic: npm install cordova-plugin-handpoint && ionic cap sync

handpoint.setup({ sharedSecret: '<64-char-hex-shared-secret>', automaticReconnection: true }, ok, fail);

document.addEventListener('handpoint.endOfTransaction', (event) => {
  const result = event.detail.transactionResult;
  // AUTHORISED, DECLINED, CANCELLED, FAILED, UNDEFINED (recover; do not retry)
});

HAPI.connect({ deviceName: '0821032395-PAXA920' }, ok, fail);   // PAX Cloud
// HiLite: HAPI.startMonitoring(ok, fail) then handpoint.deviceDiscoveryFinished

HAPI.sale({ amount: 1000, currency: 'USD', customerReference: 'ORDER-123' }, ok, fail);
What each acquirer supports on the Cloud API

Acquirers

One Handpoint integration reaches several acquirers, but the operations available differ. Merchant flags (refunds, pre-auth, MOTO, AVS, partial reversal, tip adjust, batch) are TMS settings.

OperationAcquirers
Sale, refund, on-device reversal, remote reversal, tokenizationEPI, Paysafe, EmerchantPay, Paystrax
Tip adjustmentEPI, Paysafe
Pre-authorizationEPI, EmerchantPay, Paystrax
Remote sale on a token (MOTO)EPI, EmerchantPay
Batch close / summary / detailEPI
Money remittanceEmerchantPay

North America: EPI and Paysafe. Europe: EmerchantPay and Paystrax, plus SmartBoard for ecommerce (hosted payment page, hosted fields, direct, pay by link). TSYS has its own Handpoint acquirer page.

/acquirers/epi · capability matrix

EPI acquirer features

What Handpoint supports when EPI is the acquirer (TSYS). Merchant flags (MOTO, AVS for MOTO, partial reversal, tip adjust, batch) are server-side TMS settings.

OperationCloudPAXHiLiteBack office
SaleYesYesYesNo
RefundYesYesYesNo
ReversalYesYesYesYes
Tip adjustmentYesYesYesYes
Pre-authYesYesNoYes
Pre-auth capture reversalYesYesNoYes
MOTOYesYesNoNo
TokenizationYesYesYesNo
BatchNoNoNoYes (US/CA, TMS-enabled)

Sale fields (Cloud)

amount, currency, terminal_type, serial_number, customerReference, transactionReference, callbackUrl, token, taxInformation, purchaseOrderNumber, duplicate_check, bypassOptions {signatureBypass, pinBypass}, tipConfiguration, merchantAuth, metadata, moneyRemittanceOptions, billing.

Features
Partial reversaloptionalEPI only
Per-merchant TMS enablement. Non-cumulative. Not on Amex. Cloud, PAX, Cordova, Windows, REST. Errors AMOUNT_EXCEEDS_ORIGINAL, OPERATION_NOT_SUPPORTED, ORIGINAL_NOT_FOUND, 403, 400 “Device is busy”.
TokenizationoptionalEPI / PROCHARGE
tokenizeCard (no amount, result PROCESSED) and saleAndTokenizeCard (no tipConfiguration). Deferred: GET /transactions/{transactionID}/token (Cloud 2.26.0). Result cardToken, cardTokenProvider (EPI | PROCHARGE), expiryDateMMYY. Errors TOKENIZATION_NOT_ENABLED, CARD_READ_ERROR.
Remote saleoptionalMAJOR units
POST /moto/sale {amount, currency, cardToken, transactionReference?, customerReference?, channel?, billing?, taxInformation?, purchaseOrderNumber?}. Errors INVALID_TOKEN, MOTO_NOT_ENABLED. TMS-enabled.
Remote refundoptionalMAJOR units
POST /moto/refund {originalGuid, amount, currency} within 12 months. KI-2024-005: on sales older than 90 days it returns SUCCESS but is not applied on TSYS.
EMV refundoptionalterminal
Linked by originalTransactionId (same card enforced) or unlinked by transactionReference. A wallet tap and the physical card produce different PAN tokens. Errors ORIGINAL_NOT_FOUND, UNLINKED_REFUND_NOT_ALLOWED.
Remote reversaloptionalMAJOR units
Tipoptionalterminal
tipConfiguration {tipPercentages (required), baseAmount, headerName, enterAmountEnabled, skipEnabled, footer}, or a preset tipAmount that skips the tip screen. The result carries tipAmount and totalAmount.
Tip adjustmentoptionalMAJOR units
POST /transactions/{transactionID}/tip-adjustment {amount} (major-unit number); 0 removes the tip. Before the EPI batch auto-close (about 11pm EST). To combine with a partial refund: zero the tip, refund, re-adjust. Errors ORIGINAL_NOT_FOUND, BATCH_ALREADY_CLOSED, TIP_ADJUSTMENT_NOT_ENABLED, AMOUNT_EXCEEDS_LIMIT.
Pre-authoptionalterminal + back office
Create with preAuthorization / moToPreAuthorization. Increase: POST /preauthorization/increase {originalGuid, increaseAmount, subtract "1" to decrease, customerReference} returns cumulative holdAmount, increaseAmount, originalAmount. Capture: POST /preauthorization/capture {originalGuid, capturedAmount, tipAmount?, customerReference?, taxInformation?, purchaseOrderNumber? (max 25)}, not above the hold. Void / capture reversal: preAuthorizationReversal or /reversal, full amount, before batch close. Holds expire in 7 to 30 days. Terminal-less increase / capture since Cloud 2.27.0.
Batch (beta)optionalCloud 2.25.0
POST /batch/close {serialNumber, deviceType, batchNumber}; batchNumber optional on all three (the gateway uses the open batch). /batch/summary returns transactionCount, netAmount (minor units on this page: 644397 = 6,443.97) and salesCount / refundsCount in customFields.entry[]; /batch/detail returns 5 per page, cursor = last retrievalReferenceNumber.
Level 2optionalCloud 2.34.0
taxInformation {taxAmount, taxExempt} + purchaseOrderNumber. Violations return 400.
Multi-MIDoptionalCloud, Android PAX
merchantAuth: [{ externalId }], max 23 characters, must match a provisioned subMerchantExternalId. A bad id declines with “Invalid Merchant”, arc 1000. Not echoed in the result.
Feeoptionalunder development
Android PAX SDK fee {amount, mitigationProgram, taxOnFee} only. Cloud does not take fee yet; the flat surchargeAmount still works.
Sale with tip, Level 2 and multi-MID
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "sale",
  "amount": "10000",
  "currency": "USD",
  "terminal_type": "PAXA920MAX",
  "serial_number": "2740199794",
  "transactionReference": "2bfde1fc-23b1-4c67-93d9-1d4a557f4d4f",
  "customerReference": "order-1042",
  "duplicate_check": true,
  "tipConfiguration": {
    "tipPercentages": [
      15,
      18,
      20
    ],
    "headerName": "Add a tip",
    "enterAmountEnabled": true,
    "skipEnabled": true,
    "footer": "Thank you"
  },
  "taxInformation": {
    "taxAmount": "825",
    "taxExempt": false
  },
  "purchaseOrderNumber": "PO55120",
  "merchantAuth": [
    {
      "externalId": "EPI-SUB-0001"
    }
  ],
  "bypassOptions": {
    "signatureBypass": true,
    "pinBypass": false
  }
}'
Sale and tokenize
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "saleAndTokenizeCard",
  "amount": "2500",
  "currency": "USD",
  "terminal_type": "PAXA920MAX",
  "serial_number": "2740199794",
  "transactionReference": "7f3a1c22-5b6e-4d0a-9c8b-1e2f3a4b5c6d"
}'
Remote sale on a token: POST /moto/sale
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/sale \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "25.00",
  "currency": "USD",
  "cardToken": "665630867",
  "transactionReference": "b7b2360d-3e9e-4b62-9a3a-2e6ef6c5cd01",
  "customerReference": "order-1043",
  "channel": "MO",
  "taxInformation": {
    "taxAmount": "2.06",
    "taxExempt": false
  },
  "purchaseOrderNumber": "PO55121"
}'
Remote refund: POST /moto/refund
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/moto/refund \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "1a41d9f0-cf72-11f0-95b2-770b7d1d8e67",
  "amount": "5.00",
  "currency": "USD"
}'
Tip adjust: POST /transactions/{transactionID}/tip-adjustment
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions/1a41d9f0-cf72-11f0-95b2-770b7d1d8e67/tip-adjustment \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 3
}'
Pre-auth increase: POST /preauthorization/increase
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/preauthorization/increase \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "1a41d9f0-cf72-11f0-95b2-770b7d1d8e67",
  "increaseAmount": "20.00",
  "customerReference": "tab-14"
}'
Pre-auth capture: POST /preauthorization/capture
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/preauthorization/capture \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "originalGuid": "1a41d9f0-cf72-11f0-95b2-770b7d1d8e67",
  "capturedAmount": "110.00",
  "tipAmount": "10.00",
  "customerReference": "tab-14",
  "taxInformation": {
    "taxAmount": "9.08",
    "taxExempt": false
  },
  "purchaseOrderNumber": "PO55122"
}'
Batch summary: POST /batch/summary (beta)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/batch/summary \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "serialNumber": "2740199794",
  "deviceType": "PAXA920MAX",
  "batchNumber": "112"
}'
Interac VOID · PAYSAFE / TOKENEX tokens

Paysafe (Handpoint direct)

For merchants whose acquirer on Handpoint is Paysafe. Paysafe merchants integrate with Handpoint directly; they are not on Merchant360.

OperationSurfaces
Sale, sale with tip, refund, reversal, tip adjustment, tokenizationCloud, PAX, HiLite
VoidInterac only
MOTO / key entryCloud, PAX, JavaScript, Windows
Remote refund/moto/refund, within 12 months
Not supportedPartial reversal, pre-auth (listed as coming soon), remote sale, batch

Tokens

  • PAYSAFE: tokenizeCard / saleAndTokenizeCard return cardTokenProvider: "PAYSAFE", a single-use token that lives about 15 minutes, for Paysafe’s Customer Vault. It does not work with Handpoint MOTO. Needs Paysafe onboarding.
  • TOKENEX: cardTokenProvider: "TOKENEX", for loyalty and card matching only. No detokenize, no MOTO.

Interac

  • Interac routes to TNS; other cards to TSYS. Batch close is TSYS only.
  • Interac supports sale, sale with tip (the tip is folded into the total) and VOID only.
  • VOID = Cloud refund with originalTransactionId, currency: "CAD", no transactionReference. Card present, same day, full amount. Label the button “VOID” in your UI.
  • No remote reversal or refund, pre-auth, tip adjust or keyed entry for Interac.
  • Errors: CARD_NOT_PRESENT, ALREADY_SETTLED, ORIGINAL_NOT_FOUND.

Refunds in the Paysafe Portal are card-not-present and outside Handpoint; after 24 h they use the eftTransactionID as MerchantRefNum.

Interac VOID: POST /transactions (refund, linked, CAD)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "refund",
  "amount": "2500",
  "currency": "CAD",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850012345",
  "originalTransactionId": "1a41d9f0-cf72-11f0-95b2-770b7d1d8e67"
}'
Tokenize (PAYSAFE single-use token)
↑ Request – what you send
curl -X POST https://cloud.handpoint.com/transactions \
  -H "ApiKeyCloud: <merchant-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "tokenizeCard",
  "terminal_type": "PAXA920PRO",
  "serial_number": "1850012345"
}'
Interac error codes
↑ Request – what you send
# Interac VOID
CARD_NOT_PRESENT     the card must be presented on the terminal
ALREADY_SETTLED      VOID is same day only
ORIGINAL_NOT_FOUND   originalTransactionId not found
04
Provisioning

TMS API

Create merchants, add terminals, assign and publish them, and mint Cloud API keys. No payments cross this API.

tms.handpoint.comAuth: Bearer JWT from POST /ops/login
POST /ops/login · Bearer JWT

Login and flow

For partners that board their own Handpoint merchants. If your payments partner boards merchants and terminals for you, you may not need it. TMS settings (refunds, pre-auth, MOTO, tokenization, integrated mode) apply to every integration path. Use the returned accessToken as Authorization: Bearer <accessToken> on every other call.

usernamerequiredstring
TMS account username, max 50.
passwordrequiredstring
TMS account password.

Basic flow

  1. Log in.
  2. Create the terminals (they join your unassigned pool).
  3. Create the merchant.
  4. Assign a terminal to the merchant.
  5. Publish the terminal configuration to the gateway. The terminal downloads it on start-up and is ready to transact.
  6. Create a Cloud API key for the merchant if it will use the Cloud API.
Two published descriptions
The Developer Center summary shows Authorization: YOUR_PARTNER_API_KEY on tms.handpoint.com with short paths (GET /terminals, POST /merchants). The TMS reference documents the Bearer login and the paths below. Confirm with Handpoint which applies to your partner account. Terminal status values: U unactivated, I initialized, A active, C closed, X disabled.
Log in
↑ Request – what you send
curl -X POST https://tms.handpoint.com/ops/login \
  -H "Content-Type: application/json" \
  -d '{
  "username": "<tms-username>",
  "password": "<tms-password>"
}'
/partner/partner/:partnerId/merchant

Merchants

POST/partner/partner/:partnerId/merchant/:merchantId
Create a merchant.
GET/partner/partner/:partnerId/merchant/:merchantId
Retrieve the merchant profile. It includes the shared secret: treat the response as a credential.
PUT/partner/partner/:partnerId/merchant/:merchantId
Update the merchant. Publish its terminals afterwards.
DELETE/partner/partner/:partnerId/merchant/:merchantId
Delete. Fails while terminals are assigned.
POST/partner/partner/:partnerId/merchant
List merchants. Body { initPosition, limit, search? }.
Create / update body
merchantIdrequiredstring
Handpoint merchant id, unique across all TMS merchants, max 20. Handpoint gives you a range.
merchantNamerequiredstring
Max 100.
addressLine1, zipCode, cityrequiredstring
Max 100 each. addressLine2 and locationName optional.
countryCodeAlpha2requiredstring
ISO 3166 alpha-2.
phonerequiredstring
With country code, for example 00447539591287.
emailrequiredstring
otherEmails[] optional.
merchantCategoryCoderequiredstring
4-digit MCC.
sharedSecretrequiredstring
Ties the merchant to its terminals (the SDK SSK).
partnerIdrequiredstring
Your partner id. isvId optional.
agreements[]optionalobject
At most one. acquirer, acquirerMid, merchant, currencies[] and protocolData[]: protocol (AMEX, BORGUN, EVO, OMNIPAY, PostBridge, TNS, TSYS, VANTIV, ViscusDummy), acquirerMid, authorizedMids[], defaultAcquirerTid, debitCardOnly, currencies[], supportsMoto, motoCvvMandatory, customConfig[].
cardTokenProviderInfooptionalobject
cardTokenProviderId (required), cardTokenProviderType, clientId, apiKey.
refundAllowed / refundOriginalCardOnly / preAuthAllowedoptionalboolean
Default false.
defaultCloudModeoptionalboolean
true starts the PAX Payments App in integrated (Cloud) mode.
themeoptionalstring
Theme id: logos and colors in the PAX Payments App.
customReceiptTemplateoptionalstring
Receipt template instead of the agreement default.
eCommerceMID[]optionalstring
Ids at an ecommerce provider.
tipFlag, showTipAdjustmentLine, tipList, defaultCardReaderLanguage, customHomeScreen, enableAccountTypeSelectionoptionalmixed
Datecs (HiLite) terminals only.
Create a merchant
↑ Request – what you send
curl -X POST https://tms.handpoint.com/partner/partner/<partnerId>/merchant/<merchantId> \
  -H "Authorization: Bearer <accessToken>" \
  -H "Content-Type: application/json" \
  -d '{
  "merchantId": "<merchantId>",
  "merchantName": "MERCHANT NAME",
  "addressLine1": "123 MAIN ST",
  "zipCode": "10001",
  "city": "NEW YORK",
  "countryCodeAlpha2": "US",
  "phone": "0012125550100",
  "email": "owner@example.com",
  "merchantCategoryCode": "5812",
  "sharedSecret": "<64-char-hex-shared-secret>",
  "partnerId": "<partnerId>",
  "agreements": [
    {
      "acquirer": "<acquirer-id>",
      "merchant": "<merchantId>",
      "currencies": [
        "USD"
      ],
      "protocolData": [
        {
          "protocol": "TSYS",
          "acquirerMid": "<acquirer-mid>",
          "defaultAcquirerTid": "<acquirer-tid>"
        }
      ]
    }
  ],
  "supportsMoto": false,
  "refundAllowed": true,
  "refundOriginalCardOnly": false,
  "preAuthAllowed": false,
  "defaultCloudMode": true
}'
Create · assign · publish · unassign · delete

Terminals

A terminal is either in your unassigned pool or assigned to exactly one merchant. Reassign by unassigning, then assigning. Publish after every assign, unassign or merchant change: until you do, the gateway keeps the old configuration.

PUT/partner/partner/:partnerId/devices/assign
Create terminals in the unassigned pool. Body { partner, multipleTypeAssignments: [{ deviceType, serialNumber, partner }] }.
POST/partner/partner/:partnerId/terminal
List unassigned terminals (paged, searchable).
PUT/partner/partner/:partnerId/terminal/:terminalType/:serialnumber
Assign to a merchant.
POST/partner/partner/:partnerId/publish/:terminalType/:serialnumber
Push the generated configuration to the Handpoint Gateway.
DELETE/partner/partner/:partnerId/terminal/:terminalType/:serialnumber
Unassign from its merchant. Publish afterwards.
POST/partner/partner/:partnerId/terminal/assigned
List assigned terminals (paged).
POST/partner/partner/:partnerId/:merchantId/terminal
List a merchant's terminals (paged).
DELETE/partner/device/:terminalType/:serialNumber/partner/:partnerId
Delete a terminal. It must be unassigned.
Assign body
terminalType / serialNumberrequiredstring
Device type enum (PAXA920, PAXA920PRO, HILITE, MPED400 and others); serial max 20.
terminalStatusoptionalstring
U: the terminal must be unassigned.
partnerId / merchantIdrequiredstring
Owner partner; target merchant.
addressLine1, zipCode, city, countryCodeAlpha2requiredstring
Terminal location. Empty falls back to the merchant's.
locationName, phone, email, softwareVersionoptionalstring
Optional overrides.
customFieldsByProtocol[]optionalobject
protocol plus customFields[{ acquirerTerminalId }]. Ask Handpoint which fields your acquirer needs.
Add terminals to the pool
↑ Request – what you send
curl -X PUT https://tms.handpoint.com/partner/partner/<partnerId>/devices/assign \
  -H "Authorization: Bearer <accessToken>" \
  -H "Content-Type: application/json" \
  -d '{
  "partner": "<partnerId>",
  "multipleTypeAssignments": [
    {
      "deviceType": "PAXA920PRO",
      "serialNumber": "1850025030",
      "partner": "<partnerId>"
    }
  ]
}'
Assign to a merchant
↑ Request – what you send
curl -X PUT https://tms.handpoint.com/partner/partner/<partnerId>/terminal/PAXA920PRO/1850025030 \
  -H "Authorization: Bearer <accessToken>" \
  -H "Content-Type: application/json" \
  -d '{
  "terminalType": "PAXA920PRO",
  "serialNumber": "1850025030",
  "terminalStatus": "U",
  "partnerId": "<partnerId>",
  "merchantId": "<merchantId>",
  "addressLine1": "123 MAIN ST",
  "zipCode": "10001",
  "city": "NEW YORK",
  "countryCodeAlpha2": "US"
}'
Publish the configuration
↑ Request – what you send
curl -X POST https://tms.handpoint.com/partner/partner/<partnerId>/publish/PAXA920PRO/1850025030 \
  -H "Authorization: Bearer <accessToken>"
Error body (all endpoints)
↓ Response – what comes back
{
  "code": "string",
  "reason": "string",
  "messageGuid": "string"
}
/partner/cloudpos/partner/:partnerId/merchant/:merchantId/keys

Cloud API keys

POST/partner/cloudpos/partner/:partnerId/merchant/:merchantId/keys
Create. Body { keyName } (max 20). The response has the key unmasked: the only time you see it.
GET/partner/cloudpos/partner/:partnerId/merchant/:merchantId/keys
List: keyList[{ key, keyName, maskedKey, merchantIdAlpha }], masked.
DELETE/partner/cloudpos/partner/:partnerId/merchant/:merchantId/keys/:keyName
Revoke a key.

The key is the ApiKeyCloud value for the Cloud API. Store it server-side.

Create a key
↑ Request – what you send
curl -X POST https://tms.handpoint.com/partner/cloudpos/partner/<partnerId>/merchant/<merchantId>/keys \
  -H "Authorization: Bearer <accessToken>" \
  -H "Content-Type: application/json" \
  -d '{
  "keyName": "pos-main"
}'
05
Reporting

Transaction Feed API

Read-only transaction data: lookups, aggregates, grouping and chart-ready graphs. Version 2.11.0.

txnfeed.handpoint.comAuth: AnalyticsApiKey header
AnalyticsApiKey · RequestConfig

Authentication and request body

Near real-time transaction data for reporting, reconciliation and dashboards. It works with every card-present path and needs no terminal at query time. It cannot start transactions. Every call is a POST with a RequestConfig body and the AnalyticsApiKey header (a separate key from ApiKeyCloud).

RequestConfig
startDate / endDaterequiredstring
yyyyMMddHHmmss, UTC unless time_zone is set.
time_zoneoptionalstring
ISO 8601 offset, +01:00 or -08:00.
limitoptionalnumber
Max results, 1 to 10000.
initPositionoptionalnumber
Hits to skip. For offsets within 10,000 (including limit).
searchAfteroptionalstring
Deep pagination beyond 10,000: sort values of the last hit of the previous page.
terminalSerialNumbersoptionalstring[]
Only these terminals.
onlySuccessfuloptionalboolean
Only successful requests (status 200).
discardDeclineCancellationsoptionalboolean
Drop technical cancellations of declines. Recommended true.
discardAutoCancellationsoptionalboolean
Drop the terminal's automatic cancellations (for example, chip pulled mid-transaction). Recommended true.
dummyoptionalenum
Test transactions: ONLY, INCLUDE or NO.
currencyOptsoptionalobject
{ currency, nullCurrency }. nullCurrency adds transactions with no currency, such as tokenizations.
orderByoptionalarray
Sort order. Transaction lookups only.
bulkTimestampoptionalboolean
Filter on the time a record entered the analytics store. Recommended when polling every few seconds or minutes.
transactionStreamsoptionalstring[]
handpoint (terminal, default) or ecommerce.
filtersoptionalarray
Extra field filters.
chartOptsoptionalobject
Chart options for graph endpoints.

Production host txnfeed.handpoint.com; debug txnfeed.handpoint.io. The direct Elasticsearch index is txn_feed (credentials from your Handpoint integration engineer).

Fee values
The Developer Center says fee mitigation values are not in the feed yet; the feed reference (2.11.0) already lists fee and surchargeAmount on each record. Store the fee result from the transaction result yourself until Handpoint confirms.
Transactions in a window
↑ Request – what you send
curl -X POST https://txnfeed.handpoint.com/transactions \
  -H "AnalyticsApiKey: <analytics-api-key>" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "20260101000000",
  "endDate": "20260201000000"
}'
Filtered and paged
↑ Request – what you send
curl -X POST https://txnfeed.handpoint.com/transactions \
  -H "AnalyticsApiKey: <analytics-api-key>" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "20261001000000",
  "endDate": "20261031235959",
  "time_zone": "-05:00",
  "terminalSerialNumbers": [
    "1850025030"
  ],
  "onlySuccessful": true,
  "discardDeclineCancellations": true,
  "discardAutoCancellations": true,
  "dummy": "NO",
  "limit": 500,
  "initPosition": 0
}'
POST /transactions…

Transaction lookups

POST/transactions
All transactions in the window.
POST/transactions/payouts
Sales and captures (money in).
POST/transactions/refundsandreversals
Refunds and reversals (money out).
POST/transactions/{guid}
One transaction by GUID.
POST/transactions/guids
Several by GUID.
POST/transactions/customer-reference/{customerReference}
By your customerReference.
POST/transactions/customer-references
Several by customerReference.
POST/transactions/{id_alpha}
One merchant or partner: id_alpha is the TMS merchant or partner id. Also /payouts and /refundsandreversals.
POST/transactions/{partner_id_alpha}/{merchant_id_alpha}
One merchant under a partner. Also /payouts and /refundsandreversals.

Record fields include guid (the id used across Handpoint systems), transactionReference, customerReference, type, status, amount, tipAmount, surchargeAmount, fee, taxInformation, purchaseOrderNumber, currCode, approvalCode, responseText, paymentScenario, maskedCardNumber, cardTypeId, cardToken, cardTokenProvider, batchNum, terminalSerialNumber, deviceType, merchantId, merchantExternalId, merchantName, acquirerMid, acquirerTid, partnerId, terminalDateTime, serverDateTime and issuerResponseCode. For Multi-MID, filter Cloud API transactions by the externalId you sent.

avg · sum · count · distinct · net

Aggregates, grouping and graphs

POST/transactions/aggregate/avg/{field}
Average. Also /avg/payouts/{field} and /avg/refundsandreversals/{field}.
POST/transactions/aggregate/sum/{field}
Sum. Also /sum/payouts/{field} and /sum/refundsandreversals/{field}.
POST/transactions/aggregate/count
Count. Also /count/payouts and /count/refundsandreversals.
POST/transactions/aggregate/count/distinct/{field}
Distinct count. Also under /count/payouts/ and /count/refundsandreversals/.
POST/transactions/aggregate/net/{field}
Payouts minus refunds and reversals.
POST/transactions/aggregate/group/{op}/…
Grouped version of each of the above (avg, sum, count, count/distinct, net). Query groupBy, calendarInterval, order.
POST/transactions/aggregate/group/{op}/…/graph/{graphType}
Chart-ready output. graphType: BAR, DOUGHNUT, PIE, LINE.
fieldoptionalpath
Field to aggregate, for example amount.
groupByoptionalquery
Comma-separated field names.
calendarIntervaloptionalquery
minute, hour, day, week, month, quarter, year.
orderoptionalquery
ASC or DESC.

Every aggregate also exists under /transactions/{id_alpha}/aggregate/… and /transactions/{partner_id_alpha}/{merchant_id_alpha}/aggregate/… for one merchant or partner.

Daily sum of amount per terminal
↑ Request – what you send
curl -X POST https://txnfeed.handpoint.com/transactions/aggregate/group/sum/amount?groupBy=terminalSerialNumber&calendarInterval=day&order=DESC \
  -H "AnalyticsApiKey: <analytics-api-key>" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "startDate": "20261001000000",
  "endDate": "20261031235959"
}'
Three shapes · error codes

Errors

PatternApplies toWhere the error is
A: asynchronousPOST /transactionsAlways 202; the outcome is in finStatus / statusMessage of the polled result
B: synchronous, flat/reversal, /preauthorization/*, /moto/*, tip adjustmenterror.code
C: synchronous, nestedGET /transactions/{id}/tokenerror.details.body.error.errorCode

Rejected before the 202 (no card interaction; safe to retry with a new reference)

HTTPMessageWhat to do
400{"error":1001,"message":"Device is busy"}Terminal busy. Wait 2 to 5 s and retry.
400{"error":1002,..."No device listening at the other end of the secure channel"}Terminal off, offline, or Payments App not running.
400{"error":1003,"message":"Cancel operation not allowed"}Nothing cancellable right now.
400{"error":1004,"message":"Auth not available: ..."}Serial / type not assigned to this key’s merchant. Check GET /devices.
400{"error":1005,"message":"No transaction to cancel"}No active transaction.
400TransactionReference with wrong uuidv4 format ...Use a valid UUID v4.
400Invalid amount (0 < amount < 999999999999)Fix the amount.
403No valid key found in headerHeader is ApiKeyCloud, not Authorization.
404Terminal not found or not connected, or wrong host for this terminal type.
409A transaction is already in progress on this terminal.
422VALIDATION_FAILEDMissing or wrongly typed field; read details.
429Too many requestsOver 2 requests per second for this key.
5xxCloud unavailable. Retry with backoff.

Common DECLINED and FAILED results

finStatusstatusMessageCause
DECLINEDInvalid Merchant (arc 1000)Wrong externalId or MID setup. See Multi-MID.
DECLINEDCard declined the online authorization (localized)EMV forced reversal. Ask the cardholder to leave the card in.
DECLINEDUNABLE_TO_FIND_MESSAGE_TO_REVERSE.originalTransactionId not in the open batch; send a refund.
DECLINEDPARTIAL_REVERSAL_AMOUNT_EXCEEDS_ORIGINAL_AMOUNTReversal above the sale amount.
DECLINEDORIGINAL_CARD_REQUIRED_FOR_REFUNDLinked refund on a different card.
FAILEDRead card errorRetry; insert if the tap failed.
FAILEDHMAC mismatchMOTO not enabled (DEMO acquirer).
FAILEDTransaction failed, error: Error getting advanced transaction status (transaction not found)...originalTransactionId not found (pre-auth reversal).

Back-office codes are listed with each endpoint: reversal, remote sale and refund, card token, pre-auth, fee mitigation. statusMessage is localized; branch on finStatus and codes.

Rejected before the 202
↑ Request – what you send
{
  "error": {
    "statusCode": 400,
    "name": "BadRequestError",
    "message": "{\"error\":1001,\"message\":\"Device is busy\"}"
  }
}
Latest versions

Release notes and known issues

ProductLatest
REST (Cloud) API2.34.0
Android SDK (PAX)7.1014.1
Android SDK (HiLite)7.1004.3
iOS SDK (HiLite)4.0.2
Cordova plugin4.14.0
Handpoint Payments App (PAX)4.14.1 (SDK 7.1014.1)
Handpoint mPOS App (HiLite)4.10.5 (SDK 7.1004.3)

REST API

  • 2.34.0: Level 2 on /moto/sale and /preauthorization/capture (major units), taxExempt on tip adjustment, Level 2 in /status. Breaking: Level 2 rules enforced on POST /transactions; amount / capturedAmount must be clean major-unit decimals.
  • 2.31.0: addressVerification.resultCode in results and /status.
  • 2.30.0: AVS billing object.
  • 2.29.0: error 1005 No transaction to cancel.
  • 2.28.0: taxAmount, surcharge and batchNumber in results (with App 4.14.0).
  • 2.27.0: POST /preauthorization/increase and /capture without a terminal.
  • 2.26.0: deferred tokenization GET /transactions/{id}/token.
  • 2.25.0: /moto/sale, /moto/refund, /moto/reversal (now deprecated for /reversal); batch close, summary and detail (beta).
  • 2.23.x: batchNumber in the result; MOTO in Get Transaction Status. 2.22.2: cardPresent for Elavon card-present reversals. 2.20.0: /status selector, device commands, tokenize. 2.17.0: Mastercard MoneySend fields. 2.15.0: pre-authorization. 2.14.0: Get Transaction Status.

Android SDK (PAX) highlights

  • 7.1014.1: security policy updates from the platform; no external storage permissions; fixes for first-call reversals hanging, a stale cloud dispatcher returning 204 for a completed sale, duplicate cloud delivery, and metadata characters blocking Cloud results.
  • 7.1014.0: AVS on MoTo (MoToOptions.billing, enableAvsFields). Breaking: core library desugaring required.
  • 7.1013.x: deferredTokenization(), duplicationCheck on MoTo, MOTO partial approval, NO_CURRENT_TRANSACTION_TO_CANCEL. SDKS-320: do not use 7.1013.1 (App 4.13.0) on terminals without a magstripe reader (PAX A50, IM25).

Known issues (open)

IdIssue
KI-2026-008 (CUS-837)moToSale ignores transactionReference, so status by reference finds nothing. Poll by transactionResultId and store transactionID.
KI-2024-005/moto/refund on a sale older than 90 days returns SUCCESS but is not applied (TSYS-backed acquirers).
KI-2024-001Pre-auth capture can be lost without a connection-loss callback if the terminal drops its Cloud connection (since 7.1010.0).
KI-2026-009 (CUS-839)DEMO only: ViscusDummy declines on /moto/sale return HTTP 400 instead of DECLINED.
KI-2024-004iOS 17.4+: HiLite Bluetooth is not re-established automatically after a background refresh (SDK 4.0.2).