Process a Pre-Authorization
Use pre-authorization to reserve funds on a customer's card without capturing them immediately. The hold typically lasts 7-30 days depending on the card issuer.
When to Use
- Hotel check-ins (final amount unknown until checkout)
- Car rentals (security deposit)
- Restaurants (tip added later)
- Any scenario where the final amount may differ from the initial charge
Prerequisites
- Understand EPOS communication
- A paired terminal with a valid auth token
- Terminal IP address and serial number
Steps
- Send a pre-authorization request:
curl --location 'https://{IP}:{PORT}/payntpos/1.0.0/transaction?tid={TID}&disablePrinting=false' \
--header 'Content-Type: application/json' \
--header 'Authorization: {AUTH_TOKEN}' \
--data '{
"transType": "PREAUTH",
"reference": "reservation-789",
"amountTrans": 20000
}'
- The terminal displays the payment screen.
- The customer taps or inserts their card.
- The response returns a UTI:
{
"transType": "PREAUTH",
"amountTrans": 20000,
"uti": "c4b0a015-abea-3759-b5d1-dd82d0a7cc26"
}
The UTI is an alphanumeric string consisting of 1-64 characters. Special characters are not allowed. For example, 000000000001, 000000000002, 000000000003. Each UTI must be a unique value. The UTI can be re-used only when the previous one expires, which currently happens after 3 months, though this is subject to change.
- Save the UTI—you'll need it to capture or void the pre-authorization.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| transType | string | Yes | Set to PREAUTH |
| amountTrans | integer | Yes | Amount to reserve in cents |
| reference | string | No | Your reference ID for tracking. The reference ID is an alphanumeric string consisting of 1-36 characters, Special characters are not allowed. Usually shown in 5 groups separated by hyphens, for example, gr3d4fae-9dec-11d0-a763-00a0c91e6bf1. |
What Happens Next
After a pre-authorization, you have two options:
- Capture the funds – Use How to Capture a Pre-Authorization to finalize the charge.
- Void the pre-authorization – Use How to Void a Transaction to release the hold.
If you take no action, the hold expires automatically (typically 7-30 days).
Important Notes
- The reserved amount is not yet charged—it's only a hold on the customer's available credit.
- You can capture less than the pre-authorized amount (partial capture).
- You cannot capture more than the pre-authorized amount.
Related
- How to Capture a Pre-Authorization – Finalize the charge
- How to Void a Transaction – Release the hold