Fetch products delivery overview reporting
curl --request GET \
--url localhost:///8080/v1/reporting/productsimport requests
url = "localhost:///8080/v1/reporting/products"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('localhost:///8080/v1/reporting/products', 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/reporting/products",
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/reporting/products"
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/reporting/products")
.asString();require 'uri'
require 'net/http'
url = URI("localhost:///8080/v1/reporting/products")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"Sku - Product Reference": "<string>",
"Shipment Name": "<string>",
"ONECHAIN id": "<string>",
"Quantity": 123,
"Planned Arrival Date (Destination Port)": "<string>",
"Planned Delivery Date": "<string>",
"Port of Loading": "<string>",
"Port of Discharge": "<string>",
"Freight Mode": "<string>",
"Shipment Status": "<string>",
"Parties involved": "<string>",
"Total shipment cost per unit": 123,
"Total shipment CO2e emissions per unit (kg)": 123
}
]Reporting
Fetch products delivery overview reporting
Fetch products delivery overview reporting
Fetch products delivery overview reporting
curl --request GET \
--url localhost:///8080/v1/reporting/productsimport requests
url = "localhost:///8080/v1/reporting/products"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('localhost:///8080/v1/reporting/products', 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/reporting/products",
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/reporting/products"
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/reporting/products")
.asString();require 'uri'
require 'net/http'
url = URI("localhost:///8080/v1/reporting/products")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"Sku - Product Reference": "<string>",
"Shipment Name": "<string>",
"ONECHAIN id": "<string>",
"Quantity": 123,
"Planned Arrival Date (Destination Port)": "<string>",
"Planned Delivery Date": "<string>",
"Port of Loading": "<string>",
"Port of Discharge": "<string>",
"Freight Mode": "<string>",
"Shipment Status": "<string>",
"Parties involved": "<string>",
"Total shipment cost per unit": 123,
"Total shipment CO2e emissions per unit (kg)": 123
}
]Response
200 - application/json
Returns reporting.
⌘I
