DHL

DHL Temporary selection API

This temporary selection can be used to explore the data provided by this API, but not to directly proceed to order a print mailing. For these requests, it is necessary to preserve the set cookies between requests to ensure the correct routing.

GitHub OpenAPI

Operations 12

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

PUT /targeting/v1/selections/{selectionId}/filters Update a selection's filters · Update a selections filters #
Ask an LLM
“How do I change the filters on a targeting selection?”
“Can I update a selection's filters after creating it?”
Tell an agent
Update the filters on selection {selectionId}.
Change the filters of targeting selection {selectionId}.
POST /targeting/v1/selections Create a targeting selection · Creates a new selection inside the cache #
Ask an LLM
“How do I create a new selection for a print mailing?”
“Can I set filters and product when creating a selection?”
Tell an agent
Create a selection named {name}.
Create a {product} selection with filters {filters}.
POST /targeting/v1/selections/{selectionId}/save Save a selection to a permanent ID · Save selection #
Ask an LLM
“How do I save a selection so it doesn't expire?”
“What does saving a selection return?”
Tell an agent
Save selection {selectionId}.
Save targeting selection {selectionId} and return its removal date.
POST /targeting/v1/selections/{selectionId}/areacodes/files Upload a shape or KML file to a selection · Update a selection with a file upload #
Ask an LLM
“How do I add postal codes to a selection from a shapefile?”
“Can I upload a KML file to a selection?”
Tell an agent
Upload {file} to selection {selectionId} with threshold {threshold}.
Add area codes to selection {selectionId} from {file} at threshold {threshold}.
POST /targeting/v1/selections/load Load a permalink selection for editing · Load selection #
Ask an LLM
“How do I load a permalink selection so I can edit it?”
“What does loading a permalink selection return?”
Tell an agent
Load permalink {permalinkid} for editing.
Load the selection behind permalink {permalinkid}.
PATCH /targeting/v1/selections/{selectionId}/product Change a selection's product · Update a selection detail level #
Ask an LLM
“How do I change the product of an existing selection?”
“Can I switch a selection to a different product type?”
Tell an agent
Change the product of selection {selectionId}.
Switch targeting selection {selectionId} to a different product.
PATCH /targeting/v1/selections/{selectionId}/detaillevel Change a selection's detail level · Update a selection detail level #
Ask an LLM
“Can I change the detail level of a mailing target selection?”
“How do I upgrade a targeting selection to a higher detail level?”
Tell an agent
Change the detail level of targeting selection {selection}.
Update selection {selection} to a higher detail level.
PATCH /targeting/v1/selections/{selectionId}/areacodes Add or remove area codes from a selection · Update a selection #
Ask an LLM
“How do I add postal codes to a selection?”
“Can I remove area codes from a selection?”
Tell an agent
Add {add} area codes to selection {selectionId}.
Remove {remove} area codes from selection {selectionId}.
GET /targeting/v1/selections/{selectionId} Get a selection's details · Returns a selection by ID from cache #
Ask an LLM
“What filters and area codes does a selection have?”
“Can I read a selection's detail level?”
Tell an agent
Get selection {selectionId}.
Show the filters and area codes of selection {selectionId}.
DELETE /targeting/v1/selections/{selectionId} Delete a selection · Removes a selection from cache #
Ask an LLM
“How do I remove a selection from the cache?”
“Can I delete a targeting selection I no longer need?”
Tell an agent destructive · confirm first
Delete selection {selectionId}.
Remove targeting selection {selectionId} from the cache.
GET /targeting/v1/selections/{selectionId}/pam-export Export a selection to a PAM CSV · Export selection to pam csv #
Ask an LLM
“How do I export a selection so I can import it into PAM?”
“Can I get a CSV of a selection for PAM?”
Tell an agent
Export selection {selectionId} to PAM CSV.
Create a PAM import file from selection {selectionId}.
GET /targeting/v1/selections/{selectionId}/dispatch-information Get dispatch information for a selection · Get dispatch information #
Ask an LLM
“What dispatch information can I request for a selection?”
“Can I get dispatch preparation data for a selection?”
Tell an agent
Get dispatch information for selection {selectionId}.
Request dispatch preparation data for targeting selection {selectionId}.

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-temporary-selection-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-temporary-selection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Temporary selection API
  version: 26.10.30-74-fe9dc15580501f34951cc8ff7f032a067ea13a58
  contact:
    name: Technical Support
    email: it-csp@deutschepost.de
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0
  description: 'Operations tagged Temporary selection across 2 of this provider''s published API definitions: dhl-deutsche-post-print-mailing-targeting-post-parcel-germany-openapi.yml, dhl-deutsche-post-print-mailing-targeting-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/advertising/print-mailing
  description: Production environment
