DHL

DHL Send cCustoms API

The Send cCustoms API from DHL — 1 operation(s) for send ccustoms.

GitHub OpenAPI
Business capability
Customs & Trade Compliance Management BC-2480

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 /ccc/send-cCustoms Send customs data for a parcel · Send cCustoms data #
Ask an LLM
“How do I send customs data for a parcel I already created a cPAN for?”
“Can I get a CN23 customs document back when I send cCustoms data?”
Tell an agent
Send cCustoms data {dataElement} for my parcel.
Send customs data {dataElement} and generate a CN23 document.

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-send-ccustoms-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-send-ccustoms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Send cCustoms API
  version: 1.1.56
  description: 'Operations tagged Send cCustoms across 2 of this provider''s published API definitions: dhl-ecommerce-europe-openapi.yml, dhl-ecommerce-europe-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api-sandbox.dhl.com
tags:
- name: Send cCustoms
paths:
  /ccc/send-cCustoms:
    post:
      security:
      - OAuth2: []
      summary: Send cCustoms data
      description: 'Purpose of this service is to send customs data (cCustoms) for shipments, that already have been created via the send cPAN request. Access restricted please contact DHL representative.


        **System Response Codes**


        The System Response Codes are provided in the *status* filed of the response.


        |HTTP Code|Status Code|Description|

        |------------------|-------|--------------|

        |200|200|cCustoms processed|

        |200|618|cCustoms request validation errors|

        |401||Unauthorized|

        |429||Too many requests, try again later|

        |500||Internal Server error, contact support|'
      parameters:
      - name: generateCustomsDocument
        in: query
        description: CN23 Document generation is required or not. Default format is PDF. Please note:- a CN23 document is only returned for product parcelInternational, as it is not applicable to other products.
        required: false
        schema:
          enum:
          - 'true'
          - 'false'
          type: string
      requestBody:
        description: cCustoms details in defined JSON schema
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/cCustomsRequest'
            examples:
              cCustomsParcelConnectEUtoIE:
                $ref: '#/components/examples/PC_Customs_EUtoIE'
              cCustomsParcelConnectEUtoIE_full:
                $ref: '#/components/examples/PC_Customs_EUtoIE_full'
              cCustomsPI:
                $ref: '#/components/examples/PI_Customs'
              cCustomsPI_Customs_full:
                $ref: '#/components/examples/PI_Customs_full'
              cCustomsParcelConnectGBtoEU:
                $ref: '#/components/examples/PC_Customs_EUtoGB'
              cCustomsParcelConnectEUtoGB:
                $ref: '#/components/examples/PC_Customs_GBtoEU'
      tags:
      - Send cCustoms
      responses:
        '200':
          $ref: '#/components/responses/200_cCustoms'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '429':
          $ref: '#/components/responses/429_TooManyRequests'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
      operationId: postCccSendCCustoms
      x-operation-id-source: derived
    servers:
    - url: https://api-sandbox.dhl.com
