Subsidiary
A regional or subsidiary institution of a provider.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/capabilities/providers/{id}/subsidiaries |
list |
The list of the provider's subsidiaries has been retrieved successfully |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
subsidiarys, err := client.Subsidiary(nil).List(map[string]any{"provider_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(subsidiarys)
Lua
Construct client as shown in the Lua setup, then call the operations:
local subsidiarys, err = client:Subsidiary():list({ provider_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$subsidiarys = $client->Subsidiary()->list(["provider_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
subsidiarys = client.Subsidiary().list({"provider_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
subsidiarys = client.Subsidiary.list({ "provider_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const subsidiarys = await client.Subsidiary().list({ provider_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
bic |
string |
Yes | BIC code of the provider |
countryCode |
string |
Yes | Country code of the provider. |
hasSubsidiaries |
boolean |
Yes | Whether the provider has subsidiaries. |
iconUrl |
string |
Yes | URL of the provider's icon. |
id |
string |
Yes | Unique identifier for the provider. |
logoUrl |
string |
Yes | URL of the provider's logo. |
name |
string |
Yes | Name of the provider. |
paymentSchemes |
array |
Yes | Array of payment schemes that we support for this provider. |
requiredPaymentFields |
array |
Yes | Array of required payment fields for this provider. |
list
GET /api/v1/capabilities/providers/{id}/subsidiaries
Operation ID: ProvidersController_getSubsidiaries_v1.
Authentication: credential (bearer).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes | |
filters |
query |
object |
No | Filters narrowing down the returned providers, passed as nested query parameters, for example ?filters[countryCode]=NL |
cursor |
query |
object |
No | Opaque cursor for pagination, passed as a nested query parameter, for example ?cursor[value]=... Use the meta.cursor.next.value from a previous response; omit to fetch the first page. |
Responses
200: The list of the provider's subsidiaries has been retrieved successfully
application/json
| Property | Type | Required | Description |
|---|---|---|---|
items |
array of object |
Yes | The page of the provider's subsidiaries. |
items[].bic |
string |
Yes | BIC code of the provider |
items[].countryCode |
string |
Yes | Country code of the provider. Providers that operate in multiple countries are treated as separate entities in our system, each with their own ID. For instance, Swedbank Lithuania and Swedbank Estonia are considered two different providers. |
items[].hasSubsidiaries |
boolean |
Yes | Whether the provider has subsidiaries. Subsidiaries can be retrieved with GET /capabilities/providers/:providerId/subsidiaries. |
items[].iconUrl |
string |
Yes | URL of the provider's icon. |
items[].id |
string |
Yes | Unique identifier for the provider. This value should be used in the payment object as providerId. |
items[].logoUrl |
string |
Yes | URL of the provider's logo. |
items[].name |
string |
Yes | Name of the provider. |
items[].paymentSchemes |
array of enum: SEPA, DOMESTIC |
Yes | Array of payment schemes that we support for this provider. |
items[].requiredPaymentFields |
array of enum: SENDER_ACCOUNT, SENDER_PROVIDER_CREDENTIALS_ID, SENDER_PROVIDER_CREDENTIALS_PASSWORD |
Yes | Array of required payment fields for this provider. These fields can be included in the payment object to skip PSU data collection step |
meta |
object |
Yes | Metadata needed to fetch subsequent pages. |
400: The request is not formatted correctly
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes | Error message |
statusCode |
number |
Yes | HTTP status code |
title |
string |
Yes | Name of the error |
401: Your access token was either not passed with the request, or it is invalid (for example expired or malformed). Make sure to pass the token in the Authorization header, and obtain a new one if it has expired
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes | Error message |
statusCode |
number |
Yes | HTTP status code |
title |
string |
Yes | Name of the error |
Example response:
{
"message": "Unauthorized",
"statusCode": 401,
"title": "Unauthorized"
}
403: You do not have the necessary permissions to perform this action
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes | Error message |
statusCode |
number |
Yes | HTTP status code |
title |
string |
Yes | Name of the error |
Example response:
{
"message": "Access denied",
"statusCode": 403,
"title": "Forbidden"
}