Name | Type | Description | Mandatory | Available from version |
---|
BrickIds | Guid[] | The BrickId (unique id) of the TRS country | | 2.11 |
CountryCodes | string[] | The country code of the TRS country according to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | | 2.11 |
TRSIdTypePrio1 | string | The identification with highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT | | 2.11 |
TRSIdTypePrio2 | string | The identification with second highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT | | 2.11 |
TRSIdTypePrio3 | string | The identification with lowest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT | | 2.11 |
...
Name | Type | Description | Available from version |
---|
BrickId | Guid | The BrickId (unique id) of the account type | 2.11 |
CountryCode | string | The country code of the TRS country according to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | 2.11 |
TRSIdTypePrio1 | string | The identification with highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT | 2.11 |
TRSIdTypePrio2 | string | The identification with second highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT | 2.11 |
TRSIdTypePrio3 | string | The identification with lowest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT | 2.11 |
...
TRS Countries
The following country codes are TRS countries:
AT, BE, BG, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HR, HU, IE, IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK
We also introduced the country code XX to represent all other countries.
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
title | C# - Get all TRS countries from a BFS instance |
---|
linenumbers | true |
---|
collapse | true |
---|
|
//Use the GetTRSCountries method to get all TRS-countries in the BFS instance and write
//the BrickId's and country codes in the console
var client = new BFSServiceReference.bfsapiSoapClient();
var credentials = new BFSServiceReference.Credentials()
{
UserName = bfsusername, //Username of administrative user in your instance of BFS
Password = bfspassword, //Password of the administrative user in your instance of BFS
};
var trsCountries = client.GetTRSCountries(new BFSServiceReference.GetTRSCountriesRequest()
{
Credentials = credentials,
identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
Fields = new BFSServiceReference.GetTRSCountriesFields()
{
BrickId = true,
CountryCode = true,
TRSIdTypePrio1 = true,
TRSIdTypePrio2 = true,
TRSIdTypePrio3 = true
},
});
foreach (var c in trsCountries.Result)
{
Console.WriteLine(c.BrickId + "," + c.CountryCode);
} |
Code examples
Blog Posts |
---|
sort | creation |
---|
content | titles |
---|
labels | getaccounttypes |
---|
|