- url: https://api-uat.dhl.com/post/advertising/print-mailing
  description: Test environment
tags:
- name: Temporary selection
  description: This temporary selection can be used to explore the data provided by this API, but not to directly proceed to order a print mailing. For these requests, it is necessary to preserve the set cookies between requests to ensure the correct routing.
paths:
  /targeting/v1/selections/{selectionId}/filters:
    put:
      tags:
      - Temporary selection
      summary: Update a selections filters
      operationId: changeFilters
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/PotentialFilter'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaSelectionSummary'
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections:
    post:
      tags:
      - Temporary selection
      summary: Creates a new selection inside the cache
      description: Creates a new selection in cache and returns it
      operationId: create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelectionRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaSelectionSummary'
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/save:
    post:
      tags:
      - Temporary selection
      description: Saves a selection and returns an ID and date of removal.
      operationId: saveSelection
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '404':
          description: No selection found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseRep'
              example:
                timestamp: '2021-02-10T12:34:06.203Z'
                status: 404
                correlationId: a5fe243a-05bc-4a55-ae03-02bc34d43f9a
                error: Not Found
                errors:
                - errorCode: DM_CO_0008
                  errorMessage: 'Ein Datensatz konnte nicht gefunden werden: 41d709d6-3a6-41e2-89d6-da51a4a07f96.'
                  arguments:
                  - 41d709d6-3a6-41e2-89d6-da51a4a07f96
                  fieldName: null
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Permalink'
      summary: Save selection
      x-summary-source: derived
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/areacodes/files:
    post:
      tags:
      - Temporary selection
      summary: Update a selection with a file upload
      description: Updates the selection via file upload. Only available for POSTAL_CODE and DELIVERY_DISTRICT. Add a zip-compressed Shape file (file ending .zip) or a kml file (file ending .kml)as part called 'file' in a multipart/file request.
      operationId: uploadFiles
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      - name: threshold
        in: query
        required: true
        schema:
          type: number
          format: double
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Feature'
                uniqueItems: true
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/load:
    post:
      tags:
      - Temporary selection
      description: Loads a selection for further editing, returns a new ID to the selection and meta information.
      operationId: loadSelection
      parameters:
      - name: permalinkid
        in: query
        required: true
        schema:
          type: string
      responses:
        '404':
          description: No selection found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseRep'
              example:
                timestamp: '2021-02-10T12:34:06.203Z'
                status: 404
                correlationId: a5fe243a-05bc-4a55-ae03-02bc34d43f9a
                error: Not Found
                errors:
                - errorCode: DM_CO_0008
                  errorMessage: 'Ein Datensatz konnte nicht gefunden werden: 41d709d6-3a6-41e2-89d6-da51a4a07f96.'
                  arguments:
                  - 41d709d6-3a6-41e2-89d6-da51a4a07f96
                  fieldName: null
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaSelectionSummary'
      summary: Load selection
      x-summary-source: derived
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/product:
    patch:
      tags:
      - Temporary selection
      summary: Update a selection detail level
      operationId: changeProduct
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: string
              enum:
              - POSTAKTUELL_DAILY_MAIL
              - POSTAKTUELL_ALL
              - POSTAKTUELL_ANY_AND_ALL_HOUSEHOLDS
              - POSTWURF_SPEZIAL
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaSelectionSummary'
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/detaillevel:
    patch:
      tags:
      - Temporary selection
      summary: Update a selection detail level
      operationId: changeDetailLevel
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: string
              enum:
              - POSTAL_CODE
              - DELIVERY_DISTRICT
              - NEIGHBOURHOOD
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaSelectionSummary'
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/areacodes:
    patch:
      tags:
      - Temporary selection
      summary: Update a selection
      description: Adds or removed given area-codes to the selection. Duplicates in the provided list or IDs already part of the selection are ignored.
      operationId: addOrRemoveCodes
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchSelection'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddRemoveResult'
        '404':
          description: No selection found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseRep'
              example:
                timestamp: '2021-02-10T12:34:06.203Z'
                status: 404
                correlationId: a5fe243a-05bc-4a55-ae03-02bc34d43f9a
                error: Not Found
                errors:
                - errorCode: DM_CO_0008
                  errorMessage: 'Ein Datensatz konnte nicht gefunden werden: 41d709d6-3a6-41e2-89d6-da51a4a07f96.'
                  arguments:
                  - 41d709d6-3a6-41e2-89d6-da51a4a07f96
                  fieldName: null
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}:
    get:
      tags:
      - Temporary selection
      summary: Returns a selection by ID from cache
      description: Returns information about the provided selection ID stored in cache
      operationId: read
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      - name: detailLevel
        in: query
        required: false
        schema:
          type: string
          enum:
          - POSTAL_CODE
          - DELIVERY_DISTRICT
          - NEIGHBOURHOOD
      - name: level
        in: query
        required: false
        schema:
          type: string
          default: META
          enum:
          - DETAIL
          - META
      - name: itemWeightInGram
        in: query
        required: false
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SelectionSummary'
        '404':
          description: No selection found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseRep'
              example:
                timestamp: '2021-02-10T12:34:06.203Z'
                status: 404
                correlationId: a5fe243a-05bc-4a55-ae03-02bc34d43f9a
                error: Not Found
                errors:
                - errorCode: DM_CO_0008
                  errorMessage: 'Ein Datensatz konnte nicht gefunden werden: 41d709d6-3a6-41e2-89d6-da51a4a07f96.'
                  arguments:
                  - 41d709d6-3a6-41e2-89d6-da51a4a07f96
                  fieldName: null
    delete:
      tags:
      - Temporary selection
      summary: Removes a selection from cache
      description: Removes the selection from cache
      operationId: delete_1
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/pam-export:
    get:
      tags:
      - Temporary selection
      description: Exports given selection to CSV which can be imported into PAM
      operationId: exportSelectionToPamCsv
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '404':
          description: No selection found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseRep'
              example:
                timestamp: '2021-02-10T12:34:06.203Z'
                status: 404
                correlationId: a5fe243a-05bc-4a55-ae03-02bc34d43f9a
                error: Not Found
                errors:
                - errorCode: DM_CO_0008
                  errorMessage: 'Ein Datensatz konnte nicht gefunden werden: 41d709d6-3a6-41e2-89d6-da51a4a07f96.'
                  arguments:
                  - 41d709d6-3a6-41e2-89d6-da51a4a07f96
                  fieldName: null
        '200':
          description: Success Response
          content:
            text/csv:
              schema:
                type: string
              example: 'postal code;delivery district;neighbourhood;tariff zone a;tariff zone b

                84416;;OT Gruppe Taufkirchen (Vils) 84416 Taufkirchen;0;820

                73453;;OT Gruppe Abtsgmünd 73453 Abtsgmünd;0;382'
      summary: Export selection to pam csv
      x-summary-source: derived
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
  /targeting/v1/selections/{selectionId}/dispatch-information:
    get:
      tags:
      - Temporary selection
      description: Request information that can be used in conjunction with the Dispatch Preparation API.
      operationId: getDispatchInformation
      parameters:
      - name: selectionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '404':
          description: No selection found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseRep'
              example:
                timestamp: '2021-02-10T12:34:06.203Z'
                status: 404
                correlationId: a5fe243a-05bc-4a55-ae03-02bc34d43f9a
                error: Not Found
                errors:
                - errorCode: DM_CO_0008
                  errorMessage: 'Ein Datensatz konnte nicht gefunden werden: 41d709d6-3a6-41e2-89d6-da51a4a07f96.'
                  arguments:
                  - 41d709d6-3a6-41e2-89d6-da51a4a07f96
                  fieldName: null
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisPaApiRep'
      summary: Get dispatch information
      x-summary-source: derived
    servers:
    - url: https://api-eu.dhl.com/post/advertising/print-mailing
      description: Production environment
    - url: https://api-uat.dhl.com/post/advertising/print-mailing
      description: Test environment
