Create a new policy
POST/v1/policies
Request
- application/json
Body
required
- ThirdPartyPurchaseData
- ComprehensivePurchaseData
- Array [
- ]
Product ID of the policy to be created
Chassis number of the vehicle
Manufacturer of the vehicle
Model of the vehicle
Year of manufacture of the vehicle
Registration number of the vehicle
Engine number of the vehicle
Color of the vehicle
Possible values: [Van
, Cargo/Truck
, Pick Up
, SUV/Crossover
, Saloon Car
, Bus
, Minivan
, Trailer
]
Type of the vehicle
Email of the user
Name of the user
Phone number of the user
Possible values: [male
, female
]
gender of the user
Address of the user
License number of the user
License expiry date of the user
Product ID of the policy to be created
Chassis number of the vehicle
Manufacturer of the vehicle
Model of the vehicle
Year of manufacture of the vehicle
Registration number of the vehicle
Engine number of the vehicle
Color of the vehicle
Possible values: [Van
, Cargo/Truck
, Pick Up
, SUV/Crossover
, Saloon Car
, Bus
, Minivan
, Trailer
]
Type of the vehicle
Email of the user
Name of the user
Phone number of the user
Possible values: [male
, female
]
gender of the user
Address of the user
License number of the user
License expiry date of the user
Currency of the vehicle value
Possible values: [private
, commercial
]
Usage of the vehicle
ID of the address proof file. Use the ID of the uploaded file
ID of the license file. Use the ID of the uploaded file
images object[]
Images of the vehicle
URL of the file
Possible values: [left
, right
, rear
, front
, dashboard
, vin
, plate_number
]
Side of the vehicle
Responses
- 201
- 400
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
ID of the policy
Full name of the user
Start date of the policy
Possible values: [third_party
, comprehensive
]
Type of the policy
Date of purchase of the policy
End date of the policy
Status of the policy
Name of the product
Premium of the policy
URL of the policy document
Number of the policy
{
"id": 0,
"full_name": "string",
"start_date": "string",
"policy_type": "third_party",
"purchase_date": "string",
"end_date": "string",
"status": "string",
"product": "string",
"premium": "string",
"policy_document": "string",
"policy_number": "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": {}
}