Visa APIv1

Authentication

API keys, environments, rotation, and what to do if a key leaks.

Send your API key in the X-API-Key header on every request. Plusvisa issues keys to each partner: ask your Plusvisa contact for one.

curl "$PLUSVISA_API_URL/api/v1/countries" -H "X-API-Key: $PLUSVISA_API_KEY"

Sandbox and production keys

EnvironmentHostKeys start with
Sandboxhttps://sandbox-sdk.plusvisa.compvsdk_test_
Productionhttps://sdk.plusvisa.compvsdk_live_

A key only works in its own environment. A sandbox key sent to production, or the reverse, is refused with 401 invalid_api_key before anything else happens.

Rotating a key

Ask us for an additional key and deploy it. The old key keeps working until you ask us to revoke it, so rotation needs no downtime.

  1. Ask your contact for an additional key.
  2. Deploy it everywhere your servers call the Visa API.
  3. Ask us to revoke the old key.

If a key leaks

Contact us straight away and we will revoke it. A revoked key stops working at once with 401 invalid_api_key, and we issue a replacement.

Authentication errors

StatuscodeMeaning
401missing_api_keyNo X-API-Key header was sent.
401invalid_api_keyThe key is unknown or revoked, belongs to the other environment, or the account is disabled.