Retrieve a list of shipments
curl --request GET \
--url https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://panel.sendcloud.sc/api/v2/integrations/{id}/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://panel.sendcloud.sc/api/v2/integrations/{id}/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: Basic <encoded-value>"
],
]);
$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://panel.sendcloud.sc/api/v2/integrations/{id}/shipments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"address": "Lansdown Glade",
"address_2": "string",
"allowed_shipping_methods": [
0
],
"barcode": "string",
"city": "Oss",
"company_name": "string",
"country": "AW",
"created_at": "2019-08-24T14:15:22Z",
"currency": "EUR",
"customs_invoice_nr": "120",
"customs_shipment_type": 0,
"email": "user@example.com",
"external_order_id": "555413",
"external_shipment_id": "777413",
"house_number": "15",
"integration": 0,
"name": "John Doe",
"order_number": "OXSDFGHTD-12",
"order_status": {
"id": "fulfilled",
"message": "Fulfilled"
},
"parcel_items": [
{
"description": "Very orange color",
"hs_code": "01013000",
"origin_country": "AW",
"product_id": "1458734634",
"properties": {
"size": "small",
"colour": "red"
},
"quantity": 2,
"sku": "WW-DR-GR-XS-001",
"value": "3.5",
"weight": "1",
"mid_code": "NLOZR92MEL",
"material_content": "100% Cotton",
"intended_use": "Personal use"
}
],
"payment_status": {
"id": "paid",
"message": "Paid"
},
"postal_code": "5341",
"sender_address": 12345,
"shipment_uuid": "6b436cb2-65a4-482c-9d25-38be7868ff00",
"shipping_method": 12345,
"shipping_method_checkout_name": "string",
"telephone": "string",
"to_post_number": "string",
"to_service_point": 0,
"to_state": "string",
"total_order_value": "string",
"updated_at": "2019-08-24T14:15:22Z",
"weight": "string",
"checkout_payload": {
"sender_address_id": 0,
"shipping_product": {
"code": "postnl:standard",
"name": "PostNL Standard",
"selected_functionalities": {
"age_check": 18,
"last_mile": "home_delivery",
"first_mile": "pickup_dropoff",
"multicollo": true,
"form_factor": "parcel",
"service_area": "domestic",
"weekend_delivery": "saturday",
"delivery_deadline": "best_effort",
"direct_contract_only": false
}
},
"delivery_method_type": "string",
"delivery_method_data": {
"delivery_date": "2019-08-24T14:15:22Z",
"formatted_delivery_date": "string",
"parcel_handover_date": "2019-08-24T14:15:22Z"
}
},
"width": "string",
"height": "string",
"length": "string",
"customs_details": {
"discount_granted": "3.99",
"insurance_costs": "9.99",
"freight_costs": "5.99",
"other_costs": "2.99",
"tax_numbers": {
"sender": [
{
"tax_number": {
"name": "VAT",
"country": "NL",
"value": "NL987654321B02"
}
}
],
"receiver": [
{
"tax_number": {
"name": "VAT",
"country": "DE",
"value": "DE123456789B03"
}
}
],
"importer_of_records": [
{
"tax_number": {
"name": "VAT",
"country": "NL",
"value": "NL975318642B01"
}
}
]
}
},
"shipment_created_at": "2019-09-25T14:15:22Z",
"shipment_updated_at": "2019-09-25T14:15:22Z"
}
]
}
Manage shipments from integrations
Retrieve a list of shipments
Retrieve a list of orders that were imported from a specific webshop integration.
GET
/
integrations
/
{id}
/
shipments
Retrieve a list of shipments
curl --request GET \
--url https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://panel.sendcloud.sc/api/v2/integrations/{id}/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://panel.sendcloud.sc/api/v2/integrations/{id}/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: Basic <encoded-value>"
],
]);
$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://panel.sendcloud.sc/api/v2/integrations/{id}/shipments"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"address": "Lansdown Glade",
"address_2": "string",
"allowed_shipping_methods": [
0
],
"barcode": "string",
"city": "Oss",
"company_name": "string",
"country": "AW",
"created_at": "2019-08-24T14:15:22Z",
"currency": "EUR",
"customs_invoice_nr": "120",
"customs_shipment_type": 0,
"email": "user@example.com",
"external_order_id": "555413",
"external_shipment_id": "777413",
"house_number": "15",
"integration": 0,
"name": "John Doe",
"order_number": "OXSDFGHTD-12",
"order_status": {
"id": "fulfilled",
"message": "Fulfilled"
},
"parcel_items": [
{
"description": "Very orange color",
"hs_code": "01013000",
"origin_country": "AW",
"product_id": "1458734634",
"properties": {
"size": "small",
"colour": "red"
},
"quantity": 2,
"sku": "WW-DR-GR-XS-001",
"value": "3.5",
"weight": "1",
"mid_code": "NLOZR92MEL",
"material_content": "100% Cotton",
"intended_use": "Personal use"
}
],
"payment_status": {
"id": "paid",
"message": "Paid"
},
"postal_code": "5341",
"sender_address": 12345,
"shipment_uuid": "6b436cb2-65a4-482c-9d25-38be7868ff00",
"shipping_method": 12345,
"shipping_method_checkout_name": "string",
"telephone": "string",
"to_post_number": "string",
"to_service_point": 0,
"to_state": "string",
"total_order_value": "string",
"updated_at": "2019-08-24T14:15:22Z",
"weight": "string",
"checkout_payload": {
"sender_address_id": 0,
"shipping_product": {
"code": "postnl:standard",
"name": "PostNL Standard",
"selected_functionalities": {
"age_check": 18,
"last_mile": "home_delivery",
"first_mile": "pickup_dropoff",
"multicollo": true,
"form_factor": "parcel",
"service_area": "domestic",
"weekend_delivery": "saturday",
"delivery_deadline": "best_effort",
"direct_contract_only": false
}
},
"delivery_method_type": "string",
"delivery_method_data": {
"delivery_date": "2019-08-24T14:15:22Z",
"formatted_delivery_date": "string",
"parcel_handover_date": "2019-08-24T14:15:22Z"
}
},
"width": "string",
"height": "string",
"length": "string",
"customs_details": {
"discount_granted": "3.99",
"insurance_costs": "9.99",
"freight_costs": "5.99",
"other_costs": "2.99",
"tax_numbers": {
"sender": [
{
"tax_number": {
"name": "VAT",
"country": "NL",
"value": "NL987654321B02"
}
}
],
"receiver": [
{
"tax_number": {
"name": "VAT",
"country": "DE",
"value": "DE123456789B03"
}
}
],
"importer_of_records": [
{
"tax_number": {
"name": "VAT",
"country": "NL",
"value": "NL975318642B01"
}
}
]
}
},
"shipment_created_at": "2019-09-25T14:15:22Z",
"shipment_updated_at": "2019-09-25T14:15:22Z"
}
]
}
OAuth2 scopes required:
read:order. See Scopes for OAuth apps.API v2 is entering maintenance mode. New users should start with API v3 to access our latest features and improved performance. Already using v2? Don’t worry, your current integration remains fully functional. Read more about maintenance mode, or check out the migration guide for API v3.
results via the URLs provided within the next and previous fields.Authorizations
HTTPBasicAuthOAuth2ClientCreds
Query Parameters
The cursor query string will be used as the pivot value to filter results. If no value is provided, the service must return the first page. The value is Base64 encoded GET parameters. example: For a cursor string there are 3 possible parameters to encode:
- o: Offset
- r: Reverse
- p: Position Combine into GET parameters. Example: r=1&p=300 Base 64 encoded it would become: cj0xJnA9MzAw GET parameter in url would be https://some.url.com/api/endpoint/?cursor=cj0xJnA9MzAw
Example:
"cj0xJnA9MzAw"
Response
OK