Retrieve all integration exception logs
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/integrations/logs \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/integrations/logs"
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/integrations/logs', 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/integrations/logs",
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/integrations/logs"
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/integrations/logs")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/integrations/logs")
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": [
{
"id": 123,
"base_url": "https://example.com",
"full_url": "https://example.com/order-note.json",
"method": "POST",
"response_code": 495,
"response": {
"headers": {
"Cache-Control": "max-age=3600",
"Content-Type": "text/html; charset=utf-8",
"Connection": "keep-alive"
},
"body": "<!doctype html>\n<html>\n <head>\n <title>SSL Certificate Error</title>\n </head>\n </html>\n"
},
"request": {
"headers": {
"Cache-Control": "max-age=3600",
"Content-Type": "text/html; charset=utf-8",
"Connection": "keep-alive"
},
"payload": {
"order_note": {
"note": "Success"
}
}
},
"created_at": "2023-03-01T02:02:00+01:00",
"exception_type": "requests.exceptions.SSLError",
"exception": "An SSL error occurred",
"protected": false,
"additional_data": ""
}
]
}Exception logs
Retrieve all integration exception logs
Retrieve all integration exception logs. These logs are created when integrations have problems making API requests to shop systems.
GET
/
integrations
/
logs
Retrieve all integration exception logs
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/integrations/logs \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/integrations/logs"
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/integrations/logs', 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/integrations/logs",
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/integrations/logs"
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/integrations/logs")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/integrations/logs")
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": [
{
"id": 123,
"base_url": "https://example.com",
"full_url": "https://example.com/order-note.json",
"method": "POST",
"response_code": 495,
"response": {
"headers": {
"Cache-Control": "max-age=3600",
"Content-Type": "text/html; charset=utf-8",
"Connection": "keep-alive"
},
"body": "<!doctype html>\n<html>\n <head>\n <title>SSL Certificate Error</title>\n </head>\n </html>\n"
},
"request": {
"headers": {
"Cache-Control": "max-age=3600",
"Content-Type": "text/html; charset=utf-8",
"Connection": "keep-alive"
},
"payload": {
"order_note": {
"note": "Success"
}
}
},
"created_at": "2023-03-01T02:02:00+01:00",
"exception_type": "requests.exceptions.SSLError",
"exception": "An SSL error occurred",
"protected": false,
"additional_data": ""
}
]
}Integration exception logs might be generated, for example:
- if some resource cannot be found
- if API credentials are no longer valid
cursor query parameter to navigate through pages. The Link response header contains the URL for the next page when more results are available.Authorizations
HTTPBasicAuthOAuth2ClientCreds
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Query Parameters
Cursor for pagination. Use the value from the Link response header to fetch the next page.
Number of results per page.
Required range:
1 <= x <= 100Response
200 - application/json
OK
Show child attributes
Show child attributes