Create an interchange for a truck visit.
Code | Description |
---|---|
404 | Not found. |
422 | Unprocessable Entity. |
500 | Internal Server Error. |
409 | Entity conflict. |
curl --location --request POST 'https://app.octopi.co/api/v1/truck_visits/1876441/interchanges.json' --header 'Content-Type: application/json' --data-raw '{ "purpose": "drop_off_container", "container_number": "NYKU438409", "container_status": "full", "booking_number": "BOOK234234", "chassis_number": "CH1234" "export_release_number": "EXP123" }'
{ "truck_visit_id": 1876441, "action_type": "interchange_in", "container_number": "CONZ1234674", "container_status": "full", "container_usage": 0, "container_has_damage": null, "container_vgm": null, "container_seal": null, "booking": "BOOKING12APR", "export_release": "EXP1", "bill_of_lading": null, "delivery_order": null, "chassis_number": "TESTCH-201", "chassis_weight": null, "genset": null, "genset_seal": null, "genset_fuel_level": null, "genset_has_reefer_compartment_seal": null, "genset_weight": null, "reefer_temperature": null, "reefer_temperature_unit": null, "reefer_set_point_temperature": null, "operating_reefer": false, "reefer_supply_temperature": null, "reefer_humidity": null, "reefer_ventilation": null, "scale_weight": null, "truck_weight": null, "completed_at": "2023-02-20T21:12:29.128+09:00", "work_queue_item": { "work_queue_item_id": 77, "work_queue_id": 1, "work_queue_name": "Terminal: South Terminal", "terminal_id": 1, "terminal_name": "South Terminal", "suggested_yard_slot": { "suggested_destination": "Heap 8828", "suggested_destination_yard_slot_id": 1, "suggested_destination_yard_slot_name": "Heap 8828", "suggested_yard_area_id": 1, "suggested_yard_area_name": "Heap 8828" }, "completed_at": "2023-02-20T21:12:29.128+09:00" } }
Param name | Description |
---|---|
truck_visit_id required |
Truck visit ID. Validations:
|
purpose required |
Purpose of the interchange. Validations:
|
container_number optional |
Container number to create interchange. Validations:
|
container_status optional |
Container status. Validations:
|
booking_number optional |
Booking number for the interchange. Validations:
|
chassis_number optional |
Chassis number. Validations:
|
genset_number optional |
Genset number. Validations:
|
export_release_number optional |
Export release number for the interchange. Validations:
|
bill_of_lading_number optional |
Bill of lading number for the interchange. Validations:
|
delivery_order_number optional |
Delivery order number for the interchange. Validations:
|
completed_at optional |
The date and time at which interchange was completed, in ISO 8601 format (Eg 2023-04-13T14:30:00Z). Providing this value will create the interchange with a completed status. Validations:
|