Skip to main content
Docs menu
POST

/vehicle-plans

Path

POST/api/v1/partners/vehicle-plans
Authentication requiredtoken

curl example

curl -X POST "https://<your-host>/api/v1/partners/vehicle-plans" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "content-type: application/json" \
  -d '{
  "registration_number": "string",
  "resource_id": 0,
  "from_address": "string",
  "owner_post_office_code": "string",
  "from_lat": 0,
  "from_lon": 0,
  "from_working_time": "2026-01-01T00:00:00+07:00",
  "handling_unit_ids": "string",
  "height_of_vehicle": 0,
  "length_of_vehicle": 0,
  "width_of_vehicle": 0,
  "vehicle_tonnage": 0,
  "to_address": "string",
  "to_lat": 0,
  "to_lon": 0,
  "to_working_time": "2026-01-01T00:00:00+07:00",
  "member_id": "string",
  "offer_kind": {}
}'

Parameters

This endpoint takes no parameters.

Request body

FieldTypeRequiredDescription
registration_numberstringYesBiển số xe
resource_idnumberYesID nhóm xe (group base vehicle)
from_addressstringYesĐịa chỉ khởi hành
owner_post_office_codestringNoMã bưu cục sở hữu xe
from_latnumberYesFrom latitude
from_lonnumberYesFrom longitude
from_working_timestring (date-time)YesThời gian bắt đầu làm việc (timestamp)
handling_unit_idsstringNoIDs of group handling unit goods, joined by ":"
height_of_vehiclenumberYesChiều cao thùng xe (cm)
length_of_vehiclenumberYesChiều dài thùng xe (cm)
width_of_vehiclenumberYesChiều rộng thùng xe (cm)
vehicle_tonnagenumberNoTải trọng xe (kg)
to_addressstringNoĐịa chỉ nơi đến
to_latnumberNoTo latitude
to_lonnumberNoTo longitude
to_working_timestring (date-time)NoThời gian kết thúc làm việc (timestamp)
member_idstringNoMember ID
offer_kind1 | 2 | 3NoOffer kind (1: theo tuyến, 2: theo thời gian)
18 fieldsCreateVehiclePlansDto

Responses

201

Back to group: Vehicle plans

POST /vehicle-plans | Route4Green