API is in Alpha and may change at any time.

API Resources > Civilian

Register Vehicle to Civilian

This endpoint allows you to register a vehicle to a civilian.

Register Vehicle to Civilian

POST api/v1/civilian/register_vehicle

Request Body

Name Type Description Default
user_id number User ID. Required
civilian_id number Civilian ID. Required
plate string Plate of the vehicle. Required
model string Make and Model of the vehicle. Required
color string Color of vehicle. Required

Example Request Body

{
    "user_id": 123456789123456789,
    "civilian_id": 123456789,
    "plate": "abcd1234",
    "model": "Ford F150",
    "color": "Green"
}

Responses

200 A successful call.

{
    "success": true,
    "message": "",
    "data": [
        {
            "id": 9,
            "plate": "abcd1234",
            "model": "Ford F150",
            "color": "Green",
            "registration_expire": "06/04/2024",
            "civilian_id": "296602760",
            "vehicle_status": 1,
            "status_name": "Valid",
            "created_at": "05/05/2024 22:38:24",
            "updated_at": "05/05/2024 22:38:24",
            "impound_ticket_id": null,
            "picture": null,
            "business_id": null
        }
    ]
}

200 with validation errors.


                        

200 with maxed out vehicle count.

{
    "success": false,
    "message": "You have reached your max vehicles.",
    "data": []
}

Still have questions?

Still have questions? Talk to support.