Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Filter inputs

NameTypeDescriptionMandatoryAvailable from version
BrickIdsGuid[]


Keysstring[]


ExpirationDateFromDateTimeStartdate for ExpirationDate 

ExpirationDateToDateTimeEnddate for ExpirationDate

PersonsGuid[]Ids of Person for the TaxWithholdingAgreements 

Response rows (Array) inherits from EntityBase

NameTypeDescriptionAvailable from version
BrickIdGuidThe BrickId (unique id) of the account type
PersonGuidThe Person for the TaxWithholdingAgreements
ExpirationDateDateTimeExpirationDate for the TaxWithholdingAgreements
TaxCountrystringAccording to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Code examples

C# - Get TaxWithholdingAgreements from a BFS instance
public static void GetTaxWithholdingAgreements()
        {
            var binding = new BasicHttpBinding();
            //binding.OpenTimeout=new TimeSpan(0,0,5,0);
            binding.SendTimeout=new TimeSpan(0,0,5,0);
            binding.MaxReceivedMessageSize = Int32.MaxValue;
            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
           
            var req = new GetTaxWithholdingAgreementRequest();
            req.Credentials = new bfsapi.Credentials
            {
                UserName = "user",
                Password = "password"
            };

            req.identify = "identify";
            
            req.Fields = new bfsapi.GetTaxWithholdingAgreementFields()
            {
                TaxCountry = true,
                Person = true,
                ExpirationDate = true
            };


            req.Args = new bfsapi.GetTaxWithholdingAgreementArgs()
            {
                TaxCounties = new []{"US"}

            };

            var resp = target.GetTaxWithholdingAgreements(req);
            var s = "";
        }


Blog Posts

  • No labels