curl --request GET \
--url https://app.smartsend.io/api/v2/team/{team}/shipments \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.smartsend.io/api/v2/team/{team}/shipments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.smartsend.io/api/v2/team/{team}/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_URL => "https://app.smartsend.io/api/v2/team/{team}/shipments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.smartsend.io/api/v2/team/{team}/shipments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.smartsend.io/api/v2/team/{team}/shipments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.smartsend.io/api/v2/team/{team}/shipments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"state": "open",
"currency": "EUR",
"weight_unit": "g",
"dimension_unit": "cm",
"invoice_number": "INV-1001121",
"reference": "Order-5521",
"identifier": "<string>",
"uri": "<string>",
"delivery": {
"carrier_code": "postnord",
"carrier_name": "PostNord",
"carrier_logo_url": "<string>",
"carrier_icon_url": "<string>",
"service_code": "postnord_agent",
"service_name": "Pickup Point",
"is_pickup": true,
"is_return": true,
"addons": [
{
"code": "SIGNATURE",
"name": "Signature"
}
],
"incoterm": "DAP"
},
"parties": {
"receiver": {
"reference": "<string>",
"identifier": "<string>",
"uri": "<string>",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"contact": {
"name_lines": [
"John Doe",
"Att. Finance department"
],
"company": "Acme Corp",
"email": "john@example.com",
"phone": "+4512345678"
},
"identifiers": {
"vat": "DK12345678",
"eori": "DK1234567890123",
"gb_eori": "GB123456789000",
"tax_id": "DK1234567890",
"voec": "2000123"
}
},
"pickup": {
"service_point_code": "12345",
"company": "Netto Nørrebrogade",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"reference": "<string>",
"identifier": "<string>",
"uri": "<string>"
}
},
"parcels": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"identifier": "<string>",
"tracking_code": "00340434161094015749",
"tracking_url": "https://track.smartsend.io/00340434161094015749",
"freetext": "Gift wrapped as per requested",
"gross_weight": 1500,
"length": 30,
"width": 20,
"height": 15,
"total_net_amount": 15920,
"tax_amount": 3980,
"duty_amount": 5572,
"items": [
{
"reference": "<string>",
"identifier": "<string>",
"uri": "<string>",
"image_url": "https://www.example.com/products/1234-image1.jpeg",
"sku": "PROD-001",
"location": "AA-01-B45-C",
"name": "Widget",
"description": "<string>",
"tariff_code": "8471300000",
"country_of_origin": "CN",
"quantity": 2,
"total_net_amount": 15920,
"tax_amount": 3980,
"duty_amount": 5572,
"net_weight": 550,
"cost_amount": 5300
}
],
"documents": [
{
"type": "label",
"format": "pdf",
"url": "<string>"
}
]
}
],
"total_net_amount": 15920,
"tax_amount": 3980,
"duty_amount": 5572,
"shipping_net_amount": 3920,
"shipping_tax_amount": 980,
"created_at": "2023-11-07T05:31:56Z",
"booked_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"current_page": 1,
"per_page": 100,
"total": 2500,
"last_page": 25,
"from": 1,
"to": 100
}
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name is required."
]
}
}{
"message": "<string>"
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}List shipments
Returns a paginated list of shipments, sorted by most recent first. Supports filtering by carrier, service, tracking number, and state.
curl --request GET \
--url https://app.smartsend.io/api/v2/team/{team}/shipments \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.smartsend.io/api/v2/team/{team}/shipments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.smartsend.io/api/v2/team/{team}/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_URL => "https://app.smartsend.io/api/v2/team/{team}/shipments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.smartsend.io/api/v2/team/{team}/shipments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.smartsend.io/api/v2/team/{team}/shipments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.smartsend.io/api/v2/team/{team}/shipments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"state": "open",
"currency": "EUR",
"weight_unit": "g",
"dimension_unit": "cm",
"invoice_number": "INV-1001121",
"reference": "Order-5521",
"identifier": "<string>",
"uri": "<string>",
"delivery": {
"carrier_code": "postnord",
"carrier_name": "PostNord",
"carrier_logo_url": "<string>",
"carrier_icon_url": "<string>",
"service_code": "postnord_agent",
"service_name": "Pickup Point",
"is_pickup": true,
"is_return": true,
"addons": [
{
"code": "SIGNATURE",
"name": "Signature"
}
],
"incoterm": "DAP"
},
"parties": {
"receiver": {
"reference": "<string>",
"identifier": "<string>",
"uri": "<string>",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"contact": {
"name_lines": [
"John Doe",
"Att. Finance department"
],
"company": "Acme Corp",
"email": "john@example.com",
"phone": "+4512345678"
},
"identifiers": {
"vat": "DK12345678",
"eori": "DK1234567890123",
"gb_eori": "GB123456789000",
"tax_id": "DK1234567890",
"voec": "2000123"
}
},
"pickup": {
"service_point_code": "12345",
"company": "Netto Nørrebrogade",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"reference": "<string>",
"identifier": "<string>",
"uri": "<string>"
}
},
"parcels": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"identifier": "<string>",
"tracking_code": "00340434161094015749",
"tracking_url": "https://track.smartsend.io/00340434161094015749",
"freetext": "Gift wrapped as per requested",
"gross_weight": 1500,
"length": 30,
"width": 20,
"height": 15,
"total_net_amount": 15920,
"tax_amount": 3980,
"duty_amount": 5572,
"items": [
{
"reference": "<string>",
"identifier": "<string>",
"uri": "<string>",
"image_url": "https://www.example.com/products/1234-image1.jpeg",
"sku": "PROD-001",
"location": "AA-01-B45-C",
"name": "Widget",
"description": "<string>",
"tariff_code": "8471300000",
"country_of_origin": "CN",
"quantity": 2,
"total_net_amount": 15920,
"tax_amount": 3980,
"duty_amount": 5572,
"net_weight": 550,
"cost_amount": 5300
}
],
"documents": [
{
"type": "label",
"format": "pdf",
"url": "<string>"
}
]
}
],
"total_net_amount": 15920,
"tax_amount": 3980,
"duty_amount": 5572,
"shipping_net_amount": 3920,
"shipping_tax_amount": 980,
"created_at": "2023-11-07T05:31:56Z",
"booked_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"current_page": 1,
"per_page": 100,
"total": 2500,
"last_page": 25,
"from": 1,
"to": 100
}
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name is required."
]
}
}{
"message": "<string>"
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Preferred language(s) for translatable content using BCP 47 language tags. Supports quality values (q-factors) for priority ordering. The API negotiates the best available language based on this header, the team's configured language, and available translations. If omitted, the team's default language is used.
"da-DK, da;q=0.9, en;q=0.8"
Any value passed in this request will be returned in the same header. This can be used to correlate requests between client and server.
1 - 128^[A-Za-z0-9._-]{1,128}$Path Parameters
Team identifier. All resources are scoped to this team.
1"ad9546c1-393e-49a5-9a72-5cc146c9bec5"
Query Parameters
Filter by carrier code
"postnord"
Filter by service code
"postnord_agent"
Filter by parcel tracking number
Filter by shipment state Current state of the shipment in the booking lifecycle
open, queued, booked, cancelled, failed Page number for pagination
x >= 1Number of shipments per page
1 <= x <= 1000Was this page helpful?