On This Page
Generating a Secret Key for an Existing Merchant ID
Use the information in this section to generate a secret key for an existing merchant ID
(MID) in the
Business Center
or by using a REST API request. The secret key and
MID are required values that you must enter in the mposUi
instance that
you create. For more information, see Creating an mposUi Instance.Generate a Secret Key for an Existing Merchant ID in the Business Center
Business Center
You can generate an secret key for an existing merchant ID (MID) in the
Business Center
. Enter these values in the mposUi
instance that
you create. For more information, see Creating an mposUi Instance. Follow these steps to
generate a secret key for an existing MID in the
Business Center
:- In theBusiness Center, go to the left navigation panel and choosePayment Configuration>Key Management. The Key Management page appears.
- From the Merchant drop-down list, choose the merchant ID for which you want to generate a secret key.
- ClickGenerate Key.
- In the Recommended Key Types list, scroll down and chooseAcceptance Devices Secret Key.
- ClickGenerate Key. The Key Generation page appears.
- ClickGenerate Key. Your MID and secret key appear on the page.
- Click theCopyorDownloadicon to obtain the MID and secret key.
ADDITIONAL INFORMATION
If you choose to copy the secret key information instead of downloading it, be sure to save it locally. After you leave theBusiness CenterKey Generation page, you will not be able to retrieve the same secret key again. To obtain a new key, you must restart the key generation process.
Generate a Secret Key for an Existing Merchant ID Using a REST API Request
You can use a REST API request to generate a secret key for an existing merchant ID
(MID). Enter these values in the
mposUi
instance you create. You must authenticate each request that you send to a
Cybersource
API. In
order to authenticate an API request, you can use a REST shared secret key or a
REST certificate. For more information about authentication requirements, see .Endpoints:
Test:
POST
https://apitest.cybersource.com
/kms/v2/keys-sym-posProduction:
POST
https://api.cybersource.com
/kms/v2/keys-sym-posRequired Fields for Generating a Secret Key for an Existing Merchant ID Using a REST
API Request
- keyInformation.organizationId
REST Example: Generating a Secret Key for an Existing Merchant ID Using a REST API
Request
Request
{ "keyInformation": [ { "organizationId": "transacting_MID" } ] }
Response to a Successful Request
{ "submitTimeUtc": "2023-08-07T13:07:17Z", "status": "ACCEPTED", "keyInformation": [ { "organizationId": "transacting_MID", "externalOrganizationId": "MerchantId", "key": "SecretKey", "keyId": "af922a42-6d2c-41fd-92f7-09d908647de4", "status": "ACTIVE", "expirationDate": "2033-08-07T13:07:17Z" } ] }