DConnector System OpenAPI Online Manual

DConnectorOpenAPI

baggingAndManifestUsingPOST

This API is to bag and transport parcel. Customer bag ID will be recorded for transport output file generation.


/open/api/v2/baggingAndManifest

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/baggingAndManifest"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        BatchBagAndTransportDTO body = ; // BatchBagAndTransportDTO | transportDTO
        try {
            Result.BatchBagAndTransportRespDTO result = apiInstance.baggingAndManifestUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#baggingAndManifestUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        BatchBagAndTransportDTO body = ; // BatchBagAndTransportDTO | transportDTO
        try {
            Result.BatchBagAndTransportRespDTO result = apiInstance.baggingAndManifestUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#baggingAndManifestUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
BatchBagAndTransportDTO *body = ; // transportDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to bag and transport parcel. Customer bag ID will be recorded for transport output file generation.
[apiInstance baggingAndManifestUsingPOSTWith:body
              completionHandler: ^(Result.BatchBagAndTransportRespDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{BatchBagAndTransportDTO}} transportDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.baggingAndManifestUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class baggingAndManifestUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new BatchBagAndTransportDTO(); // BatchBagAndTransportDTO | transportDTO

            try
            {
                // This API is to bag and transport parcel. Customer bag ID will be recorded for transport output file generation.
                Result.BatchBagAndTransportRespDTO result = apiInstance.baggingAndManifestUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.baggingAndManifestUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // BatchBagAndTransportDTO | transportDTO

try {
    $result = $api_instance->baggingAndManifestUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->baggingAndManifestUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::BatchBagAndTransportDTO->new(); # BatchBagAndTransportDTO | transportDTO

eval { 
    my $result = $api_instance->baggingAndManifestUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->baggingAndManifestUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # BatchBagAndTransportDTO | transportDTO

try: 
    # This API is to bag and transport parcel. Customer bag ID will be recorded for transport output file generation.
    api_response = api_instance.bagging_and_manifest_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->baggingAndManifestUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). All parcels failed. Please check parcel error message Partial parcels failed. Please check parcel error message

Status: 1028 - Failed to get user info

Status: 1058 - Transport #{transportSessionId} is executing

Status: 1108 - This Bag #{containerId} contains parcel #{parcelList} not in To-Be-Manifested status, so that it cannot be Manifested temporarily

Status: 1154 - MAWB not match with record

Status: 1155 - Parameter verification error Container ID is blank Max Length of container ID is 64

Status: 1156 - Operation is blocked because this customer is credit risk customer

Status: 1157 - Both ccnNumber and dspTrackingNumber are blank


baggingWithCustomerBagIdUsingPOST

This API is to bag Semi-Workshare or Workshare parcel with customer bag ID.


/open/api/v2/baggingWithCustomerBagId

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/baggingWithCustomerBagId"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiBagByCustomerBagIdDTO body = ; // OpenApiBagByCustomerBagIdDTO | openApiBagDto
        try {
            Result.OpenApiImportByIdRespVO result = apiInstance.baggingWithCustomerBagIdUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#baggingWithCustomerBagIdUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiBagByCustomerBagIdDTO body = ; // OpenApiBagByCustomerBagIdDTO | openApiBagDto
        try {
            Result.OpenApiImportByIdRespVO result = apiInstance.baggingWithCustomerBagIdUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#baggingWithCustomerBagIdUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
OpenApiBagByCustomerBagIdDTO *body = ; // openApiBagDto

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to bag Semi-Workshare or Workshare parcel with customer bag ID.
[apiInstance baggingWithCustomerBagIdUsingPOSTWith:body
              completionHandler: ^(Result.OpenApiImportByIdRespVO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{OpenApiBagByCustomerBagIdDTO}} openApiBagDto

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.baggingWithCustomerBagIdUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class baggingWithCustomerBagIdUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new OpenApiBagByCustomerBagIdDTO(); // OpenApiBagByCustomerBagIdDTO | openApiBagDto

            try
            {
                // This API is to bag Semi-Workshare or Workshare parcel with customer bag ID.
                Result.OpenApiImportByIdRespVO result = apiInstance.baggingWithCustomerBagIdUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.baggingWithCustomerBagIdUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // OpenApiBagByCustomerBagIdDTO | openApiBagDto

try {
    $result = $api_instance->baggingWithCustomerBagIdUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->baggingWithCustomerBagIdUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::OpenApiBagByCustomerBagIdDTO->new(); # OpenApiBagByCustomerBagIdDTO | openApiBagDto

eval { 
    my $result = $api_instance->baggingWithCustomerBagIdUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->baggingWithCustomerBagIdUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # OpenApiBagByCustomerBagIdDTO | openApiBagDto

try: 
    # This API is to bag Semi-Workshare or Workshare parcel with customer bag ID.
    api_response = api_instance.bagging_with_customer_bag_id_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->baggingWithCustomerBagIdUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com).

Status: 1001 - Add new bag record failed

Status: 1002 - Failed to modify parcel #{parcelId} status to to be manifested, and parcel cannot be bagged into bag #{bagId}

Status: 1012 - Insufficient permissions

Status: 1028 - User information does not exist Sorry, your DConnector account #{userNo} have expired on #{expiredTime}, pls contact DConnector IT Group (D-ConnectSys@dhl.com) to activate.

Status: 1034 - Parcel #{parcelId} not in status: to be bagged

Status: 1109 - Bagging error because of different sort code.

Status: 1110 - Parcel belongs to credit risk customer and cannot be processed

Status: 1137 - Parcel not found

Status: 1138 - Parcel is not Workshare or Semi-workshare.

Status: 1139 - Parcel not in to_be_bagged status.

Status: 1140 - Bag not in to_be_manifested status.

Status: 1141 - Exceeded maximum processing limit.

Status: 1142 - ccnNumbers and dspTrackingNumbers cannot all be empty.

Status: 1143 - Container ID cannot be blank.

Status: 1144 - Max length of containerId is 30.

Status: 1154 - Max length of dspTrackingNumber is 50MAWB not match with record

Status: 1156 - Parcel can only be updated once

Status: 1158 - Max acceptable actual weight is #{maxWeight} g Min acceptable actual weight is #{minWeight} g

Status: 3002 - The DSP products in parcel #{parcelId} are inconsistent with those in bag #{bagId}

Status: 3005 - Consignee address of parcel #{parcelId} is empty, cannot be bagged

Status: 3006 - Cannot find dsp product id of parcel #{parcelId} , cannot be bagged, please configure in DSP management details under Operation management first


outParcelUsingPOST

Used to break the size package relationship


/open/api/v2/outParcel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/outParcel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiOutParcelDto body = ; // OpenApiOutParcelDto | OpenApiOutParcelDto
        try {
            Result.OpenContainerVo result = apiInstance.outParcelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#outParcelUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiOutParcelDto body = ; // OpenApiOutParcelDto | OpenApiOutParcelDto
        try {
            Result.OpenContainerVo result = apiInstance.outParcelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#outParcelUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
OpenApiOutParcelDto *body = ; // OpenApiOutParcelDto

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// Used to break the size package relationship
[apiInstance outParcelUsingPOSTWith:body
              completionHandler: ^(Result.OpenContainerVo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{OpenApiOutParcelDto}} OpenApiOutParcelDto

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.outParcelUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class outParcelUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new OpenApiOutParcelDto(); // OpenApiOutParcelDto | OpenApiOutParcelDto

            try
            {
                // Used to break the size package relationship
                Result.OpenContainerVo result = apiInstance.outParcelUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.outParcelUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // OpenApiOutParcelDto | OpenApiOutParcelDto

try {
    $result = $api_instance->outParcelUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->outParcelUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::OpenApiOutParcelDto->new(); # OpenApiOutParcelDto | OpenApiOutParcelDto

eval { 
    my $result = $api_instance->outParcelUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->outParcelUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # OpenApiOutParcelDto | OpenApiOutParcelDto

try: 
    # Used to break the size package relationship
    api_response = api_instance.out_parcel_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->outParcelUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com).

Status: 1007 - The CCN and dsp tracking number of the parcel in the parameter are both empty

Status: 1008 - The bag ID in the parameter is empty

Status: 1009 - The parcel in the parameter does not belong to the same bag

Status: 1012 - Insufficient permissions

Status: 1028 - User does not exist

Status: 1031 - Bag {0} does not exist

Status: 1036 - Bag {0} has been manifest, please confirm bag status

Status: 1043 - open api bag record update exception

Status: 1046 - Error in deleting record of association between bag and parcel

Status: 1047 - Error in deleting record of bag info

Status: 1071 - Bag {0} has been exported Paket EDI and cannot delete the parcel

Status: 1072 - The number of parcels going to out of the bag in the parameter does not agree the number of parcels allowed to out of the bag

Status: 1098 - open api package record update exception


pexClearanceUsingPOST

This API is to import the PEX parcel data(wrap ccn and dsp tracking number with prefix) and bind PEX parcel data with corresponding transport session.


/open/api/v2/pexClearance

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/pexClearance"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        ConsignmentDataReqDTO body = ; // ConsignmentDataReqDTO | ConsignmentDataReqDTO
        try {
            Result.ConsignmentDataRespDTO result = apiInstance.pexClearanceUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#pexClearanceUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        ConsignmentDataReqDTO body = ; // ConsignmentDataReqDTO | ConsignmentDataReqDTO
        try {
            Result.ConsignmentDataRespDTO result = apiInstance.pexClearanceUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#pexClearanceUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
ConsignmentDataReqDTO *body = ; // ConsignmentDataReqDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to import the PEX parcel data(wrap ccn and dsp tracking number with prefix) and bind PEX parcel data with corresponding transport session.
[apiInstance pexClearanceUsingPOSTWith:body
              completionHandler: ^(Result.ConsignmentDataRespDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{ConsignmentDataReqDTO}} ConsignmentDataReqDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pexClearanceUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pexClearanceUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new ConsignmentDataReqDTO(); // ConsignmentDataReqDTO | ConsignmentDataReqDTO

            try
            {
                // This API is to import the PEX parcel data(wrap ccn and dsp tracking number with prefix) and bind PEX parcel data with corresponding transport session.
                Result.ConsignmentDataRespDTO result = apiInstance.pexClearanceUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.pexClearanceUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // ConsignmentDataReqDTO | ConsignmentDataReqDTO

try {
    $result = $api_instance->pexClearanceUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->pexClearanceUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::ConsignmentDataReqDTO->new(); # ConsignmentDataReqDTO | ConsignmentDataReqDTO

eval { 
    my $result = $api_instance->pexClearanceUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->pexClearanceUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # ConsignmentDataReqDTO | ConsignmentDataReqDTO

try: 
    # This API is to import the PEX parcel data(wrap ccn and dsp tracking number with prefix) and bind PEX parcel data with corresponding transport session.
    api_response = api_instance.pex_clearance_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->pexClearanceUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 1 - Length of mawbNo must be 12 Parcel info can't be null. Field lastMileTrackingNo can't be blank. Field referenceNo can't be blank. Field bagNo can't be blank. Field weight can't be null. Array packageInfoList can't be empty. Length of packageInfoList.sku must between 0-50 Field packageInfoList.zhName can't be blank. Length of packageInfoList.zhName must between 0-50 Field packageInfoList.weight can't be null. Field packageInfoList.enName can't be blank. Length of packageInfoList.enName must between 3-50 Field packageInfoList.currency can't be blank. Length of packageInfoList.currency must be 3 Field packageInfoList.unitPrice can't be null. Field packageInfoList.quantity can't be null. Number of packageInfoList.quantity must between 1-999 Field packageInfoList.hsCode can't be blank. Length of packageInfoList.hsCode must between 6-20 Object receiver can't be null. Field receiver.name can't be blank. Length of receiver.name must between 1-30 Field receiver.address can't be blank. Length of receiver.address must between 1-50 Field receiver.zipCode can't be blank. Length of receiver.zipCode must between 1-10 Field receiver.city can't be blank. Length of receiver.city must between 1-50 Field receiver.province can't be blank. Length of receiver.province must between 2-50 Length of receiver.phone must between 1-20 Length of receiver.email must between 1-50 Field receiver.countryCode can't be blank. Length of receiver.countryCode must be 2 Object sender can't be null. Field sender.name can't be blank. Length of sender.name must between 1-30 Field sender.address can't be blank. Length of sender.address must between 1-50 Field sender.zipCode can't be blank. Length of sender.zipCode must between 1-10 Field sender.city can't be blank. Length of sender.city must between 1-30 Field sender.province can't be blank. Length of sender.province must between 2-40 Length of sender.phone must between 1-40 Length of sender.email must between 1-50 Field sender.countryCode can't be blank. Field sender.fiscalId can't be blank. Length of sender.fiscalId must between 1-50 Field sender.fiscalIdType can't be blank. Field mawbNo can't be blank. After removing '-', the length of mawbNo must be 11 No transport session found; Please call pexManifest API first. More than one transport session found

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). All the parcels failed (ReferenceNo is mandatory) All the parcels failed Deleting routing failed parcel exception. ParcelInfoList is null Exists parcel of which RcdShipDetail is null Failed to import consignment data. Reason: #{xxx}


pexConsignmentDataUsingPOST

This API is to import the PEX parcel data and bind PEX parcel data with corresponding transport session.


/open/api/v2/pexConsignmentData

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/pexConsignmentData"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        ConsignmentDataReqDTO body = ; // ConsignmentDataReqDTO | ConsignmentDataReqDTO
        try {
            Result.ConsignmentDataRespDTO result = apiInstance.pexConsignmentDataUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#pexConsignmentDataUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        ConsignmentDataReqDTO body = ; // ConsignmentDataReqDTO | ConsignmentDataReqDTO
        try {
            Result.ConsignmentDataRespDTO result = apiInstance.pexConsignmentDataUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#pexConsignmentDataUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
ConsignmentDataReqDTO *body = ; // ConsignmentDataReqDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to import the PEX parcel data and bind PEX parcel data with corresponding transport session.
[apiInstance pexConsignmentDataUsingPOSTWith:body
              completionHandler: ^(Result.ConsignmentDataRespDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{ConsignmentDataReqDTO}} ConsignmentDataReqDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pexConsignmentDataUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pexConsignmentDataUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new ConsignmentDataReqDTO(); // ConsignmentDataReqDTO | ConsignmentDataReqDTO

            try
            {
                // This API is to import the PEX parcel data and bind PEX parcel data with corresponding transport session.
                Result.ConsignmentDataRespDTO result = apiInstance.pexConsignmentDataUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.pexConsignmentDataUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // ConsignmentDataReqDTO | ConsignmentDataReqDTO

try {
    $result = $api_instance->pexConsignmentDataUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->pexConsignmentDataUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::ConsignmentDataReqDTO->new(); # ConsignmentDataReqDTO | ConsignmentDataReqDTO

eval { 
    my $result = $api_instance->pexConsignmentDataUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->pexConsignmentDataUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # ConsignmentDataReqDTO | ConsignmentDataReqDTO

try: 
    # This API is to import the PEX parcel data and bind PEX parcel data with corresponding transport session.
    api_response = api_instance.pex_consignment_data_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->pexConsignmentDataUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 1 - Length of mawbNo must be 12 Parcel info can't be null. Field lastMileTrackingNo can't be blank. Field referenceNo can't be blank. Field bagNo can't be blank. Field weight can't be null. Array packageInfoList can't be empty. Length of packageInfoList.sku must between 0-50 Field packageInfoList.zhName can't be blank. Length of packageInfoList.zhName must between 0-50 Field packageInfoList.weight can't be null. Field packageInfoList.enName can't be blank. Length of packageInfoList.enName must between 3-50 Field packageInfoList.currency can't be blank. Length of packageInfoList.currency must be 3 Field packageInfoList.unitPrice can't be null. Field packageInfoList.quantity can't be null. Number of packageInfoList.quantity must between 1-999 Field packageInfoList.hsCode can't be blank. Length of packageInfoList.hsCode must between 6-20 Object receiver can't be null. Field receiver.name can't be blank. Length of receiver.name must between 1-30 Field receiver.address can't be blank. Length of receiver.address must between 1-50 Field receiver.zipCode can't be blank. Length of receiver.zipCode must between 1-10 Field receiver.city can't be blank. Length of receiver.city must between 1-50 Field receiver.province can't be blank. Length of receiver.province must between 2-50 Length of receiver.phone must between 1-20 Length of receiver.email must between 1-50 Field receiver.countryCode can't be blank. Length of receiver.countryCode must be 2 Object sender can't be null. Field sender.name can't be blank. Length of sender.name must between 1-30 Field sender.address can't be blank. Length of sender.address must between 1-50 Field sender.zipCode can't be blank. Length of sender.zipCode must between 1-10 Field sender.city can't be blank. Length of sender.city must between 1-30 Field sender.province can't be blank. Length of sender.province must between 2-40 Length of sender.phone must between 1-40 Length of sender.email must between 1-50 Field sender.countryCode can't be blank. Field sender.fiscalId can't be blank. Length of sender.fiscalId must between 1-50 Field sender.fiscalIdType can't be blank. Field mawbNo can't be blank. After removing '-', the length of mawbNo must be 11 No transport session found; Please call pexManifest API first. More than one transport session found

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). All the parcels failed (ReferenceNo is mandatory) All the parcels failed Deleting routing failed parcel exception. ParcelInfoList is null Exists parcel of which RcdShipDetail is null Failed to import consignment data. Reason: #{xxx}


pexManifestUsingPOST

This API is to create manifest session for PEX parcel.


/open/api/v2/pexManifest

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/pexManifest"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        CPlusDCOnlyPexManifestReqDTO body = ; // CPlusDCOnlyPexManifestReqDTO | CPlusDCOnlyPexManifestReqDTO
        try {
            Result.string result = apiInstance.pexManifestUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#pexManifestUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        CPlusDCOnlyPexManifestReqDTO body = ; // CPlusDCOnlyPexManifestReqDTO | CPlusDCOnlyPexManifestReqDTO
        try {
            Result.string result = apiInstance.pexManifestUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#pexManifestUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
CPlusDCOnlyPexManifestReqDTO *body = ; // CPlusDCOnlyPexManifestReqDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to create manifest session for PEX parcel.
[apiInstance pexManifestUsingPOSTWith:body
              completionHandler: ^(Result.string output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{CPlusDCOnlyPexManifestReqDTO}} CPlusDCOnlyPexManifestReqDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pexManifestUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pexManifestUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new CPlusDCOnlyPexManifestReqDTO(); // CPlusDCOnlyPexManifestReqDTO | CPlusDCOnlyPexManifestReqDTO

            try
            {
                // This API is to create manifest session for PEX parcel.
                Result.string result = apiInstance.pexManifestUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.pexManifestUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // CPlusDCOnlyPexManifestReqDTO | CPlusDCOnlyPexManifestReqDTO

try {
    $result = $api_instance->pexManifestUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->pexManifestUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::CPlusDCOnlyPexManifestReqDTO->new(); # CPlusDCOnlyPexManifestReqDTO | CPlusDCOnlyPexManifestReqDTO

eval { 
    my $result = $api_instance->pexManifestUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->pexManifestUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # CPlusDCOnlyPexManifestReqDTO | CPlusDCOnlyPexManifestReqDTO

try: 
    # This API is to create manifest session for PEX parcel.
    api_response = api_instance.pex_manifest_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->pexManifestUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). Field mawbNo cannot be blank Field departureAirport cannot be blank Length of departureAirport must be 3 Field destinationAirport cannot be blank Length of destinationAirport must be 3 Field etd cannot be blank Field etd must be in format 'yyyy-MM-dd HH:mm:ss' Field eta cannot be blank Field eta must be in format 'yyyy-MM-dd HH:mm:ss' Multiple PEX Transport session with same mawbNo. Don't know which one to update

Status: 1062 - Failed to save transport Transport session not found. Transport session is in Draft status. Some bags have been transported. BAG ID #{containerId} have been added to Transport Session ID #{sessionId}, could NOT duplicate creation! BagId List is empty. All bags not exist. Some bags not exist: #{BagIds}

Status: 1063 - Failed to save MAWB pdf file Decode manifest file failed.


queryParcelLabelUsingPOST

Query a parcel info for label url and other information.


/open/api/v2/queryParcelLabel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/queryParcelLabel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiQueryByParcelReqDTO body = ; // OpenApiQueryByParcelReqDTO | OpenApiQueryByParcelReqDTO
        try {
            Result.OpenApiLabelRespVo result = apiInstance.queryParcelLabelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#queryParcelLabelUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiQueryByParcelReqDTO body = ; // OpenApiQueryByParcelReqDTO | OpenApiQueryByParcelReqDTO
        try {
            Result.OpenApiLabelRespVo result = apiInstance.queryParcelLabelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#queryParcelLabelUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
OpenApiQueryByParcelReqDTO *body = ; // OpenApiQueryByParcelReqDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// Query a parcel info for label url and other information.
[apiInstance queryParcelLabelUsingPOSTWith:body
              completionHandler: ^(Result.OpenApiLabelRespVo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{OpenApiQueryByParcelReqDTO}} OpenApiQueryByParcelReqDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.queryParcelLabelUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class queryParcelLabelUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new OpenApiQueryByParcelReqDTO(); // OpenApiQueryByParcelReqDTO | OpenApiQueryByParcelReqDTO

            try
            {
                // Query a parcel info for label url and other information.
                Result.OpenApiLabelRespVo result = apiInstance.queryParcelLabelUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.queryParcelLabelUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // OpenApiQueryByParcelReqDTO | OpenApiQueryByParcelReqDTO

try {
    $result = $api_instance->queryParcelLabelUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->queryParcelLabelUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::OpenApiQueryByParcelReqDTO->new(); # OpenApiQueryByParcelReqDTO | OpenApiQueryByParcelReqDTO

eval { 
    my $result = $api_instance->queryParcelLabelUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->queryParcelLabelUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # OpenApiQueryByParcelReqDTO | OpenApiQueryByParcelReqDTO

try: 
    # Query a parcel info for label url and other information.
    api_response = api_instance.query_parcel_label_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->queryParcelLabelUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). User information does not exist! Sorry, your DConnector account #{userNo} have expired on #{expireTime}, pls contact DConnector IT Group (D-ConnectSys@dhl.com) to activate.

Status: 1000 - CCN_NUMBER and DSP Tracking No. can't both be empty

Status: 1012 - system authority insufficient for data operation

Status: 1025 - CCN and tracking number is not matched

Status: 1026 - Can't find any parcel records

Status: 1027 - Parcel label not found in parcel label pool.

Status: 1066 - label manager ccn not found by sales order no


receivingByParcelUsingPOST

This API is to update the weight and dimension of the parcel in status “To Be Printed”for NON-WS parcels or “To Be Manifested” for WS parcels.


/open/api/v2/receivingByParcel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/receivingByParcel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiReceivingByParcelReqVO body = ; // OpenApiReceivingByParcelReqVO | OpenApiReceivingByParcelReqVO
        try {
            Result result = apiInstance.receivingByParcelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#receivingByParcelUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiReceivingByParcelReqVO body = ; // OpenApiReceivingByParcelReqVO | OpenApiReceivingByParcelReqVO
        try {
            Result result = apiInstance.receivingByParcelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#receivingByParcelUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
OpenApiReceivingByParcelReqVO *body = ; // OpenApiReceivingByParcelReqVO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to update the weight and dimension of the parcel in status “To Be Printed”for NON-WS parcels or “To Be Manifested” for WS parcels.
[apiInstance receivingByParcelUsingPOSTWith:body
              completionHandler: ^(Result output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{OpenApiReceivingByParcelReqVO}} OpenApiReceivingByParcelReqVO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.receivingByParcelUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class receivingByParcelUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new OpenApiReceivingByParcelReqVO(); // OpenApiReceivingByParcelReqVO | OpenApiReceivingByParcelReqVO

            try
            {
                // This API is to update the weight and dimension of the parcel in status “To Be Printed”for NON-WS parcels or “To Be Manifested” for WS parcels.
                Result result = apiInstance.receivingByParcelUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.receivingByParcelUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // OpenApiReceivingByParcelReqVO | OpenApiReceivingByParcelReqVO

try {
    $result = $api_instance->receivingByParcelUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->receivingByParcelUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::OpenApiReceivingByParcelReqVO->new(); # OpenApiReceivingByParcelReqVO | OpenApiReceivingByParcelReqVO

eval { 
    my $result = $api_instance->receivingByParcelUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->receivingByParcelUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # OpenApiReceivingByParcelReqVO | OpenApiReceivingByParcelReqVO

try: 
    # This API is to update the weight and dimension of the parcel in status “To Be Printed”for NON-WS parcels or “To Be Manifested” for WS parcels.
    api_response = api_instance.receiving_by_parcel_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->receivingByParcelUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com).

Status: 1113 - Weight is present. Weight Unit cannot be blank

Status: 1114 - Length/Width/Height are not all present

Status: 1115 - Dimension is present. Dimension Unit cannot be blank

Status: 1116 - Weight unit is not valid

Status: 1117 - Dimension unit is not valid

Status: 1118 - Parcel is a None-WS parcel and not in TO_BE_PRINTED(/TO_BE_MANIFESTED/TO_BE_BAGGED) status

Status: 1119 - Route not found. Not sure if route need to change

Status: 1121 - Semi-workshare parcel cannot generate or print label

Status: 1130 - Weight and Dimension cannot both be empty

Status: 1177 - Receiving is not successful and parcel records has been moved to Exception Center. Parcel details such as weight,dim,value,incoterm,etc caused invalid routing error.


trackingEventQueryUsingPOST

This API is to provide tracking event query function for customer. Input would be parcels’ CCN and output would be all the tracking event of that parcel.


/open/api/v2/trackingEventQuery

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/trackingEventQuery"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        TrackingEventQueryReqDTO body = ; // TrackingEventQueryReqDTO | TrackingEventQueryReqDTO
        try {
            Result.List.TrackingEventQueryRespDTO result = apiInstance.trackingEventQueryUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#trackingEventQueryUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        TrackingEventQueryReqDTO body = ; // TrackingEventQueryReqDTO | TrackingEventQueryReqDTO
        try {
            Result.List.TrackingEventQueryRespDTO result = apiInstance.trackingEventQueryUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#trackingEventQueryUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
TrackingEventQueryReqDTO *body = ; // TrackingEventQueryReqDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is to provide tracking event query function for customer. Input would be parcels’ CCN and output would be all the tracking event of that parcel.
[apiInstance trackingEventQueryUsingPOSTWith:body
              completionHandler: ^(Result.List.TrackingEventQueryRespDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{TrackingEventQueryReqDTO}} TrackingEventQueryReqDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.trackingEventQueryUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class trackingEventQueryUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new TrackingEventQueryReqDTO(); // TrackingEventQueryReqDTO | TrackingEventQueryReqDTO

            try
            {
                // This API is to provide tracking event query function for customer. Input would be parcels’ CCN and output would be all the tracking event of that parcel.
                Result.List.TrackingEventQueryRespDTO result = apiInstance.trackingEventQueryUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.trackingEventQueryUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // TrackingEventQueryReqDTO | TrackingEventQueryReqDTO

try {
    $result = $api_instance->trackingEventQueryUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->trackingEventQueryUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::TrackingEventQueryReqDTO->new(); # TrackingEventQueryReqDTO | TrackingEventQueryReqDTO

eval { 
    my $result = $api_instance->trackingEventQueryUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->trackingEventQueryUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # TrackingEventQueryReqDTO | TrackingEventQueryReqDTO

try: 
    # This API is to provide tracking event query function for customer. Input would be parcels’ CCN and output would be all the tracking event of that parcel.
    api_response = api_instance.tracking_event_query_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->trackingEventQueryUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). Group type is null

Status: 1155 - MAWB cannot be blank MAWB failed in validation Event time cannot be blank Event time is invalid. Valida format is 'yyyy-MM-dd HH:mm:ss' Event code source cannot be blank Failed to find event code mapping. event code source #{EventCodeSource}

Status: 1160 - MAWB #{Mawb} not found

Status: 1161 - Event is already pushed before


transportBagsUsingPOST

This interface is asynchronous. After calling this interface “Transport result query” should be called to get transported result.


/open/api/v2/transportBags

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/transportBags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenTransportRequestVO body = ; // OpenTransportRequestVO | OpenTransportRequestVO
        try {
            Result.string result = apiInstance.transportBagsUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#transportBagsUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenTransportRequestVO body = ; // OpenTransportRequestVO | OpenTransportRequestVO
        try {
            Result.string result = apiInstance.transportBagsUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#transportBagsUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
OpenTransportRequestVO *body = ; // OpenTransportRequestVO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This interface is asynchronous. After calling this interface “Transport result query” should be called to get transported result.
[apiInstance transportBagsUsingPOSTWith:body
              completionHandler: ^(Result.string output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{OpenTransportRequestVO}} OpenTransportRequestVO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.transportBagsUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class transportBagsUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new OpenTransportRequestVO(); // OpenTransportRequestVO | OpenTransportRequestVO

            try
            {
                // This interface is asynchronous. After calling this interface “Transport result query” should be called to get transported result.
                Result.string result = apiInstance.transportBagsUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.transportBagsUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // OpenTransportRequestVO | OpenTransportRequestVO

try {
    $result = $api_instance->transportBagsUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->transportBagsUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::OpenTransportRequestVO->new(); # OpenTransportRequestVO | OpenTransportRequestVO

eval { 
    my $result = $api_instance->transportBagsUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->transportBagsUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # OpenTransportRequestVO | OpenTransportRequestVO

try: 
    # This interface is asynchronous. After calling this interface “Transport result query” should be called to get transported result.
    api_response = api_instance.transport_bags_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->transportBagsUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). BAG ID #{containerId} have been added to Transport Session ID #{sessionId}, could NOT duplicate creation! BagId List is empty. All bags not exist. Some bags not exist: #{bagIds}

Status: 1012 - Insufficient permissions

Status: 1028 - Failed to get user info

Status: 1032 - Transport session not found.

Status: 1037 - Transport session is completed.

Status: 1038 - Some bags have been transported.

Status: 1058 - Transport is executing and retry after several minutes.

Status: 1155 - Parameter verification error


updateParcelWeightUsingPOST

This API is for caller to update customer parcel weight only. Only customer who in the Open API access control whitelist can call this API to update parcel weight.


/open/api/v2/updateParcelWeight

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/open/api/v2/updateParcelWeight"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DConnectorOpenAPIApi;

import java.io.File;
import java.util.*;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiUpdateParcelWeightReqDTO body = ; // OpenApiUpdateParcelWeightReqDTO | OpenApiUpdateParcelWeightReqDTO
        try {
            Result result = apiInstance.updateParcelWeightUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#updateParcelWeightUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DConnectorOpenAPIApi;

public class DConnectorOpenAPIApiExample {

    public static void main(String[] args) {
        DConnectorOpenAPIApi apiInstance = new DConnectorOpenAPIApi();
        OpenApiUpdateParcelWeightReqDTO body = ; // OpenApiUpdateParcelWeightReqDTO | OpenApiUpdateParcelWeightReqDTO
        try {
            Result result = apiInstance.updateParcelWeightUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DConnectorOpenAPIApi#updateParcelWeightUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
OpenApiUpdateParcelWeightReqDTO *body = ; // OpenApiUpdateParcelWeightReqDTO

DConnectorOpenAPIApi *apiInstance = [[DConnectorOpenAPIApi alloc] init];

// This API is for caller to update customer parcel weight only. Only customer who in the Open API access control whitelist can call this API to update parcel weight.
[apiInstance updateParcelWeightUsingPOSTWith:body
              completionHandler: ^(Result output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DConnectorOpenAPIApi()
var body = ; // {{OpenApiUpdateParcelWeightReqDTO}} OpenApiUpdateParcelWeightReqDTO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateParcelWeightUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateParcelWeightUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DConnectorOpenAPIApi();
            var body = new OpenApiUpdateParcelWeightReqDTO(); // OpenApiUpdateParcelWeightReqDTO | OpenApiUpdateParcelWeightReqDTO

            try
            {
                // This API is for caller to update customer parcel weight only. Only customer who in the Open API access control whitelist can call this API to update parcel weight.
                Result result = apiInstance.updateParcelWeightUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DConnectorOpenAPIApi.updateParcelWeightUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDConnectorOpenAPIApi();
$body = ; // OpenApiUpdateParcelWeightReqDTO | OpenApiUpdateParcelWeightReqDTO

try {
    $result = $api_instance->updateParcelWeightUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DConnectorOpenAPIApi->updateParcelWeightUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DConnectorOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DConnectorOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::OpenApiUpdateParcelWeightReqDTO->new(); # OpenApiUpdateParcelWeightReqDTO | OpenApiUpdateParcelWeightReqDTO

eval { 
    my $result = $api_instance->updateParcelWeightUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DConnectorOpenAPIApi->updateParcelWeightUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DConnectorOpenAPIApi()
body =  # OpenApiUpdateParcelWeightReqDTO | OpenApiUpdateParcelWeightReqDTO

try: 
    # This API is for caller to update customer parcel weight only. Only customer who in the Open API access control whitelist can call this API to update parcel weight.
    api_response = api_instance.update_parcel_weight_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DConnectorOpenAPIApi->updateParcelWeightUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 400 - API Fail: Invalid parameter API Fail: App Key is null API Fail: Api Name is null API Fail: Timestamp is null API Fail: Sign is null API Fail: App Key is wrong! API Fail: API Sign generated wrong! API Fail: Api Name is wrong!

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 500 - Exception in api call, please contact DConnector IT team (D-ConnectSys@dhl.com). Parcel not found or data error

Status: 1006 - label manager update count exceed UpdateParcelWeight API failed to reset [updateCount] to 0.

Status: 1113 - Weight is present. Weight Unit cannot be blank

Status: 1116 - Weight unit is not valid

Status: 1125 - Weight is not valid, must between 1 - 30000(g)

Status: 1134 - Data not available in DODB. Please check CW1 Parcel data on-hold in DODB Parcel data not ready in DODB

Status: 1166 - Weight cannot be blank

Status: 1167 - Parcel is not in TO_BE_PRINTED or TO_BE_BAGGED status

Status: 1168 - Route will be changed if update parcel weight

Status: 1174 - This customer have no right to update billing weight.Please check and config bypass ECDC weight table

Status: 1175 - Weight format error, please check your input


DVTOpenAPI

genericDataAndLabelUsingPOST

This API is for customers to validate and correct one or multiple parcels’ information and generate parcel label for those verified parcels. All of the verified parcels’ information will be recorded for efile generation later on. If the call is successful, you will receive a successful response message along with your labels. If the call fails, you will receive an error message stating the reason of the failures.


/dvt/open/api/v1/genericDataAndLabel

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://dconnector-test.dhl.com/api/dvt/open/api/v1/genericDataAndLabel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DVTOpenAPIApi;

import java.io.File;
import java.util.*;

public class DVTOpenAPIApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        DVTOpenAPIApi apiInstance = new DVTOpenAPIApi();
        GenericDataAndLabelReqVO body = ; // GenericDataAndLabelReqVO | GenericDataAndLabelReqVO
        try {
            GenericDataAndLabelRespVO result = apiInstance.genericDataAndLabelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DVTOpenAPIApi#genericDataAndLabelUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DVTOpenAPIApi;

public class DVTOpenAPIApiExample {

    public static void main(String[] args) {
        DVTOpenAPIApi apiInstance = new DVTOpenAPIApi();
        GenericDataAndLabelReqVO body = ; // GenericDataAndLabelReqVO | GenericDataAndLabelReqVO
        try {
            GenericDataAndLabelRespVO result = apiInstance.genericDataAndLabelUsingPOST(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DVTOpenAPIApi#genericDataAndLabelUsingPOST");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
GenericDataAndLabelReqVO *body = ; // GenericDataAndLabelReqVO

DVTOpenAPIApi *apiInstance = [[DVTOpenAPIApi alloc] init];

// This API is for customers to validate and correct one or multiple parcels’ information and generate parcel label for those verified parcels. All of the verified parcels’ information will be recorded for efile generation later on. If the call is successful, you will receive a successful response message along with your labels. If the call fails, you will receive an error message stating the reason of the failures.
[apiInstance genericDataAndLabelUsingPOSTWith:body
              completionHandler: ^(GenericDataAndLabelRespVO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');
var defaultClient = DConnectorSystemOpenApiOnlineManual.ApiClient.instance;


var api = new DConnectorSystemOpenApiOnlineManual.DVTOpenAPIApi()
var body = ; // {{GenericDataAndLabelReqVO}} GenericDataAndLabelReqVO

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.genericDataAndLabelUsingPOST(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class genericDataAndLabelUsingPOSTExample
    {
        public void main()
        {


            var apiInstance = new DVTOpenAPIApi();
            var body = new GenericDataAndLabelReqVO(); // GenericDataAndLabelReqVO | GenericDataAndLabelReqVO

            try
            {
                // This API is for customers to validate and correct one or multiple parcels’ information and generate parcel label for those verified parcels. All of the verified parcels’ information will be recorded for efile generation later on. If the call is successful, you will receive a successful response message along with your labels. If the call fails, you will receive an error message stating the reason of the failures.
                GenericDataAndLabelRespVO result = apiInstance.genericDataAndLabelUsingPOST(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DVTOpenAPIApi.genericDataAndLabelUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');


$api_instance = new Swagger\Client\ApiDVTOpenAPIApi();
$body = ; // GenericDataAndLabelReqVO | GenericDataAndLabelReqVO

try {
    $result = $api_instance->genericDataAndLabelUsingPOST($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DVTOpenAPIApi->genericDataAndLabelUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DVTOpenAPIApi;


my $api_instance = WWW::SwaggerClient::DVTOpenAPIApi->new();
my $body = WWW::SwaggerClient::Object::GenericDataAndLabelReqVO->new(); # GenericDataAndLabelReqVO | GenericDataAndLabelReqVO

eval { 
    my $result = $api_instance->genericDataAndLabelUsingPOST(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DVTOpenAPIApi->genericDataAndLabelUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint


# create an instance of the API class
api_instance = swagger_client.DVTOpenAPIApi()
body =  # GenericDataAndLabelReqVO | GenericDataAndLabelReqVO

try: 
    # This API is for customers to validate and correct one or multiple parcels’ information and generate parcel label for those verified parcels. All of the verified parcels’ information will be recorded for efile generation later on. If the call is successful, you will receive a successful response message along with your labels. If the call fails, you will receive an error message stating the reason of the failures.
    api_response = api_instance.generic_data_and_label_using_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DVTOpenAPIApi->genericDataAndLabelUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


TokenAPI

dvtOpenApiV1TokenPost

Retrieve an access token using Client Credentials Flow


/dvt/open/api/v1/token

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://dconnector-test.dhl.com/api/dvt/open/api/v1/token"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TokenAPIApi;

import java.io.File;
import java.util.*;

public class TokenAPIApiExample {

    public static void main(String[] args) {
        
        TokenAPIApi apiInstance = new TokenAPIApi();
        String grantType = grantType_example; // String | 
        String clientId = clientId_example; // String | 
        String clientSecret = clientSecret_example; // String | 
        try {
            inline_response_200 result = apiInstance.dvtOpenApiV1TokenPost(grantType, clientId, clientSecret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TokenAPIApi#dvtOpenApiV1TokenPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TokenAPIApi;

public class TokenAPIApiExample {

    public static void main(String[] args) {
        TokenAPIApi apiInstance = new TokenAPIApi();
        String grantType = grantType_example; // String | 
        String clientId = clientId_example; // String | 
        String clientSecret = clientSecret_example; // String | 
        try {
            inline_response_200 result = apiInstance.dvtOpenApiV1TokenPost(grantType, clientId, clientSecret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TokenAPIApi#dvtOpenApiV1TokenPost");
            e.printStackTrace();
        }
    }
}
String *grantType = grantType_example; // 
String *clientId = clientId_example; // 
String *clientSecret = clientSecret_example; // 

TokenAPIApi *apiInstance = [[TokenAPIApi alloc] init];

// Retrieve an access token using Client Credentials Flow
[apiInstance dvtOpenApiV1TokenPostWith:grantType
    clientId:clientId
    clientSecret:clientSecret
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');

var api = new DConnectorSystemOpenApiOnlineManual.TokenAPIApi()
var grantType = grantType_example; // {{String}} 
var clientId = clientId_example; // {{String}} 
var clientSecret = clientSecret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.dvtOpenApiV1TokenPost(grantTypeclientIdclientSecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class dvtOpenApiV1TokenPostExample
    {
        public void main()
        {

            var apiInstance = new TokenAPIApi();
            var grantType = grantType_example;  // String | 
            var clientId = clientId_example;  // String | 
            var clientSecret = clientSecret_example;  // String | 

            try
            {
                // Retrieve an access token using Client Credentials Flow
                inline_response_200 result = apiInstance.dvtOpenApiV1TokenPost(grantType, clientId, clientSecret);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TokenAPIApi.dvtOpenApiV1TokenPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTokenAPIApi();
$grantType = grantType_example; // String | 
$clientId = clientId_example; // String | 
$clientSecret = clientSecret_example; // String | 

try {
    $result = $api_instance->dvtOpenApiV1TokenPost($grantType, $clientId, $clientSecret);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TokenAPIApi->dvtOpenApiV1TokenPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TokenAPIApi;

my $api_instance = WWW::SwaggerClient::TokenAPIApi->new();
my $grantType = grantType_example; # String | 
my $clientId = clientId_example; # String | 
my $clientSecret = clientSecret_example; # String | 

eval { 
    my $result = $api_instance->dvtOpenApiV1TokenPost(grantType => $grantType, clientId => $clientId, clientSecret => $clientSecret);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TokenAPIApi->dvtOpenApiV1TokenPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TokenAPIApi()
grantType = grantType_example # String | 
clientId = clientId_example # String | 
clientSecret = clientSecret_example # String | 

try: 
    # Retrieve an access token using Client Credentials Flow
    api_response = api_instance.dvt_open_api_v1_token_post(grantType, clientId, clientSecret)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TokenAPIApi->dvtOpenApiV1TokenPost: %s\n" % e)

Parameters

Form parameters
Name Description
grant_type*
String
Enum: client_credentials
Required
client_id*
String
Required
client_secret*
String
Required

Responses

Status: 200 - The response if an access token granted successfully. The access token is of type Bearer. In the response the `expires_in` property gives the number of seconds the access token will last before it expires. The exact timeout yet to be confirmed.

Status: 400 - Bad Request - a generic response indicating a client request error, usually because the request body does not match the allowed body schema.

Status: 406 - Not Acceptable - the accept headers in the request do not match what would be generated as a response.

Status: 429 - Too Many Requests - exceeding the APIs rate limit will result in this response.


openApiV2TokenPost

Retrieve an access token using Client Credentials Flow


/open/api/v2/token

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/x-www-form-urlencoded"\
"https://dconnector-test.dhl.com/api/open/api/v2/token"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TokenAPIApi;

import java.io.File;
import java.util.*;

public class TokenAPIApiExample {

    public static void main(String[] args) {
        
        TokenAPIApi apiInstance = new TokenAPIApi();
        String grantType = grantType_example; // String | 
        String clientId = clientId_example; // String | 
        String clientSecret = clientSecret_example; // String | 
        try {
            inline_response_200 result = apiInstance.openApiV2TokenPost(grantType, clientId, clientSecret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TokenAPIApi#openApiV2TokenPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TokenAPIApi;

public class TokenAPIApiExample {

    public static void main(String[] args) {
        TokenAPIApi apiInstance = new TokenAPIApi();
        String grantType = grantType_example; // String | 
        String clientId = clientId_example; // String | 
        String clientSecret = clientSecret_example; // String | 
        try {
            inline_response_200 result = apiInstance.openApiV2TokenPost(grantType, clientId, clientSecret);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TokenAPIApi#openApiV2TokenPost");
            e.printStackTrace();
        }
    }
}
String *grantType = grantType_example; // 
String *clientId = clientId_example; // 
String *clientSecret = clientSecret_example; // 

TokenAPIApi *apiInstance = [[TokenAPIApi alloc] init];

// Retrieve an access token using Client Credentials Flow
[apiInstance openApiV2TokenPostWith:grantType
    clientId:clientId
    clientSecret:clientSecret
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DConnectorSystemOpenApiOnlineManual = require('d_connector_system_open_api_online_manual');

var api = new DConnectorSystemOpenApiOnlineManual.TokenAPIApi()
var grantType = grantType_example; // {{String}} 
var clientId = clientId_example; // {{String}} 
var clientSecret = clientSecret_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.openApiV2TokenPost(grantTypeclientIdclientSecret, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class openApiV2TokenPostExample
    {
        public void main()
        {

            var apiInstance = new TokenAPIApi();
            var grantType = grantType_example;  // String | 
            var clientId = clientId_example;  // String | 
            var clientSecret = clientSecret_example;  // String | 

            try
            {
                // Retrieve an access token using Client Credentials Flow
                inline_response_200 result = apiInstance.openApiV2TokenPost(grantType, clientId, clientSecret);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TokenAPIApi.openApiV2TokenPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTokenAPIApi();
$grantType = grantType_example; // String | 
$clientId = clientId_example; // String | 
$clientSecret = clientSecret_example; // String | 

try {
    $result = $api_instance->openApiV2TokenPost($grantType, $clientId, $clientSecret);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TokenAPIApi->openApiV2TokenPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TokenAPIApi;

my $api_instance = WWW::SwaggerClient::TokenAPIApi->new();
my $grantType = grantType_example; # String | 
my $clientId = clientId_example; # String | 
my $clientSecret = clientSecret_example; # String | 

eval { 
    my $result = $api_instance->openApiV2TokenPost(grantType => $grantType, clientId => $clientId, clientSecret => $clientSecret);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TokenAPIApi->openApiV2TokenPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TokenAPIApi()
grantType = grantType_example # String | 
clientId = clientId_example # String | 
clientSecret = clientSecret_example # String | 

try: 
    # Retrieve an access token using Client Credentials Flow
    api_response = api_instance.open_api_v2_token_post(grantType, clientId, clientSecret)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TokenAPIApi->openApiV2TokenPost: %s\n" % e)

Parameters

Form parameters
Name Description
grant_type*
String
Enum: client_credentials
Required
client_id*
String
Required
client_secret*
String
Required

Responses

Status: 200 - The response if an access token granted successfully. The access token is of type Bearer. In the response the `expires_in` property gives the number of seconds the access token will last before it expires. The exact timeout yet to be confirmed.

Status: 400 - Bad Request - a generic response indicating a client request error, usually because the request body does not match the allowed body schema.

Status: 406 - Not Acceptable - the accept headers in the request do not match what would be generated as a response.

Status: 429 - Too Many Requests - exceeding the APIs rate limit will result in this response.