3.7.1 Apply Coverage
Updated at: 3/3/2022 5:22:58 AM
Url
/api/v2/{fleet_token}/contractors/{contractor_id}/drivers/{driver_id}/coverages/apply
Method
Post
Body
```json
{
"ProductToken": "<product_token>",
"InceptionDate": "<inception_date>",
"InactivationDate": "<date:Date>",
"CustomFields":
{
"CustomFields1": "",
"CustomFields2": ""
},
"UnitID": "<unit_id>"
}
```
Parameters
- `ProductToken` Required.
- `InceptionDate` Required.
- `InactivationDate` Optional.
- `CustomFields` Optional.
- `UnitID` Optional.Will tie the coverage to the given unit if specified.
Response
```json
{
"Success": "<true|false>",
"Message": "<message>",
"Data":
{
"ID": "",
"Description": "",
"ProductToken": "",
"InceptionDate": "",
"InactivationDate": "",
"Unit":
{
"ID": "<unit_id>",
"Number": "<unit_number>",
"Year": "",
"Make": "",
"Vin": "",
"StatedValue": "",
"EquipmentType": "",
"Model": ""
},
"Driver":
{
"ID": "<driver_id>",
"Number": "<driver_number>",
"FirstName": "<first_name>",
"MiddleName": "<middle_name>",
"LastName": "<last_name>",
"Dob": "<dob:Date>",
"Email": "<email>",
"PhoneNumber" :"<phone_number>",
"CellNumber": "<cell_number>",
"Address": "<address>",
"Address2":"<address2>",
"City":"<city>",
"State":"<state>",
"Zip":"<zip>",
"License": "<license>",
"LicenseState": "<license_state>"
}
}
}
```
Returns
- The added coverage along with the driver is returned in the response.
Notes
- The request fails if the motor carrier cannot be located by `fleet_token`.
In this article