components:
  examples:
    PC_Customs_GBtoEU:
      summary: cCustoms-ParcelConnect GB to EU
      value:
        dataElement:
          parcelOriginOrganization: GB
          parcelDestinationOrganization: ES
          general:
            parcelIdentifier: JJD149990299999914739
            timestamp: '2026-01-01T12:00:00Z'
            product: ParcelEurope.parcelconnect
            routingCode: 2LES08001+70000000
            customerIdentification: '5012345678'
          cCustoms:
            CustomsIDs:
              sender:
              - idType: IOSS
                identifier: IM0123456789
            insuranceCost:
              value: '5.50'
            goodsDescription:
              general:
                incoterms: DDP
                goodsClassification: COMMERCIALGOODS
                totalValue: '194.50'
                currency: GBP
                shipmentWeight: '3.00'
              item:
              - description: DHL Coffee Cup
                customsTariffNumber: '6912002000'
                originCountry: GB
                quantity: '2'
                netWeight: '0.500'
                value: '30.50'
                currency: GBP
              - description: DHL Sweatshirt S
                customsTariffNumber: '61109090'
                originCountry: NL
                quantity: '3'
                netWeight: '2.500'
                value: '153.00'
                currency: GBP
            customsDocuments:
              document:
              - identifier: '20200405_12345'
                name: invoice_test_example
                binary: JVBERi0xLjcNFIvTGFuZyh0QzRCQkVFMjFFQkUxREYxNEYyRj48NzI3NTcxRkI3N0E0NEM0Q
                issueDate: '2022-08-23'
            comment: Test Comment
    PC_Customs_EUtoGB:
      summary: cCustoms-ParcelConnect EU to GB
      value:
        dataElement:
          parcelOriginOrganization: DE
          parcelDestinationOrganization: GB
          general:
            parcelIdentifier: JJD901920220915102000003
            timestamp: '2026-01-01T12:00:00Z'
            product: ParcelEurope.parcelconnect
            routingCode: 2LGBSW1A2AA+70000000
            customerIdentification: '5012345678'
          cCustoms:
            update: 'false'
            CustomsIDs:
              sender:
              - idType: inboundVAT
                identifier: '811984119'
              - idType: EORI
                identifier: '12345'
            insuranceCost:
              value: '5.50'
            goodsDescription:
              general:
                incoterms: DDP
                goodsClassification: COMMERCIALGOODS
                totalValue: '194.50'
                currency: GBP
                shipmentWeight: '3.00'
              item:
              - description: DHL Coffee Cup
                customsTariffNumber: '6912002000'
                originCountry: NL
                quantity: '2'
                netWeight: '0.500'
                value: '30.50'
                currency: GBP
              - description: DHL Sweatshirt S
                customsTariffNumber: '6110909000'
                originCountry: NL
                quantity: '3'
                netWeight: '2.500'
                value: '153.00'
                currency: GBP
            customsDocuments:
              document:
              - docType: INV
                identifier: '20200405_12345'
                name: invoice_test_example
                binary: JVBERi0xLjcNFIvTGFuZyh0QzRCQkVFMjFFQkUxREYxNEYyRj48NzI3NTcxRkI3N0E0NEM0Q
                issueDate: '2022-08-23'
            comment: Test Comment
    PC_Customs_EUtoIE:
      summary: cCustoms-ParcelConnect EU to IE
      value:
        dataElement:
          parcelOriginOrganization: ES
          parcelDestinationOrganization: IE
          general:
            parcelIdentifier: JJD149990299999824059
            timestamp: '2026-01-01T12:00:00Z'
            product: ParcelEurope.parcelconnect
            customerIdentification: '5012345678'
          cCustoms:
            goodsDescription:
              item:
              - description: Tea tin
                customsTariffNumber: '48191010'
                quantity: '2'
                netWeight: '0.100'
    618_cCustomsERROR:
      summary: ERROR
      value:
        error:
          status: '618'
          timestamp: '2026-01-01T12:00:00'
          customerId: '5012345678'
          sessionId: 69813cea-d222-47ea-aede-7867485ddf5c
          statusCode: ERROR
          statusMessage: 'Error 1:- Error Path:/dataElement/customs/ITMATT/itmatt_1_4_0/item/postage_paid/amount; Error Message: Number of digits is greater than totalDigits'
    PI_Customs_full:
      summary: cCustoms-Parcel International with full information
      value:
        dataElement:
          parcelOriginOrganization: DE
          parcelDestinationOrganization: JP
          general:
            parcelIdentifier: CY889323681DE
            timestamp: '2026-01-01T12:00:00Z'
            product: ParcelEurope.parcelInternational
            customerIdentification: '5012345678'
          cCustoms:
            CustomsIDs:
              sender:
              - idType: VAT
                identifier: '789012'
              - idType: EORI
                identifier: '123'
              recipient:
              - idType: VAT
                identifier: '789012'
              - idType: EORI
                identifier: '123'
            shippingFee:
              currency: EUR
              value: '5.50'
            goodsDescription:
              general:
                goodsClassification: Other
                totalValue: '10'
                currency: EUR
                shipmentWeight: '3.00'
              item:
              - description: Teedose
                customsTariffNumber: '48191010'
                originCountry: DE
                quantity: '2'
                netWeight: '0.100'
                value: '4.00'
                currency: EUR
              - description: Jasmintee
                customsTariffNumber: 09022020
                originCountry: DE
                quantity: '5'
                netWeight: '0.250'
                value: '16.00'
                currency: EUR
            customsDocuments:
              document:
              - docType: Invoice
                identifier: '20200405_12345'
                name: invoice_test_example
              - docType: license
                identifier: '999999999999'
            comment: Test Comment
    PC_Customs_EUtoIE_full:
      summary: cCustoms-ParcelConnect EU to IE with full information
      value:
        dataElement:
          parcelOriginOrganization: ES
          parcelDestinationOrganization: IE
          general:
            parcelIdentifier: JJD149990299999824059
            timestamp: '2026-01-01T12:00:00Z'
            product: ParcelEurope.parcelconnect
            customerIdentification: '5012345678'
          cCustoms:
            goodsDescription:
              general:
                currency: EUR
              item:
              - description: Tea tin
                customsTariffNumber: '48191010'
                quantity: '2'
                netWeight: '0.100'
                value: '2.50'
    PI_Customs:
      summary: cCustoms-ParcelInternational
      value:
        dataElement:
          parcelOriginOrganization: DE
          parcelDestinationOrganization: JP
          general:
            parcelIdentifier: CY889323681DE
            timestamp: '2026-01-01T12:00:00Z'
            product: ParcelEurope.parcelInternational
            customerIdentification: '5012345678'
          cCustoms:
            goodsDescription:
              general:
                goodsClassification: Other
                totalValue: '10'
                currency: EUR
              item:
              - description: Teedose
                customsTariffNumber: '48191010'
                quantity: '2'
                netWeight: '0.100'
                value: '4.00'
                currency: EUR
    200_cCustoms:
      summary: OK
      value:
        response:
          status: '200'
          timestamp: '2026-01-01T12:00:00'
          customerId: '5012345678'
          sessionId: 752328d4-2630-4a48-ac2b-a03b21b4de10
          statusCode: OK
          statusMessage: cCustoms has been processed successfully
  schemas:
    cCustomsRequest:
      type: object
      properties:
        dataElement:
          type: object
          description: Container for the request data.
          properties:
            parcelOriginOrganization:
              type: string
              description: This field indicates the origin country of the parcel. ISO-3166 two-letter country code
              example: DE
              maxLength: 2
            parcelDestinationOrganization:
              type: string
              description: This indicates which country is the recipient of the parcel. ISO-3166 two-letter country
              example: GB
              maxLength: 2
            general:
              type: object
              description: Container for the general data of request.
              properties:
                parcelIdentifier:
                  type: string
                  description: This describes the identifier that is used for parcel tracking.
                  example: Example of parcelIdentifier of type ASC MH10 - JJD0000000000000001
                timestamp:
                  type: string
                  description: Timestamp at which the request data is passed to eConnect.
                  example: Example of expressing the same time in the different formats - 2022-07-01T13:05:05Z 2022-07-01T15:05:05+02:00 2022-07-01T11:05:05-02:00
                  enum:
                  - YYYY-MM-DDThh:mm:ssZ (or)
                  - YYYY-MM-DDThh:mm:ss+hh:mm (or)
                  - YYYY-MM-DDThh:mm:ss-hh:mm
                product:
                  type: string
                  description: This is the product of the parcel. Please use - - ParcelEurope.parcelconnect for product "DHL Parcel Connect", - ParcelEurope.parcelInternational for product "DHL Parcel International" - ParcelEurope.connectPlus for product "DHL Connect Plus"
                  example:
                  - ParcelEurope.parcelconnect,
                  - ParcelEurope.parcelInternational,
                  - ParcelEurope.connectPlus
                routingCode:
                  type: string
                  description: This describes the identifier used for routing the parcel. It contains information about the data/ application identifier type used, recipient information and service information. No needed in case of product = ParcelEurope.parcelconnect and ParcelEurope.connectPlus.
                  example: null
                customerIdentification:
                  type: string
                  description: Individual customer ID of sender. Will be provided to customers during onboarding process.
              required:
              - parcelIdentifier
              - timestamp
              - product
              - customerIdentification
            cCustoms:
              type: object
              properties:
                update:
                  type: boolean
                  description: Only used if product = ParcelEurope.parcelconnect AND parcelDestinationOrganization = GB. Set 'false' or do not provide, if customs data Element is provided the first time. Set 'true', if this is an update or a previously transferred customs data element.
                CustomsIDs:
                  type: object
                  description: Container for the customsIDs for sender and recipient. Needs to be included only if customsID information for the sender and/or recipient shall be specified.
                  properties:
                    sender:
                      type: object
                      description: Container for the customsIDs for sender. Needs to be included only if customsID information for the sender and/or recipient shall be specified. Maximum of 5 sender idType and identifer is allowed.
                      properties:
                        idType:
                          type: string
                          description: Information on the type of fiscal ID. Condition:- Must be provided if product is ParcelEurope.parcelInternational. In case of ParcelEurope.parcelConnect, the fiscalID must either provided here or by configuration. For more details please refer to the use cases or reach out to your DHL contact person.
                          example: VAT
                          maxLength: 35
                          enum:
                          - VAT
                          - EORI
                          - inboundVAT
                          - IOSS
                        identifier:
                          type: string
                          description: Fiscal ID of the sender.          Condition:- same as for idType
                          example: German VAT - DE 123456789
                          maxLength: 35
                    recipient:
                      type: object
                      description: Container for the customsIDs for recipient. Needs to be included only if customsID information for the sender and/or recipient shall be specified. condition:- must be provided if product = ParcelEurope.parcelInternational; if product = ParcelEurope.parcelconnect;
                      properties:
                        idType:
                          type: string
                          description: Information on the type of fiscal ID. Condition:- Must be provided if product is ParcelEurope.parcelInternational. In case of ParcelEurope.parcelConnect, the fiscalID must either provided here or by configuration. For more details please refer to the relevant use cases ("Get Started" Section) or reach out to your DHL contact person.
                          example: VAT
                          maxLength: 35
                          enum:
                          - VAT
                          - EORI
                          - inboundVAT
                        identifier:
                          type: string
                          description: Fiscal ID of the recipient.          Condition:- same as for idType
                          example: German VAT - DE 123456789
                          maxLength: 35
                shippingFee:
                  type: object
                  properties:
                    currency:
                      type: string
                      description: Currency of of the shipping fee to recipient.Note:- in case multiple currency elements are provided, use consistent currency in message. ISO 4217 alpha-3 currency codes. Must be provided if product = ParcelEurope.parcelInternational.
                      maxLength: 3
                    value:
                      type: string
                      description: Transportation costs for the shipment. Can be stated as "0.00" for parcel international. Must be provided if product = ParcelEurope.parcelInternational. format - nnnnn.nn;
                      maxLength: 7
                insuranceCost:
                  type: object
                  properties:
                    value:
                      type: string
                      description: Insurance cost for the shipment. format - nnnnn.nn
                      maxLength: 15
                goodsDescription:
                  type: object
                  description: Container for the description of all the items in the shipment
                  properties:
                    general:
                      type: object
                      description: General information that refers to all items in the shipment
                      properties:
                        incoterms:
                          type: string
                          description: Incoterm as agreed between sender and recipient. DDP or DAP; Must be provided if product= ParcelEurope.parcelconnect
                          example: DDP
                          enum:
                          - DDP
                          - DAP
                        goodsClassification:
                          type: string
                          description: Indication for customs for the Export Reason. Allowed values- corresponding names of UPU list 136 (Note:- CommercialGoods = Sale of goods; reason 11). Also note that in various customs scenarios not all values are allowed  check out the respective use case description (get started section and/ or reach out to your DHL contact to confirm the respective scenario allowed values)
                          example: CommercialGoods
                          enum:
                          - CommercialSaleOfGoods,
                          - CommercialGoods,
                          - UnwantedCommercialReturnGoods,
                          - RepairReturnGoods,
                          - WarrantyReturnGoods,
                          - ReturnedItem,
                          - Gift,
                          - ProductSample,
                          - MaterialForTheBlind,
                          - HumanitarianAid,
                          - GoodsForTesting,
                          - LoanOfGoods,
                          - Documents,
                          - MixedContent,
                          - FreeUsage,
                          - Other
                          maxLength: 35
                        totalValue:
                          type: string
                          description: Sum of total values for all  items. Must be provided if product= ParcelEurope.parcelconnect
                          example: 183.5
                        currency:
                          type: string
                          description: Currency of sum of total values for  all  items (all item values must be given in this currency).Note:- in case multiple currency elements are provided:- use consistent currency in message. format - ISO 4217 alpha-3 currency codes
                          example: GBP
                          maxLength: 3
                        shipmentWeight:
                          type: string
                          description: Total gross weight of the shipment in kg.Must match weight provided in shipment data. Must be provided if product= ParcelEurope.parcelconnect format- nnnnn.nn;
                          example: 5.45
                          maxLength: 8
                    item:
                      type: object
                      properties:
                        description:
                          type: string
                          description: Description of the goods.
                          example: DHL coffee cup
                          maxLength: 35
                        customsTariffNumber:
                          type: string
                          description: Tariff Code to describe the goods (usually as HS-code)
                          example: 69120020
                          maxLength: 10
                        originCountry:
                          type: string
                          description: Country of origin (manufacture) of the content piece.  ISO-3166 two-letter country code; Must be provided if product= ParcelEurope.parcelconnect
                          example: NL
                          maxLength: 2
                        quantity:
                          type: string
                          description: Number of units of the piece
                          example: 4
                        netWeight:
                          type: string
                          description: Net weight of all Items of the described type (= weight of an individual item of the described type * quantity)Kg, format - xx.xxx ("." as separator, 3 decimals)
                          example: 0.5
                          maxLength: 8
                        value:
                          type: string
                          description: Gross value (incl. VAT) of all Items of the described type (= value of an individual item of the described type * quantity).
                          example: null
                          maxLength: 9
                        currency:
                          type: string
                          description: Currency of the declared value. Note each item must be declared in the provided general/currency.Note:- in case multiple currency elements are provided:- use consistent currency in message.format- ISO 4217 alpha-3 currency codes; Must be provided if product= ParcelEurope.parcelconnect
                          example: GBP
                          maxLength: 3
                      required:
                      - description
                      - customsTariffNumber
                      - quantity
                      - netWeight
                  required:
                  - item
                customsDocuments:
                  type: object
                  properties:
                    document:
                      type: object
                      properties:
                        docType:
                          type: string
                          description: Classification of the document. if product = parcel international Possible values - "INV" (for invoice), "LCS" (for license), "CRT" (for certificate); Must be provided if product = ParcelEurope.parcelInternational
                          maxLength: 3
                        identifier:
                          type: string
                          description: Identifier of the document. e.g. commercial invoice number as specified by the customer
                          example: 2022090512345
                          maxLength: 35
                        name:
                          type: string
                          description: Filename of the encoded document. Must be provided if product= ParcelEurope.parcelconnect  AND destination = GB
                          example: invoice_test_example
                          maxLength: 255
                        binary:
                          type: string
                          description: Base64-encoded electronic document. File type can be determined by its magic number. Must be provided if product= ParcelEurope.parcelconnect  AND destination = GB
                        issueDate:
                          type: string
                          description: Issue date of the document. Must be provided if product= ParcelEurope.parcelconnect
                          example: 05-09-2022
                      required:
                      - identifier
                  required:
                  - document
                comment:
                  type: string
                  description: Additional information on the shipment to aid customs clearance processes
                  maxLength: 512
              required:
              - goodsDescription
          required:
          - general
          - cCustoms
          - parcelOriginOrganization
          - parcelDestinationOrganization
      required:
      - dataElement
    200_cCustoms:
      required:
      - response
      properties:
        response:
          required:
          - status
          - timestamp
          - customerId
          - sessionId
          - statusCode
          - statusMessage
          - shipment
          properties:
            status:
              type: string
              example: '200'
            timestamp:
              type: string
              example: '2019-09-20T09:38:21'
            customerId:
              type: string
              example: Test12345
            sessionId:
              type: string
              example: 752328d4-2630-4a48-ac2b-a03b21b4de10
            statusCode:
              type: string
              example: OK or ERROR
            statusMessage:
              type: string
              example: 'cPAN has been processed successfully " or "Configuration not found for customerId: ''Test12345''. If you are a customer, please enter your valid DHL customerID. If you are an integrator, please enter the DHL ID of your customer into this field." '
            shipment:
              required:
              - shipmentId
              - routingCode
              - referenceIdentifier
              - qrCode
              properties:
                shipmentId:
                  type: string
                  example: TESTJJD14900053379980
                routingCode:
                  type: string
                  example: 2LGR17563+72530000
                referenceIdentifier:
                  type: string
                  example: 26967623196
                qrCode:
                  type: string
                  example: iVBORw0KGgoAAAANSUhEUgAAAwsAAAMLCAYAAAABpgu6AACAAElEQVR4XuydB9gdVbW/LViwF+wNxS72Xu61YkNFvYrYQOy9NxQUGzYU68Ve0WtB1IsJ6T0hvdcvIT0hkEZ6SALz///Guw/7W1POnHNm5szMed/nWQ/hmznTZ8/67b3W2jcLAAAAACrCNddcE4wdOzb43//9377aiBEjgsWLFwf79++3hzgQrFixInJNerWDBw/a3UANuJn9AwAAAEA/OXr0aLBkyZLg8ssvjzicRZuEyurVq4Prr7/eHtZAMW7cuMi16cUmTpxodwE1AbEAAAAAlUS9+vPnzy9cNPzrX/8K5syZE45q3HjjjfYwBo7t27dHrlGvtmzZMrsbqAmIBQAAAKg0Eg1yNkePHh1xQrs1CYSZM2cGGzZsCI4cOWJ3OdDMmjUrcr16NQkQqCeIBQAAAKgF6vXftm1bmEswYcKEiEOaZhqdmDx5crB06dJwGwp1gih79+7NfSTniiuuCG644Qa7K6gJiAUAAACoJcor2LFjRzg6sGrVqmD58uXBggULQtO/lXuwZcuWYM+ePTirGSliVGHhwoV2N1AjEAsAAAA1YN++faFjvHHjxtAJVliOc4x9UxUbOc5yoNWDrt/hKEMW9HxZRz8P2717t90V1AjEAgAAQIVQqM2uXbuCNWvWhMm9kyZNCuPrrQPWqY0fPz5M4r3qqqvC7SMgwEfPg541+9z0atom1BvEAgAAQJ9R7//Q0FBw5ZVXhvX9rcNVhEmAaH/r168PDh06ZA8JBgyNRt
          type: object
    ProblemSchema:
      type: object
      properties:
        status:
          type: integer
          format: int32
        title:
          type: string
        detail:
          type: string
  responses:
    429_TooManyRequests:
      description: Too many requests in a short time.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            status: 429
            title: Too Many Requests
            detail: Too many requests within defined time period,please try again later.
    500_InternalServerError:
      description: Internal Server Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            status: 500
            title: Internal Server Error
            detail: The server encountered an unexpected condition that prevented it from fulfilling the request.
    200_cCustoms:
      description: cCustoms processed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/200_cCustoms'
          examples:
            cCustoms_OK:
              $ref: '#/components/examples/200_cCustoms'
            cCustoms_ERROR:
              $ref: '#/components/examples/618_cCustomsERROR'
    401_Unauthorized:
      description: Unauthorized. Provided key or token is invalid for requested resource.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemSchema'
          example:
            status: 401
            title: Unauthorized
            detail: Unauthorized for given resource.
  securitySchemes:
    OAuth2:
      type: oauth2
      description: This API uses OAuth 2 with the client-credentials grant flow
      flows:
        clientCredentials:
          tokenUrl: https://api-sandbox.dhl.com/ccc/v1/auth/accesstoken
          scopes: {}
x-refined-from:
- dhl-ecommerce-europe-openapi.yml
- dhl-ecommerce-europe-openapi.yml