Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Filter inputs

...

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 Block
languagec#
themeRDark
titleC# - Get TaxWithholdingAgreements from a BFS instance
linenumberstrue
collapsetrue
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 = "";
        }

...