components:
  schemas:
    MetaSummary:
      type: object
      description: Meta information of a selection
      properties:
        id:
          type: string
          example: f36ac95d-d412-43ad-947b-29f2e3ddb249
        customerId:
          type: string
          example: 1234
        name:
          type: string
          example: MySelection
        orderedUntil:
          type: string
          format: date
          description: If the selection is part of an active order it is locked against changes and deletion until this date. Null if the selection is not used by an order.
          example: '2023-12-24'
        locked:
          type: boolean
          description: True if the selection is currently locked because it is part of an active order. False if not locked.
          example: true
        type:
          type: string
          enum:
          - POSTAL_CODE
          - DELIVERY_DISTRICT
          - NEIGHBOURHOOD
          example: POSTAL_CODE
        productType:
          type: string
          enum:
          - POSTAKTUELL_DAILY_MAIL
          - POSTAKTUELL_ALL
          - POSTAKTUELL_ANY_AND_ALL_HOUSEHOLDS
          - POSTWURF_SPEZIAL
          example: POSTAKTUELL_DAILY_MAIL
        numberOfAreas:
          type: integer
          format: int32
          example: 2
        netQuantity:
          type: integer
          format: int32
          description: Number of households netto.
          example: 1179
        bruttoQuantity:
          type: integer
          format: int32
          description: Number of households brutto. Authority ROLE_DIS_POSTAKTUELL_ANY_AND_ALL_HOUSEHOLDS is needed to see this value.
          example: 1203
        quantity:
          type: integer
          format: int32
          example: 826
        itemWeightInGram:
          type: integer
          format: int32
          example: 20
        itemsPerPackage:
          type: integer
          format: int32
          example: 500
        tolerance:
          type: integer
          format: int32
          example: 0
        roundOff:
          type: integer
          format: int32
          example: 20
        dataVersion:
          type: string
          example: '2021-08-18T09:01:24.665844'
        filters:
          type: array
          items:
            $ref: '#/components/schemas/PotentialFilter'
        filterCosts:
          type: integer
          format: int32
    PatchSelection:
      type: object
      properties:
        add:
          $ref: '#/components/schemas/FeatureSearchRep'
        remove:
          $ref: '#/components/schemas/FeatureSearchRep'
    FeatureProperties:
      type: object
      properties:
        id:
          type: string
          description: '45958'
        centroid:
          $ref: '#/components/schemas/FeatureCentroid'
        neighbourhood:
          type: string
          example: Poppelsdorf
        city:
          type: string
          example: Bonn
        region:
          type: string
          example: 53
        zone:
          type: string
          example: 5
        hh:
          type: integer
          format: int32
          description: Number of netto households
          example: 122
        bruttoHouseholds:
          type: integer
          format: int32
          description: Number of brutto (gross) households. Authority ROLE_DIS_POSTAKTUELL_ANY_AND_ALL_HOUSEHOLDS is needed to see this value.
          example: 160
        postal_code:
          type: string
          example: 53115
        zbn:
          type: string
          description: Zustellbezirksnummer - Delivery District ID
          example: 53115-01
    SelectionRequest:
      type: object
      description: Request for a new Selection
      properties:
        name:
          type: string
          example: my selection
          maxLength: 50
          pattern: ^.{0,50}$
        detailLevel:
          type: string
          enum:
          - POSTAL_CODE
          example: POSTAL_CODE
        areaCodes:
          type: array
          example:
          - '48231'
          items:
            type: string
            pattern: ^[0-9]+(-[0-9]{2})?$
          uniqueItems: true
        product:
          type: string
          enum:
          - POSTAKTUELL_DAILY_MAIL
          - POSTAKTUELL_ALL
          - POSTAKTUELL_ANY_AND_ALL_HOUSEHOLDS
          - POSTWURF_SPEZIAL
          example: POSTAKTUELL_DAILY_MAIL
        filters:
          type: array
          items:
            $ref: '#/components/schemas/PotentialFilter'
        itemWeightInGram:
          type: integer
          format: int32
          example: 20
    ErrorResponseRep:
      type: object
      properties:
        timestamp:
          type: string
        status:
          type: integer
          format: int32
        correlationId:
          type: string
        error:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorRep'
      xml:
        name: errorResponse
    FeatureGeometry:
      type: object
      properties:
        type:
          type: string
          example: MultiPolygon
        coordinates:
          type: string
          description: Multipolygon shape
          example: '[[[7.097201732382503,50.71886197143952],[...],...]]'
    DisPaApiRep:
      type: object
      description: Response body of the dispatch-information
      properties:
        numberItemsTariffZoneA:
          type: integer
          format: int32
          example: 123
        numberItemsTariffZoneB:
          type: integer
          format: int32
          example: 123
        itemWeightInGram:
          type: integer
          format: int32
          example: 20
        productType:
          type: string
          enum:
          - POSTAKTUELL_DAILY_MAIL
          - POSTAKTUELL_ALL
          - POSTAKTUELL_ANY_AND_ALL_HOUSEHOLDS
          - POSTWURF_SPEZIAL
          example: POSTAKTUELL_DAILY_MAIL
        deliveryDistrictSelection:
          type: boolean
          example: false
        inductionDate:
          type: string
          example: '2021-07-01T07:43:56.001Z'
    MetaSelectionSummary:
      type: object
      description: Response describing a selection
      properties:
        meta:
          $ref: '#/components/schemas/MetaSummary'
        areaCodes:
          type: array
          example:
          - '48231'
          - '47877'
          items:
            type: string
          uniqueItems: true
        areaCodeHouseholdDifferences:
          type: array
          example:
          - areacode: '48231'
            households: 47877
          items:
            $ref: '#/components/schemas/AreaCodeInformation'
          uniqueItems: true
    FeatureCentroid:
      type: object
      properties:
        type:
          type: string
          example: Point
        coordinates:
          type: array
          example:
          - 7.083297877833819
          - 50.71886197143952
          items:
            type: number
            format: double
            maxLength: 2
            minLength: 2
          maxLength: 2
          minLength: 2
          properties:
            empty:
              type: boolean
            first:
              type: number
              format: double
            last:
              type: number
              format: double
    FeatureSearchRep:
      type: object
      description: Request with multiple options
      properties:
        cities:
          type: array
          items:
            $ref: '#/components/schemas/CityRep'
        neighbourhoods:
          type: array
          example:
          - '24459602'
          items:
            type: string
            pattern: ^[0-9]+$
        districtCodes:
          type: array
          example:
          - 52222-21
          items:
            type: string
            pattern: ^[0-9]{5}-[0-9]{2}$
        postalCodes:
          type: array
          example:
          - '48231'
          items:
            type: string
            pattern: ^[0-9]{5}$
        regions:
          type: array
          example:
          - '64'
          items:
            type: string
            pattern: ^[0-9]{2}$
        zones:
          type: array
          example:
          - '6'
          items:
            type: string
            pattern: ^[0-9]$
        coordinates:
          type: array
          items:
            $ref: '#/components/schemas/CoordinateRep'
        ags:
          type: array
          description: Amtlicher Gemeindeschlüssel
          example:
          - '18807060'
          items:
            type: string
            pattern: ^[0-9]{8}$
    ErrorRep:
      type: object
      properties:
        errorCode:
          type: string
        errorMessage:
          type: string
        arguments:
          type: array
          items: {}
        fieldName:
          type: string
      xml:
        name: error
    CityRep:
      type: object
      description: City and/or neighbourhood required.
      properties:
        city:
          type: string
          example: Hamburg
        neighbourhood:
          type: string
          example: Altstadt
        latitude:
          type: number
          format: double
          example: 6.2345
        longitude:
          type: number
          format: double
          example: 50.6789
    SelectionSummary:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaSummary'
    AddRemoveResult:
      type: object
      properties:
        added:
          type: array
          items:
            $ref: '#/components/schemas/Feature'
          uniqueItems: true
        removed:
          type: array
          items:
            $ref: '#/components/schemas/Feature'
          uniqueItems: true
    Feature:
      type: object
      properties:
        id:
          type: string
          example: 45958
        type:
          type: string
          example: Feature
        properties:
          $ref: '#/components/schemas/FeatureProperties'
        geometry:
          $ref: '#/components/schemas/FeatureGeometry'
    CoordinateRep:
      type: object
      properties:
        latitude:
          type: number
          format: double
          example: 50.6789
        longitude:
          type: number
          format: double
          example: 6.2345
        distance:
          type: integer
          format: int32
          description: search radius in kilometres around the given coordinates
          example: 5
      required:
      - latitude
      - longitude
    PotentialFilter:
      type: object
      description: Filter for PWS
      properties:
        id:
          type: string
          example: k_kaufkr_kombi
        options:
          type: array
          example:
          - '4'
          items:
            type: string
    Permalink:
      type: object
      description: Response when creating a saved temporary selection.
      properties:
        id:
          type: string
          description: The id of the saved selection to request the saved content
          example: aaaa11aa-aa11-aa11-aa11-aaaa11aaaa11
        expiryDate:
          type: string
          description: The expireDate is used to automatically delete old permalinks.
          example:
          - 2023
          - 4
          - 16
    AreaCodeInformation:
      type: object
      properties:
        areaCode:
          type: string
        households:
          type: integer
          format: int32
x-refined-from:
- dhl-deutsche-post-print-mailing-targeting-post-parcel-germany-openapi.yml
- dhl-deutsche-post-print-mailing-targeting-post-parcel-germany-openapi.yml