All URIs are relative to https://management-test.adyen.com/v3
Method | HTTP request | Description |
---|---|---|
getCompanies | GET /companies | Get a list of company accounts |
getCompaniesCompanyId | GET /companies/{companyId} | Get a company account |
getCompaniesCompanyIdMerchants | GET /companies/{companyId}/merchants | Get a list of merchant accounts |
ListCompanyResponse getCompanies(pageNumber, pageSize)
Get a list of company accounts
Returns the list of company accounts that your API credential has access to. The list is grouped into pages as defined by the query parameters. To make this request, your API credential must have the following roles: * Management API—Account read
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.management.*
val apiInstance = AccountCompanyLevelApi()
val pageNumber : kotlin.Int = 56 // kotlin.Int | The number of the page to fetch.
val pageSize : kotlin.Int = 56 // kotlin.Int | The number of items to have on a page, maximum 100. The default is 10 items on a page.
try {
val result : ListCompanyResponse = apiInstance.getCompanies(pageNumber, pageSize)
println(result)
} catch (e: ClientException) {
println("4xx response calling AccountCompanyLevelApi#getCompanies")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AccountCompanyLevelApi#getCompanies")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | kotlin.Int | The number of the page to fetch. | [optional] |
pageSize | kotlin.Int | The number of items to have on a page, maximum 100. The default is 10 items on a page. | [optional] |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json
Company getCompaniesCompanyId(companyId)
Get a company account
Returns the company account specified in the path. Your API credential must have access to the company account. To make this request, your API credential must have the following roles: * Management API—Account read
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.management.*
val apiInstance = AccountCompanyLevelApi()
val companyId : kotlin.String = companyId_example // kotlin.String | The unique identifier of the company account.
try {
val result : Company = apiInstance.getCompaniesCompanyId(companyId)
println(result)
} catch (e: ClientException) {
println("4xx response calling AccountCompanyLevelApi#getCompaniesCompanyId")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AccountCompanyLevelApi#getCompaniesCompanyId")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | kotlin.String | The unique identifier of the company account. |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json
ListMerchantResponse getCompaniesCompanyIdMerchants(companyId, pageNumber, pageSize)
Get a list of merchant accounts
Returns the list of merchant accounts under the company account specified in the path. The list only includes merchant accounts that your API credential has access to. The list is grouped into pages as defined by the query parameters. To make this request, your API credential must have the following roles: * Management API—Account read
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.management.*
val apiInstance = AccountCompanyLevelApi()
val companyId : kotlin.String = companyId_example // kotlin.String | The unique identifier of the company account.
val pageNumber : kotlin.Int = 56 // kotlin.Int | The number of the page to fetch.
val pageSize : kotlin.Int = 56 // kotlin.Int | The number of items to have on a page, maximum 100. The default is 10 items on a page.
try {
val result : ListMerchantResponse = apiInstance.getCompaniesCompanyIdMerchants(companyId, pageNumber, pageSize)
println(result)
} catch (e: ClientException) {
println("4xx response calling AccountCompanyLevelApi#getCompaniesCompanyIdMerchants")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AccountCompanyLevelApi#getCompaniesCompanyIdMerchants")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | kotlin.String | The unique identifier of the company account. | |
pageNumber | kotlin.Int | The number of the page to fetch. | [optional] |
pageSize | kotlin.Int | The number of items to have on a page, maximum 100. The default is 10 items on a page. | [optional] |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json