DHL

DHL Send aggregate API

The Send aggregate API from DHL — 1 operation(s) for send aggregate.

GitHub OpenAPI

Operations 1

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 /econnect/aggregate Aggregate shipping labels via eConnect · Send aggregation message and receive a label #
Ask an LLM
“How do I generate shipping labels from aggregated shipment data for DHL Connect Light?”
“Can I get the label back in my preferred file format and resolution?”
Tell an agent
Aggregate this eConnect shipment data and return a label: {dataElement}.
Send aggregated shipping data {dataElement} and get back a label.

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-send-aggregate-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-send-aggregate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Send aggregate API
  version: '1.0'
  description: 'Operations tagged Send aggregate across 3 of this provider''s published API definitions: dhl-ecommerce-europe-openapi.yml, dhl-ecommerce-europe-openapi.yml, dhl-econnect-beta-dhl-ecommerce-europe-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-sandbox.dhl.com
tags:
- name: Send aggregate
paths:
  /econnect/aggregate:
    post:
      security:
      - OAuth2: []
      summary: Send aggregation message and receive a label
      description: 'Purpose of this service is to aggregate shipment data for the product DHL Connect Light to the eConnect API and receive a label in response, as per the requested file format and resolution. For supported services and features please refer to the Get Started section of this developer website.


        **System Response Codes**


        The System Response Codes are provided in the *status* filed of the response.


        |HTTP Code|Status Code|Description|

        |---|---|--------|

        |200|200|Aggregate processed|

        |401||Unauthorized|

        |429||Too many requests, try again later|

        |500||Internal Server error, contact support|

        |503||Service Unavailable|'
      parameters: []
      requestBody:
        description: Connect Light details defined in JSON schema.
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/aggregateRequest'
            examples:
              aggregateEXP:
                $ref: '#/components/examples/aggregateEXP'
              aggregateEXP_multiContainer:
                $ref: '#/components/examples/aggregateEXP_multiContainer'
              aggregateEXP_onlyMail:
                $ref: '#/components/examples/aggregateEXP_onlyMail'
      tags:
      - Send aggregate
      responses:
        '200':
          $ref: '#/components/responses/200_aggregate'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '429':
          $ref: '#/components/responses/429_TooManyRequests'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
        '503':
          $ref: '#/components/responses/503_ServiceUnavailable'
      operationId: postEconnectAggregate
      x-operation-id-source: derived
    servers:
    - url: https://api-sandbox.dhl.com
