POST api/Beneficiary

Request Information

URI Parameters

None.

Body Parameters

Collection of BeneficiaryModel
NameDescriptionTypeAdditional information
PersonBeneficiaryId

integer

None.

PolicyPersonBeneficiaryId

integer

None.

PolicyId

integer

None.

FirstName

string

None.

Surname

string

None.

RelationshipToPolicyHolder

string

None.

IdentificationTypeId

integer

None.

IdNumber

string

None.

ContactNo

string

None.

Email

string

None.

BeneficiaryPercentage

decimal number

None.

AddressLine1

string

None.

AddressLine2

string

None.

AddressLine3

string

None.

AddressLine4

string

None.

PostalCode

string

None.

ProvinceId

integer

None.

IsFicaed

boolean

None.

ProofOfRelationshipSubmitted

boolean

None.

ProofOfResidenceSubmitted

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "personBeneficiaryId": 1,
    "policyPersonBeneficiaryId": 1,
    "policyId": 1,
    "firstName": "sample string 2",
    "surname": "sample string 3",
    "relationshipToPolicyHolder": "sample string 4",
    "identificationTypeId": 1,
    "idNumber": "sample string 5",
    "contactNo": "sample string 6",
    "email": "sample string 7",
    "beneficiaryPercentage": 8.0,
    "addressLine1": "sample string 9",
    "addressLine2": "sample string 10",
    "addressLine3": "sample string 11",
    "addressLine4": "sample string 12",
    "postalCode": "sample string 13",
    "provinceId": 1,
    "isFicaed": true,
    "proofOfRelationshipSubmitted": true,
    "proofOfResidenceSubmitted": true
  },
  {
    "personBeneficiaryId": 1,
    "policyPersonBeneficiaryId": 1,
    "policyId": 1,
    "firstName": "sample string 2",
    "surname": "sample string 3",
    "relationshipToPolicyHolder": "sample string 4",
    "identificationTypeId": 1,
    "idNumber": "sample string 5",
    "contactNo": "sample string 6",
    "email": "sample string 7",
    "beneficiaryPercentage": 8.0,
    "addressLine1": "sample string 9",
    "addressLine2": "sample string 10",
    "addressLine3": "sample string 11",
    "addressLine4": "sample string 12",
    "postalCode": "sample string 13",
    "provinceId": 1,
    "isFicaed": true,
    "proofOfRelationshipSubmitted": true,
    "proofOfResidenceSubmitted": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfBeneficiaryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fusion.AppApi.Models">
  <BeneficiaryModel>
    <AddressLine1>sample string 9</AddressLine1>
    <AddressLine2>sample string 10</AddressLine2>
    <AddressLine3>sample string 11</AddressLine3>
    <AddressLine4>sample string 12</AddressLine4>
    <BeneficiaryPercentage>8</BeneficiaryPercentage>
    <ContactNo>sample string 6</ContactNo>
    <Email>sample string 7</Email>
    <FirstName>sample string 2</FirstName>
    <IdNumber>sample string 5</IdNumber>
    <IdentificationTypeId>1</IdentificationTypeId>
    <IsFicaed>true</IsFicaed>
    <PersonBeneficiaryId>1</PersonBeneficiaryId>
    <PolicyId>1</PolicyId>
    <PolicyPersonBeneficiaryId>1</PolicyPersonBeneficiaryId>
    <PostalCode>sample string 13</PostalCode>
    <ProofOfRelationshipSubmitted>true</ProofOfRelationshipSubmitted>
    <ProofOfResidenceSubmitted>true</ProofOfResidenceSubmitted>
    <ProvinceId>1</ProvinceId>
    <RelationshipToPolicyHolder>sample string 4</RelationshipToPolicyHolder>
    <Surname>sample string 3</Surname>
  </BeneficiaryModel>
  <BeneficiaryModel>
    <AddressLine1>sample string 9</AddressLine1>
    <AddressLine2>sample string 10</AddressLine2>
    <AddressLine3>sample string 11</AddressLine3>
    <AddressLine4>sample string 12</AddressLine4>
    <BeneficiaryPercentage>8</BeneficiaryPercentage>
    <ContactNo>sample string 6</ContactNo>
    <Email>sample string 7</Email>
    <FirstName>sample string 2</FirstName>
    <IdNumber>sample string 5</IdNumber>
    <IdentificationTypeId>1</IdentificationTypeId>
    <IsFicaed>true</IsFicaed>
    <PersonBeneficiaryId>1</PersonBeneficiaryId>
    <PolicyId>1</PolicyId>
    <PolicyPersonBeneficiaryId>1</PolicyPersonBeneficiaryId>
    <PostalCode>sample string 13</PostalCode>
    <ProofOfRelationshipSubmitted>true</ProofOfRelationshipSubmitted>
    <ProofOfResidenceSubmitted>true</ProofOfResidenceSubmitted>
    <ProvinceId>1</ProvinceId>
    <RelationshipToPolicyHolder>sample string 4</RelationshipToPolicyHolder>
    <Surname>sample string 3</Surname>
  </BeneficiaryModel>
</ArrayOfBeneficiaryModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.