DSV

DSV Label API

Printing API

Operations 7

GET /labels/{bookingId} Download PDF label(s) via Booking ID #
GET /labels/reference/{reference}/zpl Download ZPL label(s) via Booking's reference #
GET /labels/tmsId/{tmsId} Download PDF label(s) via Shipment ID #
GET /labels/reference/{reference} Download PDF label(s) via Booking's reference #
GET /labels/{bookingId}/zpl Download ZPL label(s) via Booking ID #
GET /labels/tmsId/{tmsId}/zpl Download ZPL label(s) via Shipment ID #
GET /labels/documents/{bookingId} Download booking documents #

Documentation

📖
APIReference
https://developer.dsv.com/api-details#api=access-token-demo-v1
📖
Documentation
https://developer.dsv.com/oauth-guide
📖
Documentation
https://developer.dsv.com/apicatalogue-generic
📖
Authentication
https://developer.dsv.com/oauth-guide
📖
APIReference
https://developer.dsv.com/api-details#api=generic-booking-demo-v2
📖
Documentation
https://developer.dsv.com/guide-mydsv
📖
APIReference
https://developer.dsv.com/api-details#api=generic-tracking-demo-v2
📖
APIReference
https://developer.dsv.com/api-details#api=generic-labels-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=generic-upload-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=generic-download-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=generic-invoice-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=generic-visibilitydemo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=es-quote-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=es-webhook-demo-v1
📖
Documentation
https://developer.dsv.com/webhook-guide
📖
APIReference
https://developer.dsv.com/api-details#api=es-webhook-int-v1
📖
Documentation
https://developer.dsv.com/apicatalogue-cl
📖
APIReference
https://developer.dsv.com/api-details#api=customs-ai-demo-v2
📖
APIReference
https://developer.dsv.com/api-details#api=connect-api-booking-demo-v1
📖
Documentation
https://developer.dsv.com/guide-road
📖
Documentation
https://developer.dsv.com/apicatalogue-road
📖
APIReference
https://developer.dsv.com/api-details#api=connect-api-tracking-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=xpress-booking-v2
📖
Documentation
https://developer.dsv.com/guide-xpress
📖
Documentation
https://developer.dsv.com/apicatalogue-xpress
📖
APIReference
https://developer.dsv.com/api-details#api=xpress-tracking-v2
📖
APIReference
https://developer.dsv.com/api-details#api=xpress-comparator-v2
📖
APIReference
https://developer.dsv.com/api-details#api=edc-public-api-v2
📖
Documentation
https://developer.dsv.com/guide-scm
📖
Documentation
https://developer.dsv.com/apicatalogue-scm
📖
APIReference
https://developer.dsv.com/api-details#api=edc-booking-api-v2
📖
APIReference
https://developer.dsv.com/api-details#api=edc-shipments-api-v2
📖
APIReference
https://developer.dsv.com/api-details#api=edc-loadplan-api-v2
📖
APIReference
https://developer.dsv.com/api-details#api=edc-edocs-api-v2
📖
APIReference
https://developer.dsv.com/api-details#api=edc-events-api-v2
📖
APIReference
https://developer.dsv.com/api-details#api=edc-neom-api-v2
📖
Documentation
https://developer.dsv.com/guide-neom
📖
APIReference
https://developer.dsv.com/api-details#api=warehousing-productdata-demo-v1
📖
Documentation
https://developer.dsv.com/guide-contract-logistics
📖
APIReference
https://developer.dsv.com/api-details#api=warehousing-preadvice-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=warehousing-despatch-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=warehousing-inventory-demo-v1
📖
APIReference
https://developer.dsv.com/api-details#api=warehousing-status-demo-v1

Specifications

Other Resources

🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Access%20Token%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Booking%20V2%20-%20samples%20with%20Bearer%20Token).zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Tracking%20v2.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Label%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Upload%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Download%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Visibility%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Quote%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Webhook%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(WMS%20Webhook%20V1.0%20INT%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(Customs%20v2.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/BookingWebService%20SOAP%20API%20v1.3.postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/TrackingWebService%20SOAP%20API%20v1.3.postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API(XPress%20Booking%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API(XPress%20Tracking%20V2.0).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API(XPress%20Quote%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(eDC%20Orders%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(eDC%20Booking%20V2.0%20-samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(eDC%20Shipments%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(eDC%20Loadplans%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(eDC%20eDocs%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(eDC%20Events%20V2.0%20-%20samples).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(WMS%20Product%20Data%20v1.0%20-%20samples%20with%20Bearer%20token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(WMS%20Inbound%20Notification%20v1.0%20-%20samples%20with%20Bearer%20Token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(WMS%20Delivery%20Notification%20v1.0%20-%20samples%20with%20Bearer%20token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/DSV%20API%20(WMS%20Inventory%20v1.0%20-%20samples%20with%20Bearer%20token).postman_collection.zip
🔗
PostmanCollection
https://developer.dsv.com/content/WMS%20Notification%20Status%20v1.0%20API.postman_collection.zip

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/dsv-label-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dsv-label-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Labels (DEMO) - Air, Sea, Road(EU), Rail Label API
  description: Prints package labels (PDF) for bookings submitted via the Booking API or myDSV.
  version: v1
servers:
- url: https://api.dsv.com/my-demo/printing/v1
security:
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: Label
  description: Printing API
paths:
  /labels/{bookingId}:
    get:
      tags:
      - Label
      summary: Download PDF label(s) via Booking ID
      description: 'Download PDF package labels via API for bookings submitted via the Booking API or online via DSV’s myDSV customer portal.<BR>

        <BR>

        DEMO ACCOUNT<BR>

        Authorization: client_id: api.demo@demo.dsv.com, client_secret: Demo12345<BR>

        Sample Booking IDs: 40257145990010760574, 40257145990010760581 '
      operationId: printLabelUsingGET
      parameters:
      - name: bookingId
        in: path
        description: Booking identifier (GSIN)
        required: true
        schema:
          type: string
      - name: printFormat
        in: query
        description: 'These are the supported print formats

          - Landscape1Label

          - Landscape2Labels

          - Portrait1Label


          If a "printFormat" is not added to the request the label response will default to "Landscape1Label"'
        schema:
          enum:
          - Landscape1Label
          - Landscape2Labels
          - Portrait1Label
          type: string
          default: Landscape1Label
      - name: Authorization
        in: header
        description: DSV Oauth header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: PDF File
          content:
            application/pdf+json:
              schema:
                $ref: '#/components/schemas/LabelsBookingIdGet200ApplicationPdf-jsonResponse'
              example: string
        '401':
          description: Unauthorized
          content:
            application/pdf+json: {}
        '403':
          description: User has no access to the booking
          content:
            application/pdf+json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
              example:
                code: ERR12345
                development:
                  exception: string
                  message: string
                fields:
                - code: ERR12345
                  message: validation error
                  name: field_name
                message: 'Not found booking: 40257145990010785188'
        '404':
          description: Booking was not found
          content:
            application/pdf+json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
              example:
                code: ERR12345
                development:
                  exception: string
                  message: string
                fields:
                - code: ERR12345
                  message: validation error
                  name: field_name
                message: 'Not found booking: 40257145990010785188'
        '500':
          description: Internal Server Error
          content:
            application/pdf+json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
              example:
                code: ERR12345
                development:
                  exception: string
                  message: string
                fields:
                - code: ERR12345
                  message: validation error
                  name: field_name
                message: 'Not found booking: 40257145990010785188'
  /labels/reference/{reference}/zpl:
    get:
      tags:
      - Label
      summary: Download ZPL label(s) via Booking's reference
      description: Download ZPL package labels via API using booking's reference
      operationId: printZPLLabelUsingGET
      parameters:
      - name: reference
        in: path
        description: 'Customer booking reference.

          Reference must be unique (assigned to single shipment)'
        required: true
        schema:
          type: string
      - name: zoom
        in: query
        description: Scaling of the label
        schema:
          type: number
          default: 1
      - name: Authorization
        in: header
        description: DSV Oauth header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ZPL File
        '401':
          description: Unauthorized
        '403':
          description: User has no access to the booking
        '404':
          description: Booking was not found
        '500':
          description: Internal Server Error
  /labels/tmsId/{tmsId}:
    get:
      tags:
      - Label
      summary: Download PDF label(s) via Shipment ID
      description: Download PDF package labels via API using DSV Shipment ID
      operationId: printLabelUsingtmsId
      parameters:
      - name: tmsId
        in: path
        description: Booking identifier (GSIN)
        required: true
        schema:
          type: string
      - name: printFormat
        in: query
        description: 'These are the supported print formats

          - Landscape1Label

          - Landscape2Labels

          - Portrait1Label


          If a "printFormat" is not added to the request the label response will default to "Landscape1Label"'
        schema:
          enum:
          - Landscape1Label
          - Landscape2Labels
          - Portrait1Label
          type: string
          default: Landscape1Label
      - name: Authorization
        in: header
        description: DSV Oauth header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: PDF File
          content:
            application/pdf+json:
              schema:
                $ref: '#/components/schemas/LabelsBookingIdGet200ApplicationPdf-jsonResponse'
              example: string
        '401':
          description: Unauthorized
          content:
            application/pdf+json: {}
        '403':
          description: User has no access to the booking
          content:
            application/pdf+json: {}
        '404':
          description: Booking was not found
          content:
            application/pdf+json: {}
        '500':
          description: Internal Server Error
          content:
            application/pdf+json: {}
  /labels/reference/{reference}:
    get:
      tags:
      - Label
      summary: Download PDF label(s) via Booking's reference
      description: Download PDF package labels via API using booking's reference
      operationId: printLabelUsingreference
      parameters:
      - name: reference
        in: path
        description: Booking identifier (GSIN)
        required: true
        schema:
          type: string
      - name: printFormat
        in: query
        description: 'These are the supported print formats

          - Landscape1Label

          - Landscape2Labels

          - Portrait1Label


          If a "printFormat" is not added to the request the label response will default to "Landscape1Label"'
        schema:
          enum:
          - Landscape1Label
          - Landscape2Labels
          - Portrait1Label
          type: string
          default: Landscape1Label
      - name: Authorization
        in: header
        description: DSV Oauth header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: PDF File
          content:
            application/pdf+json:
              schema:
                $ref: '#/components/schemas/LabelsBookingIdGet200ApplicationPdf-jsonResponse'
              example: string
        '401':
          description: Unauthorized
          content:
            application/pdf+json: {}
        '403':
          description: User has no access to the booking
          content:
            application/pdf+json: {}
        '404':
          description: Booking was not found
          content:
            application/pdf+json: {}
        '500':
          description: Internal Server Error
          content:
            application/pdf+json: {}
  /labels/{bookingId}/zpl:
    get:
      tags:
      - Label
      summary: Download ZPL label(s) via Booking ID
      description: 'Download ZPL package labels via API for bookings submitted via the Booking API or online via DSV’s myDSV customer portal.<BR>

        <BR>

        DEMO ACCOUNT<BR>

        Authorization: client_id: api.demo@demo.dsv.com, client_secret: Demo12345<BR>

        Sample Booking IDs: 40257145990010760574, 40257145990010760581 '
      operationId: printZPLLabelByBookingId
      parameters:
      - name: bookingId
        in: path
        description: Booking identifier (GSIN)
        required: true
        schema:
          type: string
      - name: zoom
        in: query
        description: 'Use the "zoom" to get the label(s) sized to your printer needs. If "zoom" is not added to the request, the label response will provide 10x15 cm label(s) in 203dpi.<br>To receive the 10x15 cm label(s) in other commonly used densities, use these "zoom" values:

          - 152dpi - zoom=0.85

          - 203dpi - zoom=1.00

          - 300dpi - zoom=1.20

          - 600dpi - zoom=1.70'
        schema:
          type: number
          default: 1
      - name: Authorization
        in: header
        description: DSV Oauth header
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ZPL File
        '401':
          description: Unauthorized
        '403':
          description: User has no access to the booking
        '404':
          description: Booking was not found
        '500':
          description: Internal Server Error
  /labels/tmsId/{tmsId}/zpl:
    get:
      tags:
      - Label
      summary: Download ZPL label(s) via Shipment ID
      description: Download ZPL package labels via API using DSV Shipment ID
      operationId: printZPLLabelBytmsId
      parameters:
      - name: tmsId
        in: path
        description: DSV Shipment ID
        required: true
        schema:
          type: string
      - name: zoom
        in: query
        description: Scaling of the label
        schema:
          type: number
          default: 1
      - name: Authorization
        in: header
        description: DSV Oauth header
        schema:
          type: string
      responses:
        '200':
          description: ZPL File
        '401':
          description: Unauthorized
        '403':
          description: User has no access to the booking
        '404':
          description: Booking was not found
        '500':
          description: Internal Server Error
  /labels/documents/{bookingId}:
    get:
      tags:
      - Label
      summary: Download booking documents
      description: Download documents for bookings submitted via the Booking API or online via DSV’s myDSV customer portal.
      operationId: printDocumentsByBookingId
      parameters:
      - name: bookingId
        in: path
        description: DSV Booking id - Identifier of the Booking
        required: true
        schema:
          type: string
        example: 4.02570846300034e+19
      - name: documentType
        in: query
        description: 'One of the supported document types:

          - DeliveryNote

          - PickupNote

          - ReceiptList

          - CMR'
        required: true
        schema:
          enum:
          - DeliveryNote
          - PickupNote
          - CMR
          - ReceiptList
          type: string
        example: DeliveryNote
      - name: Authorization
        in: header
        description: DSV Oauth header
        schema:
          type: string
      responses:
        '403':
          description: User has no access to the booking
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
              example:
                code: E97
                message: 'User has no access to the booking: 40257084630003353337'
        '200':
          description: PDF File
          headers:
            Content-Disposition:
              description: Contains name of PDF File
              schema:
                type: string
          content:
            application/json:
              schema:
                type: string
              example: string
        '404':
          description: Booking was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
              example: '{ code: "E98", message: "Not found booking: "40257084630003353337" }'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDTO'
              example:
                code: E100
                message: 'Error: b410e2e1-2087-4618-8bca-981c51deda2e occurred. Please contact myDSV support.'
components:
  schemas:
    ErrorDTO:
      required:
      - code
      - message
      type: object
      properties:
        code:
          type: string
          description: Unique error code
          example: ERR12345
        message:
          type: string
          description: Error message passed to the user
          example: 'Not found booking: 40257145990010785188'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FieldDTO'
          description: List of fields that didn't pass validation
        development:
          $ref: '#/components/schemas/DevelopmentDTO'
      description: Error
    FieldDTO:
      title: FieldDTO
      type: object
      properties:
        name:
          type: string
          description: Error name
          example: field_name
        message:
          type: string
          description: Description of error
          example: validation error
        code:
          type: string
          description: Type of error
          example: ERR12345
      description: Field
    DevelopmentDTO:
      title: Development
      type: object
      properties:
        exception:
          type: string
          description: dump from exception
        message:
          type: string
          description: verbose, plain language description of the problem for the app developer with hints on how to fix it
    LabelsBookingIdGet200ApplicationPdf-jsonResponse:
      type: string
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      name: DSV-Subscription-Key
      in: header
    apiKeyQuery:
      type: apiKey
      name: DSV-Subscription-Key
      in: query