Skip to main content
Visa Business Data Solutions

Authentication methods

API Developer Guide

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

Visa Business Data Solutions uses two security layers. Two-Way SSL (mutual TLS) secures the connection at the Visa Developer Portal (VDP) gateway layer and applies to all endpoints.

Message Level Encryption (MLE) encrypts the message payload and is required for specific APIs (see Message Level Encryption). The OpenAPI specification declares no security scheme, so mTLS is configured through your VDP project and MLE is configured separately.

Obtain your credentials

To set up authentication for Visa Business Data Solutions:

  • Create a VDP project and generate an mTLS certificate pair through your VDP project settings. See the Visa Developer Quick Start Guide for setup instructions.
  • Request your clientId value from your Visa Implementation Manager during onboarding. On POST /vbs/dapi/v1/transactions/auth, VDP adds the clientId automatically.
  • Configure Message Level Encryption for the APIs that require it (see Message Level Encryption).

Message Level Encryption

MLE encrypts the message payload end to end, so it stays protected across intermediate network hops where TLS is terminated. Where MLE is required, configure it in addition to mTLS.

MLE enforcement varies by API:

MLE enforcement by API

API Endpoint MLE Enforcement
Authorization Data API (Pull) POST /vbs/dapi/v1/transactions/auth Mandatory
Transaction and Enhanced Data API POST /vbs/dapi/v1/transaction_enhanced Mandatory
Starter Data API cdsapi/commercial Optional, not enforced
Push Authorization Data API Push delivery Not applicable

Where MLE is mandatory, Visa rejects unencrypted payloads in all environments (sandbox, certification, and production).

How MLE works on VDP:

  • Encryption uses JSON Web Encryption (JWE) on top of TLS. Key encryption is RSA-OAEP-256 with a 2048-bit key. Payload encryption is AES-GCM (A128GCM).
  • You configure MLE per project on the VDP dashboard. You generate a Key-ID, upload a certificate signing request (CSR), and download both the Visa server encryption certificate and your client certificate.
  • You encrypt each request payload with the Visa public key. You decrypt each response with your private key.
  • You include the keyId header on every MLE call. The JWE header carries alg (RSA-OAEP-256), enc (A128GCM), kid (your Key-ID), and iat (current time in milliseconds, valid for 2 minutes).
  • Visa returns the encrypted response wrapped as { "encData": "<JWE token>" }.

For setup steps and code samples, see the Message Level Encryption reference in the Visa Developer Center.

Testing connectivity

Use POST /vbs/dapi/v1/transaction_enhanced with a narrow date range to confirm your mTLS credentials, your MLE configuration, and your subscription scope in a single call. An HTTP 200 response confirms all three, whether or not the transactions array contains records.

In sandbox, the endpoint returns example test data. Validate against production credentials before go-live.

Authentication across service paths

Visa Business Data Solutions spans two service path prefixes: cdsapi/commercial and /vbs/dapi. These paths may be served by different backends. All use standard VDP mTLS credentials at the gateway layer, and the MLE-mandatory paths additionally require Message Level Encryption. Confirm with your Visa Implementation Manager if you encounter 401 responses on paths other than the data pull endpoints.

Environment notes

Sandbox: Returns example test data. Authentication errors related to project mapping are unlikely in sandbox but common in production.