UpdateInsurancePolicy

Filter inputs

NameTypeDescriptionMandatoryAvailable from version
BrickIdGuidThis is the unique id of the policy that should be updatedTrue2.02.20160603
ExpirationDateDateTimeThe expiration date for the selected insurance policy
2.02.20160603
ExternalReferencestringThe external reference for the selected insurance policy
2.02.20160603
AccountIdGuidThe BrickId of the account associated with the selected insurance policy
2.02.20160603
ParametersstringThis is a string with custom parameters separated by semicolons. For example if a car insurance policy was created and the brand of the car should be stored and the production year the contents of this property could be "brand=Ford;year=2016". If this value is updated by this method the previous value is overwritten.
2.02.20160603
PolicyPeriodint

The period of the policy entered as number of months.



2.02.20160603
PremiumdecimalThe value of the insurance premium
2.02.20160603
PremiumFrequencyintThe premium frequency entered as number of months.
2.02.20160603
SecondInsuredLegalEntityIdGuidThe BrickIds of the second insured Legal Entities
2.02.20160603
SignDateDateTimeThe date when the policy was signed
2.02.20160603
Statusint1 = Active, 2 = Inactive
2.02.20160603
InitialActivationDateDateTimeThe initial activation date of the policy
2.02.20160603
PeriodStartDateDateTimeThe date on which the policy period was started
2.02.20160603
PeriodEndDateDateTimeThe date on which the policy period was ended
2.02.20160603
LastPartnerInvoiceDateDateTimeThe date on which the associated partner invoiced the house for this insurance policy
2.02.20160603
CancellationDateDateTimeThe date on which the selected insurance policy was cancelled
2.02.20160603
TerminationDateDateTimeThe date on which the selected insurance policy was terminated
2.02.20160603

Response rows (Array)

NameTypeDescriptionAvailable from version
EntitiesArrayArrayAll insurance policies are returned along with each insurance policy's BrickId and array of Errors per insurance policy2.02.20160603

Code examples

C# - Update insurance policy
// Update a Insurance Policy with the UpdateInsurancePolicy method
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 response = client.UpdateInsurancePolicies(new BFSServiceReference.UpdateInsurancePoliciesRequest()
{
    Credentials = credentials,

    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS

    Fields = new UpdateInsurancePolicyFields()
    {
        BrickId = true,
        Premium = true
    },

    Entities = new[]
    {
      new UpdateInsurancePolicy()
      {
          BrickId = new Guid("15b1f034-c9b9-4747-a03a-5bb06edd0ad1"),
          Premium = 100M,
      },
    },


});

foreach (var c in response.Entities)
{
    Console.WriteLine(c.BrickId + ", " + response.Message);
}

Blog stream

Create a blog post to share news and announcements with your team and company.

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