Create a dock receipt 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/86739/dock_receipts.json' --header 'Content-Type: application/json' --data-raw '{
"booking_number": "10421990"
}'
{
"truck_visit_id": 86739,
"completed_at": null,
"booking": {
"id": 189742,
"booking_number": "10421990",
"voyage_number": "23S",
"trucking_company_id": null,
"ship_name": "HOHEBANK",
"items": [
{
"id": 961911,
"line_item_number": 1,
"quantity": 1,
"description": "1.PAYMOVER T300",
"container": {
"id": 392426,
"display_name": "1982 paymover t300"
},
"dock_receipt_cargos": [
"25AD079A105FE0"
],
"hazmat_codes": [],
"hazmat_ids_and_codes": {},
"hazmat_classes": [],
"container_type": {
"label": "UNKNOWN"
}
}
],
"all_items": [
{
"id": 961911,
"line_item_number": 1,
"quantity": 1,
"description": "1.PAYMOVER T300",
"container": {
"id": 392426,
"display_name": "1982 paymover t300"
},
"dock_receipt_cargos": [
"25AD079A105FE0"
],
"hazmat_codes": [],
"hazmat_ids_and_codes": {},
"hazmat_classes": [],
"container_type": {
"label": "UNKNOWN"
}
},
{
"id": 961912,
"line_item_number": 2,
"quantity": 0,
"description": "DIMENSIONES: L:232" X W:96" X H:79"",
"container": {
"id": null,
"display_name": null
},
"dock_receipt_cargos": [],
"hazmat_codes": [],
"hazmat_ids_and_codes": {},
"hazmat_classes": []
},
{
"id": 961913,
"line_item_number": 3,
"quantity": 0,
"description": "PESO: 40,000 LIBRAS",
"container": {
"id": null,
"display_name": null
},
"dock_receipt_cargos": [],
"hazmat_codes": [],
"hazmat_ids_and_codes": {},
"hazmat_classes": []
},
{
"id": 961914,
"line_item_number": 4,
"quantity": 0,
"description": "NUMERO DE SERIE: 00352",
"container": {
"id": null,
"display_name": null
},
"dock_receipt_cargos": [],
"hazmat_codes": [],
"hazmat_ids_and_codes": {},
"hazmat_classes": []
}
],
"port_of_discharge": "CARTAGENA (COCTG)",
"port_of_loading": "PORT EVERGLADES (USPEF)",
"port_of_delivery": "CARTAGENA (COCTG)",
"shipper": {
"name": "OCEAN CARGO LOGISTICS GROUP"
}
}
}
| Param name | Description |
|---|---|
|
truck_visit_id required |
Truck visit ID. Validations:
|
|
booking_number required |
Booking number for the dock receipt. Validations:
|