Create an investigation claim
curl --request POST \
--url https://api.example.com/claims/investigation \
--header 'Content-Type: application/json' \
--data '
{
"shipmentId": "2340923434",
"trackingCode": "DE062750105355XZ",
"shopOrderId": "20314532264784",
"carrier": {
"name": "dhl",
"country": "de"
},
"isReturnShipment": false,
"firstHubScanDate": "2019-06-30T12:34:06+00:00",
"netValue": 10.5,
"netValueCurrency": "EUR",
"recipientName": "Federico Garcia",
"recipientCity": "Berlin",
"recipientZipCode": "<string>",
"trackingScreenshot": 102545,
"weight": 1.52,
"deliveryDate": "2019-06-30T12:34:06+00:00",
"postalReturnDeliveryDate": "2019-06-30T12:34:06+00:00",
"declarationOfRecipient": 102545,
"investigationComment": "Can not find it"
}
'import requests
url = "https://api.example.com/claims/investigation"
payload = {
"shipmentId": "2340923434",
"trackingCode": "DE062750105355XZ",
"shopOrderId": "20314532264784",
"carrier": {
"name": "dhl",
"country": "de"
},
"isReturnShipment": False,
"firstHubScanDate": "2019-06-30T12:34:06+00:00",
"netValue": 10.5,
"netValueCurrency": "EUR",
"recipientName": "Federico Garcia",
"recipientCity": "Berlin",
"recipientZipCode": "<string>",
"trackingScreenshot": 102545,
"weight": 1.52,
"deliveryDate": "2019-06-30T12:34:06+00:00",
"postalReturnDeliveryDate": "2019-06-30T12:34:06+00:00",
"declarationOfRecipient": 102545,
"investigationComment": "Can not find it"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
shipmentId: '2340923434',
trackingCode: 'DE062750105355XZ',
shopOrderId: '20314532264784',
carrier: {name: 'dhl', country: 'de'},
isReturnShipment: false,
firstHubScanDate: '2019-06-30T12:34:06+00:00',
netValue: 10.5,
netValueCurrency: 'EUR',
recipientName: 'Federico Garcia',
recipientCity: 'Berlin',
recipientZipCode: '<string>',
trackingScreenshot: 102545,
weight: 1.52,
deliveryDate: '2019-06-30T12:34:06+00:00',
postalReturnDeliveryDate: '2019-06-30T12:34:06+00:00',
declarationOfRecipient: 102545,
investigationComment: 'Can not find it'
})
};
fetch('https://api.example.com/claims/investigation', 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://api.example.com/claims/investigation",
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([
'shipmentId' => '2340923434',
'trackingCode' => 'DE062750105355XZ',
'shopOrderId' => '20314532264784',
'carrier' => [
'name' => 'dhl',
'country' => 'de'
],
'isReturnShipment' => false,
'firstHubScanDate' => '2019-06-30T12:34:06+00:00',
'netValue' => 10.5,
'netValueCurrency' => 'EUR',
'recipientName' => 'Federico Garcia',
'recipientCity' => 'Berlin',
'recipientZipCode' => '<string>',
'trackingScreenshot' => 102545,
'weight' => 1.52,
'deliveryDate' => '2019-06-30T12:34:06+00:00',
'postalReturnDeliveryDate' => '2019-06-30T12:34:06+00:00',
'declarationOfRecipient' => 102545,
'investigationComment' => 'Can not find it'
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/claims/investigation"
payload := strings.NewReader("{\n \"shipmentId\": \"2340923434\",\n \"trackingCode\": \"DE062750105355XZ\",\n \"shopOrderId\": \"20314532264784\",\n \"carrier\": {\n \"name\": \"dhl\",\n \"country\": \"de\"\n },\n \"isReturnShipment\": false,\n \"firstHubScanDate\": \"2019-06-30T12:34:06+00:00\",\n \"netValue\": 10.5,\n \"netValueCurrency\": \"EUR\",\n \"recipientName\": \"Federico Garcia\",\n \"recipientCity\": \"Berlin\",\n \"recipientZipCode\": \"<string>\",\n \"trackingScreenshot\": 102545,\n \"weight\": 1.52,\n \"deliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"postalReturnDeliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"declarationOfRecipient\": 102545,\n \"investigationComment\": \"Can not find it\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/claims/investigation")
.header("Content-Type", "application/json")
.body("{\n \"shipmentId\": \"2340923434\",\n \"trackingCode\": \"DE062750105355XZ\",\n \"shopOrderId\": \"20314532264784\",\n \"carrier\": {\n \"name\": \"dhl\",\n \"country\": \"de\"\n },\n \"isReturnShipment\": false,\n \"firstHubScanDate\": \"2019-06-30T12:34:06+00:00\",\n \"netValue\": 10.5,\n \"netValueCurrency\": \"EUR\",\n \"recipientName\": \"Federico Garcia\",\n \"recipientCity\": \"Berlin\",\n \"recipientZipCode\": \"<string>\",\n \"trackingScreenshot\": 102545,\n \"weight\": 1.52,\n \"deliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"postalReturnDeliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"declarationOfRecipient\": 102545,\n \"investigationComment\": \"Can not find it\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/claims/investigation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"shipmentId\": \"2340923434\",\n \"trackingCode\": \"DE062750105355XZ\",\n \"shopOrderId\": \"20314532264784\",\n \"carrier\": {\n \"name\": \"dhl\",\n \"country\": \"de\"\n },\n \"isReturnShipment\": false,\n \"firstHubScanDate\": \"2019-06-30T12:34:06+00:00\",\n \"netValue\": 10.5,\n \"netValueCurrency\": \"EUR\",\n \"recipientName\": \"Federico Garcia\",\n \"recipientCity\": \"Berlin\",\n \"recipientZipCode\": \"<string>\",\n \"trackingScreenshot\": 102545,\n \"weight\": 1.52,\n \"deliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"postalReturnDeliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"declarationOfRecipient\": 102545,\n \"investigationComment\": \"Can not find it\"\n}"
response = http.request(request)
puts response.read_body{
"id": "20200301_DE062750105355XZ",
"shipmentId": "2340923434",
"trackingCode": "DE062750105355XZ",
"shopOrderId": "20314532264784",
"carrier": {
"name": "dhl",
"country": "de"
},
"isReturnShipment": false,
"firstHubScanDate": "2019-06-30T12:34:06+00:00",
"deliveryDate": "2019-06-30T12:34:06+00:00",
"postalReturnDeliveryDate": "2019-06-30T12:34:06+00:00",
"netValue": 10.5,
"netValueCurrency": "EUR",
"recipientName": "Federico Garcia",
"recipientCity": "Berlin",
"recipientZipCode": "<string>",
"weight": 1.52
}Claims
Create Investigation Claim
POST
/
claims
/
investigation
Create an investigation claim
curl --request POST \
--url https://api.example.com/claims/investigation \
--header 'Content-Type: application/json' \
--data '
{
"shipmentId": "2340923434",
"trackingCode": "DE062750105355XZ",
"shopOrderId": "20314532264784",
"carrier": {
"name": "dhl",
"country": "de"
},
"isReturnShipment": false,
"firstHubScanDate": "2019-06-30T12:34:06+00:00",
"netValue": 10.5,
"netValueCurrency": "EUR",
"recipientName": "Federico Garcia",
"recipientCity": "Berlin",
"recipientZipCode": "<string>",
"trackingScreenshot": 102545,
"weight": 1.52,
"deliveryDate": "2019-06-30T12:34:06+00:00",
"postalReturnDeliveryDate": "2019-06-30T12:34:06+00:00",
"declarationOfRecipient": 102545,
"investigationComment": "Can not find it"
}
'import requests
url = "https://api.example.com/claims/investigation"
payload = {
"shipmentId": "2340923434",
"trackingCode": "DE062750105355XZ",
"shopOrderId": "20314532264784",
"carrier": {
"name": "dhl",
"country": "de"
},
"isReturnShipment": False,
"firstHubScanDate": "2019-06-30T12:34:06+00:00",
"netValue": 10.5,
"netValueCurrency": "EUR",
"recipientName": "Federico Garcia",
"recipientCity": "Berlin",
"recipientZipCode": "<string>",
"trackingScreenshot": 102545,
"weight": 1.52,
"deliveryDate": "2019-06-30T12:34:06+00:00",
"postalReturnDeliveryDate": "2019-06-30T12:34:06+00:00",
"declarationOfRecipient": 102545,
"investigationComment": "Can not find it"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
shipmentId: '2340923434',
trackingCode: 'DE062750105355XZ',
shopOrderId: '20314532264784',
carrier: {name: 'dhl', country: 'de'},
isReturnShipment: false,
firstHubScanDate: '2019-06-30T12:34:06+00:00',
netValue: 10.5,
netValueCurrency: 'EUR',
recipientName: 'Federico Garcia',
recipientCity: 'Berlin',
recipientZipCode: '<string>',
trackingScreenshot: 102545,
weight: 1.52,
deliveryDate: '2019-06-30T12:34:06+00:00',
postalReturnDeliveryDate: '2019-06-30T12:34:06+00:00',
declarationOfRecipient: 102545,
investigationComment: 'Can not find it'
})
};
fetch('https://api.example.com/claims/investigation', 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://api.example.com/claims/investigation",
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([
'shipmentId' => '2340923434',
'trackingCode' => 'DE062750105355XZ',
'shopOrderId' => '20314532264784',
'carrier' => [
'name' => 'dhl',
'country' => 'de'
],
'isReturnShipment' => false,
'firstHubScanDate' => '2019-06-30T12:34:06+00:00',
'netValue' => 10.5,
'netValueCurrency' => 'EUR',
'recipientName' => 'Federico Garcia',
'recipientCity' => 'Berlin',
'recipientZipCode' => '<string>',
'trackingScreenshot' => 102545,
'weight' => 1.52,
'deliveryDate' => '2019-06-30T12:34:06+00:00',
'postalReturnDeliveryDate' => '2019-06-30T12:34:06+00:00',
'declarationOfRecipient' => 102545,
'investigationComment' => 'Can not find it'
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/claims/investigation"
payload := strings.NewReader("{\n \"shipmentId\": \"2340923434\",\n \"trackingCode\": \"DE062750105355XZ\",\n \"shopOrderId\": \"20314532264784\",\n \"carrier\": {\n \"name\": \"dhl\",\n \"country\": \"de\"\n },\n \"isReturnShipment\": false,\n \"firstHubScanDate\": \"2019-06-30T12:34:06+00:00\",\n \"netValue\": 10.5,\n \"netValueCurrency\": \"EUR\",\n \"recipientName\": \"Federico Garcia\",\n \"recipientCity\": \"Berlin\",\n \"recipientZipCode\": \"<string>\",\n \"trackingScreenshot\": 102545,\n \"weight\": 1.52,\n \"deliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"postalReturnDeliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"declarationOfRecipient\": 102545,\n \"investigationComment\": \"Can not find it\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.example.com/claims/investigation")
.header("Content-Type", "application/json")
.body("{\n \"shipmentId\": \"2340923434\",\n \"trackingCode\": \"DE062750105355XZ\",\n \"shopOrderId\": \"20314532264784\",\n \"carrier\": {\n \"name\": \"dhl\",\n \"country\": \"de\"\n },\n \"isReturnShipment\": false,\n \"firstHubScanDate\": \"2019-06-30T12:34:06+00:00\",\n \"netValue\": 10.5,\n \"netValueCurrency\": \"EUR\",\n \"recipientName\": \"Federico Garcia\",\n \"recipientCity\": \"Berlin\",\n \"recipientZipCode\": \"<string>\",\n \"trackingScreenshot\": 102545,\n \"weight\": 1.52,\n \"deliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"postalReturnDeliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"declarationOfRecipient\": 102545,\n \"investigationComment\": \"Can not find it\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/claims/investigation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"shipmentId\": \"2340923434\",\n \"trackingCode\": \"DE062750105355XZ\",\n \"shopOrderId\": \"20314532264784\",\n \"carrier\": {\n \"name\": \"dhl\",\n \"country\": \"de\"\n },\n \"isReturnShipment\": false,\n \"firstHubScanDate\": \"2019-06-30T12:34:06+00:00\",\n \"netValue\": 10.5,\n \"netValueCurrency\": \"EUR\",\n \"recipientName\": \"Federico Garcia\",\n \"recipientCity\": \"Berlin\",\n \"recipientZipCode\": \"<string>\",\n \"trackingScreenshot\": 102545,\n \"weight\": 1.52,\n \"deliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"postalReturnDeliveryDate\": \"2019-06-30T12:34:06+00:00\",\n \"declarationOfRecipient\": 102545,\n \"investigationComment\": \"Can not find it\"\n}"
response = http.request(request)
puts response.read_body{
"id": "20200301_DE062750105355XZ",
"shipmentId": "2340923434",
"trackingCode": "DE062750105355XZ",
"shopOrderId": "20314532264784",
"carrier": {
"name": "dhl",
"country": "de"
},
"isReturnShipment": false,
"firstHubScanDate": "2019-06-30T12:34:06+00:00",
"deliveryDate": "2019-06-30T12:34:06+00:00",
"postalReturnDeliveryDate": "2019-06-30T12:34:06+00:00",
"netValue": 10.5,
"netValueCurrency": "EUR",
"recipientName": "Federico Garcia",
"recipientCity": "Berlin",
"recipientZipCode": "<string>",
"weight": 1.52
}Body
application/json
Example:
"2340923434"
Example:
"DE062750105355XZ"
Example:
"20314532264784"
Show child attributes
Show child attributes
Example:
false
Example:
"2019-06-30T12:34:06+00:00"
Invoice net value
Example:
10.5
Currency of the invoice net value
Example:
"EUR"
Example:
"Federico Garcia"
Example:
"Berlin"
The recipient zipcode
File ID
Example:
102545
Weight (kg)
Example:
1.52
Example:
"2019-06-30T12:34:06+00:00"
Example:
"2019-06-30T12:34:06+00:00"
File ID
Example:
102545
Example:
"Can not find it"
Response
201 - application/json
Claim created successfully
Example:
"20200301_DE062750105355XZ"
Available options:
investigation, partial_damage, whole_damage, missing_item Available options:
submitted, action_required, in_progress, accepted, declined, successful, paid Example:
"2340923434"
Example:
"DE062750105355XZ"
Example:
"20314532264784"
Show child attributes
Show child attributes
Example:
false
Example:
"2019-06-30T12:34:06+00:00"
Example:
"2019-06-30T12:34:06+00:00"
Example:
"2019-06-30T12:34:06+00:00"
Invoice net value
Example:
10.5
Currency of the invoice net value
Example:
"EUR"
Example:
"Federico Garcia"
Example:
"Berlin"
The recipient zipcode
Weight (kg)
Example:
1.52
⌘I

