Get Declaration
curl --request GET \
--url https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId} \
--header 'Authorization: Bearer <token>' \
--header 'X-Eaze-Client-Ref: <x-eaze-client-ref>'const options = {
method: 'GET',
headers: {'X-Eaze-Client-Ref': '<x-eaze-client-ref>', Authorization: 'Bearer <token>'}
};
fetch('https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}"
headers = {
"X-Eaze-Client-Ref": "<x-eaze-client-ref>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Eaze-Client-Ref", "<x-eaze-client-ref>");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}",
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: Bearer <token>",
"X-Eaze-Client-Ref: <x-eaze-client-ref>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}")
.header("X-Eaze-Client-Ref", "<x-eaze-client-ref>")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Eaze-Client-Ref", "<x-eaze-client-ref>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Eaze-Client-Ref"] = '<x-eaze-client-ref>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "33333333-3333-4333-8333-333333333333",
"shipmentId": "22222222-2222-4222-8222-222222222222",
"shipmentType": "IMPORT",
"lrn": "26NL00000000044821",
"mrn": null,
"commercialReference": "PO-44821",
"customsStatus": "CREATED",
"controlTypes": [],
"progress": {
"code": null,
"lifecycle": "new"
},
"summary": {
"procedureType": "H1",
"declarationType": "IM",
"additionalDeclarationType": "A",
"countryOfDispatch": "CN",
"countryOfDestination": "NL",
"totalInvoicePrice": "1250.00",
"invoiceCurrency": "EUR",
"grossMass": "42.500",
"goodsItems": 2
},
"timestamps": {
"createdAt": "2026-11-17T09:12:00.000Z",
"updatedAt": "2026-11-17T09:12:00.000Z",
"customsSubmittedAt": null,
"acceptedAt": null,
"clearedAt": null,
"exitedAt": null
},
"businessData": {
"representation": "DIRECT",
"parties": {
"consignee": {
"name": "Buyer BV",
"eori": "NL123456789",
"address": {
"street": "Harbour 1",
"city": "Rotterdam",
"state": null,
"postcode": "3011AA",
"country": "NL"
}
},
"consignor": null,
"declarant": null,
"representative": null,
"carrier": null,
"importer": {
"name": "Buyer BV",
"eori": "NL123456789",
"address": {
"street": "Harbour 1",
"city": "Rotterdam",
"state": null,
"postcode": "3011AA",
"country": "NL"
}
},
"exporter": null,
"buyer": null,
"seller": null,
"payer": null,
"vatPayer": null,
"receivingPoint": null,
"guarantor": null,
"surety": null
},
"countries": {
"dispatch": "CN",
"destination": "NL",
"border": "NL",
"routing": [
{
"sequenceNumber": 1,
"country": "BE"
}
]
},
"offices": {
"declaration": "NL000432",
"supervising": "NL000456",
"export": null,
"exit": null
},
"locations": {
"goods": {
"type": "B",
"qualifier": "U",
"details": {
"unlocode": "NLRTM"
}
},
"warehouse": {
"type": null,
"identifier": null
}
},
"transport": {
"containerIndicator": false,
"equipment": [],
"inland": {
"mode": "3",
"identificationType": "30",
"identification": "TRUCK-1",
"nationality": "NL"
},
"border": {
"mode": null,
"identificationType": null,
"identification": null,
"nationality": null
}
},
"transaction": {
"nature": "11",
"paymentMethod": "A",
"vatPaymentMode": null,
"incoterm": "CIF",
"incotermLocation": "Rotterdam"
},
"costs": {
"freight": {
"amount": "10.00",
"currency": "EUR",
"paymentMethod": "A"
},
"insurance": {
"amount": null,
"currency": null
},
"adjustment": {
"amount": null,
"currency": null
}
},
"security": {
"code": "NONE",
"specificCircumstances": null,
"presentationAt": null,
"mutualRecognitionParties": []
},
"guarantee": {
"type": null,
"reference": null,
"otherReference": null,
"office": null,
"amount": null,
"currency": null
}
},
"customsOutcome": {
"provisionalRelease": false,
"provisionalTax": false
}
}{
"errorCode": "E0001",
"message": "Invalid request parameters",
"errors": [
{
"field": "shipmentType",
"message": "Invalid option: expected one of \"IMPORT\"|\"EXPORT\""
}
],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0002",
"message": "Missing, invalid, expired or revoked Eaze Customs API credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0003",
"message": "The import module is not enabled for this credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0004",
"message": "Shipment not found",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0008",
"message": "Public API rate limit exceeded",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0009",
"message": "Unexpected server error",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Declarations
Get Declaration
Retrieve one Import or Export Declaration, including parties, transport, locations, costs, guarantee references, Customs status, and the LRN and MRN when available.
GET
/
public
/
v1
/
declarations
/
{declarationId}
Get Declaration
curl --request GET \
--url https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId} \
--header 'Authorization: Bearer <token>' \
--header 'X-Eaze-Client-Ref: <x-eaze-client-ref>'const options = {
method: 'GET',
headers: {'X-Eaze-Client-Ref': '<x-eaze-client-ref>', Authorization: 'Bearer <token>'}
};
fetch('https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}"
headers = {
"X-Eaze-Client-Ref": "<x-eaze-client-ref>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Eaze-Client-Ref", "<x-eaze-client-ref>");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}",
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: Bearer <token>",
"X-Eaze-Client-Ref: <x-eaze-client-ref>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}")
.header("X-Eaze-Client-Ref", "<x-eaze-client-ref>")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Eaze-Client-Ref", "<x-eaze-client-ref>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://staging.api.eazecustoms.com/public/v1/declarations/{declarationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Eaze-Client-Ref"] = '<x-eaze-client-ref>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "33333333-3333-4333-8333-333333333333",
"shipmentId": "22222222-2222-4222-8222-222222222222",
"shipmentType": "IMPORT",
"lrn": "26NL00000000044821",
"mrn": null,
"commercialReference": "PO-44821",
"customsStatus": "CREATED",
"controlTypes": [],
"progress": {
"code": null,
"lifecycle": "new"
},
"summary": {
"procedureType": "H1",
"declarationType": "IM",
"additionalDeclarationType": "A",
"countryOfDispatch": "CN",
"countryOfDestination": "NL",
"totalInvoicePrice": "1250.00",
"invoiceCurrency": "EUR",
"grossMass": "42.500",
"goodsItems": 2
},
"timestamps": {
"createdAt": "2026-11-17T09:12:00.000Z",
"updatedAt": "2026-11-17T09:12:00.000Z",
"customsSubmittedAt": null,
"acceptedAt": null,
"clearedAt": null,
"exitedAt": null
},
"businessData": {
"representation": "DIRECT",
"parties": {
"consignee": {
"name": "Buyer BV",
"eori": "NL123456789",
"address": {
"street": "Harbour 1",
"city": "Rotterdam",
"state": null,
"postcode": "3011AA",
"country": "NL"
}
},
"consignor": null,
"declarant": null,
"representative": null,
"carrier": null,
"importer": {
"name": "Buyer BV",
"eori": "NL123456789",
"address": {
"street": "Harbour 1",
"city": "Rotterdam",
"state": null,
"postcode": "3011AA",
"country": "NL"
}
},
"exporter": null,
"buyer": null,
"seller": null,
"payer": null,
"vatPayer": null,
"receivingPoint": null,
"guarantor": null,
"surety": null
},
"countries": {
"dispatch": "CN",
"destination": "NL",
"border": "NL",
"routing": [
{
"sequenceNumber": 1,
"country": "BE"
}
]
},
"offices": {
"declaration": "NL000432",
"supervising": "NL000456",
"export": null,
"exit": null
},
"locations": {
"goods": {
"type": "B",
"qualifier": "U",
"details": {
"unlocode": "NLRTM"
}
},
"warehouse": {
"type": null,
"identifier": null
}
},
"transport": {
"containerIndicator": false,
"equipment": [],
"inland": {
"mode": "3",
"identificationType": "30",
"identification": "TRUCK-1",
"nationality": "NL"
},
"border": {
"mode": null,
"identificationType": null,
"identification": null,
"nationality": null
}
},
"transaction": {
"nature": "11",
"paymentMethod": "A",
"vatPaymentMode": null,
"incoterm": "CIF",
"incotermLocation": "Rotterdam"
},
"costs": {
"freight": {
"amount": "10.00",
"currency": "EUR",
"paymentMethod": "A"
},
"insurance": {
"amount": null,
"currency": null
},
"adjustment": {
"amount": null,
"currency": null
}
},
"security": {
"code": "NONE",
"specificCircumstances": null,
"presentationAt": null,
"mutualRecognitionParties": []
},
"guarantee": {
"type": null,
"reference": null,
"otherReference": null,
"office": null,
"amount": null,
"currency": null
}
},
"customsOutcome": {
"provisionalRelease": false,
"provisionalTax": false
}
}{
"errorCode": "E0001",
"message": "Invalid request parameters",
"errors": [
{
"field": "shipmentType",
"message": "Invalid option: expected one of \"IMPORT\"|\"EXPORT\""
}
],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0002",
"message": "Missing, invalid, expired or revoked Eaze Customs API credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0003",
"message": "The import module is not enabled for this credential",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0004",
"message": "Shipment not found",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0008",
"message": "Public API rate limit exceeded",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}{
"errorCode": "E0009",
"message": "Unexpected server error",
"errors": [],
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Authorizations
Headers
Response
Successful response.