ManagementClient keyClient key merchant level

Generate new client key

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

Returns a new client key for the API credential identified in the path. You can use the new client key a few minutes after generating it. The old client 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/string/apiCredentials/string/generateClientKey"
{  "clientKey": "string"}