Download OpenAPI specification:Download
Store a card
| accountNumber required | string Account number of the card to store |
| expiry required | string Expiry of the card to store in YYMM format |
| merchantID required | string Cardtokens merchant ID. If no merchant ID is specified, account updates and tokenization are not possible. |
| updates | boolean Enable account updates (VAU/ABU). This requires enrollment for the specific merchant. |
{- "accountNumber": "string",
- "expiry": "string",
- "merchantID": "string",
- "updates": true
}{- "cardID": "string"
}Tokenize a stored card, including optional extra data in the request.
| CardID required | string |
| securityCode | string Card security code, e.g. CVV/CVV2/CVC |
object (Address) Account holder/billing address |
{- "securityCode": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "postcode": "string"
}
}{- "scheme": "string",
- "token": "string",
- "tokenID": "string",
- "expiry": "string",
- "par": "string"
}Query Visa Account Updater or Mastercard Automatic Billing Updater using a live API, to check if a card has been updated.
An update causes the card on file to be updated.
| CardID required | string |
{- "accountNumber": "string",
- "expiry": "string",
- "updateStatus": "noChange"
}| merchantID required | string |
| cursor | string Cursor used for pagination. Each response contains a cursor, which can be used in the next call to page over the cards for the merchant. |
{- "cursor": "string",
- "cards": [
- {
- "accountNumber": "string",
- "expiry": "string",
- "merchantID": "string"
}
]
}| merchantID required | string |
| accountNumber required | string Account number of the card to store |
| expiry required | string Expiry of the card to store in YYMM format |
| merchantID required | string Cardtokens merchant ID |
[- {
- "accountNumber": "string",
- "expiry": "string",
- "merchantID": "string"
}
][- "string"
]Perform a synchronous check with card schemes to see if the card has been updated.
Perform an update of a card
| accountNumber required | string Account number of the card to store |
| expiry required | string Expiry of the card to store in YYMM format |
| merchantID required | string Cardtokens merchant ID |
{- "accountNumber": "string",
- "expiry": "string",
- "merchantID": "string"
}{- "accountNumber": "string",
- "expiry": "string",
- "updateStatus": "noChange"
}Subscribe the provided card to account updates. Callbacks are used to share information about account updates.
When a callback is sent to you with status accountNumberChanged or
expiryChanged, the subscription is updated with the new card details.
Any other callbacks status will result in the subscription being deleted.
As a step in subscribing, an account update will be performed on the card, and the results will be returned.
If the account update result has status noChange, the provided
account number and expiry will be used for the subscription.
If the account update result has status accountNumberChanged or
expiryChanged, the new card details will be used for the
subscription.
On any other account update result no subscription will be created.
Perform an update of a card
| accountNumber required | string Account number of the card to store |
| expiry required | string Expiry of the card to store in YYMM format |
| merchantID required | string Cardtokens merchant ID |
{- "accountNumber": "string",
- "expiry": "string",
- "merchantID": "string"
}{- "accountNumber": "string",
- "expiry": "string",
- "updateStatus": "noChange",
- "subscriptionID": "string"
}Create a token
| accountNumber required | string Card account number |
| expiry required | string Expiry in YYMM format |
| securityCode | string Card security code, e.g. CVV/CVV2/CVC |
| merchantID required | string The cardtokens merchant ID |
object (Address) Account holder/billing address |
{- "accountNumber": "string",
- "expiry": "string",
- "securityCode": "string",
- "merchantID": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "postcode": "string"
}
}{- "scheme": "string",
- "token": "string",
- "tokenID": "string",
- "expiry": "string",
- "par": "string"
}| tokenID required | string |
Provision token request
| reference required | string |
| transactionType | string Enum: "ecom" "recurring" Defaults to ecom |
{- "reference": "string",
- "transactionType": "ecom"
}{- "cryptogram": "string",
- "token": "string",
- "expiry": "string",
- "scheme": "string",
- "par": "string",
- "cryptogramID": "string"
}| tokenID required | string |
{- "image": "string",
- "mimetype": "string",
- "height": "string",
- "width": "string",
- "expiry": "string",
- "last4": "string",
- "issue": "string"
}| last4 | string Last 4 digits of card |
| expiry | string Expiry of the card to store in YYMM format |
| newCardID | string ID of the updated card, if applicable |
| cardID required | string ID of the stored card |
| updateStatus required | string Enum: "noChange" "accountNumberChanged" "expiryChanged" "closedAccount" "nonParticipatingBIN" "contactCardholder" "cardholderOptOut" "binNoMatch" The result of the update check |
{- "last4": "string",
- "expiry": "string",
- "newCardID": "string",
- "cardID": "string",
- "updateStatus": "noChange"
}When an account update happens this callback will trigger and call your configured endpoint with the new account information.
| accountNumber | string Account number of the card to store |
| expiry | string Expiry of the card to store in YYMM format |
| merchantID | string Cardtokens merchant ID |
| subscriptionID | string Subscription ID The previously stored card has been replaced with the new card. |
| updateStatus required | string Enum: "noChange" "accountNumberChanged" "expiryChanged" "closedAccount" "nonParticipatingBIN" "contactCardholder" "cardholderOptOut" "binNoMatch" The result of the update check |
{- "accountNumber": "string",
- "expiry": "string",
- "merchantID": "string",
- "subscriptionID": "string",
- "updateStatus": "noChange"
}