DHL

DHL Default payment API

Manage payment information for POSTWURFSPEZIAL and POSTAKTUELL processings.You need an access token with ROLE_DIS_ACCESS to access this resource.

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 /dispatchpreparation/v1/defaultpayment Get a customer's default payment method · Get default payment information for a customer #
Ask an LLM
“Which default payment method is set for a customer?”
“Can I check what payment method a customer pays with by default?”
Tell an agent
Get the default payment information for customer {customerId}.
Show the default payment method set on customer {customerId}.
PUT /dispatchpreparation/v1/defaultpayment Update a customer's default payment method · Update default payment information for a customer #
Ask an LLM
“How do I change the default payment method for a customer?”
“Can I set a new default payment method for a customer?”
Tell an agent
Update the default payment method for customer {customerId} to {paymentMethod}.
Set customer {customerId}'s default payment to {paymentMethod} with pre-tax deduction {entitledToDeductPreTax}.
POST /dispatchpreparation/v1/defaultpayment Define a customer's default payment method · Define default payment information for a customer #
Ask an LLM
“How do I set a default payment method for a customer for the first time?”
“Can I define a default bank payment method for a customer?”
Tell an agent
Define customer {customerId}'s default payment method as {paymentMethod}.
Set customer {customerId} to pay by {paymentMethod} with pre-tax deduction {entitledToDeductPreTax}.
DELETE /dispatchpreparation/v1/defaultpayment Remove a customer's default payment method · Delete default payment information for a customer #
Ask an LLM
“How do I clear the default payment method for a customer?”
“Can I remove a customer's default payment information?”
Tell an agent destructive · confirm first
Delete the default payment information for customer {customerId}.
Clear the default payment method on customer {customerId}.

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-default-payment-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-default-payment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Default payment API
  version: 26.11.02-291-a8c40f4a7af2fabbbe5278c6fafbd2076d62a39b
  contact:
    url: https://developer.dhl.com/api-reference/print-mailing-dispatch-preparation-api
    email: it-csp@deutschepost.de
  description: 'Operations tagged Default payment across 2 of this provider''s published API definitions: dhl-deutsche-post-print-mailing-dispatch-preparation-post-parcel-germany-openapi.yml, dhl-deutsche-post-print-mailing-dispatch-preparation-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: Default payment
  description: Manage payment information for POSTWURFSPEZIAL and POSTAKTUELL processings.You need an access token with ROLE_DIS_ACCESS to access this resource.
paths:
  /dispatchpreparation/v1/defaultpayment:
    get:
      tags:
      - Default payment
      summary: Get default payment information for a customer
      description: Returns the default payment information for a customer, if defined.
      operationId: getPayment
      parameters:
      - name: customerId
        in: query
        description: ID of the customer.
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: Payment found and returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultPaymentRep'
        '403':
          description: Access forbidden because of missing authority for resource or entity.
        '404':
          description: You did not define a default payment yet.
    put:
      tags:
      - Default payment
      summary: Update default payment information for a customer
      operationId: updatePayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDefaultPaymentRep'
        required: true
      responses:
        '200':
          description: Payment successfully updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultPaymentRep'
        '403':
          description: Access forbidden because of missing authority for ressource or entity.
        '404':
          description: If the given payment id does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultPaymentRep'
        '422':
          description: 'DM_DIS_2021: If the payer''s address was not found in the master data.'
    post:
      tags:
      - Default payment
      summary: Define default payment information for a customer
      operationId: createPayment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDefaultPaymentRep'
        required: true
      responses:
        '201':
          description: Payment successfully created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultPaymentRep'
        '403':
          description: Access forbidden because of missing authority for resource.
        '422':
          description: 'DM_DIS_0007 Only one payment per customer allowed. DM_DIS_2021: If the payer''s address was not found in the master data. '
    delete:
      tags:
      - Default payment
      summary: Delete default payment information for a customer
      operationId: deletePayment
      parameters:
      - name: customerId
        in: query
        description: ID of the customer.
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: Payment successfully deleted.
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Access forbidden because of missing authority for resource or entity.
    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:
    DefaultPaymentRep:
      type: object
      properties:
        payerEkp:
          type: string
          description: Ekp of the payer. This ekp has to be added to your addresses prior to this.
          example: '0000000001'
        entitledToDeductPreTax:
          type: boolean
          description: Specifies whether the payer is entitled to deduct pre-tax. This parameter is not valid for products Postwurfspezial and Postaktuell.
          example: true
        paymentMethod:
          type: integer
          format: int32
          description: Payment method. See lookup resource 'PaymentMethodType' for available values. CASH is not available for product Postwurfspezial
          example: 1
        cardNo:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=3: Post card number (4 to 7 characters) that is a supplement to the payerEkp.'
          example: 2502001
          pattern: \d{2}[\dA-Za-z]{2}(?:\d{3})?
        iban:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=1: BAN of the utilized payment bank card.'
          example: DE91100000000123456789
        bic:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=1: BIC of the utilized payment bank card.'
          example: AAAADE81XXX
        bankName:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=1: Bank name of the utilized payment bank card.'
          example: Example Bank
          maxLength: 255
          minLength: 0
        id:
          type: integer
          format: int64
          description: Identifier of the payment.
        createdOn:
          type: string
          format: date-time
          description: Date and time of the creation.
        changedOn:
          type: string
          format: date-time
          description: Date and time of the last change.
      required:
      - entitledToDeductPreTax
      - paymentMethod
    CreateDefaultPaymentRep:
      type: object
      description: Representation of a payment for creation.
      properties:
        payerEkp:
          type: string
          description: Ekp of the payer. This ekp has to be added to your addresses prior to this.
          example: '0000000001'
        entitledToDeductPreTax:
          type: boolean
          description: Specifies whether the payer is entitled to deduct pre-tax. This parameter is not valid for products Postwurfspezial and Postaktuell.
          example: true
        paymentMethod:
          type: integer
          format: int32
          description: Payment method. See lookup resource 'PaymentMethodType' for available values. CASH is not available for product Postwurfspezial
          example: 1
        cardNo:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=3: Post card number (4 to 7 characters) that is a supplement to the payerEkp.'
          example: 2502001
          pattern: \d{2}[\dA-Za-z]{2}(?:\d{3})?
        iban:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=1: BAN of the utilized payment bank card.'
          example: DE91100000000123456789
        bic:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=1: BIC of the utilized payment bank card.'
          example: AAAADE81XXX
        bankName:
          type: string
          description: 'Relevant only if you chose PaymentMethodType=1: Bank name of the utilized payment bank card.'
          example: Example Bank
          maxLength: 255
          minLength: 0
        customerId:
          type: integer
          format: int64
          description: The customer id for which to act.
      required:
      - customerId
      - entitledToDeductPreTax
      - paymentMethod
x-refined-from:
- dhl-deutsche-post-print-mailing-dispatch-preparation-post-parcel-germany-openapi.yml
- dhl-deutsche-post-print-mailing-dispatch-preparation-post-parcel-germany-openapi.yml