Fetch all shipments
curl --request GET \
--url localhost:///8080/v1/shipmentsimport requests
url = "localhost:///8080/v1/shipments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('localhost:///8080/v1/shipments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "localhost:///8080/v1/shipments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "localhost:///8080/v1/shipments"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("localhost:///8080/v1/shipments")
.asString();require 'uri'
require 'net/http'
url = URI("localhost:///8080/v1/shipments")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"name": "June Air Export USA",
"onechain_shipment_id": "CDEF",
"created_at": "2021-09-20T10:02:09+01:00",
"incoterm": "fob",
"route": {
"pickup_location_id": "23",
"origin_port_unlocode": "FR/FOS",
"destination_port_unlocode": "US/NYC",
"delivery_location_id": "45"
},
"cargo_ready_date": "2021-10-11",
"desired_delivery_date": "2021-10-11",
"specific_instructions": "<string>",
"main_forwarder": "DHL",
"cargo": {
"total_weight": {
"value": 350.25,
"unit": "kg"
},
"total_volume": {
"value": 10.25,
"unit": "cbm"
},
"total_teus": 5,
"containers": [
{
"container_number": "TEMU8667058",
"seal_number": 1332641,
"purchase_order_references": [
4500346155
]
}
],
"loads": [
{
"count": 3,
"weight": {
"value": 350.25,
"unit": "kg"
},
"volume_unit": "cm",
"length": {
"value": 10.25,
"unit": "cm"
},
"width": {
"value": 10.25,
"unit": "cm"
},
"height": {
"value": 10.25,
"unit": "cm"
}
}
]
},
"transported_goods": {
"goods_description": "Description of the shipped goods",
"is_stackable": true,
"is_hazardous": false,
"hazardous_description": "UN1993",
"contains_lithium": false,
"contains_magnets": false,
"needs_controlled_temperature": false,
"temperature_range_description": "5-25°C"
},
"commercial_value": {
"amount": 150357.99,
"currency": "USD"
},
"needs_ad_valorem_insurance": false,
"purchase_order_references": [
4500346155
],
"main_tracking_dates": {
"pickup_date": {
"date": "2021-09-20T10:02:09+01:00"
},
"departure_date": {
"date": "2021-09-20T10:02:09+01:00"
},
"arrival_date": {
"date": "2021-09-20T10:02:09+01:00"
},
"delivery_date": {
"date": "2021-09-20T10:02:09+01:00"
}
},
"booking_information": {
"carrier": "CMA CGM",
"master_bill": "LHV1190703558",
"house_bill": "HOUSEREF12357",
"ocean_booking": {
"booking_number": "TWLEH2106004",
"voyage": "033E",
"vessel": "CMA CGM Jacques Saadé"
},
"air_booking": {
"flight_number": "AF256",
"chargeable_weight": {
"value": 350.25,
"unit": "kg"
}
}
},
"invoice_references": [
"FAC2022-9567"
],
"accepted_quote": {
"id": "325",
"request_date": "2021-09-20T10:02:09+01:00",
"accepted_date": "2021-09-20T10:02:09+01:00"
}
}
]{}Shipments
Fetch all shipments
Fetch all shipments of the account
Fetch all shipments
curl --request GET \
--url localhost:///8080/v1/shipmentsimport requests
url = "localhost:///8080/v1/shipments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('localhost:///8080/v1/shipments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "localhost:///8080/v1/shipments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "localhost:///8080/v1/shipments"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("localhost:///8080/v1/shipments")
.asString();require 'uri'
require 'net/http'
url = URI("localhost:///8080/v1/shipments")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"name": "June Air Export USA",
"onechain_shipment_id": "CDEF",
"created_at": "2021-09-20T10:02:09+01:00",
"incoterm": "fob",
"route": {
"pickup_location_id": "23",
"origin_port_unlocode": "FR/FOS",
"destination_port_unlocode": "US/NYC",
"delivery_location_id": "45"
},
"cargo_ready_date": "2021-10-11",
"desired_delivery_date": "2021-10-11",
"specific_instructions": "<string>",
"main_forwarder": "DHL",
"cargo": {
"total_weight": {
"value": 350.25,
"unit": "kg"
},
"total_volume": {
"value": 10.25,
"unit": "cbm"
},
"total_teus": 5,
"containers": [
{
"container_number": "TEMU8667058",
"seal_number": 1332641,
"purchase_order_references": [
4500346155
]
}
],
"loads": [
{
"count": 3,
"weight": {
"value": 350.25,
"unit": "kg"
},
"volume_unit": "cm",
"length": {
"value": 10.25,
"unit": "cm"
},
"width": {
"value": 10.25,
"unit": "cm"
},
"height": {
"value": 10.25,
"unit": "cm"
}
}
]
},
"transported_goods": {
"goods_description": "Description of the shipped goods",
"is_stackable": true,
"is_hazardous": false,
"hazardous_description": "UN1993",
"contains_lithium": false,
"contains_magnets": false,
"needs_controlled_temperature": false,
"temperature_range_description": "5-25°C"
},
"commercial_value": {
"amount": 150357.99,
"currency": "USD"
},
"needs_ad_valorem_insurance": false,
"purchase_order_references": [
4500346155
],
"main_tracking_dates": {
"pickup_date": {
"date": "2021-09-20T10:02:09+01:00"
},
"departure_date": {
"date": "2021-09-20T10:02:09+01:00"
},
"arrival_date": {
"date": "2021-09-20T10:02:09+01:00"
},
"delivery_date": {
"date": "2021-09-20T10:02:09+01:00"
}
},
"booking_information": {
"carrier": "CMA CGM",
"master_bill": "LHV1190703558",
"house_bill": "HOUSEREF12357",
"ocean_booking": {
"booking_number": "TWLEH2106004",
"voyage": "033E",
"vessel": "CMA CGM Jacques Saadé"
},
"air_booking": {
"flight_number": "AF256",
"chargeable_weight": {
"value": 350.25,
"unit": "kg"
}
}
},
"invoice_references": [
"FAC2022-9567"
],
"accepted_quote": {
"id": "325",
"request_date": "2021-09-20T10:02:09+01:00",
"accepted_date": "2021-09-20T10:02:09+01:00"
}
}
]{}Response
Shipments found
Example:
"June Air Export USA"
Example:
"CDEF"
Available options:
booking_request, awaiting_booking, booked, draft, in_progress, finished, cancelled Date of shipment creation
Example:
"2021-09-20T10:02:09+01:00"
Available options:
exw, fca, fas, fob, cpt, cfr, cif, cip, dap, ddp, dpu, dat Example:
"fob"
Available options:
air, ocean, rail, truck Available options:
fcl, lcl, both Available options:
port_to_door, door_to_port, door_to_door, port_to_port Show child attributes
Show child attributes
Example:
"2021-10-11"
Example:
"2021-10-11"
Optional field containing specific instruction given by the client
Example:
"DHL"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
available, awaiting_invoice, due, paid, partially_paid Show child attributes
Show child attributes
⌘I
