How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

DSV Customs API

Transmits, updates and retrieves customs declarations through DSV Customs AI. Fields follow customs-authority vocabulary — HS commodity codes, EORI/importer/exporter registration codes, Incoterms with UN/LOCODE places, holder-of-authorization records, bill of lading package counts and container lists — but no reference to the WCO Data Model or to EU eFTI is published.

DSV Customs API is one of 29 APIs that DSV publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Customs, Trade Compliance, and Declarations. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, API documentation, and authentication docs.

This API exposes 3 operations across 2 paths, and defines 25 schemas. It is described by OpenAPI 3.0.1, at version v2.

Requests are made against a single base URL, https://api.dsv.com/csai-demo/v2.

3 operations 2 paths 25 schemas 1 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
v2
Base URL
https://api.dsv.com/csai-demo/v2
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

DSV Customs API declares 2 security schemes for authenticating requests. An API key is passed in the header as DSV-Subscription-Key (apiKeyHeader). An API key is passed in the query as DSV-Subscription-Key (apiKeyQuery). By default, every request must be authenticated.

Paths & Operations 3

Across 2 paths, the API surfaces 3 operations — 1 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Declarations 3
POST
/declarations
Transmit cleared customs declaration data
03-post-declarations body → 201400500
GET
/declarations/{id}
Get draft customs declaration by ID
01-get-declarations-id 1 param → 200400404500
PUT
/declarations/{id}
Audit existing draft customs declaration
02-put-declarations-id 1 param body → 200400404500

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are Header (102 properties), Line (77 properties), Parties (14 properties), CommercialInvoiceLine (13 properties). Each schema is shown below with its type and property counts.

CustomsDeclarationRequest
object
Request payload used to create a new customs declaration. Contains the full declaration data submitted by the client.
2 properties
CustomsDeclarationEnvelope
object
2 properties
Declaration
object
The full customs declaration object containing header, line items, invoices, and additional notes.
5 properties
Header
object
Contains all header-level information for the declaration, including shipment details, parties involved, transport data, dates, and customs procedure reference…
102 properties
Parties
object
A collection of all parties involved in the customs declaration and the associated shipment. Each party represents a distinct role in the trade or logistics ch…
14 properties
Party
object
5 properties
Address
object
Physical or registered address of a party involved in the customs declaration. Supports up to four address lines to accommodate varying international address f…
8 properties
Line
object
Line item in the declaration.
77 properties
Tax
object
Duty and tax details at header level.
6 properties
TaxLine
object
Classification and amount details for a specific tax or duty applied at line level.
5 properties
HolderOfAuthorization
object
Entity holding a specific customs authorization.
2 properties
Container
object
Container and seal information for goods shipment.
2 properties
TotalAdditionsAndDeductions
object
Adjustments to customs value of goods at header level.
5 properties
AdditionsAndDeductionsLine
object
Costs or amounts added to or subtracted from the value of the goods to calculate the total customs value at line level.
5 properties
TotalGuarantee
object
Financial security provided to Customs to ensure payment of duties, taxes, or compliance with customs procedures.
4 properties
Guarantee
object
Financial security provided to Customs at line level.
7 properties
PreviousDocument
object
Reference to a document that precedes or supports the current customs declaration.
3 properties
PreviousDocumentLine
object
Reference to a document related to or supporting a specific item in the shipment.
3 properties
AdditionalDocument
object
Document supporting the customs declaration at header level.
5 properties
AdditionalDocumentLine
object
Extra document related to a specific line item that supports or clarifies the declaration.
5 properties
AdditionalInformation
object
Supplementary data required for customs at header level.
2 properties
AdditionalInformationLine
object
Supplementary data related to a specific item in the customs declaration.
2 properties
AdditionalCodeLine
object
Secondary HS code required by customs authority for certain commodities (e.g., Section 301 duties for goods from CN).
1 property
CommercialInvoice
object
Commercial invoice associated with the customs declaration.
4 properties
CommercialInvoiceLine
object
Individual line item of a commercial invoice.
13 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

dsv-customs-ai-demo-v2-openapi.json Raw ↑

Other APIs DSV publishes across the network.

DSV Access Token API
DSV Booking API (Air, Sea, Road EU, Rail)
DSV Tracking API (Air, Sea, Road EU, Rail)
DSV Label Print API
DSV Document Upload API
DSV Document Download API
DSV Invoice API
DSV Visibility API
DSV Quote API
DSV Webhook API
DSV Webhook API (INT / Warehousing)
DSV Connect Booking API (SOAP)
Where this information came from

This is an independent, third-party profile of DSV Customs API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.