DHL · Schema

CustomsDocumentUploadRequest

Multipart/form-data request body for uploading customs documents. Currently, only one document can be uploaded per request. Support for up to four documents per request is planned for a future release.

FreightLogisticsShippingE-CommerceTrackingSupply ChainExpress DeliveryPostal ServicesParcel

Properties

Name Type Description
documents array List of customs documents to upload. Submitted as multipart form fields using bracket notation, e.g. documents[0].documentType, documents[0].userDefinedReference, documents[0].data, documents[1]...
View JSON Schema on GitHub

JSON Schema

dhl-customs-document-upload-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-customs-document-upload-request-schema.json",
  "title": "CustomsDocumentUploadRequest",
  "description": "Multipart/form-data request body for uploading customs documents. Currently, only one document can be uploaded per request. Support for up to four documents per request is planned for a future release.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-parcel-de-shipping-post-parcel-germany-v2-openapi.yml#/components/schemas/CustomsDocumentUploadRequest",
  "type": "object",
  "required": [
    "documents"
  ],
  "properties": {
    "documents": {
      "minItems": 1,
      "maxItems": 1,
      "type": "array",
      "description": "List of customs documents to upload. Submitted as multipart form fields using bracket notation, e.g. documents[0].documentType, documents[0].userDefinedReference, documents[0].data, documents[1]...",
      "items": {
        "$ref": "#/$defs/CustomsDocumentUploadItem"
      }
    }
  },
  "$defs": {
    "CustomsDocumentUploadItem": {
      "required": [
        "documentType",
        "data"
      ],
      "type": "object",
      "properties": {
        "documentType": {
          "type": "string",
          "description": "Type of the customs document.",
          "enum": [
            "Invoice",
            "CN23"
          ]
        },
        "userDefinedReference": {
          "maxLength": 60,
          "minLength": 0,
          "type": "string",
          "description": "Optional customer-defined reference for the document, e.g. an order or file reference. Values exceeding 60 characters are truncated and result in a warning."
        },
        "data": {
          "type": "string",
          "format": "binary",
          "description": "The PDF file content. Only application/pdf is accepted. Maximum file size 1 MB, maximum filename length 60 characters."
        }
      },
      "description": "A single customs document and its metadata."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/dhl-customs-document-upload-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.