Update transit declaration
curl --request PATCH \
--url https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
fetch('https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}', 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://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"declarationId": 104,
"status": "processing"
}
Transit Declarations
Update transit declaration
Update an existing transit declaration (departure or arrival).
PATCH
/
v1
/
declarations
/
transit
/
{id}
Update transit declaration
curl --request PATCH \
--url https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
fetch('https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}', 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://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://devapi.eazecustoms.com/staging/v1/declarations/transit/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"declarationId": 104,
"status": "processing"
}
Update properties of an existing transit declaration. This endpoint supports updating departure declarations (both full and minimal revisions) as well as arrival declarations.
Path Parameters
number
required
The unique transit declaration ID.
Examples
{
"commercialReference": "TRN-2026-00001-UPD",
"procedureType": "D1",
"declarationType": "externalTransit",
"additionalDeclarationType": "STANDARD",
"departureOffice": "NL000432",
"destinationOffice": "NL000434",
"countryOfDispatch": "NL",
"countryOfDestination": "DE",
"security": "2",
"totalWeight": 2600,
"internalRemarks": "Updated from external API",
"goodsLocationType": "A",
"goodsLocationAddressType": "Z",
"goodsLocationAddress": {
"Address": {
"street": "Main St 2",
"city": "Rotterdam",
"postCode": "3011AB",
"countryCode": "NL"
}
},
"loadingCountry": "NL",
"loadingLocation": "Rotterdam Port Terminal 2",
"loadingUNLocode": "NLRTM",
"unloadingCountry": "DE",
"unloadingLocation": "Berlin Warehouse",
"unloadingUNLocode": "DEBER"
}
{
"destinationOffice": "NL000434",
"totalWeight": 2600,
"unloadingLocation": "Berlin Warehouse",
"internalRemarks": "Quantity revised before send"
}
{
"mrn": "26NL0000000001234",
"destinationOffice": "NL000567",
"arrivalOffice": "NL000567",
"goodsLocationType": "B",
"goodsLocationAddressType": "T",
"goodsLocationAddress": {
"Address": { "postCode": "1043AG", "countryCode": "NL" }
},
"simplifiedProcedure": true,
"arrivalTransportType": "3",
"arrivalTransportName": "TRUCK-001"
}
{
"declarationId": 104,
"status": "processing"
}
⌘I