curl --request POST \
--url https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
[
{
"address": "Lansdown Glade",
"address_2": "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",
"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",
"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"
}
}
]
}
}
}
]
'import requests
url = "https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments"
payload = [
{
"address": "Lansdown Glade",
"address_2": "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",
"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",
"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"
} }]
}
}
}
]
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([
{
address: 'Lansdown Glade',
address_2: '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',
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',
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'}}]
}
}
}
])
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'address' => 'Lansdown Glade',
'address_2' => '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',
'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',
'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'
]
]
]
]
]
]
]),
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/v2/integrations/{id}/shipments"
payload := strings.NewReader("[\n {\n \"address\": \"Lansdown Glade\",\n \"address_2\": \"string\",\n \"city\": \"Oss\",\n \"company_name\": \"string\",\n \"country\": \"AW\",\n \"created_at\": \"2019-08-24T14:15:22Z\",\n \"currency\": \"EUR\",\n \"customs_invoice_nr\": \"120\",\n \"customs_shipment_type\": 0,\n \"email\": \"user@example.com\",\n \"external_order_id\": \"555413\",\n \"external_shipment_id\": \"777413\",\n \"house_number\": \"15\",\n \"name\": \"John Doe\",\n \"order_number\": \"OXSDFGHTD-12\",\n \"order_status\": {\n \"id\": \"fulfilled\",\n \"message\": \"Fulfilled\"\n },\n \"parcel_items\": [\n {\n \"description\": \"Very orange color\",\n \"hs_code\": \"01013000\",\n \"origin_country\": \"AW\",\n \"product_id\": \"1458734634\",\n \"properties\": {\n \"size\": \"small\",\n \"colour\": \"red\"\n },\n \"quantity\": 2,\n \"sku\": \"WW-DR-GR-XS-001\",\n \"value\": \"3.5\",\n \"weight\": \"1\",\n \"mid_code\": \"NLOZR92MEL\",\n \"material_content\": \"100% Cotton\",\n \"intended_use\": \"Personal use\"\n }\n ],\n \"payment_status\": {\n \"id\": \"paid\",\n \"message\": \"Paid\"\n },\n \"postal_code\": \"5341\",\n \"shipping_method\": 12345,\n \"shipping_method_checkout_name\": \"string\",\n \"telephone\": \"string\",\n \"to_post_number\": \"string\",\n \"to_service_point\": 0,\n \"to_state\": \"string\",\n \"total_order_value\": \"string\",\n \"updated_at\": \"2019-08-24T14:15:22Z\",\n \"weight\": \"string\",\n \"checkout_payload\": {\n \"sender_address_id\": 0,\n \"shipping_product\": {\n \"code\": \"postnl:standard\",\n \"name\": \"PostNL Standard\",\n \"selected_functionalities\": {\n \"age_check\": 18,\n \"last_mile\": \"home_delivery\",\n \"first_mile\": \"pickup_dropoff\",\n \"multicollo\": true,\n \"form_factor\": \"parcel\",\n \"service_area\": \"domestic\",\n \"weekend_delivery\": \"saturday\",\n \"delivery_deadline\": \"best_effort\",\n \"direct_contract_only\": false\n }\n },\n \"delivery_method_type\": \"string\",\n \"delivery_method_data\": {\n \"delivery_date\": \"2019-08-24T14:15:22Z\",\n \"formatted_delivery_date\": \"string\",\n \"parcel_handover_date\": \"2019-08-24T14:15:22Z\"\n }\n },\n \"width\": \"string\",\n \"height\": \"string\",\n \"length\": \"string\",\n \"customs_details\": {\n \"discount_granted\": \"3.99\",\n \"insurance_costs\": \"9.99\",\n \"freight_costs\": \"5.99\",\n \"other_costs\": \"2.99\",\n \"tax_numbers\": {\n \"sender\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL987654321B02\"\n }\n }\n ],\n \"receiver\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"DE\",\n \"value\": \"DE123456789B03\"\n }\n }\n ],\n \"importer_of_records\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL975318642B01\"\n }\n }\n ]\n }\n }\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/v2/integrations/{id}/shipments")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("[\n {\n \"address\": \"Lansdown Glade\",\n \"address_2\": \"string\",\n \"city\": \"Oss\",\n \"company_name\": \"string\",\n \"country\": \"AW\",\n \"created_at\": \"2019-08-24T14:15:22Z\",\n \"currency\": \"EUR\",\n \"customs_invoice_nr\": \"120\",\n \"customs_shipment_type\": 0,\n \"email\": \"user@example.com\",\n \"external_order_id\": \"555413\",\n \"external_shipment_id\": \"777413\",\n \"house_number\": \"15\",\n \"name\": \"John Doe\",\n \"order_number\": \"OXSDFGHTD-12\",\n \"order_status\": {\n \"id\": \"fulfilled\",\n \"message\": \"Fulfilled\"\n },\n \"parcel_items\": [\n {\n \"description\": \"Very orange color\",\n \"hs_code\": \"01013000\",\n \"origin_country\": \"AW\",\n \"product_id\": \"1458734634\",\n \"properties\": {\n \"size\": \"small\",\n \"colour\": \"red\"\n },\n \"quantity\": 2,\n \"sku\": \"WW-DR-GR-XS-001\",\n \"value\": \"3.5\",\n \"weight\": \"1\",\n \"mid_code\": \"NLOZR92MEL\",\n \"material_content\": \"100% Cotton\",\n \"intended_use\": \"Personal use\"\n }\n ],\n \"payment_status\": {\n \"id\": \"paid\",\n \"message\": \"Paid\"\n },\n \"postal_code\": \"5341\",\n \"shipping_method\": 12345,\n \"shipping_method_checkout_name\": \"string\",\n \"telephone\": \"string\",\n \"to_post_number\": \"string\",\n \"to_service_point\": 0,\n \"to_state\": \"string\",\n \"total_order_value\": \"string\",\n \"updated_at\": \"2019-08-24T14:15:22Z\",\n \"weight\": \"string\",\n \"checkout_payload\": {\n \"sender_address_id\": 0,\n \"shipping_product\": {\n \"code\": \"postnl:standard\",\n \"name\": \"PostNL Standard\",\n \"selected_functionalities\": {\n \"age_check\": 18,\n \"last_mile\": \"home_delivery\",\n \"first_mile\": \"pickup_dropoff\",\n \"multicollo\": true,\n \"form_factor\": \"parcel\",\n \"service_area\": \"domestic\",\n \"weekend_delivery\": \"saturday\",\n \"delivery_deadline\": \"best_effort\",\n \"direct_contract_only\": false\n }\n },\n \"delivery_method_type\": \"string\",\n \"delivery_method_data\": {\n \"delivery_date\": \"2019-08-24T14:15:22Z\",\n \"formatted_delivery_date\": \"string\",\n \"parcel_handover_date\": \"2019-08-24T14:15:22Z\"\n }\n },\n \"width\": \"string\",\n \"height\": \"string\",\n \"length\": \"string\",\n \"customs_details\": {\n \"discount_granted\": \"3.99\",\n \"insurance_costs\": \"9.99\",\n \"freight_costs\": \"5.99\",\n \"other_costs\": \"2.99\",\n \"tax_numbers\": {\n \"sender\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL987654321B02\"\n }\n }\n ],\n \"receiver\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"DE\",\n \"value\": \"DE123456789B03\"\n }\n }\n ],\n \"importer_of_records\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL975318642B01\"\n }\n }\n ]\n }\n }\n }\n]")
.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::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"address\": \"Lansdown Glade\",\n \"address_2\": \"string\",\n \"city\": \"Oss\",\n \"company_name\": \"string\",\n \"country\": \"AW\",\n \"created_at\": \"2019-08-24T14:15:22Z\",\n \"currency\": \"EUR\",\n \"customs_invoice_nr\": \"120\",\n \"customs_shipment_type\": 0,\n \"email\": \"user@example.com\",\n \"external_order_id\": \"555413\",\n \"external_shipment_id\": \"777413\",\n \"house_number\": \"15\",\n \"name\": \"John Doe\",\n \"order_number\": \"OXSDFGHTD-12\",\n \"order_status\": {\n \"id\": \"fulfilled\",\n \"message\": \"Fulfilled\"\n },\n \"parcel_items\": [\n {\n \"description\": \"Very orange color\",\n \"hs_code\": \"01013000\",\n \"origin_country\": \"AW\",\n \"product_id\": \"1458734634\",\n \"properties\": {\n \"size\": \"small\",\n \"colour\": \"red\"\n },\n \"quantity\": 2,\n \"sku\": \"WW-DR-GR-XS-001\",\n \"value\": \"3.5\",\n \"weight\": \"1\",\n \"mid_code\": \"NLOZR92MEL\",\n \"material_content\": \"100% Cotton\",\n \"intended_use\": \"Personal use\"\n }\n ],\n \"payment_status\": {\n \"id\": \"paid\",\n \"message\": \"Paid\"\n },\n \"postal_code\": \"5341\",\n \"shipping_method\": 12345,\n \"shipping_method_checkout_name\": \"string\",\n \"telephone\": \"string\",\n \"to_post_number\": \"string\",\n \"to_service_point\": 0,\n \"to_state\": \"string\",\n \"total_order_value\": \"string\",\n \"updated_at\": \"2019-08-24T14:15:22Z\",\n \"weight\": \"string\",\n \"checkout_payload\": {\n \"sender_address_id\": 0,\n \"shipping_product\": {\n \"code\": \"postnl:standard\",\n \"name\": \"PostNL Standard\",\n \"selected_functionalities\": {\n \"age_check\": 18,\n \"last_mile\": \"home_delivery\",\n \"first_mile\": \"pickup_dropoff\",\n \"multicollo\": true,\n \"form_factor\": \"parcel\",\n \"service_area\": \"domestic\",\n \"weekend_delivery\": \"saturday\",\n \"delivery_deadline\": \"best_effort\",\n \"direct_contract_only\": false\n }\n },\n \"delivery_method_type\": \"string\",\n \"delivery_method_data\": {\n \"delivery_date\": \"2019-08-24T14:15:22Z\",\n \"formatted_delivery_date\": \"string\",\n \"parcel_handover_date\": \"2019-08-24T14:15:22Z\"\n }\n },\n \"width\": \"string\",\n \"height\": \"string\",\n \"length\": \"string\",\n \"customs_details\": {\n \"discount_granted\": \"3.99\",\n \"insurance_costs\": \"9.99\",\n \"freight_costs\": \"5.99\",\n \"other_costs\": \"2.99\",\n \"tax_numbers\": {\n \"sender\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL987654321B02\"\n }\n }\n ],\n \"receiver\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"DE\",\n \"value\": \"DE123456789B03\"\n }\n }\n ],\n \"importer_of_records\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL975318642B01\"\n }\n }\n ]\n }\n }\n }\n]"
response = http.request(request)
puts response.read_body[
{
"external_order_id": "1175584",
"external_shipment_id": "777413",
"shipment_uuid": "6b436cb2-65a4-482c-9d25-38be7868ff00",
"status": "created"
},
{
"error": {
"checkout_payload": {
"delivery_method_data": {
"delivery_date": [
"This field is required."
]
}
}
},
"external_order_id": "1184635",
"external_shipment_id": "",
"status": "error"
}
]Create or update a list of shipments
Insert shipments (or ‘orders’) into an API integration from your shop system, and have them appear in your Sendcloud account.
curl --request POST \
--url https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
[
{
"address": "Lansdown Glade",
"address_2": "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",
"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",
"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"
}
}
]
}
}
}
]
'import requests
url = "https://panel.sendcloud.sc/api/v2/integrations/{id}/shipments"
payload = [
{
"address": "Lansdown Glade",
"address_2": "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",
"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",
"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"
} }]
}
}
}
]
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([
{
address: 'Lansdown Glade',
address_2: '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',
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',
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'}}]
}
}
}
])
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'address' => 'Lansdown Glade',
'address_2' => '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',
'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',
'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'
]
]
]
]
]
]
]),
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/v2/integrations/{id}/shipments"
payload := strings.NewReader("[\n {\n \"address\": \"Lansdown Glade\",\n \"address_2\": \"string\",\n \"city\": \"Oss\",\n \"company_name\": \"string\",\n \"country\": \"AW\",\n \"created_at\": \"2019-08-24T14:15:22Z\",\n \"currency\": \"EUR\",\n \"customs_invoice_nr\": \"120\",\n \"customs_shipment_type\": 0,\n \"email\": \"user@example.com\",\n \"external_order_id\": \"555413\",\n \"external_shipment_id\": \"777413\",\n \"house_number\": \"15\",\n \"name\": \"John Doe\",\n \"order_number\": \"OXSDFGHTD-12\",\n \"order_status\": {\n \"id\": \"fulfilled\",\n \"message\": \"Fulfilled\"\n },\n \"parcel_items\": [\n {\n \"description\": \"Very orange color\",\n \"hs_code\": \"01013000\",\n \"origin_country\": \"AW\",\n \"product_id\": \"1458734634\",\n \"properties\": {\n \"size\": \"small\",\n \"colour\": \"red\"\n },\n \"quantity\": 2,\n \"sku\": \"WW-DR-GR-XS-001\",\n \"value\": \"3.5\",\n \"weight\": \"1\",\n \"mid_code\": \"NLOZR92MEL\",\n \"material_content\": \"100% Cotton\",\n \"intended_use\": \"Personal use\"\n }\n ],\n \"payment_status\": {\n \"id\": \"paid\",\n \"message\": \"Paid\"\n },\n \"postal_code\": \"5341\",\n \"shipping_method\": 12345,\n \"shipping_method_checkout_name\": \"string\",\n \"telephone\": \"string\",\n \"to_post_number\": \"string\",\n \"to_service_point\": 0,\n \"to_state\": \"string\",\n \"total_order_value\": \"string\",\n \"updated_at\": \"2019-08-24T14:15:22Z\",\n \"weight\": \"string\",\n \"checkout_payload\": {\n \"sender_address_id\": 0,\n \"shipping_product\": {\n \"code\": \"postnl:standard\",\n \"name\": \"PostNL Standard\",\n \"selected_functionalities\": {\n \"age_check\": 18,\n \"last_mile\": \"home_delivery\",\n \"first_mile\": \"pickup_dropoff\",\n \"multicollo\": true,\n \"form_factor\": \"parcel\",\n \"service_area\": \"domestic\",\n \"weekend_delivery\": \"saturday\",\n \"delivery_deadline\": \"best_effort\",\n \"direct_contract_only\": false\n }\n },\n \"delivery_method_type\": \"string\",\n \"delivery_method_data\": {\n \"delivery_date\": \"2019-08-24T14:15:22Z\",\n \"formatted_delivery_date\": \"string\",\n \"parcel_handover_date\": \"2019-08-24T14:15:22Z\"\n }\n },\n \"width\": \"string\",\n \"height\": \"string\",\n \"length\": \"string\",\n \"customs_details\": {\n \"discount_granted\": \"3.99\",\n \"insurance_costs\": \"9.99\",\n \"freight_costs\": \"5.99\",\n \"other_costs\": \"2.99\",\n \"tax_numbers\": {\n \"sender\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL987654321B02\"\n }\n }\n ],\n \"receiver\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"DE\",\n \"value\": \"DE123456789B03\"\n }\n }\n ],\n \"importer_of_records\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL975318642B01\"\n }\n }\n ]\n }\n }\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/v2/integrations/{id}/shipments")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("[\n {\n \"address\": \"Lansdown Glade\",\n \"address_2\": \"string\",\n \"city\": \"Oss\",\n \"company_name\": \"string\",\n \"country\": \"AW\",\n \"created_at\": \"2019-08-24T14:15:22Z\",\n \"currency\": \"EUR\",\n \"customs_invoice_nr\": \"120\",\n \"customs_shipment_type\": 0,\n \"email\": \"user@example.com\",\n \"external_order_id\": \"555413\",\n \"external_shipment_id\": \"777413\",\n \"house_number\": \"15\",\n \"name\": \"John Doe\",\n \"order_number\": \"OXSDFGHTD-12\",\n \"order_status\": {\n \"id\": \"fulfilled\",\n \"message\": \"Fulfilled\"\n },\n \"parcel_items\": [\n {\n \"description\": \"Very orange color\",\n \"hs_code\": \"01013000\",\n \"origin_country\": \"AW\",\n \"product_id\": \"1458734634\",\n \"properties\": {\n \"size\": \"small\",\n \"colour\": \"red\"\n },\n \"quantity\": 2,\n \"sku\": \"WW-DR-GR-XS-001\",\n \"value\": \"3.5\",\n \"weight\": \"1\",\n \"mid_code\": \"NLOZR92MEL\",\n \"material_content\": \"100% Cotton\",\n \"intended_use\": \"Personal use\"\n }\n ],\n \"payment_status\": {\n \"id\": \"paid\",\n \"message\": \"Paid\"\n },\n \"postal_code\": \"5341\",\n \"shipping_method\": 12345,\n \"shipping_method_checkout_name\": \"string\",\n \"telephone\": \"string\",\n \"to_post_number\": \"string\",\n \"to_service_point\": 0,\n \"to_state\": \"string\",\n \"total_order_value\": \"string\",\n \"updated_at\": \"2019-08-24T14:15:22Z\",\n \"weight\": \"string\",\n \"checkout_payload\": {\n \"sender_address_id\": 0,\n \"shipping_product\": {\n \"code\": \"postnl:standard\",\n \"name\": \"PostNL Standard\",\n \"selected_functionalities\": {\n \"age_check\": 18,\n \"last_mile\": \"home_delivery\",\n \"first_mile\": \"pickup_dropoff\",\n \"multicollo\": true,\n \"form_factor\": \"parcel\",\n \"service_area\": \"domestic\",\n \"weekend_delivery\": \"saturday\",\n \"delivery_deadline\": \"best_effort\",\n \"direct_contract_only\": false\n }\n },\n \"delivery_method_type\": \"string\",\n \"delivery_method_data\": {\n \"delivery_date\": \"2019-08-24T14:15:22Z\",\n \"formatted_delivery_date\": \"string\",\n \"parcel_handover_date\": \"2019-08-24T14:15:22Z\"\n }\n },\n \"width\": \"string\",\n \"height\": \"string\",\n \"length\": \"string\",\n \"customs_details\": {\n \"discount_granted\": \"3.99\",\n \"insurance_costs\": \"9.99\",\n \"freight_costs\": \"5.99\",\n \"other_costs\": \"2.99\",\n \"tax_numbers\": {\n \"sender\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL987654321B02\"\n }\n }\n ],\n \"receiver\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"DE\",\n \"value\": \"DE123456789B03\"\n }\n }\n ],\n \"importer_of_records\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL975318642B01\"\n }\n }\n ]\n }\n }\n }\n]")
.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::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"address\": \"Lansdown Glade\",\n \"address_2\": \"string\",\n \"city\": \"Oss\",\n \"company_name\": \"string\",\n \"country\": \"AW\",\n \"created_at\": \"2019-08-24T14:15:22Z\",\n \"currency\": \"EUR\",\n \"customs_invoice_nr\": \"120\",\n \"customs_shipment_type\": 0,\n \"email\": \"user@example.com\",\n \"external_order_id\": \"555413\",\n \"external_shipment_id\": \"777413\",\n \"house_number\": \"15\",\n \"name\": \"John Doe\",\n \"order_number\": \"OXSDFGHTD-12\",\n \"order_status\": {\n \"id\": \"fulfilled\",\n \"message\": \"Fulfilled\"\n },\n \"parcel_items\": [\n {\n \"description\": \"Very orange color\",\n \"hs_code\": \"01013000\",\n \"origin_country\": \"AW\",\n \"product_id\": \"1458734634\",\n \"properties\": {\n \"size\": \"small\",\n \"colour\": \"red\"\n },\n \"quantity\": 2,\n \"sku\": \"WW-DR-GR-XS-001\",\n \"value\": \"3.5\",\n \"weight\": \"1\",\n \"mid_code\": \"NLOZR92MEL\",\n \"material_content\": \"100% Cotton\",\n \"intended_use\": \"Personal use\"\n }\n ],\n \"payment_status\": {\n \"id\": \"paid\",\n \"message\": \"Paid\"\n },\n \"postal_code\": \"5341\",\n \"shipping_method\": 12345,\n \"shipping_method_checkout_name\": \"string\",\n \"telephone\": \"string\",\n \"to_post_number\": \"string\",\n \"to_service_point\": 0,\n \"to_state\": \"string\",\n \"total_order_value\": \"string\",\n \"updated_at\": \"2019-08-24T14:15:22Z\",\n \"weight\": \"string\",\n \"checkout_payload\": {\n \"sender_address_id\": 0,\n \"shipping_product\": {\n \"code\": \"postnl:standard\",\n \"name\": \"PostNL Standard\",\n \"selected_functionalities\": {\n \"age_check\": 18,\n \"last_mile\": \"home_delivery\",\n \"first_mile\": \"pickup_dropoff\",\n \"multicollo\": true,\n \"form_factor\": \"parcel\",\n \"service_area\": \"domestic\",\n \"weekend_delivery\": \"saturday\",\n \"delivery_deadline\": \"best_effort\",\n \"direct_contract_only\": false\n }\n },\n \"delivery_method_type\": \"string\",\n \"delivery_method_data\": {\n \"delivery_date\": \"2019-08-24T14:15:22Z\",\n \"formatted_delivery_date\": \"string\",\n \"parcel_handover_date\": \"2019-08-24T14:15:22Z\"\n }\n },\n \"width\": \"string\",\n \"height\": \"string\",\n \"length\": \"string\",\n \"customs_details\": {\n \"discount_granted\": \"3.99\",\n \"insurance_costs\": \"9.99\",\n \"freight_costs\": \"5.99\",\n \"other_costs\": \"2.99\",\n \"tax_numbers\": {\n \"sender\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL987654321B02\"\n }\n }\n ],\n \"receiver\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"DE\",\n \"value\": \"DE123456789B03\"\n }\n }\n ],\n \"importer_of_records\": [\n {\n \"tax_number\": {\n \"name\": \"VAT\",\n \"country\": \"NL\",\n \"value\": \"NL975318642B01\"\n }\n }\n ]\n }\n }\n }\n]"
response = http.request(request)
puts response.read_body[
{
"external_order_id": "1175584",
"external_shipment_id": "777413",
"shipment_uuid": "6b436cb2-65a4-482c-9d25-38be7868ff00",
"status": "created"
},
{
"error": {
"checkout_payload": {
"delivery_method_data": {
"delivery_date": [
"This field is required."
]
}
}
},
"external_order_id": "1184635",
"external_shipment_id": "",
"status": "error"
}
]external_order_id and external_shipment_id), then the shipment will be updated. The system will only update orders that have had their updated_at (ISO 8601 DateTime) timestamp changed.
The external_shipment_id field is used to split orders across multiple shipments, however, this field is not supported by all shop systems. If your shop system supports the distribution of product items within an order across multiple shipments, you can use the shipment data to create multiple entries. If your shop does not support this feature, you can set the external_shipment_id value to null.
Batches are limited to 100 orders at once. This endpoint should accept most values in any of the available fields, but in the case of erroneous data, an error message will be returned directly. Your requests should almost always succeed unless the field structure is not correct.Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Path Parameters
The id of the integration to which the shipments belong
Body
11A country represented by its ISO 3166-1 alpha-2 code
AW, AF, AO, AI, AX, AL, AD, AE, AR, AM, AS, AQ, TF, AG, AU, AT, AZ, BI, BE, BJ, BQ, BF, BD, BG, BH, BS, BA, BL, BY, BZ, BM, BO, BR, BB, BN, BT, BV, BW, CF, CA, CC, CH, CL, CN, CI, CM, CD, CG, CK, CO, KM, CV, CR, CU, CW, CX, KY, CY, CZ, DE, DJ, DM, DK, DO, DZ, EC, EG, ER, EH, ES, EE, ET, FI, FJ, FK, FR, FO, FM, GA, GB, GE, GG, GH, GI, GN, GP, GM, GW, GQ, GR, GD, GL, GT, GF, GU, GY, HK, HM, HN, HR, HT, HU, ID, IM, IN, IO, IE, IR, IQ, IS, IL, IT, JM, JE, JO, JP, KZ, KE, KG, KH, KI, KN, KR, KW, LA, LB, LR, LY, LC, LI, LK, LS, LT, LU, LV, MO, MF, MA, MC, MD, MG, MV, MX, MH, MK, ML, MT, MM, ME, MN, MP, MZ, MR, MS, MQ, MU, MW, MY, YT, NA, NC, NE, NF, NG, NI, NU, NL, NO, NP, NR, NZ, OM, PK, PA, PN, PE, PH, PW, PG, PL, PR, KP, PT, PY, PS, PF, QA, RE, RO, RU, RW, SA, SD, SN, SG, GS, SH, SJ, SB, SL, SV, SM, SO, PM, RS, SS, ST, SR, SK, SI, SE, SZ, SX, SC, SY, TC, TD, TG, TH, TJ, TK, TM, TL, TO, TT, TN, TR, TV, TW, TZ, UG, UA, UM, UY, US, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, ZA, ZM, ZW, IC, XK "NL"
Timestamp indicating when the shipment was created in the shop system. This value will be saved and accessible through shipment_created_at field in GET response.
"2022-05-07T15:08:12.152000Z"
ISO 4217 currency code
EUR, USD, GBP 1Your own commercial invoice number
"120"
Type of shipment for customs purposes:
0- Gift1- Documents2- Commercial Goods3- Commercial Sample4- Returned Goods
0, 1, 2, 3, 4 0 <= x <= 4External order ID assigned by the shop system
1External shipment ID assigned by the shop system
11Unique order number generated manualy or by the shop system
1Show child attributes
Show child attributes
List of items the parcel contains
Show child attributes
Show child attributes
Show child attributes
Show child attributes
1Human readable shipping method name
1001Timestamp indicating when the shipment was updated in the shop system. This value will be saved and accessible through shipment_updated_at field in GET response.
"2022-05-07T15:08:12.152000Z"
Foreign key indicating shipping method used
1234
The total price of an order
Total weight of the order. Cannot be smaler than 0.001
10"10.2"
Show child attributes
Show child attributes
Volumetric weight width
10"10.2"
Volumetric weight height
10"10.2"
Volumetric weight length
10"10.2"
Customs information related to this shipment
Show child attributes
Show child attributes
Response
List with references to created shipments, or the errors that occurred while creating the shipment. When a shipment can't be created, the response will contain an entry for the object with the errors. This object will have a path to each field containing errors, listing the error(s) it contains.