DHL

DHL Postnumbers API

Verify valid address data due to given postnumber and customer name

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 /customers/{postnumber} Verify a postnumber matches a name · Verify postnumber for given first- and lastname #
Ask an LLM
“How do I check if a postnumber belongs to a specific person?”
“Can I validate a Packstation locker number against a first and last name?”
Tell an agent
Verify postnumber {postnumber} for {firstname} {lastname}.
Check that {firstname} {lastname} has postnumber {postnumber}.

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-postnumbers-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-postnumbers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Postnumbers API
  version: 1.0.1
  contact:
    name: Deutsche Post DHL
    url: https://developer.dhl.com/post-und-dhl-deutschland
  license:
    name: License
    url: https://www.dhl.de
  description: 'Operations tagged Postnumbers across 2 of this provider''s published API definitions: dhl-dhl-parcel-de-postnumber-post-parcel-germany-openapi.yml, dhl-dhl-parcel-de-postnumber-post-parcel-germany-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-sandbox.dhl.com/parcel/de/account/postnumber/v1
  description: Sandbox Environment (Customer Testing)
- url: https://api-eu.dhl.com/parcel/de/account/postnumber/v1
  description: Production Environment
security:
- BasicAuth: []
- ApiKey: []
tags:
- name: Postnumbers
  description: Verify valid address data due to given postnumber and customer name
paths:
  /customers/{postnumber}:
    post:
      tags:
      - Postnumbers
      summary: Verify postnumber for given first- and lastname
      description: Validate postnumbers to ensure deliverability of shipments to the corresponding person at Packstation parcel lockers.
      operationId: findPostnumber
      parameters:
      - name: postnumber
        in: path
        description: The customer postnumber.
        required: true
        schema:
          type: integer
          format: int64
          example: 800000036
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostnumberRequest'
            example:
              firstname: Max
              lastname: Mustermann
        description: Pass the customer data belonging to the given postnumber
        required: true
      responses:
        '200':
          $ref: '#/components/responses/200'
        '403':
          $ref: '#/components/responses/403'
        '429':
          $ref: '#/components/responses/429'
        '412':
          $ref: '#/components/responses/412'
        '401':
          $ref: '#/components/responses/401'
        '400':
          $ref: '#/components/responses/400'
    servers:
    - url: https://api-sandbox.dhl.com/parcel/de/account/postnumber/v1
      description: Sandbox Environment (Customer Testing)
    - url: https://api-eu.dhl.com/parcel/de/account/postnumber/v1
      description: Production Environment
components:
  responses:
    '401':
      description: 401 JSON error per RFC 7807 (https://tools.ietf.org/html/rfc7807).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JSONStatus'
          example:
            title: Unauthorized
            status: 401
            detail: Unauthorized - The client could not be authenticated.
    '200':
      description: The customer address was valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PostnumberResponse'
          example:
            valid: true
    '429':
      description: 429 JSON error per RFC 7807 (https://tools.ietf.org/html/rfc7807).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JSONStatus'
          example:
            title: Too Many Requests
            status: 429
            detail: Too Many Requests for client and given ressource.
    '403':
      description: 403 JSON error per RFC 7807 (https://tools.ietf.org/html/rfc7807).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JSONStatus'
          example:
            title: Forbidden
            status: 403
            detail: Forbidden - The client is not authorized for the particular request.
    '400':
      description: 400 JSON error per RFC 7807 (https://tools.ietf.org/html/rfc7807).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/JSONStatus'
          example:
            title: Bad Request
            status: 400
            detail: Bad Request - The request could not be understood due to malformed syntax.
    '412':
      description: 412 JSON error per RFC 7807 (https://tools.ietf.org/html/rfc7807).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PostnumberResponse'
          example:
            valid: false
  schemas:
    PostnumberRequest:
      required:
      - firstname
      - lastname
      type: object
      description: Request to verify postnumber for given first- and lastname
      properties:
        firstname:
          maxLength: 40
          minLength: 1
          pattern: '[ \'',\-./\\A-Za-z_`¯µ·ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]*'
          type: string
          description: first name
          example: Max
        lastname:
          maxLength: 32
          minLength: 1
          pattern: '[ \'',\-./\\A-Za-z_`¯µ·ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]*'
          type: string
          description: last name
          example: Mustermann
      example:
        firstname: Max
        lastname: Mustermann
    JSONStatus:
      required:
      - status
      - title
      type: object
      properties:
        title:
          type: string
          example: Unauthorized
        status:
          maximum: 999
          minimum: 200
          type: integer
          format: int32
          example: 401
        type:
          type: string
          description: A URI reference [RFC3986] that identifies the problem type and is human-readable.
          format: uri
          example: https://api.dhl.com/parcel/de/shipping/e0001.html
        detail:
          maxLength: 80
          minLength: 0
          type: string
          description: A human-readable explanation specific to this occurrence of the problem
          example: Unauthorized - The client could not be authenticated.
        instance:
          type: string
          description: A URI reference that identifies the specific occurrence of the problem.
          format: uri
          example: https://api.dhl.com/parcel/de/shipping/e0001.html
      description: JSON Status object included in response object
      example:
        title: Unauthorized
        status: 401
        detail: Unauthorized - The client could not be authenticated.
    PostNumberResponseDetails:
      required:
      - postNumberValid
      type: object
      description: Detailed response of postnumber validation
      properties:
        postNumberValid:
          type: boolean
          description: Shows the validity of the number (true = valid,\ \ postnumber exists & service Packstation is active; false = not valid).
          example: true
          enum:
          - true
          - false
        nameValid:
          type: boolean
          description: Shows the validity of the name (true = valid,\ \ name matches with our customer data; false = not valid).
          example: true
          enum:
          - true
          - false
      example:
        postNumberValid: true
        nameValid: false
    PostnumberResponse:
      required:
      - valid
      type: object
      description: Response for postnumber validation
      properties:
        valid:
          type: boolean
          description: Shows the validity of the number (true = valid, entire name matches & postnumber matches & service Packstation is active; false = not valid).
          example: true
          enum:
          - true
          - false
        details:
          $ref: '#/components/schemas/PostNumberResponseDetails'
      example:
        valid: false
  securitySchemes:
    BasicAuth:
      type: http
      description: Basic authentication coordinated with employees of the post and parcel germany.
      scheme: basic
    ApiKey:
      type: apiKey
      description: API key to authorize requests. API key can be obtained at [DHL's development portal](https://developer.dhl.com).
      name: dhl-api-key
      in: header
x-refined-from:
- dhl-dhl-parcel-de-postnumber-post-parcel-germany-openapi.yml
- dhl-dhl-parcel-de-postnumber-post-parcel-germany-openapi.yml