3.7.2 Close Coverage
Updated at: 3/3/2022 5:22:58 AM
Url
/api/v2/{fleet_token}/contractors/{contractor_id}/drivers/{driver_id}/coverages/close/{id}
Method
Post
Body
```json
{
"EffectiveDate": "<date:Date>"
}
```
Parameters
- `EffectiveDate`. Optional. You could leave the body blank if you like. The default value for effective date is **Today**.
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 closed coverage will be returned in the response.
Notes
- The request would fail if the given coverage is already closed in CBA.
- The request would fail if it fails to locate the motor carrier by `fleet_token`.
In this article