CLI docs

Merchants (VMRS)Update Merchant Key

Merchants (VMRS)TAP specification

Update Merchant Key

Change a key's name, encryption key, algorithm, encryption type or expiry.

Markdownllms.txt
PUT/vmrs/v1/merchants/{merchantId}/keys/{keyId}

Related guide: Register a merchant.

Base URL: https://sandbox.api.visa.com. Authentication: not declared in the public VMRS OpenAPI; configure the selected VDP product/project method.

Parameters

merchantIdpath parameterrequired

string
Unique merchant identifier (UUID)

keyIdpath parameterrequired

string
Unique key identifier (UUID)

Request body

Required application/json body: KeyUpdate.

keyNamestring

Unique identifier for the key minimum characters: 1 · maximum characters: 255

algorithmstring

Key wrapping algorithm Values: RSA-OAEP, RSA-OAEP-256, RSA-OAEP-384, RSA-OAEP-512

encryptionKeystring

Base64-encoded asymmetric public key

encryptionTypestring

Content encryption algorithm Values: A256GCM, A128GCM, C20P, A256CBC_HS512, A128CBC_HS256, A256CCM, A128CCM

expirationDatestring · date-time

Key expiration date (must be in the future)

Responses

HTTPMeaningResponse schema
200Key updated successfullyKeyResponse
404Merchant or key not foundErrorResponse
422Validation ErrorValidationError

The auth configuration file supplies the method approved for your VMRS project. The public schema does not specify its headers, API-key query, certificates or transport mode.

Sources: Current TAP API reference / endpoint catalog, Current TAP API reference as Markdown.

Request template — project authentication in vmrs-auth.curl
base='https://sandbox.api.visa.com/vmrs/v1'
curl --config ./vmrs-auth.curl \
  --request PUT \
  "$base/merchants/YOUR_MERCHANT_ID/keys/YOUR_KEY_ID" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary @vmrs-request.json
Illustrative request
{
  "keyName": "merchant-encryption-renamed",
  "expirationDate": "2027-11-05T00:00:00Z"
}
HTTP 200 response. Example values, not a live capture
{
  "id": "a1b2c384-56c7-48d9-be0f-1e2d3c4b5a6f",
  "keyName": "merchant-encryption-renamed",
  "isActive": false,
  "algorithm": "RSA-OAEP",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-15T10:30:00.000Z",
  "merchantId": "7f4c82a1-305e-4f9c-8d2a-1b3e5f7c502a",
  "merchantName": "Acme Corp",
  "encryptionKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
  "encryptionType": "A256GCM",
  "expirationDate": "2027-11-05T00:00:00Z"
}

Updated 9 Nov 2026