Skip to end of metadata
Go to start of metadata
Name | Type | Description | Mandatory | Available from version |
---|
BrickIds | Guid[] |
|
|
|
Keys | string[] |
|
|
|
ExpirationDateFrom | DateTime | Startdate for ExpirationDate |
|
|
ExpirationDateTo | DateTime | Enddate for ExpirationDate |
|
|
Persons | Guid[] | Ids of Person for the TaxWithholdingAgreements |
|
|
Response rows (Array) inherits from EntityBase
Name | Type | Description | Available from version |
---|
BrickId | Guid | The BrickId (unique id) of the account type |
|
Person | Guid | The Person for the TaxWithholdingAgreements |
|
ExpirationDate | DateTime | ExpirationDate for the TaxWithholdingAgreements |
|
TaxCountry | string | According to ISO-standard here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 |
|
Code examples
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 = "";
}