Get a coverage
curl --request GET \
--url https://businessapi-staging-civ.djigui.io/api/v1.0/coverage/{id} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://businessapi-staging-civ.djigui.io/api/v1.0/coverage/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://businessapi-staging-civ.djigui.io/api/v1.0/coverage/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "20000000-0000-4000-8000-000000000001",
"name": "Tiers simple",
"description": "Responsabilité civile",
"vehicleType": "auto",
"order": 1,
"properties": [
{ "label": "Responsabilité civile", "description": null },
{ "label": "Défense et recours", "description": null }
]
}
{
"code": "coverage_not_found",
"message": "This coverage does not exist."
}
Coverages
Get a coverage
One coverage, car or motorbike.
GET
/
coverage
/
{id}
Get a coverage
curl --request GET \
--url https://businessapi-staging-civ.djigui.io/api/v1.0/coverage/{id} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://businessapi-staging-civ.djigui.io/api/v1.0/coverage/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://businessapi-staging-civ.djigui.io/api/v1.0/coverage/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "20000000-0000-4000-8000-000000000001",
"name": "Tiers simple",
"description": "Responsabilité civile",
"vehicleType": "auto",
"order": 1,
"properties": [
{ "label": "Responsabilité civile", "description": null },
{ "label": "Défense et recours", "description": null }
]
}
{
"code": "coverage_not_found",
"message": "This coverage does not exist."
}
Returns one coverage, with the same fields as in the list. Unlike the list, it also finds motorbike coverages.
string
required
The coverage’s id.
Response
string
string
string | null
string
auto or bike.integer | null
Errors
| Status | code | |
|---|---|---|
| 404 | coverage_not_found | No vehicle coverage with this id. |
{
"id": "20000000-0000-4000-8000-000000000001",
"name": "Tiers simple",
"description": "Responsabilité civile",
"vehicleType": "auto",
"order": 1,
"properties": [
{ "label": "Responsabilité civile", "description": null },
{ "label": "Défense et recours", "description": null }
]
}
{
"code": "coverage_not_found",
"message": "This coverage does not exist."
}