Skip to main content
POST
/
dsf
/
tickets
/
damage
Create a ticket for a damaged parcel
curl --request POST \
  --url https://panel.sendcloud.sc/api/v3/dsf/tickets/damage \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tracking_number": "3SABCD1234567",
  "carrier_contract_id": 123,
  "contents_sales_price": {
    "price": 10.55,
    "currency": "EUR"
  },
  "contents_purchase_price": {
    "price": 8,
    "currency": "EUR"
  },
  "contents_description": "The parcel contains 3 t-shits and 1 pair of shoes.",
  "parcel_exterior_description": "The box has our branding.",
  "additional_remarks": "<string>",
  "customer_confirmation": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "sales_invoice": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "purchase_invoice": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "exterior_photo": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "interior_photo": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "damage_photo_1": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "damage_photo_2": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "package_photo": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  },
  "entire_product_photo": {
    "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
  }
}
'
import requests

url = "https://panel.sendcloud.sc/api/v3/dsf/tickets/damage"

payload = {
"tracking_number": "3SABCD1234567",
"carrier_contract_id": 123,
"contents_sales_price": {
"price": 10.55,
"currency": "EUR"
},
"contents_purchase_price": {
"price": 8,
"currency": "EUR"
},
"contents_description": "The parcel contains 3 t-shits and 1 pair of shoes.",
"parcel_exterior_description": "The box has our branding.",
"additional_remarks": "<string>",
"customer_confirmation": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"sales_invoice": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"purchase_invoice": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"exterior_photo": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"interior_photo": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"damage_photo_1": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"damage_photo_2": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"package_photo": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" },
"entire_product_photo": { "file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466" }
}
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({
tracking_number: '3SABCD1234567',
carrier_contract_id: 123,
contents_sales_price: {price: 10.55, currency: 'EUR'},
contents_purchase_price: {price: 8, currency: 'EUR'},
contents_description: 'The parcel contains 3 t-shits and 1 pair of shoes.',
parcel_exterior_description: 'The box has our branding.',
additional_remarks: '<string>',
customer_confirmation: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
sales_invoice: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
purchase_invoice: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
exterior_photo: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
interior_photo: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
damage_photo_1: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
damage_photo_2: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
package_photo: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
},
entire_product_photo: {
file_token: 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
}
})
};

fetch('https://panel.sendcloud.sc/api/v3/dsf/tickets/damage', 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/tickets/damage",
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([
'tracking_number' => '3SABCD1234567',
'carrier_contract_id' => 123,
'contents_sales_price' => [
'price' => 10.55,
'currency' => 'EUR'
],
'contents_purchase_price' => [
'price' => 8,
'currency' => 'EUR'
],
'contents_description' => 'The parcel contains 3 t-shits and 1 pair of shoes.',
'parcel_exterior_description' => 'The box has our branding.',
'additional_remarks' => '<string>',
'customer_confirmation' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'sales_invoice' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'purchase_invoice' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'exterior_photo' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'interior_photo' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'damage_photo_1' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'damage_photo_2' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'package_photo' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
],
'entire_product_photo' => [
'file_token' => 'b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466'
]
]),
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/dsf/tickets/damage"

payload := strings.NewReader("{\n \"tracking_number\": \"3SABCD1234567\",\n \"carrier_contract_id\": 123,\n \"contents_sales_price\": {\n \"price\": 10.55,\n \"currency\": \"EUR\"\n },\n \"contents_purchase_price\": {\n \"price\": 8,\n \"currency\": \"EUR\"\n },\n \"contents_description\": \"The parcel contains 3 t-shits and 1 pair of shoes.\",\n \"parcel_exterior_description\": \"The box has our branding.\",\n \"additional_remarks\": \"<string>\",\n \"customer_confirmation\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"sales_invoice\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"purchase_invoice\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"exterior_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"interior_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"damage_photo_1\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"damage_photo_2\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"package_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"entire_product_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\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/dsf/tickets/damage")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"tracking_number\": \"3SABCD1234567\",\n \"carrier_contract_id\": 123,\n \"contents_sales_price\": {\n \"price\": 10.55,\n \"currency\": \"EUR\"\n },\n \"contents_purchase_price\": {\n \"price\": 8,\n \"currency\": \"EUR\"\n },\n \"contents_description\": \"The parcel contains 3 t-shits and 1 pair of shoes.\",\n \"parcel_exterior_description\": \"The box has our branding.\",\n \"additional_remarks\": \"<string>\",\n \"customer_confirmation\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"sales_invoice\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"purchase_invoice\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"exterior_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"interior_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"damage_photo_1\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"damage_photo_2\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"package_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"entire_product_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://panel.sendcloud.sc/api/v3/dsf/tickets/damage")

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 \"tracking_number\": \"3SABCD1234567\",\n \"carrier_contract_id\": 123,\n \"contents_sales_price\": {\n \"price\": 10.55,\n \"currency\": \"EUR\"\n },\n \"contents_purchase_price\": {\n \"price\": 8,\n \"currency\": \"EUR\"\n },\n \"contents_description\": \"The parcel contains 3 t-shits and 1 pair of shoes.\",\n \"parcel_exterior_description\": \"The box has our branding.\",\n \"additional_remarks\": \"<string>\",\n \"customer_confirmation\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"sales_invoice\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"purchase_invoice\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"exterior_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"interior_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"damage_photo_1\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"damage_photo_2\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"package_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n },\n \"entire_product_photo\": {\n \"file_token\": \"b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "ticket_id": 155
}

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Query Parameters

is_portal_claim
boolean
default:false

Set to true to force a portal claim. Supported for Colissimo, Chronopost, Colis Privé, Mondial Relay, InPost ES, and DHL Express carriers only. Requires a carrier contract setup.

Body

application/json

Data that is needed for creation of a ticket for own contract parcel and parcels created using Sendcloud rates is different. Please refer to relevant examples below.

tracking_number
string
required

Parcel tracking number

Example:

"3SABCD1234567"

carrier_contract_id
integer

The ID of the carrier contract associated with the parcel. Required when creating a ticket for a support only parcel that is not tracked in the Sendcloud system. The contract must belong to the authenticated user.

Example:

123

contents_sales_price
object

Sales value of the contents of the parcel

Example:
{ "price": 10.55, "currency": "EUR" }
contents_purchase_price
object

Purchase value of the contents of the parcel

Example:
{ "price": 8, "currency": "EUR" }
contents_description
string

Description of the contents of the parcel

Example:

"The parcel contains 3 t-shits and 1 pair of shoes."

parcel_exterior_description
string

Parcel exterior description

Example:

"The box has our branding."

additional_remarks
string

Additional remarks about the parcel

customer_confirmation
object

Written confirmation about the problem by the intended receiver

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
sales_invoice
object

The sales invoice

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
purchase_invoice
object

The purchase invoice

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
exterior_photo
object

A photo of the exterior of the shipment's box

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
interior_photo
object

A photo of the inside padding material

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
damage_photo_1
object

A photo of the damaged goods

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
damage_photo_2
object

An additional photo of the damaged goods

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
package_photo
object

A photo of the opened package taken from above. The entire contents of the inner package must be clearly visible

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}
entire_product_photo
object

A photo showing the entire product

Example:
{
"file_token": "b90e7a70-57c6-4338-992a-eae50d637261-6170706c69636174696f6e2f706466"
}

Response

Accepted

Create ticket response

ticket_id
integer
required