GetTRSCountries

Filter inputs

NameTypeDescriptionMandatoryAvailable from version
BrickIdsGuid[] The BrickId (unique id) of the TRS country  2.11
CountryCodesstring[] The country code of the TRS country according to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 2.11
TRSIdTypePrio1string The identification with highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT 2.11
TRSIdTypePrio2string The identification with second highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT 2.11
TRSIdTypePrio3string The identification with lowest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT 2.11

Response rows (Array) inherits from EntityBase

NameTypeDescriptionAvailable from version
BrickIdGuidThe BrickId (unique id) of the account type2.11
CountryCodestring The country code of the TRS country according to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-22.11
TRSIdTypePrio1stringThe identification with highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT2.11
TRSIdTypePrio2stringThe identification with second highest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT2.11
TRSIdTypePrio3stringThe identification with lowest priority for the specific country. Can be one of the following: NID, PASSPORT or CONCAT2.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.


C# - Get all TRS countries from a BFS instance
 //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

Terms of License
Change Policy
© 2009 - 2024 Huddlestock Technologies AB All rights reserved