Shipment Expedition Management
This page is auto-generated from cmd/web/routes.go.
Endpoint List
| Method | Path | Handler | Request |
|---|---|---|---|
| Post | /api/modules/create-shipment-expedition | handlers.Repo.CreateShipmentExpedition | ShipmentExpeditionRequest.ShipmentExpeditionCreateRequest |
| Post | /api/modules/create-shipment-expedition-assignment | handlers.Repo.CreateShipmentExpeditionVehicleAssigment | ShipmentExpeditionRequest.ShipmentExpeditionVehicleAssigmentCreateRequest |
| Post | /api/modules/list-shipment-carrier | handlers.Repo.ListExpeditionCarrierList | - |
| Post | /api/modules/list-shipment-driver-task | handlers.Repo.ListShipmentDriverTask | - |
| Post | /api/modules/list-shipment-expedition | handlers.Repo.ListExpedition | - |
| Post | /api/modules/list-shipment-organizer | handlers.Repo.ListExpeditionOrganizersList | - |
| Post | /api/modules/update-shipment-expedition-carrier | handlers.Repo.UpdateShipmentExpeditionCarrierAssigment | ShipmentExpeditionRequest.ShipmentExpeditionCarrierAssigmentUpdateRequest |
Request Example: ShipmentExpeditionRequest.ShipmentExpeditionCreateRequest
{
"expeditionRequestNo": "string",
"TransportOrganizerId": 0,
"RequestDate": "string",
"FacilityCheckInDate": "string",
"FacilityCheckOutDate": "string",
"TransportUnitId": 0,
"VehicleTypeId": 0,
"LoadTypeId": 0,
"VehicleLoadMinCapacity": 0,
"VehicleLoadMaxCapacity": 0,
"Note": "string",
"Description": "string",
"DepartureAddress": {},
"ArrivalAddress": {}
}Fields:
| Field | Type | Required |
|---|---|---|
expeditionRequestNo | string | no |
TransportOrganizerId | int | no |
RequestDate | string | no |
FacilityCheckInDate | string | no |
FacilityCheckOutDate | string | no |
TransportUnitId | int | no |
VehicleTypeId | int | no |
LoadTypeId | int | no |
VehicleLoadMinCapacity | int | no |
VehicleLoadMaxCapacity | int | no |
Note | string | no |
Description | string | no |
DepartureAddress | DepartureLocation | no |
ArrivalAddress | ArrivalLocation | no |
Request Example: ShipmentExpeditionRequest.ShipmentExpeditionVehicleAssigmentCreateRequest
{
"request_uuids": {},
"carrier_id": 0,
"vehicle_id": 0,
"vehicle": "string",
"vehicle2_id": 0,
"driver1_id": 0,
"driver_identification_number": 0,
"driver2_id": 0,
"driver_identification_number2": 0
}Fields:
| Field | Type | Required |
|---|---|---|
request_uuids | []*string | no |
carrier_id | *int64 | no |
vehicle_id | *int64 | no |
vehicle | *string | no |
vehicle2_id | *int64 | no |
driver1_id | *int64 | no |
driver_identification_number | *int64 | no |
driver2_id | *int64 | no |
driver_identification_number2 | *int64 | no |
Request Example: ShipmentExpeditionRequest.ShipmentExpeditionCarrierAssigmentUpdateRequest
{
"request_uuids": {},
"carrier_id": 0
}Fields:
| Field | Type | Required |
|---|---|---|
request_uuids | []*string | no |
carrier_id | *int64 | no |
Response Examples
Create:
{
"status": "succeeded",
"message": "record created successfully",
"id": 1
}List:
{
"status": "succeeded",
"data": [ ],
"totalPage": 1,
"currentPage": 1,
"perPage": 10
}Update:
{
"status": "succeeded",
"message": "updated successfully"
}Error (example):
{
"status": "invalid_request",
"message": "validation failed",
"errors": [ ]
}Last updated on