Skip to main content
B2B Virtual Account Payment Method

How to use

API Developer Guide

Available for use by:
Issuer banks Acquirer banks Merchants Issuer banks for small businesses

This section describes the B2B Virtual Account Payment Method workflow, from buyer onboarding through payment processing and reconciliation.

Workflow overview

B2B Virtual Account Payment Method enables corporate buyers to pay suppliers using virtual account numbers issued on demand.

The goal is to issue the right virtual account to the right supplier for the right amount at the right time.

Six workflows support end-to-end AP automation:

  1. Onboard a buyer: Create a company record, add a funding account, and create a proxy pool.
  2. Onboard suppliers: Create supplier records, configure lodged or single-use accounts, and enable Straight-Through Processing (STP), if required.
  3. Pay suppliers: Process Payments selects a VAN from the proxy pool, applies Visa Commercial Payment Controls spending controls, and sends a supplier notification or initiates a CyberSource STP transaction.
  4. Requisition on demand: A buyer system requests a VAN with spending controls and a validity period for a specific transaction.
  5. Reconcile: Retrieve payment and settlement data. Get Payment Details returns up to 9 months of data when no date range is specified and up to 27 months of data when an explicit date range is provided.
  6. Manage lifecycle: Resend or cancel payments, disable suppliers, and delete VANs.

Visa Commercial Payment Controls is the spending-control product used for pseudo-account flows and is part of Visa Commercial Fraud Solutions. Some API fields and documentation may still use the legacy abbreviation VPC.

URL namespaces

B2B Virtual Account Payment Method uses two URL namespaces:

  • Core endpoints (/vpa/v1 and /vpa/v2): support buyer onboarding, funding account management, proxy pool management, supplier management, and payment operations.
  • Account-management endpoints support account-related operations such as virtual account administration and payment controls.

The namespaces are not interchangeable. Use each endpoint at its documented path.

Account types

B2B Virtual Account Payment Method supports three account types. The account type you use depends on your processor relationship and whether you require single-use or multi-use accounts.

  • Visa pseudo accounts: Tokenized, auto-replenishing accounts managed through Visa tokenization services. Spending controls are managed through Visa Commercial Payment Controls. Payment Controls onboarding is required before use.
  • TSYS virtual account numbers (VANs): TSYS preloads account numbers into proxy pools and manages them through the TSYS Virtual Payable Platform (VPP). Refer to your TSYS VAN implementation guide for VPP-specific requirements.
  • Processor PAN accounts: Account numbers are sourced directly from the processor rather than from Visa tokenization services. Available only in the United States. New issuer onboarding is not available for Processor PAN accounts.

Request Virtual Account supports all three account types. Some Account Management and Supplier Management endpoints support only specific account types. See Guardrails and Limitations for the complete account-type capability matrix.

Standard workflow steps

Follow these steps to process your first B2B payment, from buyer onboarding through reconciliation.

The APIs in this workflow use four completion models:

Call How the result arrives What to check
POST /vpa/v1/proxy/CreateProxyPool Population is asynchronous and typically completes within 15 minutes. No service level commitment. Poll POST /vpa/v1/proxy/GetProxyPool and check availableCards. A first payment does not have to wait for the pool to fill.
POST /vpa/v1/payment/ProcessPayments Synchronous. HTTP 201 Created with statusCode PP001 on success. No second status to poll; retain messageId for cancel, resend, and payment detail URL requests
POST /vpa/v1/bulkRequisitionService Submit a batch with action: "A". Retrieve the status and results of a previously submitted batch with action: "G".
POST /vpa/v1/payment/GetPaymentDetails Synchronous, paged at 250 records per call. Continue while hasMoreElements returns Y. Stop at N. Increment resultSetNo.

Before you start

Complete these product-level setup steps before beginning any buyer onboarding workflows.

Buyer onboarding

Step 1: Create a Buyer

Create a company record for the corporate buyer.

Endpoint: POST /vpa/v1/buyerManagement/buyer/create

  • Set companyId to the processor Company ID, including leading zeros. A companyId mismatch does not cause a failure during buyer creation because Create Buyer creates a new company record.

    Mismatches typically surface later during payment processing. See Avoiding Product Configuration Errors.

  • companyId and buyerId have a one-to-one relationship. Each buyer maps to a single processor company, and each processor company maps to a single buyer.
  • Optional: Link a Buyer Template to standardize buyer configuration. After a template is linked to a buyer, the association is permanent and cannot be removed. A maximum of 20 templates is supported per issuer.

Step 2: Add a Funding Account

Add the payment source for the buyer.

