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.
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.
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 docsIntegration paths
Different parts of one product can use different paths. Back-office operations work alongside every path.
| Path | Use it when | Terminal | Credential |
|---|---|---|---|
| Cloud API | Your 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. | PAX | sharedSecret, 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 SDK | Browser or Node software drives a PAX terminal through the Cloud. | PAX | ApiKeyCloud |
| Windows SDK (.NET) | Windows POS drives a PAX terminal (Cloud) or a HiLite (Bluetooth). | PAX or HiLite | sharedSecret, cloudApiKey for PAX |
| Cordova / Ionic | Hybrid mobile app. | PAX (Cloud) or HiLite | apiKey or sharedSecret |
| Back office | Operations with no cardholder at the terminal. | None | ApiKeyCloud |
- 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 example0821032395-PAXA920.
Authentication
ApiKeyCloudoptionalheadersharedSecret (SSK)optionalSDK credentialGET /devices returns it as ssk.cloudApiKeyoptionalSDK credentialgetTransactionStatus() and integrated (cloud) mode. Windows: needed for the PAX Cloud connection.Partner credentialsoptionalTMSAnalyticsApiKeyoptionalheaderMulti-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.
# 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>
curl -X GET https://cloud.handpoint.com/devices \ -H "ApiKeyCloud: <merchant-api-key>"
Environments and hosts
| Terminal | Base URL | Notes |
|---|---|---|
| PAX debug device | cloud.handpoint.io | Staging. Watermark on screen. Accepts unsigned APKs. |
| PAX production device, DEMO merchant | cloud.handpoint.com | Recommended test path. ViscusDummy mock acquirer, no funds move, any card works. |
| PAX production device, live merchant | cloud.handpoint.com | Real acquirer, real funds. |
| HiLite | None (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}/statuslives only ontransactions.*. Calling it oncloud.*returns 404.- Amount units differ by endpoint family.
POST /transactionsand the SDKs take minor units as digit strings ("1000"= 10.00)./moto/*,/reversaland/preauthorization/*take decimal major units ("10.00"). Tip adjustment takes a major-unit number (8= 8.00). Do not share formatting code between them.
# 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.htmlList 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):
| Value | Alias | Notes |
|---|---|---|
| PAXA920 | A920 | |
| PAXA920PRO | A920PRO | Printer |
| PAXA920MAX | A920MAX | Printer |
| PAXA910 | A910 | Printer |
| PAXA910S | A910S | Printer |
| PAXA930 | A930 | Printer |
| PAXA960 | A960 | Printer |
| PAXA6650 | A6650 | Printer |
| PAXA8700 | A8700 | Printer |
| PAXA8900 | A8900 | Printer |
| PAXA80 | A80 | Printer and keyboard |
| PAXA800 | A800 | Printer |
| PAXA30 | A30 | Keyboard |
| PAXA35 | A35 | Keyboard |
| PAXA50 | A50 | |
| PAXA60 | A60 | |
| PAXA77 | A77 | |
| PAXA3700 | A3700 | |
| PAXA6630 | A6630 | |
| PAXARIES6 | ARIES6 | Keyboard |
| PAXARIES8 | ARIES8 | Keyboard |
| PAXE500 | E500 | Printer |
| PAXE600 | E600 | Printer |
| PAXE700 | E700 | Printer |
| PAXE800 | E800 | Printer |
| PAXIM25 | IM25 | |
| PAXIM30 | IM30 | |
| TELPOTPS900 | TPS900 | Telpo, printer |
HiLite and DATECS devices (HILITE, MPED400 and similar) use Bluetooth and do not work with the Cloud API.
curl -X GET https://cloud.handpoint.com/devices \ -H "ApiKeyCloud: <merchant-api-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.
{
"error": {
"statusCode": 429,
"name": "TooManyRequestsError",
"message": "Too many requests, please try again later."
}
}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) | finStatus | Behavior |
|---|---|---|
| 3779 | DECLINED | Issuer code 01, Refer to card issuer |
| 3784 | DECLINED | Issuer code 05, Not authorized |
| 3793 | DECLINED | Issuer code 04, Pick-up card |
| 3757 | PARTIAL_APPROVAL | Partial amount approved (US) |
| 3768 | FAILED | Error connecting to authorization provider (timeout) |
| 3741 | FAILED | Processing error |
| Any other | AUTHORISED |
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.
POST /moto/sale returns HTTP 400 “Unable to perform Viscus operation” instead of finStatus: DECLINED.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"
}'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
tokenin an environment variable, not in source code. Do not log billing addresses in clear text.
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:
transactionReferencepersisted before the POST.- Transaction recovery tested: connection dropped mid-transaction, outcome resolved, automatic reversal sent on
AUTHORISEDwith 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
DECLINEDis recorded, not an intermediateAUTHORISEDfrom/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.
Cloud API
Your server sends an operation to a PAX terminal; the terminal reads the card and returns the result by callback or poll.
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 docsHow a terminal operation works
- Your server sends
POST /transactionswith the operation, amount, currency, terminal and yourtransactionReference. - The Cloud validates the request and answers
202 Acceptedimmediately with atransactionResultId. The terminal starts prompting for the card. - You get the result by callback (if you sent
callbackUrl) or by pollingGET /transaction-result/{transactionResultId}.
204 No Contentoptionalstatus.json().200 OKoptionalstatusfinStatus. Stop when it is final (anything except IN_PROGRESS, UNDEFINED and PARTIAL_APPROVAL).404 Not Foundoptionalstatus- Poll about every 3 seconds. A full fallback path (contactless fail, chip fail, swipe, wrong PINs) can take up to 6 minutes.
transactionReferenceis echoed in the 202 only when you sent it.transactionResultIdis always present.- Store
transactionIDfrom every approved result: reversals, refunds, captures, tip adjustments and tokens use it. POST /reversalandPOST /preauthorization/captureare synchronous: no poll.
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"
}'curl -X GET https://cloud.handpoint.com/transaction-result/1850025030-1788700677769 \ -H "ApiKeyCloud: <merchant-api-key>"
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.
| Phase | When | Interval |
|---|---|---|
| Phase 1 | 0 to 100 s | Every 5 s (20 attempts) |
| Phase 2 | After 100 s | Exponential backoff 4 s, 8 s, 16 s, 32 s, 64 s and up, capped at 15 min |
| Abandoned | After 2 days | No 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: truemarks a redelivery). Dedupe ontransactionReference. - 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.
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>"
}'POST /handpoint/result HTTP/1.1 Content-Type: application/json auth-token: <per-request-webhook-token>
Sale
operationrequiredstring"sale"serial_numberrequiredstringterminal_typerequiredstringPAXA920PRO. See terminal types.amountrequiredstring"1000" = 10.00. Max 12 characters. "0" returns 400.currencyrequiredstringUSD, CAD, EUR, GBP.transactionReferencerecommendedstringsale, refund, saleAndTokenizeCard and preAuthorization. Auto-generated when omitted.callbackUrloptionalstringtokenoptionalstringauth-token header on the callback. Use a unique value per request.customerReferenceoptionalstringduplicate_checkoptionalbooleantrue. 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.tipConfigurationoptionalobjectsale only.merchantAuthoptionalarray[{ externalId }]. See Multi-MID.metadataoptionalobjectmetadata1 to metadata5, 250 characters each.billingoptionalobject{ zipCode, address? }.taxInformationoptionalobject{ taxAmount, taxExempt }, taxAmount in minor units. Must be sent with purchaseOrderNumber.purchaseOrderNumberoptionalstringmoneyRemittanceOptionsoptionalobjectThe 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.
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"
}'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!"
}
}'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).
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"
}'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"
}'{
"finStatus": "DECLINED",
"statusMessage": "Card token failure",
"errorMessage": "",
"cardToken": "",
"transactionID": "",
"requestedAmount": 0,
"type": "SALE"
}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.
| Step | Call | References |
|---|---|---|
| Create | POST /transactions preAuthorization | Returns transactionID A |
| Increase / decrease | POST /preauthorization/increase | originalGuid A (never a previous increase) |
| Capture | POST /preauthorization/capture | originalGuid A |
| Release (void hold) | POST /reversal or preAuthorizationReversal | originalGuid / originalTransactionId A |
| Capture reversal | POST /reversal | originalGuid = 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.
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"
}'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"
}'{
"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 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.
operationrequiredstringrefund, refundReversal or saleReversal.serial_numberrequiredstringterminal_typerequiredstringPAXA920PRO. See terminal types.amountrequiredstringrefundReversal, acquirers without partial reversal reverse the full refund regardless.currencyrequiredstringoriginalTransactionIdoptionalstringrefundReversal and saleReversal; optional on refund (links it).transactionReferenceoptionalstringcallbackUrl / token / customerReferenceoptionalstringduplicate_check, bypassOptions, merchantAuth, metadataoptionalmixed- Use a reversal for a same-day cancellation before batch close (no interchange); after settlement send a refund.
saleReversalwith an amount below the original is a partial reversal where the acquirer supports it (EPI).- A sale taken while
refundAllowed = falsestays 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.
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"
}'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"
}'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"
}'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"
}'{
"finStatus": "DECLINED",
"statusMessage": "Refund not allowed",
"errorMessage": "",
"arc": "0000",
"cardEntryType": "ICC",
"type": "REFUND"
}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.
operationrequiredstringmoToSale, moToRefund, moToReversal or moToPreAuthorization.serial_numberrequiredstringterminal_typerequiredstringPAXA920PRO. See terminal types.amountrequiredstringcurrencyrequiredstringcardTokenoptionalstringoriginalTransactionIdoptionalstringmoToReversal; links a moToRefund.channeloptionalstring"MO" mail order or "TO" telephone order (moToSale).enableAvsFieldsoptionalbooleanbilling is set.billingoptionalobject{ zipCode, address? }. Needs avsForMoto on the merchant (EPI).taxInformation / purchaseOrderNumberoptionalobject / stringmoToSale.callbackUrl, token, customerReference, merchantAuth, metadataoptionalmixedmoToSale, as on a sale.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.
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"
}
}'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"
}'{
"operation": "moToRefund",
"amount": "2000",
"currency": "USD",
"terminal_type": "PAXA920PRO",
"serial_number": "1850025030",
"originalTransactionId": "57cd25a0-a9f5-11f1-a943-f9c9f04151d9"
}{
"finStatus": "FAILED",
"statusMessage": "HMAC mismatch",
"errorMessage": "HMAC mismatch",
"paymentScenario": "MOTO",
"cardEntryType": "CNP",
"type": "MOTO_SALE"
}Cancel, ping and print
| operation | What it does |
|---|---|
| stopCurrentTransaction | Cancels the active terminal operation. The pending result resolves CANCELLED. |
| pingDevice | Connectivity check. The result carries PING_PONG when the terminal answers. |
| printReceipt | Prints 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+).
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"
}'Request objects and operation values
signatureBypassoptionalbooleanfalse. The signature screen is not shown at all.pinBypassoptionalbooleanfalse. The PIN screen shows but the green key skips it; the result records verificationMethod: PIN_BYPASS. Chip cards that enforce PIN ignore it.tipPercentagesrequiredinteger[][15, 18, 20]. Must be non-empty.baseAmountoptionalstringheaderNameoptionalstring"Tip".enterAmountEnabledoptionalbooleantrue. Custom amount option.skipEnabledoptionalbooleantrue. No-tip button.footeroptionalstring"".externalIdrequiredstringsubMerchantExternalId. No other field in the same object; one credential per acquirer.metadata1 … metadata5optionalstringoperation values
| Value | Description |
|---|---|
| sale | Card-present sale |
| refund | Card-present refund |
| saleAndTokenizeCard | Sale plus tokenization |
| tokenizeCard | Tokenize only, no charge |
| moToSale | MOTO keyed entry on the terminal |
| moToRefund | MOTO refund on the terminal |
| moToPreAuthorization | MOTO pre-auth on the terminal |
| moToReversal | MOTO reversal on the terminal |
| preAuthorization | Pre-auth hold (card present) |
| preAuthorizationIncrease | Adjust the hold amount |
| preAuthorizationCapture | Capture the hold (also POST /preauthorization/capture) |
| preAuthorizationReversal | Void / release the hold |
| saleReversal | On-terminal reversal of a sale |
| refundReversal | On-terminal reversal of a refund |
| stopCurrentTransaction | Cancel the active operation |
| pingDevice | Connectivity check |
| printReceipt | Print 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.
{
"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"
}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.
transactionIDoptionalstringefttransactionIDoptionalstringefttimestampoptionalnumbertransactionReferenceoptionalstringsale, refund, saleAndTokenizeCard, preAuthorization; system-generated on every other operation.originalEFTTransactionIDoptionalstringtransactionOriginoptionalstringCLOUD (Cloud API) or STANDALONE (started on the terminal).finStatusoptionalenumtypeoptionalenumstatusMessage / errorMessageoptionalstringmultiLanguageStatusMessages / multiLanguageErrorMessagesoptionalobjectissuerResponseCodeoptionalstring"00" is also used as a placeholder when the issuer was never reached; check finStatus first.authorisationCodeoptionalstringrecoveredTransactionoptionalbooleanrequestedAmountoptionalintegertotalAmountoptionalintegertipAmount / tipPercentageoptionalinteger / numberdueAmountoptionalintegertaxInformationoptionalobjecttaxAmount (minor units), taxExempt. Absent when not sent.purchaseOrderNumberoptionalstringtaxAmountoptionalintegersurchargeoptionalinteger | object{ amount, applied, reason }. Accept both.currencyoptionalstringcardEntryTypeoptionalenumICC, CONTACTLESS_ICC, MAG_STRIPE (also MSR), CNP, UNDEFINED.paymentScenariooptionalenumCHIP, CHIPCONTACTLESS, MAGSTRIPE, MAGSTRIPECONTACTLESS, CHIPFAILMAGSTRIPE, MOTO, SWIPED, FALLBACK_SWIPE, UNKNOWN.tenderTypeoptionalenumCREDIT, DEBIT, PREPAID, NOT_SET (MOTO and cancelled).verificationMethodoptionalenumNOT_REQUIRED, PIN, SIGNATURE, PIN_SIGNATURE, MOBILE_PASS_CODE, PIN_BYPASS, CVC, FAILED, UNDEFINED.cardSchemeNameoptionalstringVISA, MASTERCARD, AMEX.maskedCardNumber / cardTypeIdoptionalstring************1234.expiryDateMMYYoptionalstring"1027" = October 2027.cardHolderName / cardLanguagePreferenceoptionalstringcardTokenoptionalstringaccountType / balanceoptionalstring / objectunMaskedPanoptionalstringaddressVerification.resultCodeoptionalenumaid, applicationLabel, tvr, tsi, iad, arc, chipTransactionReportoptionalstringmid / tidoptionalstringmerchantName / merchantAddressoptionalstringrrnoptionalstringcustomerReference / metadataoptionalstring / objectbatchNumberoptionalstringbudgetNumberoptionalstringcustomFieldsoptionalarray | nullmessageReasonCode on terminal-initiated reversals.customerReceipt / merchantReceipt / signatureUrloptionalstringdeviceStatusoptionalobjectapplicationName, applicationVersion, batteryStatus, batteryCharging, batterymV, externalPower, bluetoothName, serialNumber, statusMessage.finStatus
| Value | Final | Meaning / action |
|---|---|---|
| IN_PROGRESS | No | Still processing. Keep polling. |
| UNDEFINED | No | Terminal sent it but got no result. Do not retry; run recovery. |
| PARTIAL_APPROVAL | No | US. Less than requested approved; the terminal is asking accept or decline. Keep polling 60 s or more. |
| AUTHORISED | Yes | Approved (or hold placed). Do not retry. |
| DECLINED | Yes | Declined by issuer or gateway. Not charged. |
| CANCELLED | Yes | Cancelled at the terminal, or reversed by the terminal after approval. |
| FAILED | Yes | Technical failure. Run recovery before retrying. |
| PROCESSED | Yes | Non-financial operation done (tokenizeCard and similar). |
| REFUNDED | Yes | Status queries: the original was fully refunded. |
| CAPTURED | Yes | Pre-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
| Code | Meaning |
|---|---|
| 00 | Approved (or terminal-local decision) |
| 01 / 02 | Refer to card issuer |
| 05 | Do not honour |
| 12 | Invalid transaction |
| 13 | Invalid amount |
| 14 | Invalid card number |
| 41 / 43 | Lost / stolen card |
| 51 | Insufficient funds |
| 54 | Expired card |
| 55 | Incorrect PIN |
| 57 | Not permitted to cardholder |
| 61 | Exceeds withdrawal amount limit |
| 62 | Restricted card |
| 65 | Exceeds withdrawal frequency limit |
| 75 | PIN tries exceeded |
| 91 | Issuer unavailable |
| 96 | System malfunction |
| arc 0000 | Online approval |
| arc 0010 | Online decline |
| arc 1000 | Gateway error or offline decline (also capability restrictions) |
{
"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": ""
}
}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.
| Situation | customerReceipt / merchantReceipt |
|---|---|
| Normal card-present transaction | Hosted URL: receipts.handpoint.com/receipts/{transactionID}/customer.html |
| Upload failed, or keyed MOTO on the terminal | Full HTML string (starts with <) |
| Connection lost before the response, or UNDEFINED | Empty string |
| POST /moto/sale, or recovered through /status | No receipt fields. Build it from the result. |
- The customer receipt renders in the card’s language; the merchant receipt in the terminal’s language.
signatureUrlis 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,
totalAmountand 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.
fee.applied: false) gets no line. See Fee mitigation.function displayReceipt(receiptField) {
if (receiptField && receiptField.startsWith('http')) {
openWebview(receiptField); // hosted URL
} else if (receiptField) {
renderHtml(receiptField); // raw HTML
} else {
buildReceiptFromResult(); // nothing returned
}
}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.
transactionReferencerequiredpathselectoroptionalpath/status/: first (default), last, all or a number n. all returns the whole chain (sale, captures, refunds, reversals).- No
customerReceipt/merchantReceipthere; build the receipt from the fields. - With Level 2 data it adds
taxInformation(taxAmountin decimal major units,taxAmountIdentifier"1"local sales tax or"2"exempt) andpurchaseOrderNumber. - 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.
curl -X GET https://transactions.handpoint.com/transactions/5c7056aa-b0a6-4ee9-891e-aae6ce7ea725/status \ -H "ApiKeyCloud: <merchant-api-key>"
curl -X GET https://transactions.handpoint.com/transactions/5c7056aa-b0a6-4ee9-891e-aae6ce7ea725/status/all \ -H "ApiKeyCloud: <merchant-api-key>"
Transaction recovery
A lost connection does not mean the payment failed. Find the state before starting another payment.
- Generate a UUID v4
transactionReferenceand write it to your database before the POST. - After the 202, store the
transactionReferencetotransactionResultIdmapping. - Poll
GET /transaction-result/{id}(or wait for the callback). On your application timeout (typically 90 s) mark the record pending. - Poll
GET /transactions/{ref}/statusevery 10 s. AUTHORISEDwith no record on your side: send an automatic reversal. Any other final status: clear the pending record.- Still
UNDEFINEDat 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.UNDEFINEDthere means the acquirer has no record and the card was not charged. /statusAUTHORISEDwith no terminal result: sendpingDevice. Unreachable: ask the merchant to reconnect the device. After a 5-minute overall timeout, treat/statusas provisional.
/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).
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"
}'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"
}'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.
{
"finStatus": "PARTIAL_APPROVAL",
"requestedAmount": 5000,
"totalAmount": 3000,
"currency": "USD",
"transactionID": "a4c21bd0-65ab-11f1-b4d2-aab210c7e31c",
"authorisationCode": "654321"
}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"
}'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.
| Code | Cause |
|---|---|
| 4000 | Generic marker, always present |
| 4002 | Suspected terminal malfunction |
| 4021 | System timeout after approval (also phone second presentation and partial-approval dialog timeouts) |
| 4351 | Chip card removed early |
| 4352 | Chip card declined after host approval |
| 4353 | Signature not provided in time |
| 4354 | Signature declined, or partial approval rejected by the cardholder |
| 4580 | Processing error (also reported on remote sale responses) |
{
"finStatus": "CANCELLED",
"customFields": [
{
"key": "messageReasonCode",
"value": "4000"
},
{
"key": "messageReasonCode",
"value": "4351"
}
]
}transactionReference rules
| Operation | Send transactionReference? | Link with |
|---|---|---|
| Sale, pre-auth create, unlinked refund, saleAndTokenizeCard | Yes | |
| Remote sale (POST /moto/sale) | Yes | |
| Pre-auth increase, capture, reversal | No | originalGuid / originalTransactionId |
| Reversal, linked refund | No | originalGuid / originalTransactionId |
| Tip adjustment, get card token | No | transactionID in the path |
| Batch close | No |
- Format
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx: version digit4, variant8,9,aorb. 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.
customerReferenceis only an echo. Duplicate protection isduplicate_check.
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 operationsBack office
Reversals, remote sales on stored tokens, refunds, tip adjustment, pre-auth capture and batch operations, answered synchronously.
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.
| Operation | Endpoint | Acquirers |
|---|---|---|
| Remote reversal (full or partial) | POST /reversal | All (partial: EPI, TMS-enabled) |
| Remote sale on a token | POST /moto/sale | EPI (Cygma token), EmerchantPay, Paystrax |
| Remote refund | POST /moto/refund | EPI, EmerchantPay, Paystrax |
| Remote MOTO reversal (deprecated) | POST /moto/reversal | EPI, EmerchantPay, Paystrax |
| Get card token | GET /transactions/{id}/token | EPI |
| Tip adjustment | POST /transactions/{id}/tip-adjustment | EPI, Paysafe |
| Pre-auth increase / decrease | POST /preauthorization/increase | Acquirer-dependent |
| Pre-auth capture | POST /preauthorization/capture | Acquirer-dependent |
| Batch close / summary / detail | POST /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.
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.
originalGuidrequiredstringamountoptionalstring"50.04". Omit for a full reversal. Partial reversal needs partialReversalAllowed.currencyoptionalstringmessageReasonCodeoptionalstringCUSTOMER_CANCELLATION (default) or TIMEOUT_WAITING_FOR_RESPONSE (no authorization response in time).| code | Message | What to do |
|---|---|---|
| 3051 | Already reversed | No further action. |
| 3052 | Authorization has already been completed | Already captured or reversed. Check state. |
| 3109 | Partial reversals are not supported | Partial reversal not enabled for the merchant. |
| 3153 | Unable to find message to reverse. | originalGuid not found. Use the transactionID from the result. |
| 3158 | Original transaction not found | Listed on Handpoint's acquirer pages for the same case. If the batch closed, refund instead. |
| 4066 | Partial reversal amount exceeds original amount | Lower the amount or omit it. |
The response has no transactionID: reversalGuid identifies the reversal; authorizationGuid and originalGuid point to the original.
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"
}'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"
}'{
"error": {
"statusCode": 400,
"name": "BadRequestError",
"message": "Partial reversals are not supported",
"code": "3109",
"details": {
"errorCode": "3109",
"reason": "Partial reversals are not supported"
}
}
}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.
amountrequiredstring^\d+(\.\d+)?$ (else 422); max 12 digits, no leading zeros except one 0 before the point (else 400).currencyrequiredstringcardTokenrequiredstringtransactionReferencerecommendedstringcustomerReferenceoptionalstringchanneloptionalstringMO or TO.billingoptionalobject{ zipCode, address? }. Needs avsForMoto.taxInformation / purchaseOrderNumberoptionalobject / stringtaxAmount in decimal major units. Sent together.merchantAuthoptionalarrayoriginalGuidoptionalstringcardTokenoptionalstringamountrequiredstringcurrencyrequiredstringtransactionReference / customerReference / channeloptionalstring| code | Endpoint | Meaning |
|---|---|---|
| 3107 | /moto/sale | CVV required: the merchant has mandatory CVV for card-not-present. Ask Handpoint to turn it off for remote sales. |
| 5252 | /moto/sale | Card token failure: the token provider (Cygma and others) is unreachable. The token is still valid; retry later. |
| 3209 | /moto/refund | Refund amount greater than the original sale. |
| 3210 | /moto/refund | Currency does not match the original. |
| 3153 | /moto/reversal | Unable to find message to reverse. |
/moto/refund on a sale older than 90 days returns 200 SUCCESS but is not applied on TSYS-backed acquirers.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"
}'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"
}'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 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.messagealways reads “Viscus operation failed”. 3112: the id is not a sale. After a partial approval that was cancelled, the polled id is the reversal; useoriginalEFTTransactionID.TOKENIZATION_NOT_ENABLED: ask Integration Support to enable tokenization.
curl -X GET https://cloud.handpoint.com/transactions/7cd7a1d0-xxxx-11f1-xxxx-xxxxxxxxxxxx/token \ -H "ApiKeyCloud: <merchant-api-key>"
{
"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": "..."
}
}
}
}
}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.
transactionIDrequiredpathamountrequirednumbertaxInformationoptionalobjecttaxAmount (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
tipConfigurationon 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).
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
}'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
}
}'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.
originalGuidrequiredstringincreaseAmountrequiredstringamount instead returns 422.subtractoptionalstring"1" decreases the hold. The only accepted value.tipAmount / customerReferenceoptionalstringoriginalGuidrequiredstringcapturedAmountrequiredstringtipAmountoptionalstringcustomerReferenceoptionalstringtaxInformation / purchaseOrderNumberoptionalobject / string| code | HTTP | Meaning |
|---|---|---|
| 3052 | 400 | Authorization has already been completed (captured or reversed). |
| 3156 | 404 | No pre-authorization found for originalGuid. |
| 3207 | 400 | The referenced transaction is not a pre-authorization. |
| 3211 | 403 | Declined, already captured or already reversed. |
| 3212 | 403 | Decrease would take the hold to zero or below. Send a reversal. |
| 3215 | 403 | Capture above the current hold. Increase first. |
| 5001 | 400 | Internal error returned for unknown GUIDs. |
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"
}'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"
}'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"
}'{
"error": {
"statusCode": 400,
"name": "BadRequestError",
"message": "Capture amount cannot be greater than pre-auth hold amount",
"code": "3215",
"details": {
"errorCode": "3215",
"httpStatus": 403
}
}
}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.
serialNumberrequiredstringdeviceTyperequiredstringPAXA920.batchNumberoptionalstringretrievalReferenceNumberoptionalstringretrievalReferenceNumber 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
detailsis empty or missing. details[].transactionType:SALE,REFUND,TIP_ADJUSTMENT,PREAUTHORIZATION_INCREASEorPREAUTHORIZATION_CAPTURE. A pre-authorization is reported asSALE. On a closed batchamountis 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:
transactionCountcounts every type;salesCountandrefundsCountare incustomFields.entry[].closedAt(YYYYMMDDHHmmssSSS) is present only whenbatchStatusisCLOSED. - Amount units: the EPI acquirer page says
netAmountand detailamountare 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
closebatcherror withissuerResponseCode03“NOT ALLOWED”. A summary for a batch that does not exist, or a closed batch with no transactions, returns02“COULD NOT FIND”; a detail for an unknown batch number carriesbatchStatus: UNKNOWN. A missingserialNumberordeviceTypereturns 422VALIDATION_FAILED. The back-office guide names the close errorsBATCH_ALREADY_CLOSEDandNO_TRANSACTIONS; neither needs action. - EPI: a missed daily close produces
BATCH_NUM_ERR_005the next day.
curl -X POST https://cloud.handpoint.com/batch/close \
-H "ApiKeyCloud: <merchant-api-key>" \
-H "Content-Type: application/json" \
-d '{
"serialNumber": "082104578",
"deviceType": "PAXA920"
}'{
"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"
}
}
}
}
}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"
}'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"
}'{
"serialNumber": "082104578",
"deviceType": "PAXA920",
"batchNumber": "132",
"retrievalReferenceNumber": "627121800441"
}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+.
zipCodeis required wheneverbillingis sent;addressis optional.enableAvsFields: truemakes the terminal ask; it is ignored whenbillingis set.- Do not store or log the address in clear text. The postal code can be logged.
FULL_MATCH / EXACT_MATCHoptionalenumADDRESS_MATCHoptionalenumZIP_MATCH / ZIP9_MATCHoptionalenumNO_MATCHoptionalenumUNSUPPORTED / INTERNATIONALoptionalenumRETRY / UNAVAILABLE / UNKNOWNoptionalenumA match does not prevent disputes and a mismatch does not force a decline. The field is omitted when no AVS result comes back.
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"
}
}'// 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 } ?: falseLevel 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.
| Endpoint | Where | taxAmount format |
|---|---|---|
| POST /transactions | sale, moToSale, saleAndTokenizeCard, preAuthorizationCapture, tipAdjustment | String, minor units ("100" = 1.00) |
| POST /moto/sale | Always | String, decimal major units ("1.00") |
| POST /preauthorization/capture | Always | String, decimal major units |
| POST /transactions/{guid}/tip-adjustment | Always | Number, major units (1.00) |
taxInformationandpurchaseOrderNumbertravel together; one without the other returns 400 (except on tip adjustments, which take no PO).- Tip adjustments relax the tax rules:
taxAmountis optional ({ taxExempt: true }alone is valid) and can be0when not exempt, which is how the tax on a tip is corrected to zero. taxAmountis required:0whentaxExemptistrue, greater than 0 otherwise, and never above the amount.purchaseOrderNumber:A-Z a-z 0-9only, 25 characters or fewer.- The top-level
taxAmountonPOST /transactionsis deprecated. - The result echoes what you sent (
taxExempt); gateway responses returntaxAmountIdentifier("1"local sales tax,"2"exempt) in major units. - A field of the wrong type is rejected earlier with 422.
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"
}'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"
}'{
"error": {
"statusCode": 400,
"name": "BadRequestError",
"message": "Missing purchaseOrderNumber, mandatory when taxInformation is present"
}
}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.
| Operation | merchantAuth |
|---|---|
| Sale, pre-auth create, terminal increase / reversal | Yes |
| POST /moto/sale, unlinked /moto/refund | Yes |
| POST /preauthorization/capture and /increase | Allowed; routing comes from the original |
| Reversal, tip adjustment, card token, batch close | No; 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
externalIdis not echoed in the result, andmidin the result is the terminal default. Store the id you sent with thetransactionID. - 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, noexternalId). Not supported: Android HiLite, Windows SDK, Cordova.
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"
}
]
}'{
"finStatus": "DECLINED",
"statusMessage": "Invalid Merchant",
"arc": "1000"
}Tipping
| Sale with tip | Tip adjustment | |
|---|---|---|
| When | Cardholder picks before the card is processed | Staff enter it from the signed receipt |
| How | tipConfiguration on the sale | POST /transactions/{id}/tip-adjustment |
| Acquirers | All | EPI and Paysafe (not Interac) |
| Batch | No dependency | Before batch close |
| Fits | Counter or handheld | Table 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.
Fee mitigation
fee yet; POST /transactions takes only the deprecated flat surchargeAmount. HiLite, iOS, Windows and Cordova do not support it.| Program | Customer sees | Cards |
|---|---|---|
| Surcharge | Price plus a separate credit card fee | Credit only, never debit or prepaid |
| Dual pricing | A cash price and a higher card price | Every card |
| Admin fee | A fee on every payment method | Every card |
| Cash discount | Card price, lower price for cash | None; the gateway refuses it on a card |
amountrequiredintegermitigationProgramrequiredenumSURCHARGE, ADMIN_FEE, CASH_DISCOUNT, DUAL_PRICING. On the wire: surcharge, adminFee, cashDiscount, dualPricing.taxOnFeeoptionalintegeramount that is tax. Not above taxInformation.taxAmount.amount / taxOnFeeoptionaldecimalmitigationProgramoptionalenumappliedoptionalbooleanreasonoptionalenumAPPLIED, NOT_ELIGIBLE_DEBIT, NOT_ELIGIBLE_PREPAID, PROGRAM_NOT_ENABLED, PROGRAM_NOT_SUPPORTED, UNKNOWN. The current build returns the first two.reasonDetailoptionalstring- 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 andsurchargeAmountdisagree),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.
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 */ }
}{
"operation": "sale",
"amount": "10000",
"currency": "USD",
"terminal_type": "PAXA920",
"serial_number": "082104578",
"fee": {
"amount": "360",
"mitigationProgram": "surcharge",
"taxOnFee": "60"
}
}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.
fullNamerequiredstringcountryCoderequiredstringGBR, USA, DEU). An invalid code can surface as “No device listening”.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"
}'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.
/devices/{terminal_type}/{serial_number}/set-security-policy{} changes nothing. Survives restarts and reboots; the app returns to the payment screen. Recommended over set-unattended-mode./devices/{terminal_type}/{serial_number}/set-unattended-mode{ status }./devices/{terminal_type}/{serial_number}/set-locale{ locale }, for example en_US, en_CA, fr_CA, es_ES./devices/{terminal_type}/{serial_number}/set-password-protected{ status }./devices/{terminal_type}/{serial_number}/reboot{ force }: false checks for a transaction in progress first; true reboots immediately./devices/{terminal_type}/{serial_number}/set-screen-brightness{ minimumBrightnessLevel, maximumBrightnessLevel }, integers 0 to 100./devices/{terminal_type}/{serial_number}/set-reboot-timehour (0 to 23). Production devices only.hideTabBaroptionalbooleanblockSystemUIoptionalbooleanbrightnessoptionalbooleanpasswordToExitoptionalboolean| Status | Meaning |
|---|---|
| 202 | Accepted; will run on the device |
| 400 | Device not listening (offline or not in integrated mode), or a value out of range |
| 403 | Authentication failed |
| 422 | Invalid request body |
theme.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
}'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
}'curl -X POST https://cloud.handpoint.com/devices/PAXA920PRO/1850025030/reboot \
-H "ApiKeyCloud: <merchant-api-key>" \
-H "Content-Type: application/json" \
-d '{
"force": false
}'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
}'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 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
InitialisationCompletebefore any financial call, or you getCommandNotAllowed/NotInitialised. OperationStartResult.operationStartedmeans accepted, not approved. The outcome is always inendOfTransaction.- Amounts are
BigIntegerminor units.
| Method | Notes |
|---|---|
| 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 |
// 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 activityclass 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) { }
}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.
| Terminal | SDK build | Example |
|---|---|---|
| Debug (staging) | RC / SNAPSHOT build from Handpoint's private Nexus | 7.1012.1-RC.1-SNAPSHOT |
| Production | Standard release | 7.1012.1 |
- Ask Integration Support for the Nexus URL and credentials after the debug device is ordered, and add the repository to Gradle.
- Build an unsigned debug APK.
- 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.
- Run
adb install. A production terminal rejects it withINSTALL_FAILED_UPDATE_INCOMPATIBLEorINSTALL_FAILED_ABORTED.
| Symptom | Fix |
|---|---|
| adb devices returns nothing | Install the PAX USB driver, enable USB debugging, check the cable. |
| adb devices shows unauthorized | Accept the RSA prompt on the terminal. |
| INSTALL_FAILED_TEST_ONLY | Install with adb install -t, or remove android:testOnly="true" from the manifest. |
| INSTALL_FAILED_UPDATE_INCOMPATIBLE | Version conflict: adb uninstall the package first. |
| App runs but cannot reach the gateway | Production SDK on a debug terminal. Use the RC / SNAPSHOT build. |
| App crashes on start | Use 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.
// 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
}./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
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.
cloudApiKeyopens the cloud channel. Without itInitialisationCompletefires butCloudConnectednever does.InitialisationCompletearrives within about 1 s;CloudConnectedabout 3 s later. If it has not come 15 s after initialisation, show an error.- Implement
Events.TransactionStartedto know when a server-sent transaction arrives. - TMS
defaultCloudMode: truestarts the Payments App in integrated mode.
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
}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.
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) { }
}Android SDK events
Events.SmartposRequiredoptionalPAXconnectionStatusChanged, currentTransactionStatus, endOfTransaction, transactionResultReady.Events.MposRequiredoptionalHiLitedeviceDiscoveryFinished(devices) and signatureRequired(request, device).Events.PosRequiredoptionalBoth| Optional interface | Callback |
|---|---|
| Events.TransactionStarted | transactionStarted(type, amount, currency, reference): Cloud-initiated transaction started |
| Events.CardTokenization | Card tokenized during tokenizedOperation |
| Events.PrinterEvents | printSuccess() / printError(error) |
| Events.ReportResult | reportResult(type, report, status, device): reports and EMV configuration |
| Events.ReceiptEvent / ReceiptUploadingEvent | Receipt HTML (guid, merchantReceipt, customerReceipt) / hosted URLs (merchantUrl, customerUrl) |
| Events.MessageHandling | showMessage(message, dismissible, duration) / hideMessage(message) |
| Events.NetworkStatusChanged | networkStatusChanged(networkStatus, device) |
| Events.Log | onMessageLogged(level, message), deviceLogsReady(logs, device) |
| Events.CardBrandDisplay, DependantRefundReceived, DependantReversalReceived, DeviceCapabilitiesReady, HardwareStatusChanged, PhysicalKeyboardEvent | Device 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.
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:.
| Method | Notes |
|---|---|
| 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, stop | See Handpoint's iOS reference |
- Not on iOS: pre-authorization, keyed entry,
getTransactionStatus(recover from your server),transactionReferenceas a request field,tipConfiguration(tipping is set per terminal profile in the Handpoint Portal), fee mitigation. - Multi-MID uses raw
acquirer/mid/tidonCredential; there is noexternalId. - 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.
# 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
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"
}
}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.
| Method | Notes |
|---|---|
| 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.
// 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);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.
// 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 / 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.
// 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);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.
| Operation | Acquirers |
|---|---|
| Sale, refund, on-device reversal, remote reversal, tokenization | EPI, Paysafe, EmerchantPay, Paystrax |
| Tip adjustment | EPI, Paysafe |
| Pre-authorization | EPI, EmerchantPay, Paystrax |
| Remote sale on a token (MOTO) | EPI, EmerchantPay |
| Batch close / summary / detail | EPI |
| Money remittance | EmerchantPay |
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.
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.
| Operation | Cloud | PAX | HiLite | Back office |
|---|---|---|---|---|
| Sale | Yes | Yes | Yes | No |
| Refund | Yes | Yes | Yes | No |
| Reversal | Yes | Yes | Yes | Yes |
| Tip adjustment | Yes | Yes | Yes | Yes |
| Pre-auth | Yes | Yes | No | Yes |
| Pre-auth capture reversal | Yes | Yes | No | Yes |
| MOTO | Yes | Yes | No | No |
| Tokenization | Yes | Yes | Yes | No |
| Batch | No | No | No | Yes (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.
Partial reversaloptionalEPI onlyAMOUNT_EXCEEDS_ORIGINAL, OPERATION_NOT_SUPPORTED, ORIGINAL_NOT_FOUND, 403, 400 “Device is busy”.TokenizationoptionalEPI / PROCHARGEtokenizeCard (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 unitsPOST /moto/sale {amount, currency, cardToken, transactionReference?, customerReference?, channel?, billing?, taxInformation?, purchaseOrderNumber?}. Errors INVALID_TOKEN, MOTO_NOT_ENABLED. TMS-enabled.Remote refundoptionalMAJOR unitsPOST /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 refundoptionalterminaloriginalTransactionId (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 unitsTipoptionalterminaltipConfiguration {tipPercentages (required), baseAmount, headerName, enterAmountEnabled, skipEnabled, footer}, or a preset tipAmount that skips the tip screen. The result carries tipAmount and totalAmount.Tip adjustmentoptionalMAJOR unitsPOST /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 officepreAuthorization / 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.0POST /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.0taxInformation {taxAmount, taxExempt} + purchaseOrderNumber. Violations return 400.Multi-MIDoptionalCloud, Android PAXmerchantAuth: [{ externalId }], max 23 characters, must match a provisioned subMerchantExternalId. A bad id declines with “Invalid Merchant”, arc 1000. Not echoed in the result.Feeoptionalunder developmentfee {amount, mitigationProgram, taxOnFee} only. Cloud does not take fee yet; the flat surchargeAmount still works.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
}
}'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"
}'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"
}'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"
}'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
}'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"
}'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"
}'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"
}'Paysafe (Handpoint direct)
For merchants whose acquirer on Handpoint is Paysafe. Paysafe merchants integrate with Handpoint directly; they are not on Merchant360.
| Operation | Surfaces |
|---|---|
| Sale, sale with tip, refund, reversal, tip adjustment, tokenization | Cloud, PAX, HiLite |
| Void | Interac only |
| MOTO / key entry | Cloud, PAX, JavaScript, Windows |
| Remote refund | /moto/refund, within 12 months |
| Not supported | Partial reversal, pre-auth (listed as coming soon), remote sale, batch |
Tokens
- PAYSAFE:
tokenizeCard/saleAndTokenizeCardreturncardTokenProvider: "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
refundwithoriginalTransactionId,currency: "CAD", notransactionReference. 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.
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"
}'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 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
TMS API
Create merchants, add terminals, assign and publish them, and mint Cloud API keys. No payments cross this API.
POST /ops/loginLogin 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.
usernamerequiredstringpasswordrequiredstringBasic flow
- Log in.
- Create the terminals (they join your unassigned pool).
- Create the merchant.
- Assign a terminal to the merchant.
- Publish the terminal configuration to the gateway. The terminal downloads it on start-up and is ready to transact.
- Create a Cloud API key for the merchant if it will use the Cloud API.
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.curl -X POST https://tms.handpoint.com/ops/login \
-H "Content-Type: application/json" \
-d '{
"username": "<tms-username>",
"password": "<tms-password>"
}'Merchants
/partner/partner/:partnerId/merchant/:merchantId/partner/partner/:partnerId/merchant/:merchantId/partner/partner/:partnerId/merchant/:merchantId/partner/partner/:partnerId/merchant/:merchantId/partner/partner/:partnerId/merchant{ initPosition, limit, search? }.merchantIdrequiredstringmerchantNamerequiredstringaddressLine1, zipCode, cityrequiredstringcountryCodeAlpha2requiredstringphonerequiredstring00447539591287.emailrequiredstringmerchantCategoryCoderequiredstringsharedSecretrequiredstringpartnerIdrequiredstringagreements[]optionalobjectacquirer, acquirerMid, merchant, currencies[] and protocolData[]: protocol (AMEX, BORGUN, EVO, OMNIPAY, PostBridge, TNS, TSYS, VANTIV, ViscusDummy), acquirerMid, authorizedMids[], defaultAcquirerTid, debitCardOnly, currencies[], supportsMoto, motoCvvMandatory, customConfig[].cardTokenProviderInfooptionalobjectcardTokenProviderId (required), cardTokenProviderType, clientId, apiKey.refundAllowed / refundOriginalCardOnly / preAuthAllowedoptionalbooleandefaultCloudModeoptionalbooleanthemeoptionalstringcustomReceiptTemplateoptionalstringeCommerceMID[]optionalstringtipFlag, showTipAdjustmentLine, tipList, defaultCardReaderLanguage, customHomeScreen, enableAccountTypeSelectionoptionalmixedcurl -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
}'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.
/partner/partner/:partnerId/devices/assign{ partner, multipleTypeAssignments: [{ deviceType, serialNumber, partner }] }./partner/partner/:partnerId/terminal/partner/partner/:partnerId/terminal/:terminalType/:serialnumber/partner/partner/:partnerId/publish/:terminalType/:serialnumber/partner/partner/:partnerId/terminal/:terminalType/:serialnumber/partner/partner/:partnerId/terminal/assigned/partner/partner/:partnerId/:merchantId/terminal/partner/device/:terminalType/:serialNumber/partner/:partnerIdterminalType / serialNumberrequiredstringPAXA920, PAXA920PRO, HILITE, MPED400 and others); serial max 20.terminalStatusoptionalstringU: the terminal must be unassigned.partnerId / merchantIdrequiredstringaddressLine1, zipCode, city, countryCodeAlpha2requiredstringlocationName, phone, email, softwareVersionoptionalstringcustomFieldsByProtocol[]optionalobjectprotocol plus customFields[{ acquirerTerminalId }]. Ask Handpoint which fields your acquirer needs.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>"
}
]
}'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"
}'curl -X POST https://tms.handpoint.com/partner/partner/<partnerId>/publish/PAXA920PRO/1850025030 \ -H "Authorization: Bearer <accessToken>"
{
"code": "string",
"reason": "string",
"messageGuid": "string"
}Cloud API keys
/partner/cloudpos/partner/:partnerId/merchant/:merchantId/keys{ keyName } (max 20). The response has the key unmasked: the only time you see it./partner/cloudpos/partner/:partnerId/merchant/:merchantId/keyskeyList[{ key, keyName, maskedKey, merchantIdAlpha }], masked./partner/cloudpos/partner/:partnerId/merchant/:merchantId/keys/:keyNameThe key is the ApiKeyCloud value for the Cloud API. Store it server-side.
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"
}'Transaction Feed API
Read-only transaction data: lookups, aggregates, grouping and chart-ready graphs. Version 2.11.0.
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).
startDate / endDaterequiredstringyyyyMMddHHmmss, UTC unless time_zone is set.time_zoneoptionalstring+01:00 or -08:00.limitoptionalnumberinitPositionoptionalnumbersearchAfteroptionalstringterminalSerialNumbersoptionalstring[]onlySuccessfuloptionalbooleandiscardDeclineCancellationsoptionalbooleandiscardAutoCancellationsoptionalbooleandummyoptionalenumONLY, INCLUDE or NO.currencyOptsoptionalobject{ currency, nullCurrency }. nullCurrency adds transactions with no currency, such as tokenizations.orderByoptionalarraybulkTimestampoptionalbooleantransactionStreamsoptionalstring[]handpoint (terminal, default) or ecommerce.filtersoptionalarraychartOptsoptionalobjectProduction host txnfeed.handpoint.com; debug txnfeed.handpoint.io. The direct Elasticsearch index is txn_feed (credentials from your Handpoint integration engineer).
fee and surchargeAmount on each record. Store the fee result from the transaction result yourself until Handpoint confirms.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"
}'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
}'Transaction lookups
/transactions/transactions/payouts/transactions/refundsandreversals/transactions/{guid}/transactions/guids/transactions/customer-reference/{customerReference}/transactions/customer-references/transactions/{id_alpha}id_alpha is the TMS merchant or partner id. Also /payouts and /refundsandreversals./transactions/{partner_id_alpha}/{merchant_id_alpha}/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.
Aggregates, grouping and graphs
/transactions/aggregate/avg/{field}/transactions/aggregate/sum/{field}/transactions/aggregate/count/transactions/aggregate/count/distinct/{field}/transactions/aggregate/net/{field}/transactions/aggregate/group/{op}/…avg, sum, count, count/distinct, net). Query groupBy, calendarInterval, order./transactions/aggregate/group/{op}/…/graph/{graphType}graphType: BAR, DOUGHNUT, PIE, LINE.fieldoptionalpathamount.groupByoptionalquerycalendarIntervaloptionalqueryminute, hour, day, week, month, quarter, year.orderoptionalqueryASC 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.
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"
}'Errors
| Pattern | Applies to | Where the error is |
|---|---|---|
| A: asynchronous | POST /transactions | Always 202; the outcome is in finStatus / statusMessage of the polled result |
| B: synchronous, flat | /reversal, /preauthorization/*, /moto/*, tip adjustment | error.code |
| C: synchronous, nested | GET /transactions/{id}/token | error.details.body.error.errorCode |
Rejected before the 202 (no card interaction; safe to retry with a new reference)
| HTTP | Message | What 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. |
| 400 | TransactionReference with wrong uuidv4 format ... | Use a valid UUID v4. |
| 400 | Invalid amount (0 < amount < 999999999999) | Fix the amount. |
| 403 | No valid key found in header | Header is ApiKeyCloud, not Authorization. |
| 404 | Terminal not found or not connected, or wrong host for this terminal type. | |
| 409 | A transaction is already in progress on this terminal. | |
| 422 | VALIDATION_FAILED | Missing or wrongly typed field; read details. |
| 429 | Too many requests | Over 2 requests per second for this key. |
| 5xx | Cloud unavailable. Retry with backoff. |
Common DECLINED and FAILED results
| finStatus | statusMessage | Cause |
|---|---|---|
| DECLINED | Invalid Merchant (arc 1000) | Wrong externalId or MID setup. See Multi-MID. |
| DECLINED | Card declined the online authorization (localized) | EMV forced reversal. Ask the cardholder to leave the card in. |
| DECLINED | UNABLE_TO_FIND_MESSAGE_TO_REVERSE. | originalTransactionId not in the open batch; send a refund. |
| DECLINED | PARTIAL_REVERSAL_AMOUNT_EXCEEDS_ORIGINAL_AMOUNT | Reversal above the sale amount. |
| DECLINED | ORIGINAL_CARD_REQUIRED_FOR_REFUND | Linked refund on a different card. |
| FAILED | Read card error | Retry; insert if the tap failed. |
| FAILED | HMAC mismatch | MOTO not enabled (DEMO acquirer). |
| FAILED | Transaction 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.
{
"error": {
"statusCode": 400,
"name": "BadRequestError",
"message": "{\"error\":1001,\"message\":\"Device is busy\"}"
}
}Release notes and known issues
| Product | Latest |
|---|---|
| REST (Cloud) API | 2.34.0 |
| Android SDK (PAX) | 7.1014.1 |
| Android SDK (HiLite) | 7.1004.3 |
| iOS SDK (HiLite) | 4.0.2 |
| Cordova plugin | 4.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/saleand/preauthorization/capture(major units),taxExempton tip adjustment, Level 2 in/status. Breaking: Level 2 rules enforced onPOST /transactions;amount/capturedAmountmust be clean major-unit decimals. - 2.31.0:
addressVerification.resultCodein results and/status. - 2.30.0: AVS
billingobject. - 2.29.0: error
1005No transaction to cancel. - 2.28.0:
taxAmount,surchargeandbatchNumberin results (with App 4.14.0). - 2.27.0:
POST /preauthorization/increaseand/capturewithout 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:
batchNumberin the result; MOTO in Get Transaction Status. 2.22.2:cardPresentfor Elavon card-present reversals. 2.20.0:/statusselector, 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(),duplicationCheckon 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)
| Id | Issue |
|---|---|
| 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-001 | Pre-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-004 | iOS 17.4+: HiLite Bluetooth is not re-established automatically after a background refresh (SDK 4.0.2). |