DHL

DHL Print API

The print API from DHL — 3 operation(s) for print.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /print/printdocumentsbyid Print documents for shipment IDs · /print/printdocumentsbyid #
Ask an LLM
“Can I print the documents for several shipments at once by their IDs?”
“What do I send to print documents for a list of shipments?”
Tell an agent
Print documents for shipments {shipmentIds}.
Print documents for {shipmentIds} with options {options}.
POST /print/printdocuments Print documents for one shipment · /print/printdocuments #
Ask an LLM
“How do I print the documents for a single shipment?”
“Can I print one shipment's documents with custom options?”
Tell an agent
Print documents for shipment {shipment}.
Print {shipment} with options {options}.
POST /print/printmultipledocuments Print a batch of shipment documents in one call · /print/printmultipledocuments #
Ask an LLM
“Can I send a whole batch of shipment objects in a single request to get their documents printed?”
“Is there a multi-document print endpoint for DHL Freight that takes shipment details instead of IDs?”
Tell an agent
Print multiple documents for this batch of shipment details: {shipments}.
Print multiple documents for the shipment details {shipments} using the print settings {options}.

Documentation

📖
Documentation
https://developer.dhl.com/tracking
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-unified-push
📖
Documentation
https://developer.dhl.com/api-reference/additional-services-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/authentication-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/authentication-api-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/authentication-api-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/datafactory-autocomplete-20-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-hybrid-mail-shipments-e-post-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-international-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-internetmarke-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-print-mailing-dispatch-preparation-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-print-mailing-targeting-post-parcel-germany
📖
Documentation
https://developer.dhl.com/parcel-connect
📖
Documentation
https://developer.dhl.com/api-reference/econnect-beta-dhl-ecommerce-europe
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-pickup-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-postnumber-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-private-shipping-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-returns-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/parcel-de-shipping-post-parcel-germany-v2
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-shipment-tracking-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dgf-document
📖
Documentation
https://developer.dhl.com/api-reference/duty-tax-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/ecommerce-uk
📖
Documentation
https://developer.dhl.com/api-reference/parcel-eu
📖
Documentation
https://developer.dhl.com/api-reference/pickup-cancellation-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/price-quote-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/print-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/product-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/product-and-sub-product-pickup-detail-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/product-finder-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/products-api-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dgf-push-api
📖
Documentation
https://developer.dhl.com/api-reference/registration-pickup-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/return-label-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/shipment-booking-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/dgf-shipment-booking
📖
Documentation
https://developer.dhl.com/api-reference/shipment-label-dhl-global-forwarding
📖
Documentation
https://developer.dhl.com/api-reference/dgf-shipment-status
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-v2-dhl-global-forwarding
📖
Documentation
https://developer.dhl.com/api-reference/time-table-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/tracking-dhl-ecommerce-americas

Specifications

Schemas & Data

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/dhl:dhl-print-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

dhl-print-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Print API
  version: 1.3 (2026/R05)
  contact:
    email: api4freight@dhl.com
  description: 'Operations tagged print across 2 of this provider''s published API definitions: dhl-print-dhl-freight-openapi.yml, dhl-print-dhl-freight-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-sandbox.dhl.com/freight/shipping/labels/v1
  description: Customer Sandbox Environment
- url: https://api.dhl.com/freight/shipping/labels/v1
  description: Customer Production Environment
security:
- bearerAuth: []
tags:
- name: Print
paths:
  /print/printdocumentsbyid:
    post:
      tags:
      - Print
      summary: /print/printdocumentsbyid
      description: Print documents for one or more shipment ids
      operationId: printPrintdocumentsbyid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrintOptionsById'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrintResult'
    servers:
    - url: https://api-sandbox.dhl.com/freight/shipping/labels/v1
      description: Customer Sandbox Environment
    - url: https://api.dhl.com/freight/shipping/labels/v1
      description: Customer Production Environment
  /print/printdocuments:
    post:
      tags:
      - Print
      summary: /print/printdocuments
      description: Print documents
      operationId: printPrintdocuments
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                shipment:
                  $ref: '#/components/schemas/Shipment'
                options:
                  $ref: '#/components/schemas/ReportOptions'
        required: true
      responses:
        '200':
          description: PrintResult
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrintResult'
    servers:
    - url: https://api-sandbox.dhl.com/freight/shipping/labels/v1
      description: Customer Sandbox Environment
    - url: https://api.dhl.com/freight/shipping/labels/v1
      description: Customer Production Environment
  /print/printmultipledocuments:
    post:
      tags:
      - Print
      summary: /print/printmultipledocuments
      description: Print multiple documents
      operationId: printPrintmultipledocuments
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                shipments:
                  type: array
                  items:
                    $ref: '#/components/schemas/Shipment'
                options:
                  $ref: '#/components/schemas/ReportOptions'
      responses:
        '200':
          description: PrintResult
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrintResult'
    servers:
    - url: https://api-sandbox.dhl.com/freight/shipping/labels/v1
      description: Customer Sandbox Environment
    - url: https://api.dhl.com/freight/shipping/labels/v1
      description: Customer Production Environment
