ManagementAPI keyA P I key merchant level

Generate new API key

POST
/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey

Returns a new API key for the API credential. You can use the new API key a few minutes after generating it. The old API key stops working 24 hours after generating a new one.

To make this request, your API credential must have the following roles:

  • Management API—API credentials read and write

Authorization

AuthorizationBasic <token>

In: header

Path Parameters

merchantId*string

The unique identifier of the merchant account.

apiCredentialId*string

Unique identifier of the API credential.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/merchants/TestMerchant/apiCredentials/CRED_001/generateApiKey"
{  "apiKey": "string"}