| Code | Description |
|---|---|
| 400 | Bad Request. |
| 404 | Resource Not Found. |
| 500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/manifests/:manifest_client_identifier/bill_of_ladings/:number/cargoes.json" -d '{ "container_type": "20DV", "shipping_line": "KOSU", "delivery_type": "gate", "tags": ["heavy", "xyz"], "hazmat_codes": "0007,0038", "cargo": { "cargo_type": "container", "container_number": "container_number", "container_status": "full", "weight": 10000.10, "description": "It is a container.", "container_seals": "sello1,sello2", "sold_status": "not_for_sale", "usage": "transshipment", "client_identifier": "THE_CLIENT_IDENTIFIER", "vin": "1N4AL3AP6FN884262", "make": "NISSAN", "model":"Altima", "year": "2014", "color":"RED" } }' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOURTOKEN"
{
"actions": {
"create": {
"method": "POST",
"url": "https://app.octopi.co/api/v1/manifests/:manifest_client_identifier/bill_of_ladings/:number/cargoes.json"
}
},
"cargo": {
"manifest": {
"client_identifier": "e67be26c-0dc9-4542-a6ee-9d99831156e1"
},
"bill_of_lading": {
"number": "MASS123"
},
"container_type": {
"labels": [
"20DV",
"20DC",
"20ST",
"20RG",
"D20",
"20CT",
"22G1",
"22G0",
"2200",
"20DV"
]
},
"tags": [
"heavy",
"xyz"
],
"hazmat_codes": [],
"client_identifier": "THE_CLIENT_IDENTIFIER",
"cargo_type": "vehicle",
"id": 83415,
"container_number": null,
"container_status": "full",
"container_seals": [
"SELLO1",
"SELLO2"
],
"weight": 10000.1,
"description": "It is a container.",
"reference_number": null,
"shipping_marks": "shipping marks",
"volume": null,
"quantity": 1.0,
"temperature": "",
"temperature_unit": "celsius",
"sold_status": "not_for_sale",
"usage": "transshipment_load",
"shippers_owned": false
}
}
| Param name | Description |
|---|---|
|
manifest_client_identifier required |
The same client_identifier provided on manifest creation. Validations:
|
|
number required |
The bill of lading number provided on bill of lading creation. Validations:
|
|
container_type optional |
Container type is required if cargo type is a container. Validations:
|
|
hazmat_codes optional |
Multiple hazmat codes should be encoded using a comma separated values strategy. Validations:
|
|
shipping_line required |
Container shipping line is required. Send the shipping line code and Octopi will try to find the shipping line. If a shipping line is not found an error will be returned. Validations:
|
|
delivery_type optional |
Validations:
|
|
tags optional |
List of tags associated with this cargo. Validations:
|
|
cargo optional |
Validations:
|
|
cargo[cargo_type] required |
The Octopi team is working to add more options. Validations:
|
|
cargo[container_status] optional |
Validations:
|
|
cargo[container_number] optional |
Container number is required if cargo type is a container. Validations:
|
|
cargo[container_seals] optional |
Multiple seals should be encoded using a comma separated values strategy. Validations:
|
|
cargo[weight] optional |
Weight is in kg Validations:
|
|
cargo[description] optional |
Validations:
|
|
cargo[volume] optional |
Validations:
|
|
cargo[quantity] optional |
Validations:
|
|
cargo[temperature] optional |
Validations:
|
|
cargo[temperature_unit] optional |
Validations:
|
|
cargo[sold_status] optional |
Validations:
|
|
cargo[usage] optional |
Validations:
|
|
cargo[shippers_owned] optional |
Validations:
|
|
cargo[client_identifier] optional |
Validations:
|
|
cargo[vin] optional |
Validations:
|
|
cargo[make] optional |
Validations:
|
|
cargo[shipping_marks] optional |
Validations:
|
|
cargo[reference_number] optional |
Validations:
|
|
cargo[model] optional |
Validations:
|
|
cargo[year] optional |
Container year must be a 4 digits number. Validations:
|
|
cargo[color] optional |
Validations:
|