Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 2.83 KB

ClientKeyCompanyLevelApi.md

File metadata and controls

64 lines (46 loc) · 2.83 KB

ClientKeyCompanyLevelApi

All URIs are relative to https://management-test.adyen.com/v3

Method HTTP request Description
postCompaniesCompanyIdApiCredentialsApiCredentialIdGenerateClientKey POST /companies/{companyId}/apiCredentials/{apiCredentialId}/generateClientKey Generate new client key

postCompaniesCompanyIdApiCredentialsApiCredentialIdGenerateClientKey

GenerateClientKeyResponse postCompaniesCompanyIdApiCredentialsApiCredentialIdGenerateClientKey(companyId, apiCredentialId)

Generate new client key

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

Example

// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.management.*

val apiInstance = ClientKeyCompanyLevelApi()
val companyId : kotlin.String = companyId_example // kotlin.String | The unique identifier of the company account.
val apiCredentialId : kotlin.String = apiCredentialId_example // kotlin.String | Unique identifier of the API credential.
try {
    val result : GenerateClientKeyResponse = apiInstance.postCompaniesCompanyIdApiCredentialsApiCredentialIdGenerateClientKey(companyId, apiCredentialId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling ClientKeyCompanyLevelApi#postCompaniesCompanyIdApiCredentialsApiCredentialIdGenerateClientKey")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling ClientKeyCompanyLevelApi#postCompaniesCompanyIdApiCredentialsApiCredentialIdGenerateClientKey")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
companyId kotlin.String The unique identifier of the company account.
apiCredentialId kotlin.String Unique identifier of the API credential.

Return type

GenerateClientKeyResponse

Authorization

Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json