components:
  examples:
    aggregateEXP_onlyMail:
      summary: aggregate for EXP customer only Mail
      value:
        dataElement:
          labelDetails:
            label: true
            formatLabel: pdf
          general:
            product: connect.light.container
            timestamp: '2026-01-01T12:00:00+02:00'
            customerId: '5012345678'
          aggregate:
            scenario: AWB
            physical:
              grossWeight: 10.0
            relations:
              hierarchy:
                reference: {}
            containerList:
              container:
              - relations:
                  hierarchy:
                    reference:
                    - index: 1
                      total: 1
    aggregateEXP:
      summary: aggregate for EXP customer
      value:
        dataElement:
          labelDetails:
            label: true
            formatLabel: pdf
          general:
            product: connect.light.container
            timestamp: '2026-01-01T12:00:00+02:00'
            customerId: '5012345678'
          aggregate:
            scenario: AWB
            physical:
              grossWeight: 10.0
            relations:
              hierarchy:
                reference:
                  referenceId:
                  - UT0003DE
                  - UT0004DE
                  - UT0005DE
            containerList:
              container:
              - relations:
                  hierarchy:
                    reference:
                    - index: 1
                      total: 1
    aggregateEXP_multiContainer:
      summary: aggregate for EXP customer with multiple container
      value:
        dataElement:
          labelDetails:
            label: true
            formatLabel: pdf
          general:
            product: connect.light.container
            timestamp: '2026-01-01T12:00:00+02:00'
            customerId: '5012345678'
          aggregate:
            scenario: AWB
            physical:
              grossWeight: 10.0
            relations:
              hierarchy:
                reference:
                  referenceId:
                  - UT0003DE
                  - UT0004DE
                  - UT0005DE
            containerList:
              container:
              - relations:
                  hierarchy:
                    reference:
                    - index: 1
                      total: 3
              - relations:
                  hierarchy:
                    reference:
                    - index: 2
                      total: 3
              - relations:
                  hierarchy:
                    reference:
                    - index: 3
                      total: 3
  responses:
    429_TooManyRequests:
      description: Too many requests in a short time.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            status: 429
            title: Too Many Requests
            detail: Too many requests within defined time period,please try again later.
    500_InternalServerError:
      description: Internal Server Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            status: 500
            title: Internal Server Error
            detail: The server encountered an unexpected condition that prevented it from fulfilling the request.
    503_ServiceUnavailable:
      description: Service Unavailable
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            reasons:
            - msg: Service Unavailable
            details:
              msgId: Id-836a775dc794c71b0b5fd41c
    200_aggregate:
      description: Aggregate response
      content:
        application/json:
          schema:
            type: object
            required:
            - response
            properties:
              response:
                type: object
                required:
                - status
                - timestamp
                - customerId
                - sessionId
                - statusCode
                - statusMessage
                - shipmentId
                properties:
                  status:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  customerId:
                    type: string
                  sessionId:
                    type: string
                  statusCode:
                    type: string
                    enum:
                    - OK
                    - ERROR
                  statusMessage:
                    type: string
                  shipmentId:
                    type: string
                  container:
                    type: array
                    description: Only provided when labels are returned
                    items:
                      type: object
                      properties:
                        containerId:
                          type: string
                        label:
                          type: string
                          description: Base64 encoded label
    401_Unauthorized:
      description: Unauthorized. Provided key or token is invalid for requested resource.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            status: 401
            title: Unauthorized
            detail: Unauthorized for given resource.
  schemas:
    aggregateRequest:
      type: object
      properties:
        dataElement:
          type: object
          description: Container for the request data
          properties:
            labelDetails:
              type: object
              description: 'Label generation controls. If omitted, default behavior = true applies.

                '
              properties:
                label:
                  type: boolean
                  description: 'Label generation is required or not. Self-labeler actively must set ""false"", else per default a label and shipmentId will be issued via eConnect.

                    '
                  example: 'Labels are returned in following resolution per format: - pdf: n/a as pdf is scalable - zpl: 203 dpi resolution

                    '
                  enum:
                  - true
                  - false
                formatLabel:
                  type: string
                  enum:
                  - pdf
                  - zpl
                  description: If nothing is provided and label is to be generated:- default value ""pdf""
            general:
              type: object
              properties:
                product:
                  type: string
                shipmentId:
                  type: string
                  description: 'This describes the identifier that is used for parcel tracking.

                    '
                  minLength: 1
                  maxLength: 50
                timestamp:
                  type: string
                  format: date-time
                  description: 'Timestamp at which the request data is passed to DHL eConnect API.

                    '
                  enum:
                  - YYYY-MM-DDThh:mm:ssZ (or)
                  - YYYY-MM-DDThh:mm:ss+hh:mm (or)
                  - YYYY-MM-DDThh:mm:ss-hh:mm
                customerId:
                  type: string
                  description: Individual customer ID of sender. Will be provided to customers during onboarding process.
                  minLength: 1
                  maxLength: 35
              required:
              - timestamp
              - product
              - customerId
            aggregate:
              type: object
              description: Aggregation details (AWB, batch, cLoadlist)
              properties:
                scenario:
                  type: string
                  enum:
                  - AWB
                  - batch
                  - cLoadlist
                start:
                  type: object
                  description: Container for the shipment start details.
                  properties:
                    addressType:
                      type: string
                      enum:
                      - default
                    name:
                      type: string
                      maxLength: 50
                      description: This is the main field for describing the name. It must contain the full name.
                    street:
                      type: string
                      maxLength: 100
                      description: This field must contain the street name of the start address. Optionally also the housenumber, if not contained in streetNr.
                    streetNr:
                      type: string
                      maxLength: 10
                      description: If the house number is not part of street, this field can be used.
                    postcode:
                      type: string
                      maxLength: 17
                      description: The postcode/zipcode of the start of the shipment.
                    city:
                      type: string
                      maxLength: 35
                      description: City name of the start's address
                    region:
                      type: string
                      maxLength: 35
                      description: Start country's region code.
                    country:
                      type: string
                      description: ISO-3166 two-letter country code; format:- capital letters
                      minLength: 2
                      maxLength: 2
                  required:
                  - name
                  - street
                  - postcode
                  - city
                  - country
                end:
                  type: object
                  description: Container for the shipment end details.
                  properties:
                    addressType:
                      type: string
                      enum:
                      - depot
                      - sortingCenter
                    name:
                      type: string
                      maxLength: 50
                      description: This is the main field for describing the name. It must contain the full name.
                    street:
                      type: string
                      maxLength: 100
                      description: This field must contain the street name of the end address. Optionally also the housenumber, if not contained in streetNr.
                    streetNr:
                      type: string
                      maxLength: 10
                      description: If the house number is not part of street, this field can be used.
                    postcode:
                      type: string
                      maxLength: 17
                      description: The postcode/zipcode of the end of the shipment.
                    city:
                      type: string
                      maxLength: 35
                      description: City name of the end's address
                    region:
                      type: string
                      maxLength: 35
                      description: End country's region code.
                    country:
                      type: string
                      description: ISO-3166 two-letter country code; format:- capital letters
                      minLength: 2
                      maxLength: 2
                  required:
                  - name
                  - street
                  - postcode
                  - city
                  - country
                physical:
                  type: object
                  properties:
                    grossWeight:
                      type: number
                      format: float
                      description: Gross weight of the shipment in kilogram (kg). format - nn.nnn (in kg)
                  required:
                  - grossWeight
                additionalInformation:
                  type: object
                  properties:
                    information:
                      type: array
                      items:
                        type: object
                        required:
                        - type
                        properties:
                          type:
                            type: string
                            enum:
                            - start
                            - end
                          referenceNr:
                            type: string
                  required:
                  - information
                relations:
                  type: object
                  properties:
                    hierarchy:
                      type: object
                      properties:
                        reference:
                          type: array
                          items:
                            type: object
                            properties:
                              referenceName:
                                type: string
                                enum:
                                - connect.light.mail
                                - connect.light.parcel
                              referenceId:
                                type: array
                                description: Array of piece identifiers included in the aggregated shipment.
                      required:
                      - reference
                containerList:
                  type: object
                  properties:
                    container:
                      type: array
                      items:
                        type: object
                        properties:
                          containerId:
                            type: string
                          physical:
                            type: object
                            properties:
                              grossWeight:
                                type: number
                                description: Required if provided for any container
                            required:
                            - grossWeight
                          relations:
                            type: object
                            properties:
                              hierarchy:
                                type: object
                                properties:
                                  reference:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        index:
                                          type: integer
                                        total:
                                          type: integer
                                      required:
                                      - total
                                required:
                                - reference
                  required:
                  - container
              required:
              - scenario
              - physical
          required:
          - general
          - aggregate
      required:
      - dataElement
    ProblemSchema:
      type: object
      properties:
        status:
          type: integer
          format: int32
        title:
          type: string
        detail:
          type: string
  securitySchemes:
    OAuth2:
      type: oauth2
      description: This API uses OAuth 2 with the client-credentials grant flow
      flows:
        clientCredentials:
          tokenUrl: https://api-sandbox.dhl.com/ccc/v1/auth/accesstoken
          scopes: {}
x-refined-from:
- dhl-ecommerce-europe-openapi.yml
- dhl-ecommerce-europe-openapi.yml
- dhl-econnect-beta-dhl-ecommerce-europe-openapi.yml