/ vmrs/ v1/ merchants/ {merchantId}/ keysRelated 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
Request body
Required application/json body: KeyCreate.
algorithmstringrequiredKey wrapping algorithm Values: RSA-OAEP, RSA-OAEP-256, RSA-OAEP-384, RSA-OAEP-512
Responses
| HTTP | Meaning | Response schema |
|---|---|---|
201 | Key created successfully (deactivated by default) | KeyResponse |
404 | Merchant not found | ErrorResponse |
422 | Validation Error | ValidationError |
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.
curl --config ./vmrs-auth.curl \
--request POST \
'https://sandbox.api.visa.com/vmrs/v1/merchants/YOUR_MERCHANT_ID/keys' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-binary @vmrs-request.json{
"keyName": "primary-key",
"algorithm": "RSA-OAEP",
"encryptionKey": "BASE64_ENCODED_ASYMMETRIC_PUBLIC_KEY",
"encryptionType": "A256GCM",
"expirationDate": "2026-12-31T23:59:59.000Z"
}{
"id": "a1b2c384-56c7-48d9-be0f-1e2d3c4b5a6f",
"keyName": "primary-key",
"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": "2026-12-31T23:59:59.000Z"
}