Preauthorize Credit Card Transaction
Preauthorizes a credit card transaction without capturing funds. The preauthorized amount is held on the card and can later be captured or voided.
Headers
- Type: stringx
-application Source requiredA custom HTTP header that accepts a free-form string value. It is used to identify the application making the API request. For example, if Punchh invokes the API, the value could be "punchh".
- Type: stringX
- Location Id requiredThe unique location identifier for the store or business location processing the transaction.
- Type: stringContent
- Type requiredThe media type of the request body. Must be set to
application/json. - Type: stringAuthorizationrequired
Bearer token for API authorization. Send in the format:
Bearer ACCESS_TOKEN_GOES_HERE.
Body·
Request details for preauthorize transaction
- Type: stringreference
Number min length:1max length:40requiredA unique reference number for the transaction.
- Properties: 5Type:transaction
Amount Details required - Type: stringFormat: date-timetransaction
Date Time U T C requiredThe transaction date and time in UTC format.
- Type:billing
Address Properties: 10Contains the user's billing-related details (cardholder information) for Address Verification System (AVS) processing and for populating records at the payment gateway. This object is optional; passing null or omitting it maintains backward compatibility. This object is request-only and is not returned in API responses.
Validation & Error Handling
If any field inside
billingAddressfails its length or format validation rules (for example, an invalid email format inbillingEmailIdor a string that exceeds the specified character limit), the API rejects the request before contacting the gateway.- HTTP Status:
422 Unprocessable Entity - Behavior: The transaction is aborted before the payment processor is contacted.
Gateway Processing & Data Security
Gateway Forwarding
- Aurus Gateway: Full support. Forwards
billingAddressdata to Aurus for AVS checks. - Other Payment Gateways: Gracefully ignore
billingAddresswithout returning an error.
Data Privacy & Log Masking
- Masked PII:
billingFirstName,billingLastName,billingEmailId, andbillingMobileNumberare redacted or masked in stored application and audit logs. - Unmasked Address Information:
billingAddressLine1,billingAddressLine2,billingCity,billingState,billingCountry, andbillingZipremain visible in logs to facilitate AVS decline analysis.
- HTTP Status:
- Type: enumchannelvaluesNonePOSKiosk
- Type: string | nullinvoice
Number max length:14The invoice number associated with the transaction.
- Type: booleanis
Preferred Indicates whether this saved card should be set as the user's preferred payment method.
- Type: string | nullone
Time Token A temporary, single-use token generated to securely represent the credit card used for the purchase. This token is exchanged for a reusable
paymentMethodTokenthat can be used for future transactions. Required ifpaymentMethodTokenis not provided. - Type: string | nullpayment
Method Token A reusable token generated from a one time token (
oneTimeToken), representing a saved credit card for recurring payments. - Type: enumpayment
Source valuesScanToPayOnlineNone - Type: booleansave
Card Gets or sets a value indicating whether the user's card information should be saved for future use.
- Type: string | nullFormat: date-timetransaction
Date Time Local The transaction date and time in local format.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://SERVER_NAME_GOES_HERE.partech.com/creditcard/v1/preauth \
--request POST \
--header 'x-applicationSource: ' \
--header 'X-LocationId: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--data '{
"paymentMethodToken": "PAYMENT_TOKEN_GOES_HERE",
"oneTimeToken": "ONE_TIME_TOKEN_GOES_HERE",
"walletPay": null,
"saveCard": true,
"userId": null,
"isPreferred": false,
"referenceNumber": "258",
"invoiceNumber": 2148,
"transactionDateTimeUTC": "2026-03-06T11:28:29.7050777Z",
"transactionDateTimeLocal": "2026-03-06T11:28:29.705",
"transactionAmountDetails": {
"taxAmount": 0,
"discount": 0,
"productTotalAmount": 5000,
"totalAmount": 5000,
"tip": null
},
"paymentSource": "Online",
"channel": null,
"billingAddress": {
"billingAddressLine1": "200 Tech Blvd",
"billingCity": "Dallas",
"billingState": "TX",
"billingCountry": "US",
"billingZip": "75201",
"billingFirstName": "Jordan",
"billingLastName": "Lee",
"billingEmailId": "jordan.lee@example.com",
"billingMobileNumber": "12145550188"
}
}'
{
"transactionAmount": "5000.00",
"cardNumber": "XXXX-XXXX-XXXX-1111",
"paymentMethodToken": "PAYMENT_TOKEN_GOES_HERE",
"lastFourDigits": "1111",
"cardType": "Visa",
"expireMonth": 10,
"expireYear": 2027,
"cardHolderName": "Customer",
"parPayTransactionId": "TRANSACTION_ID_GOES_HERE",
"statusMessage": "Succeeded!",
"transactionDateTimeUTC": "2026-03-06T11:28:29.7051337Z",
"status": "Success"
}