Claims and FNOL mode
Last updated
{
"app": "claimsapp"
}{
"requests": [
{ "type": "otp_fnol" },
{ "type": "claim", "version": "v2" }
]
}{
"claim": [
{
"path": "data",
"name": "incident_date",
"validation": "required|iso_date"
},
{
"path": "data",
"name": "incident_description",
"validation": "required|string|max:1000"
}
]
}{
"path": "claim-details",
"components": [
{
"type": "title",
"config": { "content_key": "flow.claim_details.title" }
},
{
"type": "form",
"config": {
"components": [
{
"type": "form-datepicker",
"config": {
"field_name": "data.incident_date",
"content_key": {
"label": "form.incident_date.label",
"placeholder": "form.incident_date.placeholder"
}
}
},
{
"type": "form-textarea",
"config": {
"field_name": "data.incident_description",
"content_key": {
"label": "form.incident_description.label",
"placeholder": "form.incident_description.placeholder"
}
}
}
],
"footer_components": [
{ "type": "error-list" },
{ "type": "button-back" },
{
"type": "claim-update-button",
"config": { "content_key": "flow.claim.submit" }
}
]
}
}
],
"next": "claim-confirmation"
}{
"claim": [
{
"path": "data",
"name": "incident_date",
"validation": "required|iso_date",
"editable": true
}
]
}