curl --request GET \
--url https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber} \
--header 'x-api-key: <api-key>'import requests
url = "https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"trackingNumber": "CK662764245",
"status": "In transito",
"shipmentDate": "2023-11-07T05:31:56Z",
"expectedDeliveryDate": "2023-11-07T05:31:56Z",
"deliveredDate": "2023-11-07T05:31:56Z",
"parcelNumber": 1,
"weight": "2.50",
"volume": "12000.00",
"trackingUrl": "https://gls-group.com/IT/it/servizi-online/ricerca-spedizioni?type=NAT&match=CK662764245",
"orderNumber": "ORD-2024-001",
"marketplaceOrderNumber": "MKT-2048-12345",
"carrier": {
"name": "GLS",
"logoUrl": "https://cdn.example.com/gls.png"
},
"recipient": {
"companyName": "Rossi S.r.l.",
"address": "Via Roma 1",
"postalCode": "10121",
"city": "Torino",
"province": "TO",
"country": "Italia",
"countryCode": "IT"
},
"timeline": [
{
"timestamp": "2024-06-15T14:30:00.000Z",
"statusCode": "03",
"label": "In transito",
"description": "Spedizione in viaggio verso il hub",
"location": "Milano, MI",
"note": "Consegna prevista entro 48h"
}
],
"relatedShipments": [
{
"id": 9876,
"type": "forward",
"trackingNumber": "CK662764245",
"carrierName": "BRT",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]Tracking per numero ordine marketplace
Restituisce un array con il dettaglio tracking di tutte le spedizioni collegate agli ordini la cui marketplaceOrderNumber corrisponde al valore orderNumber nel path (match esatto, non il numero ordine interno). Restituisce 404 se non esistono ordini o spedizioni per la company dell’API key. Richiede scope shipments:tracking.
curl --request GET \
--url https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber} \
--header 'x-api-key: <api-key>'import requests
url = "https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://service.e-manager.io/api/v1/integrations/shipments/tracking/by-order-number/{orderNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"trackingNumber": "CK662764245",
"status": "In transito",
"shipmentDate": "2023-11-07T05:31:56Z",
"expectedDeliveryDate": "2023-11-07T05:31:56Z",
"deliveredDate": "2023-11-07T05:31:56Z",
"parcelNumber": 1,
"weight": "2.50",
"volume": "12000.00",
"trackingUrl": "https://gls-group.com/IT/it/servizi-online/ricerca-spedizioni?type=NAT&match=CK662764245",
"orderNumber": "ORD-2024-001",
"marketplaceOrderNumber": "MKT-2048-12345",
"carrier": {
"name": "GLS",
"logoUrl": "https://cdn.example.com/gls.png"
},
"recipient": {
"companyName": "Rossi S.r.l.",
"address": "Via Roma 1",
"postalCode": "10121",
"city": "Torino",
"province": "TO",
"country": "Italia",
"countryCode": "IT"
},
"timeline": [
{
"timestamp": "2024-06-15T14:30:00.000Z",
"statusCode": "03",
"label": "In transito",
"description": "Spedizione in viaggio verso il hub",
"location": "Milano, MI",
"note": "Consegna prevista entro 48h"
}
],
"relatedShipments": [
{
"id": 9876,
"type": "forward",
"trackingNumber": "CK662764245",
"carrierName": "BRT",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]Authorizations
Path Parameters
Numero ordine marketplace (orders.marketplace_order_number)
"MKT-2048-12345"
Response
"CK662764245"
Etichetta stato spedizione
"In transito"
Numero colli
1
Peso in kg
"2.50"
Volume in cm³
"12000.00"
"https://gls-group.com/IT/it/servizi-online/ricerca-spedizioni?type=NAT&match=CK662764245"
Numero ordine interno E-Manager
"ORD-2024-001"
Numero ordine marketplace
"MKT-2048-12345"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Spedizioni correlate (padre, inoltri, resi). Omesso se nessuna relazione.
Show child attributes
Show child attributes
Was this page helpful?

