Name | Type | Description |
---|---|---|
BrickId | Guid[] | |
CustomerNos | string[] | |
UserName | string | |
PersonalNumbers | string[] | |
ResellerNo | string | |
ExternalReferences | string[] |
Name | Type | Description |
---|---|---|
BrickId | ||
FirstName | string | |
LastName | string | |
MiddleNames | string | |
UserName | string | |
string | ||
PersonalNumber | string | |
ResellerNo | string | |
ResellerId | Guid | |
IsApproved | bool | |
AddressCity | string | |
AddressStreet | string | |
AddressZip | string | |
BIC | string | |
Comment | string | |
ExternalReference | string | |
PassportNumber | string | |
PhoneHome | string | |
PhoneWork | string | |
IsTaxPayer | bool | |
IsInsuranceCompany | bool | |
IsInsuranceProductSupplier | bool | |
IsApprovedForStructs | bool | |
IsVerified | bool | |
Gender | string | Value should be Male, Female, Company |
Title | string | Value should be Miss, Mr, Ms, Dr, Mrs |
Country | string | According to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 |
TaxCountry | string | According to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 |
CustomerNo | string |
//Use the GetPersons method to get all LegalEntities in the BFS instance and write //the BrickId's and names 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 persons = client.GetPersons(new BFSServiceReference.GetPersonRequest() { Credentials = credentials, identify = bfsidentifier, //Identifier is a unique token for your instance of BFS Fields = new BFSServiceReference.GetPersonFields() { BrickId = true, UserName = true, FirstName = true, LastName = true, }, }); foreach (var c in persons.Result) { Console.WriteLine(c.BrickId + "," + c.FirstName + "," + c.LastName); } |