CreateTaxWithholdingAgreements

Inputs (TaxWithholdingAgreement[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
PersonGuidId of Person for TaxWithholdingAgreement  

TaxCountrystring According to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

ExpirationDateDateTimeExpirationDate for TaxWithholdingAgreement  Yes

Response rows

NameTypeDescriptionAvailable from version
EntitiesArrayAll TaxWithholdingAgreement in the request with BrickId and an array of Errors per TaxWithholdingAgreement

Code examples

C# - Create TaxWithholdingAgreements
public static void CreateTaxWithholdingAgreements()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://endpoint/bfsapi.asmx"));

            var req = new bfsapi.CreateTaxWithholdingAgreementsRequest
            {
                Credentials = new bfsapi.Credentials
                {
                    UserName = "user",
                    Password = "password"
                },
                identify = "identify",
                Entities = new TaxWithholdingAgreement[]
                {
                    new TaxWithholdingAgreement
                    {
                        Person = new Guid("2cc2b4cb-b636-45f4-ab8f-a0294c967fec"),
                        TaxCountry = "US",
                        ExpirationDate = DateTime.Today.AddDays(7)

                    }
                }
            };

            var resp = target.CreateTaxWithholdingAgreements(req);
        }



Related pages

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