DHL

DHL Customer API V1 API

The Customer API V1 API from DHL — 1 operation(s) for customer api v1.

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

GET /customer/v1/tradingLocations List a customer's trading locations · Get customer trading locations #
Ask an LLM
“Which trading locations are set up for my customer account?”
“Can I look up one trading location by ID?”
Tell an agent
List trading locations for customer account {customerAccountNumber}.
Get trading location {tradingLocationId} for customer {customerAccountNumber}.

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

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-customer-api-v1-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-customer-api-v1-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Customer API V1 API
  version: 1.3.17
  description: 'Operations tagged Customer API V1 across 2 of this provider''s published API definitions: dhl-ecommerce-uk-openapi.json, dhl-ecommerce-uk-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-uat.dhl.com/parceluk
- url: https://api.dhl.com/parceluk
security:
- OAuth2: []
tags:
- name: Customer API V1
paths:
  /customer/v1/tradingLocations:
    get:
      tags:
      - Customer API V1
      summary: Get customer trading locations
      description: Get list of trading locations associated with a customer
      parameters:
      - name: customerAccountNumber
        in: query
        description: customerAccountNumber for customer trading locations.
        required: true
        schema:
          type: string
        example: CUS-049204
      - name: accountId
        in: query
        description: Unique Id for operational account
        required: false
        schema:
          type: string
        example: F020579
      - name: tradingLocationId
        in: query
        description: Unique ID for customer trading location
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tradingLocationsResponse'
        '401':
          description: 'Unauthorized: Authorization information is missing or invalid.'
          content: {}
        '404':
          description: Customer account not found.
          content: {}
        '405':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors'
        '422':
          description: 'Bad Request: Unprocessable Entity'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors'
        '429':
          description: Too many requests in a short amount of time. Wait a few minutes and try again.
          content: {}
        '500':
          description: Unexpected error
          content: {}
      operationId: getCustomerV1TradingLocations
      x-operation-id-source: derived
    servers:
    - url: https://api-uat.dhl.com/parceluk
    - url: https://api.dhl.com/parceluk
components:
  schemas:
    tradingLocations:
      type: array
      description: List of customer trading locations
      items:
        $ref: '#/components/schemas/tradingLocation'
    tradingLocation:
      type: object
      title: Customer trading location
      properties:
        tradingLocationId:
          type: string
          description: Unique ID for this customer trading location
        status:
          type: string
          description: Customer trading location status. active = active trading customer, new orders are being accepted without restriction. onStop = Customer at trading location is currently on stop, new orders cannot currently be accepted. closed = trading location is closed, new orders cannot be accepted.
          enum:
          - active
          - onStop
          - closed
        companyName:
          maxLength: 35
          minLength: 1
          type: string
          description: Name of organisation/trading location
        address1:
          maxLength: 35
          minLength: 1
          type: string
          description: Line 1 of the street address
        address2:
          maxLength: 35
          minLength: 1
          type: string
          description: Line 2 of the street address
        address3:
          maxLength: 35
          minLength: 1
          type: string
          description: Line 3 of the street address
        city:
          maxLength: 35
          minLength: 1
          type: string
          description: city
        state:
          maxLength: 35
          minLength: 1
          type: string
          description: county, state, province or territory.
        postalCode:
          maxLength: 15
          minLength: 3
          type: string
          description: postal code
        country:
          maxLength: 2
          minLength: 2
          type: string
          description: Two-character ISO country code.
        accounts:
          type: array
          items:
            title: Customer operational accounts associated with this trading location location
            type: object
            properties:
              accountId:
                type: string
                description: Unique Id for operational account
    errors:
      type: array
      description: List of errors in RFC7807 Problem Detail Format
      items:
        title: Problem Detail
        type: object
        properties:
          type:
            type: string
          title:
            type: string
          status:
            type: number
          detail:
            type: string
          instance:
            type: string
        description: Definition of [RFC7807](https://tools.ietf.org/html/rfc7807) Problem Detail for HTTP APIs
    tradingLocationsResponse:
      type: object
      properties:
        customerAccountNumber:
          type: string
          description: Customer account number e.g. CUS-049906
        tradingLocations:
          $ref: '#/components/schemas/tradingLocations'
      example:
        customerAccountNumber: CUS-049906
        tradingLocations:
        - tradingLocationId: L4562-G56SG-H678FD
          status: active
          companyName: Testco London
          address1: Unit 1
          address2: A Trading Estate
          address3: Hackney
          city: London
          state: null
          postalCode: E1 1AA
          accounts:
          - accountId: A123456
          - accountId: A523456
          - accountId: A823456
        - tradingLocationId: B4562-G56SG-H678FD
          status: onStop
          companyName: Testco Birmingham
          address1: Unit 2
          address2: A Trading Estate
          address3: Saltley
          city: Birmingham
          state: null
          postalCode: B8 2AA
          accounts:
          - accountId: F123456
          - accountId: F523456
          - accountId: F823456
        - tradingLocationId: M4562-G56SG-H678FD
          status: closed
          companyName: Testco Manchester
          address1: Unit 3
          address2: A Trading Estate
          address3: Salford
          city: Manchester
          state: null
          postalCode: M1 4AA
          accounts:
          - accountId: M123456
          - accountId: M523456
          - accountId: M823456
  securitySchemes:
    OAuth2:
      type: oauth2
      description: This API uses OAuth 2 with the client-credentials grant flow
      flows:
        clientCredentials:
          tokenUrl: https://api-uat.dhl.com/parceluk/auth/v1/accesstoken
          scopes: {}
x-refined-from:
- dhl-ecommerce-uk-openapi.json
- dhl-ecommerce-uk-openapi.json