Endpoint: POST /vpa/v1/accountManagement/fundingAccount/create

  • Complete BIN tokenization or BIN mapping before calling this endpoint.
  • Visa pseudo accounts only: The processor must complete tokenization certification with Visa before the funding account can be used.
  • Nonintegrated processors: Any future credit limit or expiration date updates must also be applied to the processor records. Mismatches between Visa and processor records can result in authorization failures. Use Get Buyer to determine a buyer's processor integration type.

Step 3: Create a Proxy Pool

Create a pool of virtual accounts for the buyer.

Endpoint: POST /vpa/v1/proxy/CreateProxyPool

  • Proxy pool population is asynchronous and typically completes within 15 minutes, although no service level commitment applies.
  • Poll POST /vpa/v1/proxy/GetProxyPool and check availableCards to confirm the pool is ready.
  • A proxy pool can be deleted only before accounts are loaded and while no requests against the pool are in progress. After accounts are loaded, deletion is blocked until all active payments associated with the pool are canceled.
  • Visa pseudo accounts only: The issuer must complete Visa Commercial Payment Controls onboarding before pseudo-account pools can be used.

You do not need to wait for the proxy pool to be populated before processing the first payment. The platform can fulfill requests using accounts generated on demand.

Polling until availableCards is greater than zero is recommended when validating pool health before production use. Work with your Implementation Manager to determine appropriate pool sizing and replenishment settings.

Supplier onboarding

Step 4: Create a Supplier

Create a supplier record. Suppliers can be created at any time after the buyer has been created.

Endpoint: POST /vpa/v1/supplier/CreateSupplier

  • Configure the supplier for lodged (recurring) or single-use payments.
  • Straight-Through Processing (STP) only: Register the supplier with CyberSource and obtain a valid stpId before processing any STP payments. Obtaining the stpId is currently a manual process.

Processing payments

Step 5: Process a Payment

Process Payments selects a VAN from the proxy pool, applies spending controls, and sends a supplier notification or processes a CyberSource STP transaction.

Endpoint: POST /vpa/v1/payment/ProcessPayments

  • Visa pseudo account buyers: Spending controls are managed through Visa Commercial Payment Controls.
  • Spend control is managed internally. If Exact Match (VPAS) should not be applied, set the suaExactMatchRule field to N during supplier creation or during payment processing.
  • The response returns messageId, statusCode, statusDesc, accountNumber, and expirationDate. A successful call returns HTTP 201 Created with statusCode PP001.
  • Processing is synchronous. No additional status check is required.
  • Retain the messageId. It is required for payment cancellation, payment resend, and payment detail URL requests.

On-demand alternative: Request Virtual Account

Use Request Virtual Account when a buyer system requires a VAN with spending controls and a validity period for a specific transaction instead of obtaining a VAN from a proxy pool. This endpoint is also used to set spending controls.

Endpoint: POST /vpa/v1/requisitionService with action: "A" (add), "U" (update), or "D" (delete/expire)

  • Supported for all three account types: Visa pseudo accounts, TSYS VANs, and Processor PAN accounts.

On-demand alternative: Bulk Requisition

Use Bulk Requisition Service to submit or retrieve batches of virtual account requests.

Endpoint: POST /vpa/v1/bulkRequisitionService

Use action: "A" to submit a batch; use action: "G" to retrieve the status and results of a previously submitted batch.

Optional: Retrieve Security Code

Security code (CVV2) retrieval is a separate call from account issuance. Call this endpoint after a VAN is issued if the supplier requires the card verification value.

Endpoint: POST /vpa/v1/accountManagement/GetSecurityCode

The value is returned in the securityCode field.

Reconciliation

Step 6: Retrieve Payment Details

Retrieve payment and settlement data for reconciliation.

Endpoint: POST /vpa/v1/payment/GetPaymentDetails

  • Returns up to 250 records per request. When no date range is specified, the endpoint returns up to 9 months of data. When an explicit date range is specified, up to 27 months of data is available.

  • Use resultSetNo to paginate results. The hasMoreElements field returns Y when additional records are available and N when all records have been returned.

Lifecycle management

Use these operations to manage a payment or virtual account after it has been created.

Action Endpoint Notes
Resend payment notification POST /vpa/v1/payment/ResendPayment Sends a payment notification outside the normal delivery flow. References the payment using originalMessageId.
Cancel payment POST /vpa/v1/payment/CancelPayment Cancels an uncollected payment (cannot be undone); references the payment using originalMessageId
Delete a VAN POST /vpa/v1/requisitionService with action: "D" Expires the VAN by setting the validity end date to the current date, cancels all associated payments, and permanently disables the secure payment link. This operation cannot be undone.
Get Payment Detail URL POST /vpa/v1/payment/GetPaymentDetailURL Returns the secure payment detail URL for a specific payment. References the payment using originalMessageId.
Disable a supplier POST /vpa/v1/supplier/DisableSupplier Sets the supplier status to inactive.

