Logo
Adyen APIs API Documentation

Create a user

POST {{baseUrl}}/companies/:companyId/users

Creates the user for the companyId identified in the path. To make this request, your API credential must have the following role: * Management API—Users read and write

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "id": "S2-5C334C6770", "name": { "firstName": "John", "lastName": "Smith" }, "email": "john.smith@example.com", "timeZoneCode": "Europe/Amsterdam", "username": "johnsmith", "roles": ["Merchant standard role", "Merchant admin"], "active": true, "_links": { "self": { "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/users/S2-5C334C6770" } }, "associatedMerchantAccounts": ["YOUR_MERCHANT_ACCOUNT"] }



Curl
curl -X POST 'https://management-test.adyen.com/v3/companies/:companyId/users' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"name":{"firstName":"John","lastName":"Smith"},"username":"johnsmith","email":"john.smith@example.com","timeZoneCode":"Europe/Amsterdam","roles":["Merchant standard role","Merchant admin"],"associatedMerchantAccounts":[""]}'

ENDPOINTS