CreateInsurancePolicies

CreateInsurancePolicies

Inputs (Array of InsurancePolicy) inherits from EntityBase

Name

Type

Description

Mandatory

Available from version

Name

Type

Description

Mandatory

Available from version

BrickId

Guid

Not used as an input.



2.02.20160603

AccountId

Guid



True

2.02.20160603

OwnerId

Guid

Owner/holder of the policy

True

2.02.20160603

ExpirationDate

DateTime



True

2.02.20160603

ExternalReference

string





2.02.20160603

InsuranceProgramId

Guid



True

2.02.20160603

Parameters

string

This 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

PolicyPeriod

int

The period of the policy entered as number of months.

True

2.02.20160603

PolicyNo

string

Not used as an input. The created order will receive a policy number that is returned in the output.



2.02.20160603

Premium

decimal

The amount that will be charged on each payment frequency

True

2.02.20160603

PremiumFrequency

int

The premium frequency entered as number of months.



True

2.02.20160603

SecondInsuredLegalEntityId

Guid

BrickId of a second Legal Entity that is insured



2.02.20160603

SignDate

DateTime



True

2.02.20160603

Status

int

1 = Active, 2 = Inactive

True

2.02.20160603

InitialActivationDate

DateTime



True

2.02.20160603

PeriodStartDate

DateTime



True

2.02.20160603

PeriodEndDate

DateTime



True

2.02.20160603

Response rows (Array)

Name

Type

Description

Available from version

Name

Type

Description

Available from version

EntitiesArray

Array

All 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