Deleting a VAN cannot be undone. The operation cancels all associated payments and permanently disables the payment detail URL. Confirm that no active payments are associated with the VAN before deleting it.

Reconciliation and migration

Retrieve payment and settlement data for reconciliation and migrate existing reconciliation processes to B2B Virtual Account Payment Method.

Before you begin

Before building a reconciliation integration, confirm these items with your Implementation Manager:

  • Buyer setup is complete and at least one test payment has been processed successfully.
  • Any reconciliation fields required by your accounts payable (AP) system have been configured during buyer setup. These fields cannot be added to previously processed payments.
  • Your system's date handling is aligned with the API date range parameters to avoid missing records at retrieval-window boundaries.
  • Your data retention requirements are understood. The API provides up to 27 months of history when an explicit date range is specified. Persist records locally if longer retention is required.

Retrieve Payment Data with Get Payment Details

Payment data can be retrieved through API polling or, optionally, through Visa Business Data Solutions (VBDS) subscriptions. Most integrations use Get Payment Details as the primary retrieval method.

For near-real-time data delivery, issuers can subscribe to VBDS. Contact your Implementation Manager for VBDS enablement.

Get Payment Details is the primary endpoint for retrieving payment and settlement records.

Endpoint: POST /vpa/v1/payment/GetPaymentDetails

Key request fields:

  • buyerId: Identifies the buyer whose payment records are returned.
  • clientId: Your registered client identifier.
  • messageId: A unique request identifier. Use this value to correlate API requests and responses with your internal records.
  • fromDate / toDate: Define the retrieval date range in MMDDYYYY format. If both fields are omitted, the API returns up to 9 months of data. The earliest supported start date is 27 months before the current date.
  • resultSetNo: Specifies the result set to retrieve when a query spans multiple pages.

Pagination

GetPaymentResponse returns up to 250 records per request. If additional records are available, increment resultSetNo to retrieve the next result set. Continue retrieving result sets while hasMoreElements returns Y and stop when it returns N.

The response is returned in the GetPaymentResponse wrapper. The payments array contains the payment records, and totalRecordCount indicates the total number of records that match the query.

// Pseudocode: paginated GetPaymentDetails retrieval loop
resultSetNo = 1
hasMore = true

while hasMore:
    request = {
        "buyerId":     "{buyerId}",
        "clientId":    "{clientId}",
        "messageId":   generateUniqueId(),
        "fromDate":    "{fromDate}",   // MMDDYYYY; omit fromDate/toDate for last 9 months
        "toDate":      "{toDate}",     // MMDDYYYY
        "resultSetNo": resultSetNo
    }

    response = POST /vpa/v1/payment/GetPaymentDetails (request)

    for each record in response.GetPaymentResponse.payments:
        persistLocally(record)        // write to local store before discarding

    if response.GetPaymentResponse.hasMoreElements == "N":
        hasMore = false               // last set reached
    else:
        resultSetNo = resultSetNo + 1
Copied!

Retrieval window and local persistence

When no date range is sent, the API returns the last 9 months of data. When an explicit date range is sent, up to 27 months is available, with the earliest start date being today minus 27 months. Persist results locally if your AP or audit systems require history beyond that window.

The 50 optional reconciliation fields

Each payment record can include up to 50 optional reconciliation fields.

When mapping reconciliation fields to your AP system, treat each field as a named key-value pair. The field names returned in the API response match the names configured during setup. Do not assume a fixed field order across buyers or issuers.

Payment lifecycle states for reconciliation

Use the payment status field in the Get Payment Details response to determine whether a record is final and ready to post, still in flight, or requires investigation.

Status Description Reconciliation action
Processed A virtual account number (VAN) has been issued and the supplier notification has been sent, but settlement has not yet occurred. In flight. Do not post to AP. Retain the record and retrieve it again during the next reconciliation cycle.
Collected The supplier has charged the VAN and the transaction has settled. This is the terminal success state. Terminal success. Post the transaction to AP and mark it as reconciled. A collected payment cannot be canceled.
Canceled The payment was canceled before collection, or the associated VAN was deleted. This is a terminal failure state. Terminal failure. Do not post to AP. Record the cancellation and follow any applicable reprocessing procedures.
Failed The payment could not be processed, for example because no accounts were available in the proxy pool or the transaction was declined. This is a terminal failure state. Terminal failure. Do not post to AP. Investigate the associated error code before retrying.

