Things to know
API Developer Guide
Understand the core resources, business rules, and implementation constraints that govern B2B Virtual Account Payment Method behavior before you begin integration.
Failure to account for these requirements is a common cause of integration and certification issues.
Resource hierarchy
Buyers, funding accounts, proxy pools, suppliers, virtual accounts, and payments form a dependency hierarchy.
Understanding the relationships between these resources and how data flows between them helps prevent common integration and configuration errors.
| Resource | Role | Dependency |
|---|---|---|
| Buyer | Parent entity | Completed Client Registration; all other resources depend on it |
| Funding Account | Payment source | Existing buyer; completed BIN tokenization or account mapping |
| Proxy Pool | Virtual account container | Existing buyer and funding account; population is asynchronous (about 15 minutes) |
| Supplier | Payment recipient | Existing buyer; Straight-Through Processing (STP) suppliers also require CyberSource registration |
| Virtual Account (VAN) | Virtual payment instrument | Issued from a proxy pool with spending controls at issuance; deletion cancels all associated payments |
| Payment | Transaction record | Buyer, funded proxy pool, and (for supplier flows) a supplier; cancellation only for unredeemed payments |
| Buyer Template | Configuration template | Optional; buyer-template association is permanent, templates can't be deleted, up to 20 per issuer |
Core business rules
Understand the business rules, resource dependencies, uniqueness requirements, and operational constraints that apply to every B2B Virtual Account Payment Method integration.
-
Complete buyer setup in sequence: Create the buyer, add the funding account, and then create the proxy pool. Process Payments and Request Virtual Account require all three resources.
-
Use a unique messageId for every request: Duplicate values are rejected with V002, M002, PP002, GP002, or 7000, depending on the endpoint. Generate a new universally unique identifier (UUID) for every request, including retries. Reusing a messageId does not make a retry idempotent.
-
Match companyId to the processor company ID: Set companyId to the processor company ID exactly as provided, including leading zeros. An invalid or unconfigured value returns an error during payment processing. Each buyerId maps to one processor company, and each companyId maps to one buyer.
-
Include an authorization rule in every Request Virtual Account request: Specify at least one Visa Payment Controls rule. Supported spend control types include Spend Velocity (SPV), Exact Match (VPAS), and Tolerance (TOLRNC).
Other rules can restrict channels, geography, time, merchants, and merchant categories but do not independently limit the transaction amount. For TSYS VAN buyers, the TSYS Virtual Payable Platform applies SPV and VPAS controls automatically, but the request still requires a rule.
-
Limit the requisition end date to 36 months: Set requisitionDetails.endDate to a date no later than 36 months after the original account request date. Extending an existing virtual account does not reset this period.
-
Apply credit-limit updates to future virtual accounts: Proxy pool credit-limit changes apply only to virtual accounts issued after the update. Existing virtual accounts retain their original limits. For nonintegrated processors, update the corresponding processor records to prevent authorization failures caused by mismatched limits.
-
Understand the effect of deleting a virtual account: Deleting a virtual account cancels all associated payments and permanently disables the secure payment link. This action cannot be reversed.
-
Cancel only uncollected payments: Collected payments cannot be canceled and return CP031. Account for this terminal state in the payment lifecycle.
-
Account for Eastern Time in TSYS processing: The TSYS Virtual Payable Platform processes requests in Eastern Time, regardless of the time zone included in Request Virtual Account or Process Payments requests. Account for this behavior when setting validity periods and rule dates for TSYS VAN buyers. End-date processing is the same for Visa Pseudo Accounts and TSYS Virtual Accounts.
-
Review linked buyers before synchronizing template updates: Setting syncBuyerProfiles to true when updating a Buyer Template applies the changes to every linked buyer. Review the linked buyers before enabling this setting.
-
Complete Visa Commercial Payment Controls onboarding for pseudo accounts: Visa Commercial Payment Controls manages spending controls for pseudo account transactions. The issuer must complete separate onboarding before issuing pseudo accounts.
-
Obtain stpId values from CyberSource: CyberSource provides the stpId required for STP payments through a manual process. The Visa Supplier Matching Service feed is inactive and does not provide stpId values.
-
Delete proxy pools only when eligible: A proxy pool cannot be deleted after accounts are loaded or while a request is in progress unless all active payments are canceled. Review pool settings carefully before creating the pool.
-
Use the correct Get Payment Controls version: For buyers subscribed to Visa Commercial Payment Controls, use POST /vpa/v2/accountManagement/getPaymentControls. Version 2 returns the mcgRuleAction field.
-
Use Mastercard only with TSYS VAN: Mastercard buyers are supported only for TSYS VAN accounts. Visa Pseudo Accounts and Processor PAN accounts do not support Mastercard buyers. No account type supports Mastercard STP.
-
Confirm Buyer Template settings before linking: A buyer cannot be removed from a Buyer Template after it is linked, and the template cannot be deleted. Confirm the template configuration and understand the effect of syncBuyerProfiles before creating the association. Setting syncBuyerProfiles to true applies template updates to every linked buyer.
Spending controls
Spending controls define how, where, and when a virtual account can be used. They help enforce issuer-defined payment policies and reduce fraud risk.
Every Request Virtual Account request requires at least one spending control rule. Requests that do not include a valid rule are rejected.
Spending rule types
| Rule type | What it does | Typical use case | Account types supported |
|---|---|---|---|
| Spend Velocity (SPV) | Limits cumulative spend during a defined period. | Control total invoice value or prevent overspending across multiple authorizations. | Pseudo Account, TSYS VAN, Processor PAN |
| Exact Match (VPAS) | Requires the authorization amount to match the approved amount exactly. | Accounts payable scenarios with a known payment amount. | Pseudo Account, TSYS VAN, Processor PAN |
| Tolerance (TOLRNC) | Allows a configurable variance from an approved amount. | Purchase order scenarios that require flexibility for taxes, freight, or minor adjustments. | Pseudo Account, TSYS VAN, Processor PAN |
All spending control types are supported across all account types.
Authorization restriction rules are a separate category of controls. Depending on the endpoint and platform, these rules can restrict transaction channels, geographies, merchants, merchant categories, and transaction timing.
For a complete list of rule codes and override fields, see the B2B Virtual Account Payment Method Codes Reference.
Spending controls by account type
| Account type | Set or update controls | Retrieve controls | Behavior to account for |
|---|---|---|---|
| Visa Pseudo Account | Request Virtual Account (POST /vpa/v1/requisitionService) | POST /vpa/v2/accountManagement/getPaymentControls | Visa Commercial Payment Controls manages spending controls; use v2 for the mcgRuleAction field required by subscribed buyers |
| TSYS VAN | Request Virtual Account (POST /vpa/v1/requisitionService) | POST /vpa/v1/accountManagement/getPaymentControls | TSYS Virtual Payable Platform auto-applies Spend Velocity and Exact Match at issuance; the request must still include at least one rule |
| Processor PAN | Request Virtual Account (POST /vpa/v1/requisitionService) | Confirm support with your Implementation Manager. | Applied during requisition; cannot be updated independently after issuance |
Do not use the legacy ManagePaymentControls endpoint for new integrations. Use Request Virtual Account to configure or update spending controls for supported account types. See Legacy Endpoints.
Visa Commercial Payment Controls
Visa Commercial Payment Controls manages spending controls for pseudo account implementations. It is a separate Visa product and requires separate onboarding.
Complete Visa Commercial Payment Controls onboarding before issuing pseudo accounts. Requests submitted before onboarding is complete return an error.
Visa Commercial Payment Controls evaluates spending controls during transaction authorization. Transactions that violate configured controls are declined before settlement. Examples include:
- An authorization amount that exceeds a Spend Velocity limit.
- An authorization amount that does not satisfy an Exact Match rule.
- A transaction that violates merchant, merchant category, geographic, channel, or timing restrictions.
Complete Visa Commercial Payment Controls onboarding before implementing pseudo account issuance. Confirm onboarding status with your Implementation Manager.
Visa Commercial Payment Controls is part of Visa Commercial Fraud Solutions. Some APIs and documentation continue to use the legacy abbreviation VPC.
Key API interactions
Configure spending controls
Use Request Virtual Account (POST /vpa/v1/requisitionService) to configure spending controls. This endpoint supports all account types and replaces the legacy ManagePaymentControls endpoint for new integrations.
Supported spending control types include Spend Velocity (SPV), Exact Match (VPAS), and Tolerance (TOLRNC). Use the same endpoint to configure authorization restriction rules.
Retrieve spending controls
Use the endpoint version that matches the buyer configuration:
- POST /vpa/v1/accountManagement/getPaymentControls for TSYS VAN buyers that are not subscribed to Visa Commercial Payment Controls.
- POST /vpa/v2/accountManagement/getPaymentControls for buyers subscribed to Visa Commercial Payment Controls. Returns the full control set including the mcgRuleAction field.
The mcgRuleAction field
The mcgRuleAction field is returned only by the v2 endpoint. It specifies how merchant category group (MCG) restrictions are evaluated when a transaction falls outside configured categories.
An MCG is a defined group of Merchant Category Code (MCC) values. The mcgRuleAction value determines how transactions associated with those categories are processed, such as whether transactions outside the configured categories are allowed or declined.
The v1 endpoint does not return the mcgRuleAction field. Use the v2 endpoint when retrieving payment controls for buyers subscribed to Visa Commercial Payment Controls.
Common mistakes
Using ManagePaymentControls for new integrations
Do not use ManagePaymentControls for new integrations. Use Request Virtual Account to configure spending controls. Existing implementations can continue to use the legacy endpoint until they migrate to the current API.
Using Get Payment Controls v1 for buyers subscribed to payment controls
Do not use POST /vpa/v1/accountManagement/getPaymentControls for buyers subscribed to Visa Commercial Payment Controls. The v1 response does not include the mcgRuleAction field and does not return the complete payment control configuration. Use POST /vpa/v2/accountManagement/getPaymentControls instead.
Omitting spending rules entirely
Every Request Virtual Account request requires at least one spending control rule. The platform does not apply a default control configuration when rules are omitted.
For TSYS VAN buyers, the request must include a spending control rule even though the TSYS Virtual Payable Platform applies equivalent controls during issuance. Requests that omit spending controls are rejected.
Integrated and nonintegrated processor differences
B2B Virtual Account Payment Method (VAPM) behaves differently depending on whether a buyer's processor is integrated with Visa. Understanding the processor type is critical when updating funding accounts because mismatched records can cause authorization failures.
An integrated processor connects directly to Visa. When you update a funding account, Visa automatically transmits supported changes to the processor.
A nonintegrated processor does not connect directly to Visa. After updating a funding account through the API, you must manually update the corresponding processor records to keep both systems synchronized.
Use Get Buyer to determine a buyer's processor integration type.
Behavioral differences
| Behavior | Integrated processor | Nonintegrated processor |
|---|---|---|
| Credit limit updates | Visa automatically sends updates to the processor. | Applies only on the Visa side; manually update processor records or risk mismatched-limit authorization failures |
| Expiration date updates | Visa automatically sends updates to the processor. | You must manually update the processor records. |
| Editable fields in Update Funding Account | Full set of supported fields is available. | Only a subset of fields is available. See the API Reference for processor-specific field support. |
| Processor record registration | Not required. Visa manages processor integration during onboarding. | Required; you create and maintain processor records (Visa does not auto-configure nonintegrated connections) |
Updates apply only to future VANs
Credit limit and expiration date updates are not retroactive, regardless of processor type. Changes apply only to VANs issued after the update is completed. Existing VANs retain the spending controls and account settings that were in effect when they were issued.
For nonintegrated processors, failing to update processor records after making API changes is a common cause of authorization failures. Synchronize processor records before issuing new VANs that rely on the updated funding account configuration.
Funding account updates affect only future VANs. Existing VANs are not modified.
Processor type does not affect proxy pools
Processor integration type does not affect proxy pool behavior. Proxy pool settings, including (minAvailableAccounts, reOrderCount, and pool type), behave the same for integrated and nonintegrated processors.
Only funding account update operations, such as credit limit and expiration date changes, differ based on processor integration type.
Legacy endpoints
Several B2B Virtual Account Payment Method endpoints are designated as legacy. New integrations use the current replacement endpoints.
Existing integrations using legacy endpoints continue to function until they migrate. Plan migration to the current replacements.
| Legacy endpoint | Current replacement | Legacy path | Notes |
|---|---|---|---|
| Manage Proxy | Create Proxy Pool (POST /vpa/v1/proxy/CreateProxyPool), Update Proxy Pool (POST /vpa/v1/proxy/UpdateProxyPool), Get Proxy Pool (POST /vpa/v1/proxy/GetProxyPool), Delete Proxy Pool (DELETE /vpa/v1/proxy/DeleteProxyPool) | POST /vpa/v1/proxy/ManageProxy | Legacy proxy pool lifecycle endpoint; use the individual proxy pool endpoints for new integrations (different request/response schemas, not drop-in replacements) |
| SUA Get Account Status | Get Account Status (POST /vpa/v1/accountManagement/GetAccountStatus) | POST /vpa/v1/proxy/GetAccountStatus | Legacy account status endpoint in the Proxy service. Use Get Account Status in Account Management for new integrations. |
| Virtual Card Requisition | Request Virtual Account (POST /vpa/v1/requisitionService) | POST /vpa/v1/accountManagement/VirtualCardRequisition | Scheduled for deprecation; do not use in new integrations (Request Virtual Account supports all account types) |
| Manage Payment Controls | Request Virtual Account (POST /vpa/v1/requisitionService) for setting controls; Get Payment Controls v1 or v2 and List Payment Control for retrieval | POST /vpa/v1/accountManagement/ManagePaymentControls | Legacy spending-control endpoint; use Request Virtual Account to set controls on new accounts (existing integrations may continue until migrated); for Visa Commercial Payment Controls subscribers, use Get Payment Controls v2 for the mcgRuleAction field (not returned in v1) |
Migration guidance
If your integration uses a legacy endpoint, plan a migration to the current replacement endpoint. Legacy endpoints remain available for existing integrations but do not receive new features. Confirm deprecation and retirement timelines with your Visa Implementation Manager.
When migrating from Manage Proxy, review the API reference for each replacement endpoint. The current proxy pool endpoints use different request and response schemas and are not drop-in replacements.
When migrating from Manage Payment Controls, note that Request Virtual Account is the replacement for setting spending controls. The Get Payment Controls endpoints and List Payment Control are retrieval endpoints only and cannot be used to create or update controls.
Guardrails and limitations
These limits, regional constraints, and account-type restrictions define the supported boundaries of VAPM across all environments.
Proxy pool population is asynchronous and typically completes within 15 minutes, although no service level commitment applies. Poll Get Proxy Pool until availableCards is greater than zero before using the pool.
A proxy pool can be deleted only before any accounts are loaded and while no requests against the pool are in progress. If active payments have been issued from the pool, deletion is blocked until all active payments are cancelled.
- Buyer templates: Maximum of 20 buyer templates per issuer. After a template is linked to a buyer, the association is permanent and cannot be deleted.
- Payment retrieval window: If no date range is specified, Get Payment Details returns up to 9 months of data. With an explicit date range, up to 27 months of data is available. The earliest supported start date is 27 months before the current date.
- Pagination: Get Payment Details returns up to 250 records per call. Use resultSetNo to retrieve additional pages. hasMoreElements returns Y when additional records are available and N when all results have been returned.
- Reconciliation fields: Up to 50 optional reconciliation fields can be included per payment.
- Proxy pool deletion: A proxy pool can be deleted only before accounts are loaded and while no requests are in progress. After accounts are loaded, deletion is blocked until all active payments associated with the pool are cancelled.
- Proxy pool population: Proxy pool population is asynchronous and typically completes within 15 minutes, although no service level commitment applies. Poll Get Proxy Pool until availableCards is greater than zero before using the pool.
- Rate limits: No per-second rate limits are published. Process Payments is the most resource-intensive operation because it performs account selection, spending-control application, and supplier notification. Consider concurrency management for high-volume processing.
- Batch operations: Use Bulk Requisition Service for batch virtual account requisitions. Use action code A to submit a batch and action code G to retrieve results. Maximum batch size is not documented; confirm with your Implementation Manager.
-
Multi-use and one-time-use pools: This setting determines whether an account number can be reissued after use. In a multi-use pool, account numbers return to the pool and can be reissued. In a one-time-use pool, account numbers are permanently consumed.
minAvailableAccounts and reOrderCount control replenishment behavior. Configure them with your Implementation Manager.
- Security code retrieval: Retrieving a security code is a separate operation from issuing a virtual account. Request Virtual Account returns the account number and expiration date. Get Security Code returns the security code using the account number and expiration date as inputs.
- VAN expiration: Virtual account expiration periods are configured during implementation and may vary by client.
-
Text field byte length: Text fields are subject to byte-length limits. Values that exceed these limits are rejected. Multibyte characters are not supported.
This is a global platform restriction that applies in all regions, although it is often associated with Asia Pacific because many languages in the region use multibyte characters.
Regional availability
All VAPM features are supported in all regions, with two exceptions: TSYS VAN and Processor PAN.
| Account type | Regional availability |
|---|---|
| Visa Pseudo Account | All regions |
| TSYS VAN | North America only |
| Processor PAN | United States only. No new issuers are being onboarded to Processor PAN. |
Adjustable-limit account deprecation may be a platform-wide change rather than a regional limitation. Confirm availability, scope, and transition timelines with your Implementation Manager.
Account type limitations
| Feature | Visa Pseudo Account | TSYS VAN | Processor PAN |
|---|---|---|---|
| Request Virtual Account | Supported | Supported | Supported |
| Virtual Card Requisition (legacy) | Not in use; slated for deprecation | Not in use; slated for deprecation | Not in use; slated for deprecation |
| Get Requisition Details | Supported | Not supported | Not supported |
| Mastercard buyers | Not supported | Supported | Not supported |
| STP (CyberSource) | Supported | Not supported | Not supported |
| Mastercard STP | Not supported | Not supported | Not supported |
| Get Account Status | Supported | Not supported | Supported |
| Bulk Requisition Service | Supported | Not supported | Supported |
| Manage Supplier Account | Supported | Not supported | Supported |
| List Payment Control | Supported | Not supported | Not supported |
| Get Funding Account Details | Supported | Supported | Supported |
| Spend Velocity, Exact Match, and Tolerance rules | Supported | Supported | Supported |