CreateInsurancePolicies

Inputs (Array of InsurancePolicy) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
BrickIdGuidNot used as an input.
2.02.20160603
AccountIdGuid
True2.02.20160603
OwnerIdGuidOwner/holder of the policyTrue2.02.20160603
ExpirationDateDateTime
True2.02.20160603
ExternalReferencestring

2.02.20160603
InsuranceProgramIdGuid
True2.02.20160603
ParametersstringThis is a string with custom parameters separated by semicolons. For example if a car insurance policy is 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".
2.02.20160603
PolicyPeriodint

The period of the policy entered as number of months.

True2.02.20160603
PolicyNostringNot used as an input. The created order will receive a policy number that is returned in the output.
2.02.20160603
PremiumdecimalThe amount that will be charged on each payment frequencyTrue2.02.20160603
PremiumFrequencyint

The premium frequency entered as number of months.


True2.02.20160603
SecondInsuredLegalEntityIdGuidBrickId of a second Legal Entity that is insured
2.02.20160603
SignDateDateTime
True2.02.20160603
Statusint1 = Active, 2 = InactiveTrue2.02.20160603
InitialActivationDateDateTime
True2.02.20160603
PeriodStartDateDateTime
True2.02.20160603
PeriodEndDateDateTime
True2.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 policy

Code examples

C# - Create a insurance policy
// Create Insurance Policy
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.CreateInsurancePolicy(new BFSServiceReference.CreateInsurancePolicyRequest()
{
    Credentials = credentials,

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

    Entities = new[]
    {
        new InsurancePolicy()
        {
            AccountId = new Guid("28cb5e31-600e-4a17-b2a7-131e2b233c8f"),
            OwnerId = new Guid("b710db8e-06b3-4e5b-aa7f-4ad9ef93bb91"),
            ExpirationDate = DateTime.Today.AddMonths(1),
            ExternalReference = "My insurance policy",
            InsuranceProgramId = new Guid(""),
            Premium = 100M,
			PolicyPeriod = 12,
            PremiumFrequency = 1,
            SignDate = DateTime.Today,
            Status = 1,
            InitialActivationDate = DateTime.Today,
            PeriodStartDate = DateTime.Today,
            PeriodEndDate = DateTime.Today.AddMonths(1)                        
        },
    }

});

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

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