Using Get Payment Detail URL

Get Payment Detail URL returns the secure payment detail URL for a specific payment without retrieving the full payment record. Use this endpoint when a supplier or AP analyst needs the payment detail URL and the full Get Payment Details response is not required.

  • Endpoint: POST /vpa/v1/payment/GetPaymentDetailURL
  • Required input: the originalMessageId of the payment
  • Returns: The secure payment detail URL for the specified payment

If the VAN attached to the payment has been deleted, the secure payment link is permanently disabled. Get Payment Detail URL will not return a usable link for payments whose VAN has been deleted.

Migrating from legacy AP systems

When replacing a legacy AP or virtual card file-delivery system with the B2B Virtual Account Payment Method API, follow these steps to minimize reconciliation gaps during the transition.

Step 1: Run systems in parallel

Before cutover, run your existing reconciliation process and the API in parallel for at least 10 business days. Compare record counts and payment amounts daily, and resolve any discrepancies before retiring the legacy process. This validation period helps identify timing differences, delayed settlements, and other reconciliation exceptions.

Step 2: Map legacy fields to API fields

Map existing fields to their API equivalents before cutover. Common mappings include:

Legacy field API field
Transaction reference number messageId (primary reconciliation key in the API)
Card number / virtual card number accountNumber
Settlement amount / payment amount paymentAmount
Value date / settlement date payment date field in the GetPaymentDetails response
Supplier ID / vendor ID supplierId
Cost center, PO number, or other reference data optional reconciliation fields (configured at buyer setup)

Fields without a direct API equivalent may require derivation from other response fields or enrichment from your internal systems. Document any transformation logic before cutover.

Step 3: Confirm history data coverage

Review the oldest open payable in your AP system. Get Payment Details supports up to 27 months of history when an explicit date range is specified. If open items exist outside that window, ensure they are retained locally before switching to API-only retrieval. Contact your Implementation Manager if additional historical data is required.

Step 4: Retire legacy file delivery

If your reconciliation process uses scheduled file delivery, such as flat-file or SFTP exports, coordinate the retirement date with your Implementation Manager. File delivery and API retrieval can operate in parallel during the transition period. Do not retire file delivery until the API-based process has been validated in production.

Avoiding product configuration errors

Avoid common configuration errors that can cause integration failures.

Understanding these issues before implementation helps reduce troubleshooting and debugging effort.

Building new integrations on legacy endpoints

Do not build new integrations on legacy endpoints. Use the current replacement endpoints shown in this table.

Endpoint Status Use instead
POST /vpa/v1/accountManagement/VirtualCardRequisition No longer in use and slated for deprecation Request Virtual Account (POST /vpa/v1/requisitionService)
POST /vpa/v1/accountManagement/ManagePaymentControls Legacy. Not recommended for new integrations. Remains available only for existing integrations. Request Virtual Account to create or update spending controls
POST /vpa/v1/accountManagement/getPaymentControls (v1) Returns an incomplete response for buyers subscribed to Visa Commercial Payment Controls because it does not return the mcgRuleAction field. POST /vpa/v2/accountManagement/getPaymentControls (v2) for subscribed buyers

Before designing payment workflows, confirm your account type (pseudo account, TSYS VAN, or Processor PAN) and review the capability matrix in Guardrails and Limitations. Some features are available only for specific account types. For example, Get Requisition Details supports pseudo accounts only.

Assuming a request time zone applies to TSYS

TSYS Virtual Payable Platform operates in Eastern Time, regardless of the time zone specified in a Request Virtual Account or Process Payments request. When configuring validity periods or spending-control rule dates for TSYS VAN buyers, account for Eastern Time processing.

This behavior is not documented in the API schema or field descriptions. It is a platform characteristic of the TSYS Virtual Payable Platform.

End-date handling is the same for Visa Pseudo Accounts and TSYS Virtual Accounts.

Treating credit limit updates as retroactive

Updates to credit limits and expiration settings apply only to virtual accounts issued after the change. Existing virtual accounts retain the controls that were in effect when they were issued.

For nonintegrated processors, you must also update the processor's records. Differences between Visa and processor settings can result in authorization failures.

Update proxy pool settings before issuing new virtual accounts, and confirm that your processor has applied the same changes.

Omitting spending rules on Request Virtual Account

Every Request Virtual Account call must include at least one spending rule. Any Visa Commercial Payment Controls (VPC) rule code satisfies this requirement.

