This API endpoint allows you to create cargoes associated with a bill of landing.
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"
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:
|