Retrieve carrier support contacts
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/dsf/carrier-support-contacts \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/dsf/carrier-support-contacts"
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/v3/dsf/carrier-support-contacts', 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/dsf/carrier-support-contacts",
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/v3/dsf/carrier-support-contacts"
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/v3/dsf/carrier-support-contacts")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/dsf/carrier-support-contacts")
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{
"id": 1,
"carrier_code": "dpd",
"email": "dpd@email.com",
"language": "nl-nl"
}{
"errors": [
{
"code": "hit_rate_limit",
"detail": "Rate limit exceeded: 30 per 1 minute",
"title": "Rate limit exceeded",
"status": 429
}
]
}Carrier support contacts
Retrieve carrier support contacts
A carrier support contact is required in order to create tickets for shipments sent under your own carrier contract so that we can forward the claim correctly.
Ticket creation will fail if a carrier support contact is missing for a carrier you use with your own contract.
GET
/
dsf
/
carrier-support-contacts
Retrieve carrier support contacts
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/dsf/carrier-support-contacts \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/dsf/carrier-support-contacts"
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/v3/dsf/carrier-support-contacts', 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/dsf/carrier-support-contacts",
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/v3/dsf/carrier-support-contacts"
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/v3/dsf/carrier-support-contacts")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/dsf/carrier-support-contacts")
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{
"id": 1,
"carrier_code": "dpd",
"email": "dpd@email.com",
"language": "nl-nl"
}{
"errors": [
{
"code": "hit_rate_limit",
"detail": "Rate limit exceeded: 30 per 1 minute",
"title": "Rate limit exceeded",
"status": 429
}
]
}Authorizations
HTTPBasicAuthOAuth2ClientCreds
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Response
Create carrier support contact
A carrier represented by a Sendcloud code
Available options:
amazon, bpost, bol, bring, brt, budbee, cainiao, chronopost, colisprive, colissimo, colissimo_ec2c, correos, correos_express, cirro, dachser, dbschenker, delivengo, der_kurier, dp, dhl, dhl_de, dhl_ecommerce, dhl_freight, dhl_gb, dhl_parcel_gb, dhl_parcel_iberia, dhl_express, dpd, dpd_at, dpd_fr, dpd_gb, dpd_local, fadello, fairsenden, fedex, fedexcrossborder, fietskoeriers, geodis, gls_de, gls_es, gls_eu, gls_it, gls_nl, glovo, hermes_c2c_gb, hermes_at, hermes_de, hermes_gb, hived, homerr, hurby, inpost_gb, inpost_es, inpost_it, inpost_pl, jongstra, landmark, lettresuivie, mondial_relay, mhi, nacex, ontime, paack, packs, parcelforce, mrw, plx, postat, poste_italiane, poste_it_delivery, postnl, postnl_fulfilment, postnl_large, postnord, quicargo, relais_colis, rjpv2, rjp, royal_mail, royal_mailv2, sandd, sendcloud, seur, skymail, storeshippers, tipsa, transmission, trunkrs, ups, van_straaten, viatim, ctt_express, tnt_it, yodel, europaket, spring, evri_international, asendia, transforce, dhl_2_man_handling Example:
"postnl"
Email address of the carrier to which the ticket details will be forwarded.
Example:
"carrier@email.com"
Language in which the carrier will be contacted.
Available options:
de-de, en-gb, en-us, es-es, fr-fr, nl-nl, it-it Example:
"en-us"