Spending controls fall into two categories:

  • Amount-based controls:

    • Spend Velocity (SPV)
    • Exact Match (VPAS)
    • Tolerance (TOLRNC)

    These controls limit or validate payment amounts and are supported for all account types.

  • Usage-based controls:

    • Channel restrictions
    • Geographic restrictions
    • Time-based restrictions
    • Merchant restrictions
    • Merchant category restrictions

    These controls restrict where, when, or how an account can be used but do not limit the transaction amount by themselves.

For VAN-enabled buyers, the TSYS Virtual Payable Platform automatically applies Spend Velocity and Exact Match controls. However, the spending-rule field is still required in the request.

Always include at least one spending rule when calling Request Virtual Account.

Deleting a funding account, proxy pool or VAN with active payments

Deleting a funding account or proxy pool while active payments exist can disrupt payment processing.

Deleting a virtual account (VAN) is permanent and cannot be reversed. When a VAN is deleted, all associated payments are canceled and the secure payment link is permanently disabled.

Before deleting a funding account, proxy pool, or VAN, verify that no active payments are associated with the resource.

Canceling collected payments

You can cancel a payment only before it has been collected. After collection, the payment can no longer be canceled, and the API returns error code CP031.

Design your payment lifecycle workflows to account for this constraint. Before submitting a cancel request, verify the current payment status.

Check payment status before attempting to cancel a payment.

Buyer or company setup errors at payment time

Some buyer configuration issues are not detected during buyer onboarding and surface only when a payment request is submitted. These error codes identify distinct setup problems:

Error code Description
PP004 Invalid Buyer. The buyer does not exist in the system.
PP010 Buyer does not match with the issuer. The buyer exists but is not associated with the calling issuer.
PP025 Bank or buyer not subscribed for the service. The buyer is valid, but the required web service is not enabled.

Verify that the companyId exactly matches the processor company ID, including any leading zeros. The companyId and buyerId have a one-to-one relationship. A mismatch indicates that the wrong company is being referenced, not the wrong buyer.

Validate buyer, issuer, subscription, and company configuration before processing payments.

Using syncBuyerProfiles on template updates

Setting syncBuyerProfiles=true when updating a buyer template applies the change to every buyer linked to that template. This is a bulk operation and cannot be limited to a subset of linked buyers.

Template associations are permanent and cannot be removed. As a result, any synchronized update affects all buyers linked to the template.

Before setting syncBuyerProfiles=true, review the buyers associated with the buyer template and confirm that a bulk update is intended.

Use syncBuyerProfiles=true only when you want the template changes applied to all linked buyers.

Mixing URL namespaces

The /vpa/v1 and /vpa/v2 URL namespaces are not interchangeable. Calling an endpoint under the wrong namespace returns an HTTP 404 response.

Use the namespace specified for each endpoint. Core buyer, supplier, funding account, proxy pool, and payment operations are available under the /vpa/v1 and /vpa/v2 namespaces.

Verify that each request uses the correct URL namespace for the target endpoint.

Using v1 of Get Payment Controls for subscribed buyers

For buyers subscribed to Visa Commercial Payment Controls, do not use POST /vpa/v1/accountManagement/getPaymentControls. The v1 endpoint returns an incomplete response because it does not include the mcgRuleAction field.

Use POST /vpa/v2/accountManagement/getPaymentControls for subscribed buyers. The mcgRuleAction field is available only for buyers subscribed to Visa Commercial Payment Controls and is ignored for buyers using TSYS VANs.

Before retrieving payment controls, determine whether the buyer is subscribed to Visa Commercial Payment Controls and select the appropriate endpoint.

Use the v2 Get Payment Controls endpoint for buyers subscribed to Visa Commercial Payment Controls.

Assuming a payment must wait for pool population

Proxy pool population is asynchronous and typically completes within 15 minutes. However, no service level commitment is provided for completion time.

A payment does not need to wait for the proxy pool to finish populating. The platform can issue an account on demand and process the payment immediately, even when the pool has not yet been populated.

If you want to verify proxy pool readiness before moving to production, poll POST /vpa/v1/proxy/GetProxyPool and confirm that availableCards is greater than zero.

Do not assume proxy pool population must complete before processing the first payment.

Using a non-unique messageId

Every API request must include a unique messageId. The platform enforces message ID uniqueness and rejects requests that reuse a previously submitted value.

If a duplicate messageId is submitted, the request is rejected and not reprocessed. The API returns an endpoint-specific duplicate-ID error, such as:

  • PP002 for Process Payments
  • CP002 for Cancel Payment

Resend Payment does not return a dedicated duplicate-messageId error code. This is a known limitation. Do not design retry logic that depends on a distinct duplicate-messageId response for Resend Payment.

Generate a new unique messageId for every API request, including retries and resubmissions.

Always use a new messageId for each API call.