DHL

DHL Subscription Management API

The Subscription Management API from DHL — 2 operation(s) for subscription management.

GitHub OpenAPI

Operations 4

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

GET /subscriptions List my push subscriptions · Accesses all push subscriptions for the logged-in user #
Ask an LLM
“Which push subscriptions have I set up for tracking parcels?”
“Can I see all my tracking push subscriptions at once?”
Tell an agent
List all my push subscriptions.
Show every tracking subscription I have.
GET /subscriptions/{id} Get one push subscription · Gets a push subscription by its id #
Ask an LLM
“How do I look up a single tracking push subscription by its ID?”
“What settings does one of my push subscriptions have?”
Tell an agent
Get push subscription {id}.
Show the settings of tracking subscription {id}.
PUT /subscriptions/{id} Change a push subscription's settings · Update push subscription by ID #
Ask an LLM
“How do I change how many records come in each batch of tracking documents?”
“Can I switch the export format or language of an existing push subscription?”
Tell an agent
Set push subscription {id} to {numberOfRecords} records per batch in {exportFormat} format.
Change tracking subscription {id} to {language} language.
DELETE /subscriptions/{id} Delete a push subscription · Deletes a subscription #
Ask an LLM
“How do I stop tracking parcels by deleting a push subscription?”
“Can I remove a tracking subscription I no longer need?”
Tell an agent destructive · confirm first
Delete push subscription {id}.
Remove tracking subscription {id}.

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-subscription-management-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-subscription-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Subscription Management API
  version: 2.0.0
  description: 'Operations tagged Subscription Management across 2 of this provider''s published API definitions: dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml, dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-eu.dhl.com/post/de/tracking/push/v2
- url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
security:
- Authorization: []
- ApiKey: []
tags:
- name: Subscription Management
paths:
  /subscriptions:
    get:
      summary: Accesses all push subscriptions for the logged-in user
      description: All subscriptions of a user
      operationId: getAllPushSubscriptions
      tags:
      - Subscription Management
      responses:
        '200':
          description: Gets all subscriptions of the user.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
    servers:
    - url: https://api-eu.dhl.com/post/de/tracking/push/v2
    - url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
  /subscriptions/{id}:
    get:
      summary: Gets a push subscription by its id
      operationId: getPushSubscription
      tags:
      - Subscription Management
      parameters:
      - name: id
        in: path
        description: The id of the push subscription
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subscription'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    put:
      summary: Update push subscription by ID
      description: Update operation for specific push subscription by ID with the new settings as payload.
      operationId: updatePushSubscription
      tags:
      - Subscription Management
      parameters:
      - name: id
        in: path
        description: The ID of the push subscription
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subscription'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      summary: Deletes a subscription
      operationId: deleteSubscription
      parameters:
      - name: id
        in: path
        description: The id of the push subscription
        required: true
        schema:
          type: string
      tags:
      - Subscription Management
      responses:
        '204':
          description: No Content
          content:
            application/json: {}
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://api-eu.dhl.com/post/de/tracking/push/v2
    - url: https://api-sandbox.dhl.com/post/de/tracking/push/v2
components:
  schemas:
    Subscription:
      required:
      - dataCallbackURL
      - validationCallbackURL
      - numberOfRecords
      - email
      - exportFormat
      - language
      type: object
      properties:
        id:
          type: string
          readOnly: true
        dataCallbackURL:
          description: 'The endpoint on the customer\''s side used to receive  the documents.

            '
          type: string
          format: uri
        validationCallbackURL:
          description: 'The endpoint on the customer\''s side used to receive a validation call.

            '
          type: string
          format: uri
        numberOfRecords:
          description: The number of documents within a batch.
          maximum: 10000
          minimum: 1
          type: integer
          format: int32
        exportFormat:
          description: The format in which the documents should be.
          type: string
          enum:
          - application/json
          - application/xml
        language:
          type: string
          description: The language in which the documents should be.
          enum:
          - de
          - en
        email:
          type: string
          format: email
          description: The email to be used for notifications.
          example: sample@mail.com
    SubscriptionUpdate:
      description: Scheme for updating a subscription
      type: object
      required:
      - numberOfRecords
      - exportFormat
      - language
      properties:
        numberOfRecords:
          maximum: 10000
          minimum: 1
          type: integer
          description: The number of documents within a batch.
          format: int32
        exportFormat:
          type: string
          description: The format in which the documents should be.
          enum:
          - application/json
          - application/xml
        language:
          type: string
          description: The language in which the documents should be.
          enum:
          - de
          - en
        email:
          type: string
          format: email
          description: The email to be used for notifications.
          example: sample@mail.com
    RequestStatus:
      type: object
      description: General status description for the attached response or response item.
      required:
      - statusCode
      - title
      properties:
        title:
          type: string
          example: ok
        statusCode:
          type: integer
          format: int32
          example: 200
          description: The status code of the response. Usually, but not necessarily the HTTP status code.
        instance:
          type: string
          description: A URI reference that identifies the specific occurrence of the problem.
        detail:
          maxLength: 80
          minLength: 0
          type: string
          example: The Webservice call ran successfully.
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
    BadRequest:
      description: Bad Request
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/RequestStatus'
  securitySchemes:
    Authorization:
      type: http
      description: Credential provided here is a GKP credential.
      scheme: basic
    ApiKey:
      type: apiKey
      name: dhl-api-key
      in: header
x-refined-from:
- dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml
- dhl-mail-communication-tracking-push-post-parcel-germany-openapi.yml