Account Updater
Overview
Account Updater is a card scheme service that keeps stored payment credentials up to date. Card issuers change cardholder account details when they renew a card, replace a card, or change a card number or an expiry date. The card scheme then makes the new details available through Account Updater.
When you use Account Updater with Gateway Tokenization, the Gateway applies eligible updates to the payment details stored against a token. This helps you maintain continuity of future payments.
The Gateway supports Account Updater for the Mastercard and Visa card schemes.
Prerequisites
To enable Account Updater, ensure that you meet these requirements:
- Your payment service provider must enable your merchant profile for Gateway Tokenization and for the Account Updater service.
- Your merchant profile must have at least one of these options enabled: Cardholder Verification, Authorizations, or Purchases.
- You and your acquirer must register with the account updater service of each card scheme that you support:
- Mastercard provides Automatic Billing Updater.
- Visa provides Visa Account Updater.
Contact your payment service provider to confirm that your setup meets these prerequisites.
- Account Updater is not available when the token generation strategy of your token repository is Preserve 6.4 or Acquirer Tokenization.
- Account Updater is available from API version 70.
- If you enable network token usage for transaction, and an active network token is available and used on the transaction, an Account Updater check will not be triggered except in the case of FPAN fallback.
Account Updater usage for token maintenance
After Account Updater is enabled on your profile, the Gateway checks the current account details with the relevant card scheme each time that you submit one of these requests with a valid gateway token:
- An authentication request through the INITIATE AUTHENTICATION operation.
- A transaction request through the AUTHORIZE, PAY, or VERIFY operation.
The Gateway bases this check on the funding primary account number (FPAN) stored against the token.
When the card scheme returns updated card details, the Gateway updates the gateway token and uses the updated payment details to process the authentication or the transaction. This code sample shows the Gateway API response field that indicates that the Gateway updated the token.
{
"response": {
"accountUpdater": {
"gatewayCode": "UPDATED"
}
}
}
Test the Account Updater integration
You can test your integration to the Gateway with the emulator and the test cards. To access the emulator, use the test merchant profile with the TEST prefix that your payment service provider assigned to you.
This table lists the test cards and the values that the Gateway returns for each card.
| Test card | Card number | Expiry date | Value returned in field response.accountUpdater.gatewayCode | Value returned in field sourceOfFunds.provided.card |
|---|---|---|---|---|
| Visa | 4440000042200014 | 04/41 | UPDATED | Card number is updated to 444000xxxxxx0022 Expiry date is updated to 01/39 |
| Mastercard | 5500005555555559 | 04/41 | UPDATED | Card number is updated to 512345xxxxxx2346 Expiry date is updated to 01/39 |
| Visa | 4532249999990204 | 01/39 | NOT_UPDATED | No change in card number and expiry date |
| Mastercard | 5123450000000008 | 01/39 | NOT_UPDATED | No change in card number and expiry date |
Perform these steps to test the functionality:
- Send a TOKENIZE request to create a gateway token. The Gateway returns the token in the
tokenfield of the response. - For each scenario, submit an INITIATE AUTHENTICATION, AUTHORIZE, PAY, or VERIFY request with the
sourceOfFunds.tokenfield populated with the gateway token.
At step 2, the Gateway sends a request to the Account Updater service only when these conditions are met:
- No other request to Account Updater was made for the same gateway token in the last 24 hours.
- The gateway token in the
sourceOfFunds.tokenfield is valid and does not have a replacement token.
The Gateway API response contains the usual transaction details together with the fields that indicate the use of Account Updater. This table describes those fields.
| Field name | Value | Description |
|---|---|---|
| response.accountUpdater.gatewayCode | UPDATED | Account Updater returns new card details. The Gateway uses these details to process the transaction request and returns them in the sourceOfFunds parameter group. The Gateway also updates the token in the request with these details. |
| response.accountUpdater.gatewayCode | NOT_UPDATED | Account Updater does not return new card details. |
| sourceOfFunds.provided.card.expiry.month sourceOfFunds.provided.card.expiry.year sourceOfFunds.provided.card.number |
Updated card details | When the value of response.accountUpdater.gatewayCode is UPDATED, these fields contain the data that Account Updater returned. |
Authorize request example
{
"apiOperation": "AUTHORIZE",
"sourceOfFunds": {
"token": "gateway_token",
"provided": {
"card": {
"securityCode": "<card security code>"
}
}
},
"order": {
"amount": "10",
"currency": "AUD"
},
"transaction": {
"reference": "e9eb8d13-5a23-41b2-a58a-745c512ea080"
}
}
Authorize response example
{
"authorizationResponse": {
"commercialCard": "888",
"commercialCardIndicator": "3",
"financialNetworkCode": "777",
"posData": "1025104006600",
"posEntryMode": "812",
"processingCode": "003000",
"responseCode": "00",
"stan": "54363",
"transactionIdentifier": "123456789"
},
"gatewayEntryPoint": "WEB_SERVICES_API",
"merchant": "TESTMB7EC41F2D1",
"order": {
"amount": 10,
"authenticationStatus": "AUTHENTICATION_NOT_IN_EFFECT",
"certainty": "FINAL",
"chargeback": {
"amount": 0,
"currency": "AUD"
},
"creationTime": "2025-12-29T14:24:33.047Z",
"currency": "AUD",
"id": "3",
"lastUpdatedTime": "2025-12-29T14:24:32.968Z",
"merchantAmount": 10,
"merchantCategoryCode": "1234",
"merchantCurrency": "AUD",
"status": "AUTHORIZED",
"totalAuthorizedAmount": 10,
"totalCapturedAmount": 0,
"totalDisbursedAmount": 0,
"totalRefundedAmount": 0
},
"response": {
"accountUpdater": {
"gatewayCode": "UPDATED"
// This field indicates that the Account Updater service updated the gateway token with the latest FPAN, the latest expiry date, or both
},
"acquirerCode": "00",
"acquirerMessage": "Approved",
"gatewayCode": "APPROVED",
"gatewayRecommendation": "NO_ACTION"
},
"result": "SUCCESS",
"sourceOfFunds": {
"provided": {
"card": {
"brand": "MASTERCARD",
"expiry": {
"month": "1",
"year": "39"
},
// Latest expiry date that the Account Updater service returned and that the Gateway used in the transaction
"fundingMethod": "DEBIT",
"issuerCountryCode": "LBR",
"number": "512345xxxxxx2346",
// Latest FPAN that the Account Updater service returned and that the Gateway used in the transaction
"scheme": "MASTERCARD"
}
},
"token": "gateway_token",
"type": "CARD"
},
"timeOfLastUpdate": "2025-12-29T14:24:32.968Z",
"timeOfRecord": "2025-12-29T14:24:32.774Z",
"transaction": {
"acquirer": {
"batch": 20251229,
"date": "1229",
"id": "TEST_ACQUIRER",
"merchantId": "1234",
"transactionId": "123456789"
},
"amount": 10,
"authenticationStatus": "AUTHENTICATION_NOT_IN_EFFECT",
"authorizationCode": "054363",
"currency": "AUD",
"id": "3",
"receipt": "536314054363",
"reference": "e9eb8d13-5a23-41b2-a58a-745c512ea080",
"source": "INTERNET",
"stan": "54363",
"terminal": "11111",
"type": "AUTHORIZATION"
},
"version": "100"
}
Token replacement through Account Updater
When you use Account Updater with a token repository that has Unique Account Identifier as the token management strategy, the Gateway may automatically replace one gateway token with another when multiple tokens are linked to the same card account, a behavior known as token replacement.
Token replacement keeps a single token for each unique account identifier in the token repository.
Token replacement occurs when all of these conditions are met:
- Your token repository has Unique Account Identifier as the token management strategy.
- An Account Updater response indicates that the card number associated with a token changed.
- Another token in the same token repository is already associated with the updated card number.
In this situation, the Gateway consolidates the two tokens and establishes a replacement relationship.
Gateway processing
When token replacement occurs, the Gateway performs these actions:
- Updates the card details stored against the token that triggered the Account Updater request with the information that Account Updater returned.
- Identifies the token that is already associated with the updated card number.
- Assigns that token as the replacement token.
- Stores a reference to the replacement token against the original token.
- Updates the expiry date of the replacement token, when Account Updater returns a new expiry date.
After the Gateway assigns a replacement token, these conditions apply:
- You can no longer update the original token.
- You must use the replacement token for all future payment and token management operations.
- You must remove the original token from your system.
Merchant requirements
When you receive a Gateway API response in which the value of response.accountUpdater.gatewayCode is UPDATED, perform these steps:
- Call the RETRIEVE TOKEN operation and check whether the response contains the
replacementTokenfield. - If the response contains the
replacementTokenfield, use the replacement token for all subsequent requests. - Delete the original token from your system.
If you do not apply the replacement token, the Gateway rejects your token update requests.
Example scenario
In this example, the token repository has Unique Account Identifier as the token management strategy and Merchant Supplied as the token ID strategy.
This table lists the tokens that the repository contains.
| Token | Associated card (FPAN) | Expiry date |
|---|---|---|
| tokenA | 5500005555555559 | 04/41 |
| tokenB | 5123456789012346 | 01/39 |
Step 1: Perform an authorization
You submit an authorization request with tokenA. During the authorization, Account Updater determines that the account associated with tokenA changed and returns UPDATED in the response.accountUpdater.gatewayCode field.
Account Updater returns the card number 5123456789012346 and the expiry date 01/39. This card number already exists in the repository and is associated with tokenB.
Step 2: Gateway assigns a replacement token
Because the updated FPAN already belongs to tokenB, the Gateway establishes a token replacement relationship and performs these actions:
- Updates
tokenAwith the card number 5123456789012346 and the expiry date 01/39. - Assigns
tokenBas the replacement token oftokenA.
From this point onward, these conditions apply:
tokenBis the active token that represents the account.tokenAis a replaced token.- You must use
tokenBfor all future token operations.
Step 3: Verify the replacement with the RETRIEVE TOKEN operation
Retrieve the details of the original token, tokenA, to determine whether the Gateway assigned a replacement token.
Retrieve token request example
This table describes the RETRIEVE TOKEN request.
| Request item | Value |
|---|---|
| URL | https://{{host}}/api/rest/version/100/merchant/{{merchantId}}/token/tokenA |
| HTTP method | GET |
Retrieve token response example
{
"replacementToken": "tokenB", // tokenB is now the replacement token of tokenA
"repositoryId": "TEST**-UNIPAN",
"result": "SUCCESS",
"schemeToken": {
"status": "TOKENIZATION_UNAVAILABLE",
"statusTime": "2026-08-17T07:02:10.374Z"
},
"sourceOfFunds": {
"provided": {
"card": {
"brand": "MASTERCARD",
"expiry": "0139",
"fundingMethod": "DEBIT",
"number": "512345xxxxxx2346",
"scheme": "MASTERCARD"
}
},
"type": "CARD"
},
"status": "VALID",
"token": "tokenA",
"usage": {
"lastUpdated": {
"merchantId": "TESTMERCHANT",
"source": "GATEWAY",
"time": "2026-08-17T07:01:17.406Z"
},
"lastUsedTime": "2026-08-17T07:01:48.308Z"
},
"verificationStrategy": "BASIC"
}
After the Gateway establishes a replacement relationship between tokenA and tokenB, you can no longer update tokenA. The Gateway rejects any attempt to update tokenA.
Error example
{
"error": {
"cause": "INVALID_REQUEST",
"explanation": "You are attempting to update a token that has a replacement token 'tokenB'. You must use the replacement token instead of this token (and delete the replaced token)."
},
"result": "ERROR"
}