Balance and status inquiry
Balance and status inquiry
Use a nexo Acceptor Authorization Request to retrieve the remaining balance and status of a preauthorization. The request references the original Gateway order; it does not authorize or capture an additional amount.
The examples below show the fields relevant to the balance inquiry. Standard environment, header, and security elements required by the nexo message are omitted for readability.
Normal balance inquiry
A normal balance inquiry retrieves the remaining amount of an active preauthorization. It is approved only when the referenced preauthorization is still valid and its remaining balance is greater than zero.
Request fields
| Tag | Description | Presence |
|---|---|---|
Hdr/MsgFctn | Message function. Set to 'AUTQ'. | m |
AuthstnReq/Envt/PmtCntxt/CrdhldrPres | Indicates whether the cardholder is present. Set to 'false'. | m |
AuthstnReq/Envt/PmtCntxt/CardDataNtryMd | Card data entry mode. Set to 'PHYS'. | m |
AuthstnReq/Tx/TxCaptr | Indicates whether the transaction must be captured. Set to 'false'. | m |
AuthstnReq/Tx/TxTp | Transaction type. Set to 'BALC'. | m |
AuthstnReq/Tx/SaleRefId | Gateway order ID of the referenced preauthorization. | m |
AuthstnReq/Tx/TxDtls/Ccy | Currency of the referenced transaction. | m |
AuthstnReq/Tx/TxDtls/TtlAmt | Inquiry amount. Set to '0' or '0.00'. This is not the returned balance. | m |
AuthstnReq/Tx/TxDtls/AmtQlfr | Amount qualifier. Set to 'ACTL'. | m |
m = mandatory
Request example
The following fragment is taken from a caaa.001.001.06 Acceptor Authorization Request:
<Hdr>
<MsgFctn>AUTQ</MsgFctn>
<PrtcolVrsn>6.0</PrtcolVrsn>
<!-- Other required header fields -->
</Hdr>
<AuthstnReq>
<Envt>
<!-- Acquirer, merchant and POI data -->
<PmtCntxt>
<CrdhldrPres>false</CrdhldrPres>
<CardDataNtryMd>PHYS</CardDataNtryMd>
</PmtCntxt>
</Envt>
<Tx>
<TxCaptr>false</TxCaptr>
<TxTp>BALC</TxTp>
<SaleRefId>71581515684</SaleRefId>
<TxId>
<TxDtTm>2026-06-12T07:07:57.9+00:00</TxDtTm>
<TxRef>999</TxRef>
</TxId>
<TxDtls>
<Ccy>EUR</Ccy>
<TtlAmt>0.00</TtlAmt>
<AmtQlfr>ACTL</AmtQlfr>
</TxDtls>
</Tx>
</AuthstnReq>
Successful response
The Gateway returns the remaining authorized balance in TxRspn/Bal/Amt. When available, Tx/TxDtls/VldtyDt contains the expiration date of the preauthorization.
| Tag | Description | Presence |
|---|---|---|
AuthstnRspn/Tx/RcptTxId | Recipient or order reference returned by the Gateway. | m |
AuthstnRspn/Tx/TxDtls/VldtyDt | Expiration date of the preauthorization. | c |
AuthstnRspn/TxRspn/AuthstnRslt/RspnToAuthstn/Rspn | Authorization result. 'APPR' indicates that the inquiry was approved. | m |
AuthstnRspn/TxRspn/Bal/Amt | Remaining preauthorization balance. The Ccy attribute identifies the currency. | m |
m = mandatory, c = conditional
Response example
The following fragment is taken from a caaa.002.001.06 Acceptor Authorization Response:
<AuthstnRspn>
<Tx>
<TxId>
<TxDtTm>2026-06-12T07:07:57.9+00:00</TxDtTm>
<TxRef>999</TxRef>
</TxId>
<RcptTxId>71581515684</RcptTxId>
<TxDtls>
<Ccy>EUR</Ccy>
<TtlAmt>0.00</TtlAmt>
<VldtyDt>2026-06-26+02:00</VldtyDt>
</TxDtls>
</Tx>
<TxRspn>
<AuthstnRslt>
<RspnToAuthstn>
<Rspn>APPR</Rspn>
<RspnRsn>00:Function performed error-free</RspnRsn>
</RspnToAuthstn>
<CmpltnReqrd>false</CmpltnReqrd>
</AuthstnRslt>
<Bal>
<Amt Ccy="EUR">1.00</Amt>
</Bal>
</TxRspn>
</AuthstnRspn>
In this example, the preauthorization remains valid until 26 June 2026 and has a remaining balance of 1.00 EUR.
Extended balance and status inquiry
An extended inquiry can also retrieve status information when the referenced preauthorization has already been completed or has expired. Add the following value to the normal balance inquiry:
| Tag | Description | Presence |
|---|---|---|
AuthstnReq/Tx/AddtlTxData | Set to /SuccessOnCompletedPreauth. | m |
Request example
<Tx>
<TxCaptr>false</TxCaptr>
<TxTp>BALC</TxTp>
<SaleRefId>1786584455</SaleRefId>
<TxId>
<TxDtTm>2026-06-12T08:38:33.6+01:00</TxDtTm>
<TxRef>999</TxRef>
</TxId>
<TxDtls>
<Ccy>SEK</Ccy>
<TtlAmt>0.00</TtlAmt>
<AmtQlfr>ACTL</AmtQlfr>
</TxDtls>
<AddtlTxData>/SuccessOnCompletedPreauth</AddtlTxData>
</Tx>
Additional response information
For an extended inquiry, TxRspn/AuthstnRslt/RspnToAuthstn/AddtlRspnInf contains semicolon-separated key-value pairs.
| Key | Description | Presence |
|---|---|---|
LastTxType | Type of the latest successful transaction associated with the order. | c |
PEM | POS entry mode, for example ECTL, when available. | c |
TotalAmount | Sum of captured or settled Sale and PostAuth transactions. | m |
ReturnedAmount | Sum of captured or settled Credit and Return transactions. | m |
DCCAccepted | Indicates whether Dynamic Currency Conversion was accepted, when DCC information is available. | c |
m = mandatory for a successful extended response, c = conditional
Last transaction type values
| Value | Transaction type |
|---|---|
IRES | Initial preauthorization |
URES | Preauthorization increment or decrement |
PRES | Post-authorization |
CRDP | Sale |
RFND | Credit or Return |
LastTxType describes the latest successful transaction. A later declined or otherwise unsuccessful attempt does not replace this value.
Response example
<AuthstnRspn>
<Tx>
<TxId>
<TxDtTm>2026-06-12T08:38:33.6+01:00</TxDtTm>
<TxRef>999</TxRef>
</TxId>
<RcptTxId>1786584455</RcptTxId>
<TxDtls>
<Ccy>SEK</Ccy>
<TtlAmt>0.00</TtlAmt>
</TxDtls>
</Tx>
<TxRspn>
<AuthstnRslt>
<RspnToAuthstn>
<Rspn>APPR</Rspn>
<RspnRsn>00:Function performed error-free</RspnRsn>
<AddtlRspnInf>LastTxType=CRDP;PEM=ECTL;ReturnedAmount=0.00;TotalAmount=21.00</AddtlRspnInf>
</RspnToAuthstn>
<CmpltnReqrd>false</CmpltnReqrd>
</AuthstnRslt>
<Bal>
<Amt Ccy="SEK">0.00</Amt>
</Bal>
</TxRspn>
</AuthstnRspn>
In this example:
LastTxType=CRDPindicates that the latest successful transaction was a Sale.PEM=ECTLindicates contactless card entry.TotalAmount=21.00is the amount completed by Sale or PostAuth transactions.ReturnedAmount=0.00indicates that no Credit or Return amount was processed.Bal/Amt=0.00indicates that no preauthorization balance remains.
How the balance is calculated
The Gateway evaluates the successful transactions associated with the referenced order:
- An authorized preauthorization contributes to the remaining balance.
- Captured or settled Sale and PostAuth transactions contribute to
TotalAmount. - Captured or settled Credit and Return transactions contribute to
ReturnedAmount. - If a completed or returned amount is greater than zero, the returned balance is
0.00. - Declined, voided, waiting, or otherwise unsuccessful transactions do not contribute to these amounts.
The values in AddtlRspnInf do not carry separate currency attributes. Interpret them using the transaction currency returned in the response, unless the integration uses a DCC-specific payment-currency configuration.
Response identifier behavior
Tx/TxId/TxDtTm and Tx/TxId/TxRef in the response are copied from the balance-inquiry request. They are not replaced with the identifiers of the referenced preauthorization, including when /SuccessOnCompletedPreauth is used.
Do not use the response TxId as the identifier of the original preauthorization. Use the returned RcptTxId and/or SaleRefId, according to the configured response profile, to correlate the referenced Gateway order.
Result summary
| Referenced order state | Normal inquiry | Extended inquiry |
|---|---|---|
| Active preauthorization with a remaining balance | Approved; returns the remaining balance. | Approved; returns the remaining balance and status information. |
| Completed preauthorization | Rejected. | Approved; returns a zero balance and completion information. |
| Expired preauthorization | Rejected. | Can return the available status information. |
| Order not found | Rejected. | Rejected. |
Updated 4 days ago