API credentials - merchant level
Create an API credential
Changed onCreates an API credential for the company account identified in the path. In the request, you can specify the roles and allowed origins for the new API credential.
The response includes the:
- API key: used for API request authentication.
- Client key: public key used for client-side authentication.
- Username and password: used for basic authentication.
Make sure you store the API key securely in your system. You won't be able to retrieve it later.
If your API key is lost or compromised, you need to generate a new API key.
To make this request, your API credential must have the following roles:
- Management API—API credentials read and write
post/merchants/{merchantId}/apiCredentials
Request
- Base URLhttps://management-test.adyen.com/v3
- URLhttps://management-test.adyen.com/v3/merchants/{merchantId}/apiCredentials
- Auth
- HTTP basic
- or API key in header X-API-Key
Path parameters
merchantIdstring required
The unique identifier of the merchant account.
Request body
Response
OK - the request has succeeded.
Example response
{
"allowedOrigins": [
{
"domain": "https://adyen.com"
}
]
}Changes
- info
added the optional property
to the response with the status
- info