Authorization Adjustment is used to modify the authorized amount of an existing pre-authorization.
Typical use cases include hotels, car rentals, and fuel stations:
Increase Amount: When the actual spending is higher than the originally authorized amount, an authorization adjustment can be made to increase the authorized limit, ensuring that the subsequent pre-authorization completion can cover the full amount.
Decrease Amount: In some acquirer environments, reducing the authorized amount may also be supported, for cases where the actual spending is lower than the originally authorized amount.
Global reference of the sale transaction for the sale system.
Qualifies the amount associated with the transaction.
Type of transaction being undertaken for the main service.
Total amount of the transaction.
Contains the updated amount of all authorisations related to the same business transaction.
Gratuity amount.
Currency associated with the transaction.
Three-letter ISO currency code.
Global reference of the original pre-auth transaction for the sale system.
The orgAuthorisationIdentification field specifies the identifier used to link the original pre-authorisation transaction.
Its value is obtained from the authorisationIdentification returned in the pre-authorisation response message, ensuring consistency and correctness between the original authorisation and its subsequent transactions.
Type of cardholder account used for the transaction.
A list of value added tax amounts.
Detailed amounts associated with the total amount of transaction.
Amount value.
Short description of the amount to display or print.
Identification of the cashier who carried out the transaction.
Transaction date time of the original sale transaction for the sale system.
Identification of the original transaction given by the Issuer.
POI identification of the transaction in an unambiguous way.
Value assigned by the authorising party.
Indicates whether the transaction process should continue when the app is running in the background.
Additional information associated with the sale transaction.
Attendance context of the transaction.
Acquirer manager password for transaction verification.
Copy from Request.
Copy from Request.
Unique identification of the partner that is the recipient of the message exchange.
For example, the POS SN
Result of the requested transaction.
Detail of the response. This field will be gradually replaced by respReason in future versions.
Additional information to be logged for further examination.
Custom status field returned in the transaction result.
When you receive the terminal result through the SDK callback interface and AuthAdjustmentResult.response = SUCC, you can obtain additional transaction details (including reference numbers returned by the payment channel) to support your business requirements.
The following fields are defined, and the availability of each field depends on the capabilities provided by the payment application.
Total transaction amount.
Transaction time. timestamp: A particular point in the progression of time in a calendar year expressed in the yyyyMMddHHmmss format.
Currency associated with the transaction.
Three-letter ISO currency code.
Type of cardholder account used for the transaction.
Gratuity amount.
Outcome of the authorisation, and actions to perform.
Amount requested to be authorised.
Amount authorised for the payment transaction.
Masked PAN to be printed on payment receipts or displayed to the cardholder.
Brand of the card.
For example: Visa, MasterCard, CUP, JCB, DinersClub, AmericaExpress.
Payment instrument entry mode requested by the Sale System.
Identification of the cashier who carried out the transaction.
A list of value added tax amounts.
Detailed amounts associated with the total amount of transaction.
Amount value.
Short description of the amount to display or print.
Identification of the invoice.
Short name of the acquirer.
Unique identification of the merchant.
Name of the merchant.
Identification of the POI.
For example: Terminal ID.
Identification of the transaction given by the Issuer.
Unique identification of the reconciliation period between the acceptor and the acquirer.
For example: Batch Number.
POI identification of the transaction in an unambiguous way.
Customer or Merchant payment receipt.
Various receipts.
Destination of the message.
Content or reference of the message.
Maximum number of characters allowed is 20000.
Additional information associated with the sale transaction.
AuthAdjustmentParam param = AuthAdjustmentParam.newBuilder()
.transactionReference("00000006")
.orgTransactionReference("00000004")
.orgTransactionDateTime(new Date(1711680359167L)) //20240329
.totalAmount("99.99")
.amountQualifier(TypeAmount8Code.RPLT)
.build();
RetailerManager.provideFinancialService()
.newAuthAdjustmentExchange(param)
.startAsyncExchange(
new Exchange.RetailerSDKCallback<AuthAdjustmentResult>() {
@Override
public void onError(int code, String msg) {
Log.e(TAG, "failed: " + code + ", " + msg);
}
@Override
public void onResult(AuthAdjustmentResult result) {
Log.i(TAG, "result: " + GsonUtils.toJson(result));
}
});using System;
using PayExplorerConnect;
public void HandleAuthAdjustmentError(int code, string message)
{
Console.WriteLine($"Error: {code}, Message: {message}");
}
public void HandleAuthAdjustmentResult(AuthAdjustmentResult result)
{
Console.WriteLine($"Response: {result.Response}");
}
public string StartAuthAdjustment()
{
// Replace the sample values with your adjustment data and original transaction details.
AuthAdjustmentParam param = new AuthAdjustmentParam.Builder()
.TransactionReference("00000006")
.OrgTransactionReference("00000004")
.OrgTransactionDateTime("2024-03-29T02:45:59.167+0000")
.TotalAmount("99.99")
.AmountQualifier(TypeOfAmountCode.RPLT)
.Build();
string exchangeId = RetailerManager
.ProvideFinancialService()
.NewAuthAdjustmentExchange(param)
.StartAsyncExchange(
HandleAuthAdjustmentResult,
HandleAuthAdjustmentError);
return exchangeId;
}#import <PayExplorerConnect/RetailerManager.h>
#import <PayExplorerConnect/AuthAdjustmentParam+Builder.h>
// Use the reference of the original pre-authorization.
AuthAdjustmentParam *params = [AuthAdjustmentParam makeWithBuilder:^(AuthAdjustmentParamBuilder *builder) {
builder.transactionReference(@"00000006");
builder.orgTransactionReference(@"00000004");
builder.totalAmount(@"99.99");
builder.amountQualifier(TypeOfAmountCodeRPLT);
}];
[[RetailerManager sharedManager] authAdjustment:params block:^(NSString *exchangeId) {
// Save the exchange ID to track this request.
} result:^(id result, NSInteger errcode, NSString *msg) {
if (errcode != 0 && result == nil) {
// Handle request error.
return;
}
AuthAdjustmentResult *adjustmentResult = (AuthAdjustmentResult *)result;
// Handle authorization adjustment result.
}];