curl --request POST \
--url https://panel.sendcloud.sc/api/v3/parcels/tracking \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"announced_at": "2024-01-01T00:00:00Z",
"details": {
"brand_id": 123,
"integration_id": 456,
"is_return": false
},
"from_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"insurance": {
"currency": "EUR",
"policy_id": "POL123",
"value": 500
},
"parcel_items": [
{
"description": "T-Shirt XL",
"hs_code": "620520",
"intended_use": "Personal use",
"item_id": "5552",
"material_content": "100% Cotton",
"mid_code": "NLOZR92MEL",
"origin_country": "NL",
"product_id": "19284",
"properties": {
"color": "green",
"size": "red"
},
"quantity": 1,
"sku": "TS1234",
"price": {
"currency": "EUR",
"value": "6.15"
},
"weight": {
"unit": "kg",
"value": 6
}
}
],
"measurements": {
"dimension": {
"height": 3,
"length": 2,
"unit": "m",
"width": 4
},
"volume": {
"unit": "cm3",
"value": 35
},
"weight": {
"unit": "g",
"value": 82
}
},
"return_price": {
"currency": "EUR",
"value": "76.64"
},
"ship_with": {
"type": "shipping_option_code",
"properties": {
"contract_id": 517,
"shipping_option_code": "postnl:standard"
}
},
"shipment": {
"external_reference_id": "REF123",
"order": {
"order_number": "ORD123",
"source_external_id": "EXT789",
"source_id": "order_456",
"total_order_price": {
"currency": "EUR",
"value": "76.64"
}
},
"price": {
"currency": "EUR",
"value": "76.64"
},
"source_id": "shipment_789"
},
"source_id": "1234",
"to_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"tracking_number": {
"carrier_code": "dhl",
"tracking_number": "TRACK123456789",
"tracking_url": "https://track.carrier.com/TRACK123456789"
}
}
'import requests
url = "https://panel.sendcloud.sc/api/v3/parcels/tracking"
payload = {
"announced_at": "2024-01-01T00:00:00Z",
"details": {
"brand_id": 123,
"integration_id": 456,
"is_return": False
},
"from_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"insurance": {
"currency": "EUR",
"policy_id": "POL123",
"value": 500
},
"parcel_items": [
{
"description": "T-Shirt XL",
"hs_code": "620520",
"intended_use": "Personal use",
"item_id": "5552",
"material_content": "100% Cotton",
"mid_code": "NLOZR92MEL",
"origin_country": "NL",
"product_id": "19284",
"properties": {
"color": "green",
"size": "red"
},
"quantity": 1,
"sku": "TS1234",
"price": {
"currency": "EUR",
"value": "6.15"
},
"weight": {
"unit": "kg",
"value": 6
}
}
],
"measurements": {
"dimension": {
"height": 3,
"length": 2,
"unit": "m",
"width": 4
},
"volume": {
"unit": "cm3",
"value": 35
},
"weight": {
"unit": "g",
"value": 82
}
},
"return_price": {
"currency": "EUR",
"value": "76.64"
},
"ship_with": {
"type": "shipping_option_code",
"properties": {
"contract_id": 517,
"shipping_option_code": "postnl:standard"
}
},
"shipment": {
"external_reference_id": "REF123",
"order": {
"order_number": "ORD123",
"source_external_id": "EXT789",
"source_id": "order_456",
"total_order_price": {
"currency": "EUR",
"value": "76.64"
}
},
"price": {
"currency": "EUR",
"value": "76.64"
},
"source_id": "shipment_789"
},
"source_id": "1234",
"to_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"tracking_number": {
"carrier_code": "dhl",
"tracking_number": "TRACK123456789",
"tracking_url": "https://track.carrier.com/TRACK123456789"
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
announced_at: '2024-01-01T00:00:00Z',
details: {brand_id: 123, integration_id: 456, is_return: false},
from_address: {
address_line_1: '33 rue de Stalingrad',
address_line_2: '',
city: 'Cermenate',
company_name: 'Company',
country_code: 'IT',
email: 'billing@mail.com',
house_number: '45',
name: 'Laurent Kuchto',
phone_number: '',
po_box: '12345',
postal_code: '78500',
state_province_code: 'IT-CO'
},
insurance: {currency: 'EUR', policy_id: 'POL123', value: 500},
parcel_items: [
{
description: 'T-Shirt XL',
hs_code: '620520',
intended_use: 'Personal use',
item_id: '5552',
material_content: '100% Cotton',
mid_code: 'NLOZR92MEL',
origin_country: 'NL',
product_id: '19284',
properties: {color: 'green', size: 'red'},
quantity: 1,
sku: 'TS1234',
price: {currency: 'EUR', value: '6.15'},
weight: {unit: 'kg', value: 6}
}
],
measurements: {
dimension: {height: 3, length: 2, unit: 'm', width: 4},
volume: {unit: 'cm3', value: 35},
weight: {unit: 'g', value: 82}
},
return_price: {currency: 'EUR', value: '76.64'},
ship_with: {
type: 'shipping_option_code',
properties: {contract_id: 517, shipping_option_code: 'postnl:standard'}
},
shipment: {
external_reference_id: 'REF123',
order: {
order_number: 'ORD123',
source_external_id: 'EXT789',
source_id: 'order_456',
total_order_price: {currency: 'EUR', value: '76.64'}
},
price: {currency: 'EUR', value: '76.64'},
source_id: 'shipment_789'
},
source_id: '1234',
to_address: {
address_line_1: '33 rue de Stalingrad',
address_line_2: '',
city: 'Cermenate',
company_name: 'Company',
country_code: 'IT',
email: 'billing@mail.com',
house_number: '45',
name: 'Laurent Kuchto',
phone_number: '',
po_box: '12345',
postal_code: '78500',
state_province_code: 'IT-CO'
},
tracking_number: {
carrier_code: 'dhl',
tracking_number: 'TRACK123456789',
tracking_url: 'https://track.carrier.com/TRACK123456789'
}
})
};
fetch('https://panel.sendcloud.sc/api/v3/parcels/tracking', 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/v3/parcels/tracking",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'announced_at' => '2024-01-01T00:00:00Z',
'details' => [
'brand_id' => 123,
'integration_id' => 456,
'is_return' => false
],
'from_address' => [
'address_line_1' => '33 rue de Stalingrad',
'address_line_2' => '',
'city' => 'Cermenate',
'company_name' => 'Company',
'country_code' => 'IT',
'email' => 'billing@mail.com',
'house_number' => '45',
'name' => 'Laurent Kuchto',
'phone_number' => '',
'po_box' => '12345',
'postal_code' => '78500',
'state_province_code' => 'IT-CO'
],
'insurance' => [
'currency' => 'EUR',
'policy_id' => 'POL123',
'value' => 500
],
'parcel_items' => [
[
'description' => 'T-Shirt XL',
'hs_code' => '620520',
'intended_use' => 'Personal use',
'item_id' => '5552',
'material_content' => '100% Cotton',
'mid_code' => 'NLOZR92MEL',
'origin_country' => 'NL',
'product_id' => '19284',
'properties' => [
'color' => 'green',
'size' => 'red'
],
'quantity' => 1,
'sku' => 'TS1234',
'price' => [
'currency' => 'EUR',
'value' => '6.15'
],
'weight' => [
'unit' => 'kg',
'value' => 6
]
]
],
'measurements' => [
'dimension' => [
'height' => 3,
'length' => 2,
'unit' => 'm',
'width' => 4
],
'volume' => [
'unit' => 'cm3',
'value' => 35
],
'weight' => [
'unit' => 'g',
'value' => 82
]
],
'return_price' => [
'currency' => 'EUR',
'value' => '76.64'
],
'ship_with' => [
'type' => 'shipping_option_code',
'properties' => [
'contract_id' => 517,
'shipping_option_code' => 'postnl:standard'
]
],
'shipment' => [
'external_reference_id' => 'REF123',
'order' => [
'order_number' => 'ORD123',
'source_external_id' => 'EXT789',
'source_id' => 'order_456',
'total_order_price' => [
'currency' => 'EUR',
'value' => '76.64'
]
],
'price' => [
'currency' => 'EUR',
'value' => '76.64'
],
'source_id' => 'shipment_789'
],
'source_id' => '1234',
'to_address' => [
'address_line_1' => '33 rue de Stalingrad',
'address_line_2' => '',
'city' => 'Cermenate',
'company_name' => 'Company',
'country_code' => 'IT',
'email' => 'billing@mail.com',
'house_number' => '45',
'name' => 'Laurent Kuchto',
'phone_number' => '',
'po_box' => '12345',
'postal_code' => '78500',
'state_province_code' => 'IT-CO'
],
'tracking_number' => [
'carrier_code' => 'dhl',
'tracking_number' => 'TRACK123456789',
'tracking_url' => 'https://track.carrier.com/TRACK123456789'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://panel.sendcloud.sc/api/v3/parcels/tracking"
payload := strings.NewReader("{\n \"announced_at\": \"2024-01-01T00:00:00Z\",\n \"details\": {\n \"brand_id\": 123,\n \"integration_id\": 456,\n \"is_return\": false\n },\n \"from_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"insurance\": {\n \"currency\": \"EUR\",\n \"policy_id\": \"POL123\",\n \"value\": 500\n },\n \"parcel_items\": [\n {\n \"description\": \"T-Shirt XL\",\n \"hs_code\": \"620520\",\n \"intended_use\": \"Personal use\",\n \"item_id\": \"5552\",\n \"material_content\": \"100% Cotton\",\n \"mid_code\": \"NLOZR92MEL\",\n \"origin_country\": \"NL\",\n \"product_id\": \"19284\",\n \"properties\": {\n \"color\": \"green\",\n \"size\": \"red\"\n },\n \"quantity\": 1,\n \"sku\": \"TS1234\",\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"6.15\"\n },\n \"weight\": {\n \"unit\": \"kg\",\n \"value\": 6\n }\n }\n ],\n \"measurements\": {\n \"dimension\": {\n \"height\": 3,\n \"length\": 2,\n \"unit\": \"m\",\n \"width\": 4\n },\n \"volume\": {\n \"unit\": \"cm3\",\n \"value\": 35\n },\n \"weight\": {\n \"unit\": \"g\",\n \"value\": 82\n }\n },\n \"return_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"ship_with\": {\n \"type\": \"shipping_option_code\",\n \"properties\": {\n \"contract_id\": 517,\n \"shipping_option_code\": \"postnl:standard\"\n }\n },\n \"shipment\": {\n \"external_reference_id\": \"REF123\",\n \"order\": {\n \"order_number\": \"ORD123\",\n \"source_external_id\": \"EXT789\",\n \"source_id\": \"order_456\",\n \"total_order_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n }\n },\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"source_id\": \"shipment_789\"\n },\n \"source_id\": \"1234\",\n \"to_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"tracking_number\": {\n \"carrier_code\": \"dhl\",\n \"tracking_number\": \"TRACK123456789\",\n \"tracking_url\": \"https://track.carrier.com/TRACK123456789\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://panel.sendcloud.sc/api/v3/parcels/tracking")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"announced_at\": \"2024-01-01T00:00:00Z\",\n \"details\": {\n \"brand_id\": 123,\n \"integration_id\": 456,\n \"is_return\": false\n },\n \"from_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"insurance\": {\n \"currency\": \"EUR\",\n \"policy_id\": \"POL123\",\n \"value\": 500\n },\n \"parcel_items\": [\n {\n \"description\": \"T-Shirt XL\",\n \"hs_code\": \"620520\",\n \"intended_use\": \"Personal use\",\n \"item_id\": \"5552\",\n \"material_content\": \"100% Cotton\",\n \"mid_code\": \"NLOZR92MEL\",\n \"origin_country\": \"NL\",\n \"product_id\": \"19284\",\n \"properties\": {\n \"color\": \"green\",\n \"size\": \"red\"\n },\n \"quantity\": 1,\n \"sku\": \"TS1234\",\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"6.15\"\n },\n \"weight\": {\n \"unit\": \"kg\",\n \"value\": 6\n }\n }\n ],\n \"measurements\": {\n \"dimension\": {\n \"height\": 3,\n \"length\": 2,\n \"unit\": \"m\",\n \"width\": 4\n },\n \"volume\": {\n \"unit\": \"cm3\",\n \"value\": 35\n },\n \"weight\": {\n \"unit\": \"g\",\n \"value\": 82\n }\n },\n \"return_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"ship_with\": {\n \"type\": \"shipping_option_code\",\n \"properties\": {\n \"contract_id\": 517,\n \"shipping_option_code\": \"postnl:standard\"\n }\n },\n \"shipment\": {\n \"external_reference_id\": \"REF123\",\n \"order\": {\n \"order_number\": \"ORD123\",\n \"source_external_id\": \"EXT789\",\n \"source_id\": \"order_456\",\n \"total_order_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n }\n },\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"source_id\": \"shipment_789\"\n },\n \"source_id\": \"1234\",\n \"to_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"tracking_number\": {\n \"carrier_code\": \"dhl\",\n \"tracking_number\": \"TRACK123456789\",\n \"tracking_url\": \"https://track.carrier.com/TRACK123456789\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/parcels/tracking")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"announced_at\": \"2024-01-01T00:00:00Z\",\n \"details\": {\n \"brand_id\": 123,\n \"integration_id\": 456,\n \"is_return\": false\n },\n \"from_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"insurance\": {\n \"currency\": \"EUR\",\n \"policy_id\": \"POL123\",\n \"value\": 500\n },\n \"parcel_items\": [\n {\n \"description\": \"T-Shirt XL\",\n \"hs_code\": \"620520\",\n \"intended_use\": \"Personal use\",\n \"item_id\": \"5552\",\n \"material_content\": \"100% Cotton\",\n \"mid_code\": \"NLOZR92MEL\",\n \"origin_country\": \"NL\",\n \"product_id\": \"19284\",\n \"properties\": {\n \"color\": \"green\",\n \"size\": \"red\"\n },\n \"quantity\": 1,\n \"sku\": \"TS1234\",\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"6.15\"\n },\n \"weight\": {\n \"unit\": \"kg\",\n \"value\": 6\n }\n }\n ],\n \"measurements\": {\n \"dimension\": {\n \"height\": 3,\n \"length\": 2,\n \"unit\": \"m\",\n \"width\": 4\n },\n \"volume\": {\n \"unit\": \"cm3\",\n \"value\": 35\n },\n \"weight\": {\n \"unit\": \"g\",\n \"value\": 82\n }\n },\n \"return_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"ship_with\": {\n \"type\": \"shipping_option_code\",\n \"properties\": {\n \"contract_id\": 517,\n \"shipping_option_code\": \"postnl:standard\"\n }\n },\n \"shipment\": {\n \"external_reference_id\": \"REF123\",\n \"order\": {\n \"order_number\": \"ORD123\",\n \"source_external_id\": \"EXT789\",\n \"source_id\": \"order_456\",\n \"total_order_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n }\n },\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"source_id\": \"shipment_789\"\n },\n \"source_id\": \"1234\",\n \"to_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"tracking_number\": {\n \"carrier_code\": \"dhl\",\n \"tracking_number\": \"TRACK123456789\",\n \"tracking_url\": \"https://track.carrier.com/TRACK123456789\"\n }\n}"
response = http.request(request)
puts response.read_body{
"announced_at": "2024-01-01T00:00:00Z",
"created": true,
"created_at": "2024-01-01T00:00:00Z",
"details": {
"brand_id": 123,
"integration_id": 456,
"is_return": false
},
"from_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"parcel_items": [
{
"description": "T-Shirt XL",
"hs_code": "620520",
"intended_use": "Personal use",
"item_id": "5552",
"material_content": "100% Cotton",
"mid_code": "NLOZR92MEL",
"origin_country": "NL",
"product_id": "19284",
"properties": {
"color": "green",
"size": "red"
},
"quantity": 1,
"sku": "TS1234",
"source_id": "123abc",
"price": {
"currency": "EUR",
"value": "6.15"
},
"weight": {
"unit": "kg",
"value": 0.4
}
}
],
"ship_with": {
"type": "shipping_option_code",
"properties": {
"contract_id": 517,
"shipping_option_code": "postnl:standard"
}
},
"source_id": "1234",
"to_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"tracking_numbers": [
{
"carrier_code": "dhl",
"tracking_number": "TRACK123456789",
"tracking_url": "https://track.carrier.com/TRACK123456789"
}
]
}{
"detail": "Parcel or tracking number already exists"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create an external parcel for tracking
Register an external parcel in the Sendcloud system for tracking, based on the provided details. It requires a valid tracking number and parcel information.
curl --request POST \
--url https://panel.sendcloud.sc/api/v3/parcels/tracking \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"announced_at": "2024-01-01T00:00:00Z",
"details": {
"brand_id": 123,
"integration_id": 456,
"is_return": false
},
"from_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"insurance": {
"currency": "EUR",
"policy_id": "POL123",
"value": 500
},
"parcel_items": [
{
"description": "T-Shirt XL",
"hs_code": "620520",
"intended_use": "Personal use",
"item_id": "5552",
"material_content": "100% Cotton",
"mid_code": "NLOZR92MEL",
"origin_country": "NL",
"product_id": "19284",
"properties": {
"color": "green",
"size": "red"
},
"quantity": 1,
"sku": "TS1234",
"price": {
"currency": "EUR",
"value": "6.15"
},
"weight": {
"unit": "kg",
"value": 6
}
}
],
"measurements": {
"dimension": {
"height": 3,
"length": 2,
"unit": "m",
"width": 4
},
"volume": {
"unit": "cm3",
"value": 35
},
"weight": {
"unit": "g",
"value": 82
}
},
"return_price": {
"currency": "EUR",
"value": "76.64"
},
"ship_with": {
"type": "shipping_option_code",
"properties": {
"contract_id": 517,
"shipping_option_code": "postnl:standard"
}
},
"shipment": {
"external_reference_id": "REF123",
"order": {
"order_number": "ORD123",
"source_external_id": "EXT789",
"source_id": "order_456",
"total_order_price": {
"currency": "EUR",
"value": "76.64"
}
},
"price": {
"currency": "EUR",
"value": "76.64"
},
"source_id": "shipment_789"
},
"source_id": "1234",
"to_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"tracking_number": {
"carrier_code": "dhl",
"tracking_number": "TRACK123456789",
"tracking_url": "https://track.carrier.com/TRACK123456789"
}
}
'import requests
url = "https://panel.sendcloud.sc/api/v3/parcels/tracking"
payload = {
"announced_at": "2024-01-01T00:00:00Z",
"details": {
"brand_id": 123,
"integration_id": 456,
"is_return": False
},
"from_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"insurance": {
"currency": "EUR",
"policy_id": "POL123",
"value": 500
},
"parcel_items": [
{
"description": "T-Shirt XL",
"hs_code": "620520",
"intended_use": "Personal use",
"item_id": "5552",
"material_content": "100% Cotton",
"mid_code": "NLOZR92MEL",
"origin_country": "NL",
"product_id": "19284",
"properties": {
"color": "green",
"size": "red"
},
"quantity": 1,
"sku": "TS1234",
"price": {
"currency": "EUR",
"value": "6.15"
},
"weight": {
"unit": "kg",
"value": 6
}
}
],
"measurements": {
"dimension": {
"height": 3,
"length": 2,
"unit": "m",
"width": 4
},
"volume": {
"unit": "cm3",
"value": 35
},
"weight": {
"unit": "g",
"value": 82
}
},
"return_price": {
"currency": "EUR",
"value": "76.64"
},
"ship_with": {
"type": "shipping_option_code",
"properties": {
"contract_id": 517,
"shipping_option_code": "postnl:standard"
}
},
"shipment": {
"external_reference_id": "REF123",
"order": {
"order_number": "ORD123",
"source_external_id": "EXT789",
"source_id": "order_456",
"total_order_price": {
"currency": "EUR",
"value": "76.64"
}
},
"price": {
"currency": "EUR",
"value": "76.64"
},
"source_id": "shipment_789"
},
"source_id": "1234",
"to_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"tracking_number": {
"carrier_code": "dhl",
"tracking_number": "TRACK123456789",
"tracking_url": "https://track.carrier.com/TRACK123456789"
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
announced_at: '2024-01-01T00:00:00Z',
details: {brand_id: 123, integration_id: 456, is_return: false},
from_address: {
address_line_1: '33 rue de Stalingrad',
address_line_2: '',
city: 'Cermenate',
company_name: 'Company',
country_code: 'IT',
email: 'billing@mail.com',
house_number: '45',
name: 'Laurent Kuchto',
phone_number: '',
po_box: '12345',
postal_code: '78500',
state_province_code: 'IT-CO'
},
insurance: {currency: 'EUR', policy_id: 'POL123', value: 500},
parcel_items: [
{
description: 'T-Shirt XL',
hs_code: '620520',
intended_use: 'Personal use',
item_id: '5552',
material_content: '100% Cotton',
mid_code: 'NLOZR92MEL',
origin_country: 'NL',
product_id: '19284',
properties: {color: 'green', size: 'red'},
quantity: 1,
sku: 'TS1234',
price: {currency: 'EUR', value: '6.15'},
weight: {unit: 'kg', value: 6}
}
],
measurements: {
dimension: {height: 3, length: 2, unit: 'm', width: 4},
volume: {unit: 'cm3', value: 35},
weight: {unit: 'g', value: 82}
},
return_price: {currency: 'EUR', value: '76.64'},
ship_with: {
type: 'shipping_option_code',
properties: {contract_id: 517, shipping_option_code: 'postnl:standard'}
},
shipment: {
external_reference_id: 'REF123',
order: {
order_number: 'ORD123',
source_external_id: 'EXT789',
source_id: 'order_456',
total_order_price: {currency: 'EUR', value: '76.64'}
},
price: {currency: 'EUR', value: '76.64'},
source_id: 'shipment_789'
},
source_id: '1234',
to_address: {
address_line_1: '33 rue de Stalingrad',
address_line_2: '',
city: 'Cermenate',
company_name: 'Company',
country_code: 'IT',
email: 'billing@mail.com',
house_number: '45',
name: 'Laurent Kuchto',
phone_number: '',
po_box: '12345',
postal_code: '78500',
state_province_code: 'IT-CO'
},
tracking_number: {
carrier_code: 'dhl',
tracking_number: 'TRACK123456789',
tracking_url: 'https://track.carrier.com/TRACK123456789'
}
})
};
fetch('https://panel.sendcloud.sc/api/v3/parcels/tracking', 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/v3/parcels/tracking",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'announced_at' => '2024-01-01T00:00:00Z',
'details' => [
'brand_id' => 123,
'integration_id' => 456,
'is_return' => false
],
'from_address' => [
'address_line_1' => '33 rue de Stalingrad',
'address_line_2' => '',
'city' => 'Cermenate',
'company_name' => 'Company',
'country_code' => 'IT',
'email' => 'billing@mail.com',
'house_number' => '45',
'name' => 'Laurent Kuchto',
'phone_number' => '',
'po_box' => '12345',
'postal_code' => '78500',
'state_province_code' => 'IT-CO'
],
'insurance' => [
'currency' => 'EUR',
'policy_id' => 'POL123',
'value' => 500
],
'parcel_items' => [
[
'description' => 'T-Shirt XL',
'hs_code' => '620520',
'intended_use' => 'Personal use',
'item_id' => '5552',
'material_content' => '100% Cotton',
'mid_code' => 'NLOZR92MEL',
'origin_country' => 'NL',
'product_id' => '19284',
'properties' => [
'color' => 'green',
'size' => 'red'
],
'quantity' => 1,
'sku' => 'TS1234',
'price' => [
'currency' => 'EUR',
'value' => '6.15'
],
'weight' => [
'unit' => 'kg',
'value' => 6
]
]
],
'measurements' => [
'dimension' => [
'height' => 3,
'length' => 2,
'unit' => 'm',
'width' => 4
],
'volume' => [
'unit' => 'cm3',
'value' => 35
],
'weight' => [
'unit' => 'g',
'value' => 82
]
],
'return_price' => [
'currency' => 'EUR',
'value' => '76.64'
],
'ship_with' => [
'type' => 'shipping_option_code',
'properties' => [
'contract_id' => 517,
'shipping_option_code' => 'postnl:standard'
]
],
'shipment' => [
'external_reference_id' => 'REF123',
'order' => [
'order_number' => 'ORD123',
'source_external_id' => 'EXT789',
'source_id' => 'order_456',
'total_order_price' => [
'currency' => 'EUR',
'value' => '76.64'
]
],
'price' => [
'currency' => 'EUR',
'value' => '76.64'
],
'source_id' => 'shipment_789'
],
'source_id' => '1234',
'to_address' => [
'address_line_1' => '33 rue de Stalingrad',
'address_line_2' => '',
'city' => 'Cermenate',
'company_name' => 'Company',
'country_code' => 'IT',
'email' => 'billing@mail.com',
'house_number' => '45',
'name' => 'Laurent Kuchto',
'phone_number' => '',
'po_box' => '12345',
'postal_code' => '78500',
'state_province_code' => 'IT-CO'
],
'tracking_number' => [
'carrier_code' => 'dhl',
'tracking_number' => 'TRACK123456789',
'tracking_url' => 'https://track.carrier.com/TRACK123456789'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://panel.sendcloud.sc/api/v3/parcels/tracking"
payload := strings.NewReader("{\n \"announced_at\": \"2024-01-01T00:00:00Z\",\n \"details\": {\n \"brand_id\": 123,\n \"integration_id\": 456,\n \"is_return\": false\n },\n \"from_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"insurance\": {\n \"currency\": \"EUR\",\n \"policy_id\": \"POL123\",\n \"value\": 500\n },\n \"parcel_items\": [\n {\n \"description\": \"T-Shirt XL\",\n \"hs_code\": \"620520\",\n \"intended_use\": \"Personal use\",\n \"item_id\": \"5552\",\n \"material_content\": \"100% Cotton\",\n \"mid_code\": \"NLOZR92MEL\",\n \"origin_country\": \"NL\",\n \"product_id\": \"19284\",\n \"properties\": {\n \"color\": \"green\",\n \"size\": \"red\"\n },\n \"quantity\": 1,\n \"sku\": \"TS1234\",\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"6.15\"\n },\n \"weight\": {\n \"unit\": \"kg\",\n \"value\": 6\n }\n }\n ],\n \"measurements\": {\n \"dimension\": {\n \"height\": 3,\n \"length\": 2,\n \"unit\": \"m\",\n \"width\": 4\n },\n \"volume\": {\n \"unit\": \"cm3\",\n \"value\": 35\n },\n \"weight\": {\n \"unit\": \"g\",\n \"value\": 82\n }\n },\n \"return_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"ship_with\": {\n \"type\": \"shipping_option_code\",\n \"properties\": {\n \"contract_id\": 517,\n \"shipping_option_code\": \"postnl:standard\"\n }\n },\n \"shipment\": {\n \"external_reference_id\": \"REF123\",\n \"order\": {\n \"order_number\": \"ORD123\",\n \"source_external_id\": \"EXT789\",\n \"source_id\": \"order_456\",\n \"total_order_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n }\n },\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"source_id\": \"shipment_789\"\n },\n \"source_id\": \"1234\",\n \"to_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"tracking_number\": {\n \"carrier_code\": \"dhl\",\n \"tracking_number\": \"TRACK123456789\",\n \"tracking_url\": \"https://track.carrier.com/TRACK123456789\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://panel.sendcloud.sc/api/v3/parcels/tracking")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"announced_at\": \"2024-01-01T00:00:00Z\",\n \"details\": {\n \"brand_id\": 123,\n \"integration_id\": 456,\n \"is_return\": false\n },\n \"from_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"insurance\": {\n \"currency\": \"EUR\",\n \"policy_id\": \"POL123\",\n \"value\": 500\n },\n \"parcel_items\": [\n {\n \"description\": \"T-Shirt XL\",\n \"hs_code\": \"620520\",\n \"intended_use\": \"Personal use\",\n \"item_id\": \"5552\",\n \"material_content\": \"100% Cotton\",\n \"mid_code\": \"NLOZR92MEL\",\n \"origin_country\": \"NL\",\n \"product_id\": \"19284\",\n \"properties\": {\n \"color\": \"green\",\n \"size\": \"red\"\n },\n \"quantity\": 1,\n \"sku\": \"TS1234\",\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"6.15\"\n },\n \"weight\": {\n \"unit\": \"kg\",\n \"value\": 6\n }\n }\n ],\n \"measurements\": {\n \"dimension\": {\n \"height\": 3,\n \"length\": 2,\n \"unit\": \"m\",\n \"width\": 4\n },\n \"volume\": {\n \"unit\": \"cm3\",\n \"value\": 35\n },\n \"weight\": {\n \"unit\": \"g\",\n \"value\": 82\n }\n },\n \"return_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"ship_with\": {\n \"type\": \"shipping_option_code\",\n \"properties\": {\n \"contract_id\": 517,\n \"shipping_option_code\": \"postnl:standard\"\n }\n },\n \"shipment\": {\n \"external_reference_id\": \"REF123\",\n \"order\": {\n \"order_number\": \"ORD123\",\n \"source_external_id\": \"EXT789\",\n \"source_id\": \"order_456\",\n \"total_order_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n }\n },\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"source_id\": \"shipment_789\"\n },\n \"source_id\": \"1234\",\n \"to_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"tracking_number\": {\n \"carrier_code\": \"dhl\",\n \"tracking_number\": \"TRACK123456789\",\n \"tracking_url\": \"https://track.carrier.com/TRACK123456789\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/parcels/tracking")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"announced_at\": \"2024-01-01T00:00:00Z\",\n \"details\": {\n \"brand_id\": 123,\n \"integration_id\": 456,\n \"is_return\": false\n },\n \"from_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"insurance\": {\n \"currency\": \"EUR\",\n \"policy_id\": \"POL123\",\n \"value\": 500\n },\n \"parcel_items\": [\n {\n \"description\": \"T-Shirt XL\",\n \"hs_code\": \"620520\",\n \"intended_use\": \"Personal use\",\n \"item_id\": \"5552\",\n \"material_content\": \"100% Cotton\",\n \"mid_code\": \"NLOZR92MEL\",\n \"origin_country\": \"NL\",\n \"product_id\": \"19284\",\n \"properties\": {\n \"color\": \"green\",\n \"size\": \"red\"\n },\n \"quantity\": 1,\n \"sku\": \"TS1234\",\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"6.15\"\n },\n \"weight\": {\n \"unit\": \"kg\",\n \"value\": 6\n }\n }\n ],\n \"measurements\": {\n \"dimension\": {\n \"height\": 3,\n \"length\": 2,\n \"unit\": \"m\",\n \"width\": 4\n },\n \"volume\": {\n \"unit\": \"cm3\",\n \"value\": 35\n },\n \"weight\": {\n \"unit\": \"g\",\n \"value\": 82\n }\n },\n \"return_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"ship_with\": {\n \"type\": \"shipping_option_code\",\n \"properties\": {\n \"contract_id\": 517,\n \"shipping_option_code\": \"postnl:standard\"\n }\n },\n \"shipment\": {\n \"external_reference_id\": \"REF123\",\n \"order\": {\n \"order_number\": \"ORD123\",\n \"source_external_id\": \"EXT789\",\n \"source_id\": \"order_456\",\n \"total_order_price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n }\n },\n \"price\": {\n \"currency\": \"EUR\",\n \"value\": \"76.64\"\n },\n \"source_id\": \"shipment_789\"\n },\n \"source_id\": \"1234\",\n \"to_address\": {\n \"address_line_1\": \"33 rue de Stalingrad\",\n \"address_line_2\": \"\",\n \"city\": \"Cermenate\",\n \"company_name\": \"Company\",\n \"country_code\": \"IT\",\n \"email\": \"billing@mail.com\",\n \"house_number\": \"45\",\n \"name\": \"Laurent Kuchto\",\n \"phone_number\": \"\",\n \"po_box\": \"12345\",\n \"postal_code\": \"78500\",\n \"state_province_code\": \"IT-CO\"\n },\n \"tracking_number\": {\n \"carrier_code\": \"dhl\",\n \"tracking_number\": \"TRACK123456789\",\n \"tracking_url\": \"https://track.carrier.com/TRACK123456789\"\n }\n}"
response = http.request(request)
puts response.read_body{
"announced_at": "2024-01-01T00:00:00Z",
"created": true,
"created_at": "2024-01-01T00:00:00Z",
"details": {
"brand_id": 123,
"integration_id": 456,
"is_return": false
},
"from_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"parcel_items": [
{
"description": "T-Shirt XL",
"hs_code": "620520",
"intended_use": "Personal use",
"item_id": "5552",
"material_content": "100% Cotton",
"mid_code": "NLOZR92MEL",
"origin_country": "NL",
"product_id": "19284",
"properties": {
"color": "green",
"size": "red"
},
"quantity": 1,
"sku": "TS1234",
"source_id": "123abc",
"price": {
"currency": "EUR",
"value": "6.15"
},
"weight": {
"unit": "kg",
"value": 0.4
}
}
],
"ship_with": {
"type": "shipping_option_code",
"properties": {
"contract_id": 517,
"shipping_option_code": "postnl:standard"
}
},
"source_id": "1234",
"to_address": {
"address_line_1": "33 rue de Stalingrad",
"address_line_2": "",
"city": "Cermenate",
"company_name": "Company",
"country_code": "IT",
"email": "billing@mail.com",
"house_number": "45",
"name": "Laurent Kuchto",
"phone_number": "",
"po_box": "12345",
"postal_code": "78500",
"state_province_code": "IT-CO"
},
"tracking_numbers": [
{
"carrier_code": "dhl",
"tracking_number": "TRACK123456789",
"tracking_url": "https://track.carrier.com/TRACK123456789"
}
]
}{
"detail": "Parcel or tracking number already exists"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}shipping_option_code in the ship_with property. Parcels created without a shipping option code will not appear in analytics. You can retrieve valid shipping option codes via the Shipping Options API.Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Body
The Parcel Tracking Create Request object
The timestamp of when the parcel was announced to the carrier (label was created)
Parcel Tracking Address object
Show child attributes
Show child attributes
Ship using a shipping option code. The shipping option code is required.
- Ship With Shipping Option Code Object
- Ship With Contract Object
Show child attributes
Show child attributes
{
"type": "shipping_option_code",
"properties": {
"shipping_option_code": "postnl:standard/insured=3000",
"contract_id": 517,
"user_shipping_method_name": "Express Delivery",
"user_shipping_method_id": "express-001"
}
}Show child attributes
Show child attributes
An external identifier that clients can provide to link the parcel with the corresponding record in their own system
Parcel Tracking Address object
Show child attributes
Show child attributes
The request object for the Tracking Number
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Sendcloud Insurance object with insurance policy ID
Show child attributes
Show child attributes
List of items / products that the parcel contains
Show child attributes
Show child attributes
This object provides essential information for accurate packing, shipping, and inventory management
Show child attributes
Show child attributes
Price, consisting of a value and currency.
Show child attributes
Show child attributes
Response
Successful Response
The Parcel Tracking Create Response object
The timestamp of when the parcel was announced to the carrier (label was created)
Indicates whether the parcel was newly created (true) or already existed (false). The endpoint is idempotent — submitting the same source_id, carrier_code, and organization will return the existing parcel with created set to false.
The timestamp of when the parcel was created in the system
Show child attributes
Show child attributes
{
"brand_id": 123,
"expected_delivery_date": "2025-01-04",
"integration_id": 456,
"is_mail_box": false,
"is_return": false,
"is_to_service_point": false
}Parcel Tracking Address object
Show child attributes
Show child attributes
Ship using a shipping option code. The shipping option code is required.
- Ship With Shipping Option Code Object
- Ship With Contract Object
Show child attributes
Show child attributes
{
"type": "shipping_option_code",
"properties": {
"shipping_option_code": "postnl:standard/insured=3000",
"contract_id": 517,
"user_shipping_method_name": "Express Delivery",
"user_shipping_method_id": "express-001"
}
}An external identifier that clients can provide to link the parcel with the corresponding record in their own system
Parcel Tracking Address object
Show child attributes
Show child attributes
Show child attributes
Show child attributes
List of items / products that the parcel contains
Show child attributes
Show child attributes