Retrieve shop order statuses for an integration
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/shop-order-statuses \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/shop-order-statuses"
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/shop-order-statuses', 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/shop-order-statuses",
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/shop-order-statuses"
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/shop-order-statuses")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/shop-order-statuses")
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{
"data": [
{
"external_id": "17-B",
"status": "Delivered",
"deleted_at": null,
"translations": [
{
"status": "Delivered",
"language": "en-gb"
},
{
"status": "Verzonden",
"language": "nl-nl"
},
{
"status": "Geliefert",
"language": "de-de"
}
]
},
{
"external_id": "14-A",
"status": "Cancelled",
"deleted_at": "2023-11-04T14:15:22Z",
"translations": [
{
"status": "Cancelled",
"language": "en-gb"
},
{
"status": "Geannuleerd",
"language": "nl-nl"
},
{
"status": "Abgesagt",
"language": "de-de"
}
]
}
]
}{
"errors": [
{
"status": "400",
"code": "non_field_errors",
"title": "integration ID",
"detail": "Integration ID is a required GET parameter"
}
]
}Shop order statuses
Retrieve shop order statuses for an integration
Fetch all available shop order statuses for the Prestashop v2 integration, in the default or selected language.
GET
/
shop-order-statuses
Retrieve shop order statuses for an integration
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/shop-order-statuses \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/shop-order-statuses"
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/shop-order-statuses', 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/shop-order-statuses",
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/shop-order-statuses"
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/shop-order-statuses")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/shop-order-statuses")
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{
"data": [
{
"external_id": "17-B",
"status": "Delivered",
"deleted_at": null,
"translations": [
{
"status": "Delivered",
"language": "en-gb"
},
{
"status": "Verzonden",
"language": "nl-nl"
},
{
"status": "Geliefert",
"language": "de-de"
}
]
},
{
"external_id": "14-A",
"status": "Cancelled",
"deleted_at": "2023-11-04T14:15:22Z",
"translations": [
{
"status": "Cancelled",
"language": "en-gb"
},
{
"status": "Geannuleerd",
"language": "nl-nl"
},
{
"status": "Abgesagt",
"language": "de-de"
}
]
}
]
}{
"errors": [
{
"status": "400",
"code": "non_field_errors",
"title": "integration ID",
"detail": "Integration ID is a required GET parameter"
}
]
}OAuth2 scopes required:
read:integration. See Scopes for OAuth apps.Only the Prestashop V2 integration is supported.
- If the user hasn’t picked a language, they will receive the status in the default language,
en-gb. - If
en-gbis not present, the user receives the status in the first language of the alphabetically ordered list.
Authorizations
HTTPBasicAuthOAuth2ClientCreds