components:
  schemas:
    PrintOptionsById:
      type: object
      properties:
        shipmentIds:
          type: array
          maxItems: 999
          minItems: 1
          items:
            type: string
          description: Provide one or more shipment ids that were returned from the Booking API.
          example: '["SHIPMENT.ID-1", "SHIPMENT.ID-2"]'
        options:
          $ref: '#/components/schemas/ReportOptions'
    ThermoType:
      type: string
      enum:
      - Cold
      - Ambient
      - Custom
      description: Thermo Type as Cold (2-8 °C), Ambient (15-25 °C), Custom (min-max °C)
      example: Cold
    Party:
      required:
      - address
      - name
      - type
      type: object
      properties:
        id:
          maxLength: 15
          type: string
          description: For a consignor, consignee or freight payer the customer account number. Mandatory for the party that according to the payer code will be freight payer. For an access point, i.e. parcel shop, parcel station etc, this is the identifier of this location.
        type:
          maxLength: 15
          type: string
          enum:
          - Consignor
          - Pickup
          - Consignee
          - Delivery
        vatEoriSocialSecurityNumber:
          maxLength: 20
          type: string
          description: Used for customs clearance when importing or exporting with countries outside the EU.
          example: ''
        name:
          maxLength: 35
          type: string
        contactName:
          maxLength: 35
          type: string
        references:
          maxItems: 99
          type: array
          items:
            type: string
        address:
          $ref: '#/components/schemas/Address'
        phone:
          maxLength: 64
          type: string
        email:
          maxLength: 64
          type: string
    ThermoColdOptions:
      type: object
      description: 'For “Thermo Cold” deliveries, the temperature is maintained at between +2 and +8°C throughout the transport chain. Different temperature ranges can be provided by special agreement (although max. 15°C).

        '
      properties:
        min:
          type: number
          format: double
          minimum: 2
        max:
          type: number
          format: double
          maximum: 15
    PrintResult:
      type: object
      properties:
        reports:
          type: array
          items:
            $ref: '#/components/schemas/PrintReport'
          readOnly: true
    LicenseBarCodeEnum:
      type: string
      enum:
      - GS1
      - Code128
    InsuranceOptions:
      required:
      - currency
      - value
      type: object
      properties:
        value:
          type: number
          format: double
        currency:
          maxLength: 3
          type: string
          description: 'ISO 4217 codes are three-letter currency codes

            '
          example: EUR
    AvailablePickupDeliveryTimeOptions:
      required:
      - fromTime
      - toTime
      type: object
      description: "Use this time frame for indicating pickup/delivery location’s opening hours or when your goods are available for pickup.  For a fixed aligned pickup/delivery time slot window, please use the respective additional services time slot booking.    \n"
      properties:
        fromTime:
          type: string
          format: time
          example: 09:30
        toTime:
          type: string
          format: time
          example: '14:30'
    Shipment:
      required:
      - id
      - parties
      - payerCode
      - pieces
      - productCode
      type: object
      properties:
        id:
          maxLength: 13
          type: string
          description: 'The shipment''s tracking id: The unique global number that ensures that packages are not separated from each other during transport from one point to another.

            '
          example: ''
        productCode:
          maxLength: 3
          type: string
          description: See the product documentation for available options. You can also use GET /products to see available product for your region. With POST /productmatches you can validate which products fit to your shipment details.
          example: ECI
        shippingDate:
          type: string
          format: date
        requestedDeliveryDate:
          type: string
          description: Required with **DHL Eurapid** and Commited Delivery Date (CDD).
          format: date
        deliveryInstruction:
          maxLength: 140
          type: string
        totalNumberOfPieces:
          maximum: 999
          type: integer
          format: int32
          example: 1
        totalWeight:
          maximum: 99999
          type: number
          description: The shipment total weight weight in kg
          format: double
          example: 380
        totalVolume:
          maximum: 999
          type: number
          description: The shipment total volume in m³
          format: double
          example: 0.864
        totalLoadingMeters:
          maximum: 99
          type: number
          description: A loading meter (LDM) is 1 meter of the loading space of a truck's width and full height. Usually calculated for goods that cannot be stacked on or with other goods.
          format: double
        payerCode:
          $ref: '#/components/schemas/PayerCode'
        parties:
          maxItems: 6
          minItems: 2
          type: array
          items:
            $ref: '#/components/schemas/Party'
        pieces:
          maxItems: 999
          type: array
          items:
            $ref: '#/components/schemas/Piece'
        additionalServices:
          $ref: '#/components/schemas/AdditionalServicesDTO'
        additionalInformation:
          maxItems: 99
          type: array
          items:
            $ref: '#/components/schemas/AdditionalInformation'
    Address:
      required:
      - street
      - cityName
      - postalCode
      - countryCode
      type: object
      properties:
        street:
          maxLength: 35
          type: string
          description: Provide both street name and house number in this field.
        additionalAddressInfo:
          maxLength: 35
          type: string
        cityName:
          maxLength: 35
          type: string
        postalCode:
          maxLength: 9
          type: string
        countryCode:
          maxLength: 2
          type: string
          description: "ISO 3166-1 are two-letter country codes \n"
          example: DE
    ReportOptions:
      type: object
      properties:
        label:
          type: boolean
        shipmentList:
          type: boolean
        shipmentListType:
          type: string
          enum:
          - Consignee
          - Delivery
        waybill:
          type: boolean
        guarantee:
          type: boolean
        returnLabel:
          type: boolean
        licensePlateBarCode:
          $ref: '#/components/schemas/LicenseBarCodeEnum'
        pageOptions:
          $ref: '#/components/schemas/PageOptions'
    HighValueShipmentOptions:
      required:
      - currency
      - value
      type: object
      properties:
        value:
          type: number
          format: double
        currency:
          maxLength: 3
          type: string
          description: 'ISO 4217 codes are three-letter currency codes.

            '
          example: EUR
    PageTypeEnum:
      type: string
      enum:
      - Label
      - Label2xPortraitA4
      - Label3xLandscapeA4
      - LabelCompact
      description: For ZPL outputs, only LabelCompact format is supported.
    AdditionalInformation:
      type: object
      properties:
        code:
          type: string
          enum:
          - EKAER_NUMBER
          - EKAER_FREE
          - SENT_REF
          - SENT_CARKEY
          description: 'Contains predefined code values (see enumerator) to handle country specific shipment fields for e.g. Hungarian EKAER and Polish SENT legal requirements.

            '
          example: EKAER_NUMBER
        stringValue:
          type: string
          description: 'Contains the content/value for the respective code. For EKAER_NUMBER: provide the Hungarian EKAER number and omit EKAER_FREE. For EKAER_FREE: provide true or false. If true, omit EKAER_NUMBER. For SENT_REF: provide the Polish SENT system reference value. For SENT_CARKEY: provide the Polish SENT carrier key

            '
          example: E23022311111111
        dateValue:
          type: string
          format: date-time
        numericValue:
          type: number
          format: double
    TemperatureControlledOptions:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ThermoType'
        min:
          type: number
          format: double
        max:
          type: number
          format: double
    PayerCode:
      required:
      - code
      type: object
      properties:
        code:
          maxLength: 3
          type: string
          description: See the product documentation for available options based on selected product. You can also use GET /products {productCode} to see available payer codes for your product.
          example: DAP
    FixedDeliveryDateOptions:
      required:
      - date
      type: object
      properties:
        date:
          type: string
          format: date
    PrintReport:
      type: object
      properties:
        name:
          type: string
        content:
          type: string
          description: 'Contains the generated document content. For PDF output, the value contains Base64-encoded PDF content. For ZPL, ZPL300 or ZPL600 output, the value contains the complete ZPL printer stream inside the JSON response. Send the complete deserialised value directly to the Zebra printer. Do not split, parse or reconstruct the content based on ^XA/^XZ blocks. Multiple ^XA/^XZ blocks are expected behaviour.

            '
        type:
          type: string
        valid:
          type: boolean
    AdditionalServicesDTO:
      type: object
      properties:
        after12Delivery:
          type: boolean
          example: false
        availableDeliveryTime:
          $ref: '#/components/schemas/AvailablePickupDeliveryTimeOptions'
        availablePickupTime:
          $ref: '#/components/schemas/AvailablePickupDeliveryTimeOptions'
        cashOnDelivery:
          $ref: '#/components/schemas/CashOnDeliveryOptions'
        dangerousGoods:
          type: boolean
          example: false
        dropOffByConsignor:
          type: boolean
          example: false
        fixedDeliveryDate:
          $ref: '#/components/schemas/FixedDeliveryDateOptions'
        highValueShipment:
          $ref: '#/components/schemas/HighValueShipmentOptions'
        insurance:
          $ref: '#/components/schemas/InsuranceOptions'
        preAdvice:
          type: boolean
          example: false
        driverPreAdviceDelivery:
          type: boolean
          example: false
        priorityServiceP10:
          type: boolean
          example: false
        priorityServiceP12:
          type: boolean
          example: false
        sideLoadingPickup:
          type: boolean
          example: false
        sideUnloadingDelivery:
          type: boolean
          example: false
        tailLiftLoading:
          type: boolean
          example: false
        tailLiftUnloading:
          type: boolean
          example: false
        temperatureControlled:
          $ref: '#/components/schemas/TemperatureControlledOptions'
        thermoCold:
          $ref: '#/components/schemas/ThermoColdOptions'
        timeSlotBookingPickup:
          type: boolean
          example: false
        timeSlotBookingDelivery:
          type: boolean
          example: false
    Piece:
      required:
      - id
      - numberOfPieces
      - packageType
      - weight
      type: object
      properties:
        id:
          type: array
          minItems: 1
          maxItems: 999
          uniqueItems: true
          description: 'The SSCC (Serial Shipping Container Code) a unique GS1/GS1-128 number, used to identify a logistic unit, such as a case, pallet or parcel.

            '
          example: []
          items:
            maxLength: 35
            type: string
        goodsType:
          maxLength: 70
          type: string
          description: Description of goods on cargo detail level.
        packageType:
          maxLength: 4
          type: string
          example: PAL
          description: 'See the product documentation for available options based on selected product. You can also use GET / packageTypes {productCode} to receive the allowed package types for your selected product

            '
        marksAndNumbers:
          maxLength: 45
          type: string
        numberOfPieces:
          maximum: 999
          minimum: 1
          type: integer
          format: int32
          example: 1
        weight:
          maximum: 99999
          type: number
          description: Item weight in kg
          format: double
          example: 380
        volume:
          maximum: 999
          type: number
          description: Item volume in m³
          format: double
          example: 0.864
        loadingMeters:
          maximum: 99
          type: number
          format: double
        width:
          maximum: 999
          type: number
          description: Item width in cm
          format: double
          example: 80
        height:
          maximum: 999
          type: number
          description: Item height in cm
          format: double
          example: 90
        length:
          maximum: 9999
          type: number
          description: Item length in cm
          format: double
          example: 120
        stackable:
          type: boolean
    CashOnDeliveryOptions:
      required:
      - amount
      - currency
      type: object
      properties:
        amount:
          type: integer
          format: int64
          example: 475
        currency:
          maxLength: 3
          type: string
          description: 'ISO 4217 codes are three-letter currency codes

            '
          example: EUR
    PageOptions:
      type: object
      properties:
        pageType:
          $ref: '#/components/schemas/PageTypeEnum'
        marginLeft:
          format: double
          type: number
        marginTop:
          format: double
          type: number
        padding:
          format: double
          type: number
        outputType:
          type: string
          enum:
          - PDF
          - ZPL
          - ZPL300
          - ZPL600
          description: PDF is suitable for all laser printers. For 203 DPI label printer support, please use ZPL.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-refined-from:
- dhl-print-dhl-freight-openapi.yml
- dhl-print-dhl-freight-openapi.yml