POST v1/company/vehicle/add

WEB - Register new vehicle to company.

Request Information

URI Parameters

None.

Body Parameters

CompanyVehicleAddRequestModel
NameDescriptionTypeAdditional information
vehicle_type

integer

Required

vehicle_licence_plate

string

Required

Data type: Text

vehicle_brand

string

Data type: Text

vehicle_image

string

Data type: Text

vehicle_reg_image_front

string

Data type: Text

vehicle_reg_image_back

string

Data type: Text

vehicle_insurance_image

string

Data type: Text

vehicle_kbelgesi_image

string

Data type: Text

vehicle_trailer_type

integer

Required

vehicle_year

integer

Required

vehicle_max_capacity

integer

Required

vehicle_max_tonnage

integer

None.

vehicle_has_adr

boolean

Data type: Text

vehicle_is_rental

boolean

None.

vehicle_rent_start_date

date

None.

vehicle_rent_end_date

date

None.

vehicle_rent_document

string

None.

user_company_id

Company UID of the active user

string

Required

Data type: Text

user_id

User ID (GUID)

string

Required

Data type: Text

user_signature

MD5 hash signature for the active user to validate the request

string

Required

Data type: Text

Request Format

application/json, text/json

Sample:
{
  "vehicle_type": 1,
  "vehicle_licence_plate": "sample string 2",
  "vehicle_brand": "sample string 3",
  "vehicle_image": "sample string 4",
  "vehicle_reg_image_front": "sample string 5",
  "vehicle_reg_image_back": "sample string 6",
  "vehicle_insurance_image": "sample string 7",
  "vehicle_kbelgesi_image": "sample string 8",
  "vehicle_trailer_type": 9,
  "vehicle_year": 10,
  "vehicle_max_capacity": 11,
  "vehicle_max_tonnage": 12,
  "vehicle_has_adr": true,
  "vehicle_is_rental": true,
  "vehicle_rent_start_date": "2018-09-22T21:46:12.7089388+03:00",
  "vehicle_rent_end_date": "2018-09-22T21:46:12.7089388+03:00",
  "vehicle_rent_document": "sample string 14",
  "user_company_id": "sample string 15",
  "user_id": "sample string 16",
  "user_signature": "sample string 17"
}

Response Information

Resource Description

WEB - Register new vehicle to company.

CompanyVehicleAddResultModel
NameDescriptionTypeAdditional information
response

UserVehicleModel

None.

meta

Basic meta information for the operation result

MetaModel

None.

Response Format

application/json, text/json

Sample:
{
  "response": {
    "vehicle_id": 1,
    "vehicle_company_id": "sample string 2",
    "vehicle_user_id": "sample string 3",
    "vehicle_type": 4,
    "vehicle_licence_plate": "sample string 5",
    "vehicle_brand": "sample string 6",
    "vehicle_image": "sample string 7",
    "vehicle_reg_image_front": "sample string 8",
    "vehicle_reg_image_back": "sample string 9",
    "vehicle_insurance_image": "sample string 10",
    "vehicle_kbelgesi_image": "sample string 11",
    "vehicle_trailer_type": 12,
    "vehicle_year": 13,
    "vehicle_max_capacity": 14,
    "vehicle_max_tonnage": 15,
    "vehicle_has_adr": true,
    "vehicle_date_time": "2018-09-22T21:46:12.7089388+03:00",
    "vehicle_approved": true,
    "vehicle_is_rental": true,
    "vehicle_rent_start_date": "2018-09-22T21:46:12.7089388+03:00",
    "vehicle_rent_end_date": "2018-09-22T21:46:12.7089388+03:00",
    "vehicle_rent_document": "sample string 20",
    "vehicle_enabled": true
  },
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}