Complete a Pre-authorization
Capture an approved pre-auth — full amount or partial.
/v1/transaction/pre-auth/completeRequest body
application/json
typeenumrequiredTransaction type.
SALEPRE_AUTHPRE_AUTH_COMPLETEREFUNDVOIDCARD_READBALANCE_INQUIRYamountintegerrequiredTransaction amount in minor units. For a $25.00 NZD transaction, send 2500. Use 0 for card-read and balance-inquiry.
currencystringrequiredISO 4217 currency code.
cashbackAmountintegerCashback amount in minor units (sale transactions only).
entryModeenumCard entry mode preference. AUTO lets the terminal accept any method.
CONTACTLESSCONTACTAUTOreferenceIdstringPOS-assigned reference identifier for this transaction (max 64 chars).
originalTransactionIdstringRequired for refund, void, and pre-auth completion. The transactionId of the original transaction being referenced.
tipAmountintegerTip amount in minor units.
metadataobjectArbitrary string key-value metadata attached to the transaction. Echoed in the response and available in reconciliation exports. Max 20 keys, 256 chars per value.
Response
application/json
transactionIdstringrequiredUnique identifier for this transaction.
statusenumrequiredTerminal or in-flight state of the transaction.
APPROVEDDECLINEDCANCELLEDERRORREVERSEDPENDING_ONLINEPENDING_COMPLETIONtypeenumrequiredTransaction type (echoed from the request).
SALEPRE_AUTHPRE_AUTH_COMPLETEREFUNDVOIDCARD_READBALANCE_INQUIRYamountintegerrequiredTransaction amount in minor units.
currencystringrequiredISO 4217 currency code.
tipAmountintegerTip amount in minor units.
authorizationCodestringAuthorization code from the issuer.
responseCodestringISO 8583 response code. "00" = approved.
cardSchemeenumCard scheme / network.
VISAMASTERCARDAMEXDISCOVERJCBUNIONPAYEFTPOSOTHERmaskedPanstringMasked primary account number. Only the last 4 digits are visible; all other positions are replaced with asterisks.
entryModeenumActual card entry mode used.
CONTACTLESSCONTACTMAGSTRIPEMANUALaidstringEMV Application Identifier (AID) hex string.
applicationLabelstringEMV application label.
cryptogramTypeenumType of cryptogram generated by the card. TC = Transaction Certificate (offline approved), ARQC = online auth required, AAC = declined.
TCARQCAACtvrstringTerminal Verification Results (10-character hex).
cvmResultenumCardholder Verification Method used.
PINSIGNATURECDCVMNO_CVMFAILEDreferenceIdstringPOS-assigned reference identifier (echoed).
rrnstringRetrieval Reference Number.
timestampstring · ISO 8601requiredTransaction timestamp (ISO 8601).
receiptDataobjectStructured receipt data for rendering cardholder and merchant receipts. See the Receipt Requirements page for rendering rules.
merchantNamestringMerchant trading name.
merchantIdstringAcquirer-assigned merchant identifier (MID).
terminalIdstringAcquirer-assigned terminal identifier (TID).
transactionIdstringTransaction identifier.
dateTimestring · ISO 8601Local date and time of the transaction.
cardSchemestringCard scheme name for the receipt (e.g. 'VISA').
maskedPanstringMasked PAN for receipt display (last 4 only).
applicationLabelstringEMV application label (e.g. 'Visa Credit').
aidstringEMV Application Identifier.
authorizationCodestringIssuer authorization code.
amountintegerTransaction amount in minor units.
tipAmountintegerTip amount in minor units.
totalAmountintegerTotal amount (amount + tip) in minor units.
entryModestringCard entry mode (CONTACTLESS, CONTACT, etc.).
cvmPerformedenumCardholder verification method used.
PINSIGNATURECDCVMNO_CVMFAILEDapprovalStatusenumAPPROVED or DECLINED.
APPROVEDDECLINEDchipDataobjectEMV chip data for POS-side acquirer routing. Only populated in granular mode (status = PENDING_ONLINE).
emvTagsobjectMap of EMV tag hex identifiers to hex-encoded values. Common tags: 9F26 (Application Cryptogram), 9F27 (Cryptogram Info Data), 9F10 (Issuer Application Data), 9F37 (Unpredictable Number), 9F36 (ATC), 9C (Transaction Type), 9F02 (Amount Authorized), 5F2A (Transaction Currency Code), 9A (Transaction Date), 9F1A (Terminal Country Code).
encryptedPinBlockstringnullableEncrypted PIN block (hex), or null if PIN was not entered.
pinKsnstringnullableKey Serial Number for the PIN encryption key (hex).
pinBlockFormatenumnullablePIN block format identifier.
ISO_0ISO_1ISO_3ISO_4metadataobjectArbitrary key-value metadata echoed from the request.
commerce-api/openapi.yaml · completePreAuth