Search…
Configuration Data
Allow your users to obtain configuration details that include the various velocities that apply to funding sources, virtual cards and transactions.

A call to getVirtualCardsConfig returns virtual cards configuration data. This includes data such as transaction velocity, maximum transaction amounts, card creation velocity, funding source creation / error velocity, funding source support information and supported virtual card currencies.
Velocity string values are represented in the format of amount/period, where period is an ISO8601 period. For example, a maxCardCreationVelocity of 10 cards per hour, would be represented as 10/PT1H.
TypeScript
Kotlin
Swift
// Interface representing the configuration data returned
export enum CardType {
Credit = 'CREDIT',
Debit = 'DEBIT',
Prepaid = 'PREPAID',
}
export interface FundingSourceSupportDetail {
cardType: CardType
}
export interface FundingSourceSupportInfo {
providerType: string
fundingSourceType: string
network: string
detail: FundingSourceSupportDetail[]
}
export interface CurrencyVelocity {
currency: string // e.g. 'USD'
velocity: string[] // e.g. ['25000/P1D']
}
export interface VirtualCardsConfig {
maxFundingSourceVelocity: string[] // e.g. ['5/P1D']
maxFundingSourceFailureVelocity: string[]
maxCardCreationVelocity: string[] // e.g. ['10/PT1H']
maxTransactionVelocity: CurrencyVelocity[]
maxTransactionAmount: CurrencyAmount[]
virtualCardCurrencies: string[]
fundingSourceSupportInfo: FundingSourceSupportInfo[]
}
try {
const configurationData = await virtualCardsClient.getVirtualCardsConfig()
// `configurationData` constains details such as transaction velocity,
// maximum transaction amounts, card creation velocity, funding source creation / error velocity,
// funding source support information and supported virtual card currencies.
} catch {
// Handle/notify user of errors
}
// Coming soon
// Coming soon

Velocities controls specify the maximum rate at which certain operations can be performed by a user. They consist of an amount and a time period. The amount is specified as a number and the time period is specified as an ISO8601 time period. Velocities are expressed in the format <amount>/<time-period>. Velocity configuration may be specified as a list of velocities all of which are applied to an operation. For example a velocity list of ['5/P1D', '10/P28D'] constrains an operations to be performed no more than either 5 times per day or 10 times per 28 days.
maxFundingSourceVelocity - List of velocities specifying the maximum number of funding sources allowed to be created during a specified period for a user.
maxFundingSourceFailureVelocity - List of velocities specifying the maximum number of funding source creation failures allowed during a specific period for a user.
maxCardCreationVelocity - List of velocities specifying the maximum number of virtual cards allowed to be created during a specified period for a user.
maxTransactionVelocity - List of velocities specifying the maximum aggregate value of virtual card transactions (not including fees) allowed during a specified period for a user and specified per virtual card denomination currency. Amounts are specified in the currency minor unit (for example cents for USD). Only currencies supported in a given deployment are returned. For example:
[
{ currency: 'USD', velocity: ['25000/P1D'] },
{ currency: 'EUR', velocity: ['20000/P1D'] }
]
maxTransactionAmount - The maximum value of any single virtual cards transaction (not including fees) allowed. Amounts are specified in the currency minor unit (for example cents for USD). Specified per virtual card denomination currency. Only currencies supported in a given deployment are returned. For example:
[
{ currency: 'USD', amount: 25000 },
{ currency: 'EUR', amount: 20000 }
]
virtualCardCurrencies - A list of currencies in which virtual cards may be denominated. For example, ['USD', 'EUR']
fundingSourceSupportInfo - Various details about the supported funding sources. For card based funding sources, this includes card type and network.
Copy link
On this page
Get Configuration Data