Create cover for a plan Run in API Explorer
Body
-
Client who is claiming this cover. Must be able to access this plan. Only for protection policies.
-
Cover type.
Values are
asu,additional_rider_benefit,critical_illness,family_income_benefit,income_insurance,life_assurance,tpd_total_permanent_disability,trauma_insurance,waiver_of_premium,unknown,3rd_party,3rd_party_fire_and_theft,accidental_damage,ambulance,buildings,buildings_and_contents,business,comprehensive,contents,dental,extras,hospital_cash,optical,personal_possessions,private,private_hospital, orspecialist. -
Benefit amount in pennies. Only for protection policies.
-
Benefit frequency. Only for protection policies.
Value Description daily Daily weekly Weekly fortnightly Fortnightly four_weekly Four Weekly monthly Monthly bimonthly Bimonthly quarterly Quarterly biannually Biannually annually Annually adhoc Adhoc one_off One Off Values are
daily,weekly,fortnightly,four_weekly,monthly,bimonthly,quarterly,biannually,annually,adhoc, orone_off. -
Benefit status. Only for protection policies.
Value Description active Active inactive Inactive proposed Proposed Values are
active,inactive, orproposed. -
Indexation. Only for protection policies.
-
Excess amount in pennies. Only for insurance policies.
-
The beneficiaries of the plan.
curl \
--request POST 'https://api.plannrcrm.com/api/v1/plans/6ff8f7f6-1eb3-3525-be4a-3932c805afed/cover' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"client_uuid":"f63dea8d-852a-41fd-93b9-f13147f06177","cover_type":"asu","benefit_amount":892176,"benefit_frequency":"daily","benefit_status":"active","indexation":1.45,"excess":150000,"beneficiaries":[{"name":"John Smith","percentage":50},{"name":"Jane Doe","percentage":20}]}'
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"client_uuid": "f63dea8d-852a-41fd-93b9-f13147f06177",
"cover_type": "asu",
"benefit_amount": 892176,
"benefit_frequency": "daily",
"benefit_status": "active",
"indexation": 1.45,
"excess": 150000,
"beneficiaries": [
{
"name": "John Smith",
"percentage": 50
},
{
"name": "Jane Doe",
"percentage": 20
}
]
}
{
"message": "Plan is being deleted."
}
{
"message": "Plan is being deleted."
}