Create a new claim
POST/v1/claims
Request
- application/json
Body
required
- Array [
- ]
Policy number of the user
Date of the accident
Time of the accident
Location of the accident
Landmark of the accident
Possible values: [a-head-on-collision
, rear-end-collisions
, side-impact-accidents
, chain-reactions
, rollovers
, other
]
Type of the accident
Description of the accident
bank_details object
Bank details of the user for payment
Name of the bank
Name of the account
Number of the account
Name of the account
images object[]
Images of the accident
URL of the file
Possible values: [left
, right
, rear
, front
, dashboard
, vin
, plate_number
]
Side of the vehicle
Police report of the accident. Use the ID of the uploaded file
Repair estimate of the damages. Use the ID of the uploaded file
Responses
- 201
- 400
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
Policy number of the user
Date of the accident
Time of the accident
Location of the accident
Landmark of the accident
Type of the accident
Description of the accident
bank_details object
Bank details of the user for payment
Name of the bank
Name of the account
Number of the account
Name of the account
Status of the claim
Date of creation of the claim
Date of update of the claim
{
"policy_number": "string",
"date": "string",
"time": "string",
"location": "string",
"landmark": "string",
"accident_type": "a-head-on-collision",
"description": "string",
"bank_details": {
"bank_name": "string",
"sort_code": "string",
"account_no": "string",
"account_name": "string"
},
"stattus": "string",
"created_at": "string",
"updated_at": "string"
}
Bad request.
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "400 Bad Request (Client Error)"
}
Unprocessable Content
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "The given data was invalid",
"errors": {}
}