Pobranie jazdy testowej
Zwraca dane jazdy testowej po jej unikalnym identyfikatorze
Metoda: GET
Ścieżka: /api/v1/events/get/{id}
Parametry
| Nazwa | Typ | Opis |
|---|---|---|
| id | string |
Id jazdy testowej |
Parametry odpowiedzi
| Nazwa | Typ | Opis |
|---|---|---|
| id | string | Unikalny identyfikator jazdy testowej |
| id_user | string | Id handlowca |
| id_customer | string | Id klienta |
| start_date | string | Data rozpoczęcia jazdy testowej |
| end_date | string | Data zakończenia jazdy testowej |
| mileage | string | Przebieg |
| vehicle | object | Dane pojazdu |
| agreement | string | Adres URL umowy |
| created_at | string | Data dodania jazdy testowej |
| modified_at | string | Data ostatniej aktualizacji |
Odpowiedź w formacie JSON
{
"status": 200,
"data": {
"id": "string",
"id_user": "string",
"id_customer": "string",
"start_date": "string",
"end_date": "string",
"mileage": "string",
"vehicle": "object",
"agreement": "string",
"created_at": "string",
"modified_at": "string"
}
}
Odpowiedź w formacie JSON
{
"status": 400,
"description": "Nieprawidłowe parametry"
}
Odpowiedź w formacie JSON
{
"status": 403,
"description": "Niepoprawne dane logowania"
}