Chilkat Online Tools

C / DHL Express APIs (MyDHL API) / Retrieve Rates for Multi-piece Shipments

Back to Collection Items

#include <C_CkHttp.h>
#include <C_CkJsonObject.h>
#include <C_CkHttpResponse.h>
#include <C_CkStringBuilder.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    BOOL success;
    HCkJsonObject json;
    HCkHttpResponse resp;
    HCkStringBuilder sbResponseBody;
    HCkJsonObject jResp;
    int respStatusCode;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttp_Create();

    CkHttp_putBasicAuth(http,TRUE);
    CkHttp_putLogin(http,"<Basic Auth Username>");
    CkHttp_putPassword(http,"<Basic Auth Password>");

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "customerDetails": {
    //     "shipperDetails": {
    //       "postalCode": "14800",
    //       "cityName": "Prague",
    //       "countryCode": "CZ",
    //       "provinceCode": "CZ",
    //       "addressLine1": "addres1",
    //       "addressLine2": "addres2",
    //       "addressLine3": "addres3",
    //       "countyName": "Central Bohemia"
    //     },
    //     "receiverDetails": {
    //       "postalCode": "14800",
    //       "cityName": "Prague",
    //       "countryCode": "CZ",
    //       "provinceCode": "CZ",
    //       "addressLine1": "addres1",
    //       "addressLine2": "addres2",
    //       "addressLine3": "addres3",
    //       "countyName": "Central Bohemia"
    //     }
    //   },
    //   "plannedShippingDateAndTime": "2020-03-24T13:00:00GMT+00:00",
    //   "unitOfMeasurement": "metric",
    //   "isCustomsDeclarable": false,
    //   "packages": [
    //     {
    //       "weight": 10.5,
    //       "dimensions": {
    //         "length": 25,
    //         "width": 35,
    //         "height": 15
    //       },
    //       "typeCode": "3BX"
    //     }
    //   ],
    //   "accounts": [
    //     {
    //       "typeCode": "shipper",
    //       "number": "123456789"
    //     },
    //     {
    //       "typeCode": "shipper",
    //       "number": "123456789"
    //     }
    //   ],
    //   "productCode": "P",
    //   "localProductCode": "P",
    //   "valueAddedServices": [
    //     {
    //       "serviceCode": "II",
    //       "localServiceCode": "II",
    //       "value": 100,
    //       "currency": "GBP",
    //       "method": "cash"
    //     },
    //     {
    //       "serviceCode": "II",
    //       "localServiceCode": "II",
    //       "value": 100,
    //       "currency": "GBP",
    //       "method": "cash"
    //     }
    //   ],
    //   "productsAndServices": [
    //     {
    //       "productCode": "P",
    //       "localProductCode": "P",
    //       "valueAddedServices": [
    //         {
    //           "serviceCode": "II",
    //           "localServiceCode": "II",
    //           "value": 100,
    //           "currency": "GBP",
    //           "method": "cash"
    //         },
    //         {
    //           "serviceCode": "II",
    //           "localServiceCode": "II",
    //           "value": 100,
    //           "currency": "GBP",
    //           "method": "cash"
    //         }
    //       ]
    //     },
    //     {
    //       "productCode": "P",
    //       "localProductCode": "P",
    //       "valueAddedServices": [
    //         {
    //           "serviceCode": "II",
    //           "localServiceCode": "II",
    //           "value": 100,
    //           "currency": "GBP",
    //           "method": "cash"
    //         },
    //         {
    //           "serviceCode": "II",
    //           "localServiceCode": "II",
    //           "value": 100,
    //           "currency": "GBP",
    //           "method": "cash"
    //         }
    //       ]
    //     }
    //   ],
    //   "payerCountryCode": "CZ",
    //   "monetaryAmount": [
    //     {
    //       "typeCode": "declaredValue",
    //       "value": 100,
    //       "currency": "CZK"
    //     },
    //     {
    //       "typeCode": "declaredValue",
    //       "value": 100,
    //       "currency": "CZK"
    //     }
    //   ],
    //   "requestAllValueAddedServices": false,
    //   "estimatedDeliveryDate": {
    //     "isRequested": false,
    //     "typeCode": "QDDC"
    //   },
    //   "getAdditionalInformation": [
    //     {
    //       "isRequested": true,
    //       "typeCode": "allValueAddedServices"
    //     },
    //     {
    //       "isRequested": true,
    //       "typeCode": "allValueAddedServices"
    //     }
    //   ],
    //   "returnStandardProductsOnly": false,
    //   "nextBusinessDay": false,
    //   "productTypeCode": "all"
    // }

    json = CkJsonObject_Create();
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.postalCode","14800");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.cityName","Prague");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.countryCode","CZ");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.provinceCode","CZ");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.addressLine1","addres1");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.addressLine2","addres2");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.addressLine3","addres3");
    CkJsonObject_UpdateString(json,"customerDetails.shipperDetails.countyName","Central Bohemia");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.postalCode","14800");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.cityName","Prague");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.countryCode","CZ");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.provinceCode","CZ");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.addressLine1","addres1");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.addressLine2","addres2");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.addressLine3","addres3");
    CkJsonObject_UpdateString(json,"customerDetails.receiverDetails.countyName","Central Bohemia");
    CkJsonObject_UpdateString(json,"plannedShippingDateAndTime","2020-03-24T13:00:00GMT+00:00");
    CkJsonObject_UpdateString(json,"unitOfMeasurement","metric");
    CkJsonObject_UpdateBool(json,"isCustomsDeclarable",FALSE);
    CkJsonObject_UpdateNumber(json,"packages[0].weight","10.5");
    CkJsonObject_UpdateInt(json,"packages[0].dimensions.length",25);
    CkJsonObject_UpdateInt(json,"packages[0].dimensions.width",35);
    CkJsonObject_UpdateInt(json,"packages[0].dimensions.height",15);
    CkJsonObject_UpdateString(json,"packages[0].typeCode","3BX");
    CkJsonObject_UpdateString(json,"accounts[0].typeCode","shipper");
    CkJsonObject_UpdateString(json,"accounts[0].number","123456789");
    CkJsonObject_UpdateString(json,"accounts[1].typeCode","shipper");
    CkJsonObject_UpdateString(json,"accounts[1].number","123456789");
    CkJsonObject_UpdateString(json,"productCode","P");
    CkJsonObject_UpdateString(json,"localProductCode","P");
    CkJsonObject_UpdateString(json,"valueAddedServices[0].serviceCode","II");
    CkJsonObject_UpdateString(json,"valueAddedServices[0].localServiceCode","II");
    CkJsonObject_UpdateInt(json,"valueAddedServices[0].value",100);
    CkJsonObject_UpdateString(json,"valueAddedServices[0].currency","GBP");
    CkJsonObject_UpdateString(json,"valueAddedServices[0].method","cash");
    CkJsonObject_UpdateString(json,"valueAddedServices[1].serviceCode","II");
    CkJsonObject_UpdateString(json,"valueAddedServices[1].localServiceCode","II");
    CkJsonObject_UpdateInt(json,"valueAddedServices[1].value",100);
    CkJsonObject_UpdateString(json,"valueAddedServices[1].currency","GBP");
    CkJsonObject_UpdateString(json,"valueAddedServices[1].method","cash");
    CkJsonObject_UpdateString(json,"productsAndServices[0].productCode","P");
    CkJsonObject_UpdateString(json,"productsAndServices[0].localProductCode","P");
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[0].serviceCode","II");
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[0].localServiceCode","II");
    CkJsonObject_UpdateInt(json,"productsAndServices[0].valueAddedServices[0].value",100);
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[0].currency","GBP");
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[0].method","cash");
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[1].serviceCode","II");
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[1].localServiceCode","II");
    CkJsonObject_UpdateInt(json,"productsAndServices[0].valueAddedServices[1].value",100);
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[1].currency","GBP");
    CkJsonObject_UpdateString(json,"productsAndServices[0].valueAddedServices[1].method","cash");
    CkJsonObject_UpdateString(json,"productsAndServices[1].productCode","P");
    CkJsonObject_UpdateString(json,"productsAndServices[1].localProductCode","P");
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[0].serviceCode","II");
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[0].localServiceCode","II");
    CkJsonObject_UpdateInt(json,"productsAndServices[1].valueAddedServices[0].value",100);
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[0].currency","GBP");
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[0].method","cash");
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[1].serviceCode","II");
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[1].localServiceCode","II");
    CkJsonObject_UpdateInt(json,"productsAndServices[1].valueAddedServices[1].value",100);
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[1].currency","GBP");
    CkJsonObject_UpdateString(json,"productsAndServices[1].valueAddedServices[1].method","cash");
    CkJsonObject_UpdateString(json,"payerCountryCode","CZ");
    CkJsonObject_UpdateString(json,"monetaryAmount[0].typeCode","declaredValue");
    CkJsonObject_UpdateInt(json,"monetaryAmount[0].value",100);
    CkJsonObject_UpdateString(json,"monetaryAmount[0].currency","CZK");
    CkJsonObject_UpdateString(json,"monetaryAmount[1].typeCode","declaredValue");
    CkJsonObject_UpdateInt(json,"monetaryAmount[1].value",100);
    CkJsonObject_UpdateString(json,"monetaryAmount[1].currency","CZK");
    CkJsonObject_UpdateBool(json,"requestAllValueAddedServices",FALSE);
    CkJsonObject_UpdateBool(json,"estimatedDeliveryDate.isRequested",FALSE);
    CkJsonObject_UpdateString(json,"estimatedDeliveryDate.typeCode","QDDC");
    CkJsonObject_UpdateBool(json,"getAdditionalInformation[0].isRequested",TRUE);
    CkJsonObject_UpdateString(json,"getAdditionalInformation[0].typeCode","allValueAddedServices");
    CkJsonObject_UpdateBool(json,"getAdditionalInformation[1].isRequested",TRUE);
    CkJsonObject_UpdateString(json,"getAdditionalInformation[1].typeCode","allValueAddedServices");
    CkJsonObject_UpdateBool(json,"returnStandardProductsOnly",FALSE);
    CkJsonObject_UpdateBool(json,"nextBusinessDay",FALSE);
    CkJsonObject_UpdateString(json,"productTypeCode","all");

    CkHttp_SetRequestHeader(http,"Webstore-Platform-Name","");
    CkHttp_SetRequestHeader(http,"Shipping-System-Platform-Name","");
    CkHttp_SetRequestHeader(http,"Message-Reference","d0e7832e-5c98-11ea-bc55-0242ac13");
    CkHttp_SetRequestHeader(http,"Plugin-Version","");
    CkHttp_SetRequestHeader(http,"Content-Type","application/json");
    CkHttp_SetRequestHeader(http,"Plugin-Name","");
    CkHttp_SetRequestHeader(http,"Shipping-System-Platform-Version","");
    CkHttp_SetRequestHeader(http,"Accept","application/json");
    CkHttp_SetRequestHeader(http,"Message-Reference-Date","Wed, 21 Oct 2015 07:28:00 GMT");
    CkHttp_SetRequestHeader(http,"Webstore-Platform-Version","");

    resp = CkHttp_PostJson3(http,"https://api-mock.dhl.com/mydhlapi/rates?strictValidation=false","application/json",json);
    if (CkHttp_getLastMethodSuccess(http) == FALSE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        CkJsonObject_Dispose(json);
        return;
    }

    sbResponseBody = CkStringBuilder_Create();
    CkHttpResponse_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObject_Create();
    CkJsonObject_LoadSb(jResp,sbResponseBody);
    CkJsonObject_putEmitCompact(jResp,FALSE);

    printf("Response Body:\n");
    printf("%s\n",CkJsonObject_emit(jResp));

    respStatusCode = CkHttpResponse_getStatusCode(resp);
    printf("Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        printf("Response Header:\n");
        printf("%s\n",CkHttpResponse_header(resp));
        printf("Failed.\n");
        CkHttpResponse_Dispose(resp);
        CkHttp_Dispose(http);
        CkJsonObject_Dispose(json);
        CkStringBuilder_Dispose(sbResponseBody);
        CkJsonObject_Dispose(jResp);
        return;
    }

    CkHttpResponse_Dispose(resp);


    CkHttp_Dispose(http);
    CkJsonObject_Dispose(json);
    CkStringBuilder_Dispose(sbResponseBody);
    CkJsonObject_Dispose(jResp);

    }

Curl Command

curl -X POST
	-u '<Basic Auth Username>:<Basic Auth Password>'
	-H "Message-Reference: d0e7832e-5c98-11ea-bc55-0242ac13"
	-H "Message-Reference-Date: Wed, 21 Oct 2015 07:28:00 GMT"
	-H "Plugin-Name:  "
	-H "Plugin-Version:  "
	-H "Shipping-System-Platform-Name:  "
	-H "Shipping-System-Platform-Version:  "
	-H "Webstore-Platform-Name:  "
	-H "Webstore-Platform-Version:  "
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "customerDetails": {
    "shipperDetails": {
      "postalCode": "14800",
      "cityName": "Prague",
      "countryCode": "CZ",
      "provinceCode": "CZ",
      "addressLine1": "addres1",
      "addressLine2": "addres2",
      "addressLine3": "addres3",
      "countyName": "Central Bohemia"
    },
    "receiverDetails": {
      "postalCode": "14800",
      "cityName": "Prague",
      "countryCode": "CZ",
      "provinceCode": "CZ",
      "addressLine1": "addres1",
      "addressLine2": "addres2",
      "addressLine3": "addres3",
      "countyName": "Central Bohemia"
    }
  },
  "plannedShippingDateAndTime": "2020-03-24T13:00:00GMT+00:00",
  "unitOfMeasurement": "metric",
  "isCustomsDeclarable": false,
  "packages": [
    {
      "weight": 10.5,
      "dimensions": {
        "length": 25,
        "width": 35,
        "height": 15
      },
      "typeCode": "3BX"
    }
  ],
  "accounts": [
    {
      "typeCode": "shipper",
      "number": "123456789"
    },
    {
      "typeCode": "shipper",
      "number": "123456789"
    }
  ],
  "productCode": "P",
  "localProductCode": "P",
  "valueAddedServices": [
    {
      "serviceCode": "II",
      "localServiceCode": "II",
      "value": 100,
      "currency": "GBP",
      "method": "cash"
    },
    {
      "serviceCode": "II",
      "localServiceCode": "II",
      "value": 100,
      "currency": "GBP",
      "method": "cash"
    }
  ],
  "productsAndServices": [
    {
      "productCode": "P",
      "localProductCode": "P",
      "valueAddedServices": [
        {
          "serviceCode": "II",
          "localServiceCode": "II",
          "value": 100,
          "currency": "GBP",
          "method": "cash"
        },
        {
          "serviceCode": "II",
          "localServiceCode": "II",
          "value": 100,
          "currency": "GBP",
          "method": "cash"
        }
      ]
    },
    {
      "productCode": "P",
      "localProductCode": "P",
      "valueAddedServices": [
        {
          "serviceCode": "II",
          "localServiceCode": "II",
          "value": 100,
          "currency": "GBP",
          "method": "cash"
        },
        {
          "serviceCode": "II",
          "localServiceCode": "II",
          "value": 100,
          "currency": "GBP",
          "method": "cash"
        }
      ]
    }
  ],
  "payerCountryCode": "CZ",
  "monetaryAmount": [
    {
      "typeCode": "declaredValue",
      "value": 100,
      "currency": "CZK"
    },
    {
      "typeCode": "declaredValue",
      "value": 100,
      "currency": "CZK"
    }
  ],
  "requestAllValueAddedServices": false,
  "estimatedDeliveryDate": {
    "isRequested": false,
    "typeCode": "QDDC"
  },
  "getAdditionalInformation": [
    {
      "isRequested": true,
      "typeCode": "allValueAddedServices"
    },
    {
      "isRequested": true,
      "typeCode": "allValueAddedServices"
    }
  ],
  "returnStandardProductsOnly": false,
  "nextBusinessDay": false,
  "productTypeCode": "all"
}'
https://api-mock.dhl.com/mydhlapi/rates?strictValidation=false

Postman Collection Item JSON

{
  "name": "Retrieve Rates for Multi-piece Shipments",
  "request": {
    "method": "POST",
    "header": [
      {
        "description": "Please provide message reference\n",
        "key": "Message-Reference",
        "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
      },
      {
        "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
        "key": "Message-Reference-Date",
        "value": "Wed, 21 Oct 2015 07:28:00 GMT"
      },
      {
        "description": "Please provide name of the plugin (applicable to 3PV only)\n",
        "key": "Plugin-Name",
        "value": " "
      },
      {
        "description": "Please provide version of the plugin (applicable to 3PV only)\n",
        "key": "Plugin-Version",
        "value": " "
      },
      {
        "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
        "key": "Shipping-System-Platform-Name",
        "value": " "
      },
      {
        "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
        "key": "Shipping-System-Platform-Version",
        "value": " "
      },
      {
        "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
        "key": "Webstore-Platform-Name",
        "value": " "
      },
      {
        "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
        "key": "Webstore-Platform-Version",
        "value": " "
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"customerDetails\": {\n    \"shipperDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    },\n    \"receiverDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    }\n  },\n  \"plannedShippingDateAndTime\": \"2020-03-24T13:00:00GMT+00:00\",\n  \"unitOfMeasurement\": \"metric\",\n  \"isCustomsDeclarable\": false,\n  \"packages\": [\n    {\n      \"weight\": 10.5,\n      \"dimensions\": {\n        \"length\": 25,\n        \"width\": 35,\n        \"height\": 15\n      },\n      \"typeCode\": \"3BX\"\n    }\n  ],\n  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"valueAddedServices\": [\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    },\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    }\n  ],\n  \"productsAndServices\": [\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    },\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    }\n  ],\n  \"payerCountryCode\": \"CZ\",\n  \"monetaryAmount\": [\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    }\n  ],\n  \"requestAllValueAddedServices\": false,\n  \"estimatedDeliveryDate\": {\n    \"isRequested\": false,\n    \"typeCode\": \"QDDC\"\n  },\n  \"getAdditionalInformation\": [\n    {\n      \"isRequested\": true,\n      \"typeCode\": \"allValueAddedServices\"\n    },\n    {\n      \"isRequested\": true,\n      \"typeCode\": \"allValueAddedServices\"\n    }\n  ],\n  \"returnStandardProductsOnly\": false,\n  \"nextBusinessDay\": false,\n  \"productTypeCode\": \"all\"\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/rates?strictValidation=false",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "rates"
      ],
      "query": [
        {
          "key": "strictValidation",
          "value": "false",
          "description": "If set to true, indicate strict DCT validation of address details, and validation of product and service(s) combination provided in request."
        }
      ]
    },
    "description": "The Rate request will return DHL's product capabilities and prices (where applicable) based on the input data. Using the shipper and receiver address as well as the dimension and weights of the pieces belonging to a shipment, this operation returns the available products including the shipping price (where applicable)\n"
  },
  "response": [
    {
      "name": "Rates found",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          },
          {
            "description": "Please provide message reference\n",
            "key": "Message-Reference",
            "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
          },
          {
            "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
            "key": "Message-Reference-Date",
            "value": "Wed, 21 Oct 2015 07:28:00 GMT"
          },
          {
            "description": "Please provide name of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Version",
            "value": " "
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customerDetails\": {\n    \"shipperDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    },\n    \"receiverDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    }\n  },\n  \"plannedShippingDateAndTime\": \"2020-03-24T13:00:00GMT+00:00\",\n  \"unitOfMeasurement\": \"metric\",\n  \"isCustomsDeclarable\": false,\n  \"packages\": [\n    {\n      \"weight\": 10.5,\n      \"dimensions\": {\n        \"length\": 25,\n        \"width\": 35,\n        \"height\": 15\n      },\n      \"typeCode\": \"3BX\"\n    }\n  ],\n  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"valueAddedServices\": [\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    },\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    }\n  ],\n  \"productsAndServices\": [\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    },\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    }\n  ],\n  \"payerCountryCode\": \"CZ\",\n  \"monetaryAmount\": [\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    }\n  ],\n  \"requestAllValueAddedServices\": false,\n  \"estimatedDeliveryDate\": {\n    \"isRequested\": false,\n    \"typeCode\": \"QDDC\"\n  },\n  \"getAdditionalInformation\": [\n    {\n      \"isRequested\": false,\n      \"typeCode\": \"allValueAddedServicesAndRuleGroups\"\n    },\n    {\n      \"isRequested\": false,\n      \"typeCode\": \"allValueAddedServices\"\n    }\n  ],\n  \"returnStandardProductsOnly\": false,\n  \"nextBusinessDay\": false,\n  \"productTypeCode\": \"all\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/rates?strictValidation=false",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "rates"
          ],
          "query": [
            {
              "key": "strictValidation",
              "value": "false"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"products\": [\n    {\n      \"weight\": {\n        \"volumetric\": 0,\n        \"provided\": 1.5,\n        \"unitOfMeasurement\": \"metric\"\n      },\n      \"totalPrice\": [\n        {\n          \"price\": 141.51,\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\"\n        },\n        {\n          \"price\": 141.51,\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\"\n        }\n      ],\n      \"productName\": \"EXPRESS DOMESTIC\",\n      \"productCode\": \"N\",\n      \"localProductCode\": \"N\",\n      \"localProductCountryCode\": \"CZ\",\n      \"networkTypeCode\": \"TD\",\n      \"isCustomerAgreement\": false,\n      \"totalPriceBreakdown\": [\n        {\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\",\n          \"priceBreakdown\": [\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            },\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            }\n          ]\n        },\n        {\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\",\n          \"priceBreakdown\": [\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            },\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            }\n          ]\n        }\n      ],\n      \"detailedPriceBreakdown\": [\n        {\n          \"priceCurrency\": \"GBP\",\n          \"currencyType\": \"BILLC\",\n          \"breakdown\": [\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"dolore in in \",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            },\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"sunt deserunt Ut\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            }\n          ]\n        },\n        {\n          \"priceCurrency\": \"GBP\",\n          \"currencyType\": \"BILLC\",\n          \"breakdown\": [\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"id nisi pariatur consequat\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            },\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"qui Lorem pariatur incididunt\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            }\n          ]\n        }\n      ],\n      \"serviceCodeMutuallyExclusiveGroups\": [\n        {\n          \"serviceCodeRuleName\": \"Exclusive Billing Services\",\n          \"description\": \"Mutually exclusive Billing Services - shipment can contain just one of following\",\n          \"serviceCodes\": [\n            {\n              \"serviceCode\": \"PZ\"\n            },\n            {\n              \"serviceCode\": \"PZ\"\n            }\n          ]\n        },\n        {\n          \"serviceCodeRuleName\": \"Exclusive Billing Services\",\n          \"description\": \"Mutually exclusive Billing Services - shipment can contain just one of following\",\n          \"serviceCodes\": [\n            {\n              \"serviceCode\": \"PZ\"\n            },\n            {\n              \"serviceCode\": \"PZ\"\n            }\n          ]\n        }\n      ],\n      \"serviceCodeDependencyRuleGroups\": [\n        {\n          \"dependentServiceCode\": \"PZ\",\n          \"dependencyRuleGroup\": [\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            },\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            }\n          ]\n        },\n        {\n          \"dependentServiceCode\": \"PZ\",\n          \"dependencyRuleGroup\": [\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            },\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            }\n          ]\n        }\n      ],\n      \"pickupCapabilities\": {\n        \"nextBusinessDay\": false,\n        \"localCutoffDateAndTime\": \"2019-09-18T15:00:00\",\n        \"GMTCutoffTime\": \"16:00:00\",\n        \"pickupEarliest\": \"09:30:00\",\n        \"pickupLatest\": \"16:00:00\",\n        \"originServiceAreaCode\": \"ELA\",\n        \"originFacilityAreaCode\": \"HHR\",\n        \"pickupAdditionalDays\": 0,\n        \"pickupDayOfWeek\": 3\n      },\n      \"deliveryCapabilities\": {\n        \"deliveryTypeCode\": \"QDDC\",\n        \"estimatedDeliveryDateAndTime\": \"2019-09-20T12:00:00\",\n        \"destinationServiceAreaCode\": \"PRG\",\n        \"destinationFacilityAreaCode\": \"PR3\",\n        \"deliveryAdditionalDays\": 0,\n        \"deliveryDayOfWeek\": 5,\n        \"totalTransitDays\": 2\n      },\n      \"items\": {},\n      \"pricingDate\": \"2020-02-25\"\n    },\n    {\n      \"weight\": {\n        \"volumetric\": 0,\n        \"provided\": 1.5,\n        \"unitOfMeasurement\": \"metric\"\n      },\n      \"totalPrice\": [\n        {\n          \"price\": 141.51,\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\"\n        },\n        {\n          \"price\": 141.51,\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\"\n        }\n      ],\n      \"productName\": \"EXPRESS DOMESTIC\",\n      \"productCode\": \"N\",\n      \"localProductCode\": \"N\",\n      \"localProductCountryCode\": \"CZ\",\n      \"networkTypeCode\": \"TD\",\n      \"isCustomerAgreement\": false,\n      \"totalPriceBreakdown\": [\n        {\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\",\n          \"priceBreakdown\": [\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            },\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            }\n          ]\n        },\n        {\n          \"currencyType\": \"BILLC\",\n          \"priceCurrency\": \"GBP\",\n          \"priceBreakdown\": [\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            },\n            {\n              \"typeCode\": \"SPRQT\",\n              \"price\": 114.92\n            }\n          ]\n        }\n      ],\n      \"detailedPriceBreakdown\": [\n        {\n          \"priceCurrency\": \"GBP\",\n          \"currencyType\": \"BILLC\",\n          \"breakdown\": [\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"aliquip voluptate magna\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            },\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"do ullamco ut sed\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            }\n          ]\n        },\n        {\n          \"priceCurrency\": \"GBP\",\n          \"currencyType\": \"BILLC\",\n          \"breakdown\": [\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"voluptate mollit anim\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            },\n            {\n              \"name\": \"12:00 PREMIUM\",\n              \"serviceCode\": \"YK\",\n              \"localServiceCode\": \"YK\",\n              \"typeCode\": \"est consectetur proident adipisicing\",\n              \"serviceTypeCode\": \"SCH\",\n              \"price\": 5,\n              \"priceCurrency\": \"GBP\",\n              \"isCustomerAgreement\": false,\n              \"isMarketedService\": false,\n              \"isBillingServiceIndicator\": false,\n              \"priceBreakdown\": [\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"priceType\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"typeCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"price\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"rate\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"basePrice\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"tariffRateFormula\": \"((0.3464 % COST) MAX (528.33))\"\n            }\n          ]\n        }\n      ],\n      \"serviceCodeMutuallyExclusiveGroups\": [\n        {\n          \"serviceCodeRuleName\": \"Exclusive Billing Services\",\n          \"description\": \"Mutually exclusive Billing Services - shipment can contain just one of following\",\n          \"serviceCodes\": [\n            {\n              \"serviceCode\": \"PZ\"\n            },\n            {\n              \"serviceCode\": \"PZ\"\n            }\n          ]\n        },\n        {\n          \"serviceCodeRuleName\": \"Exclusive Billing Services\",\n          \"description\": \"Mutually exclusive Billing Services - shipment can contain just one of following\",\n          \"serviceCodes\": [\n            {\n              \"serviceCode\": \"PZ\"\n            },\n            {\n              \"serviceCode\": \"PZ\"\n            }\n          ]\n        }\n      ],\n      \"serviceCodeDependencyRuleGroups\": [\n        {\n          \"dependentServiceCode\": \"PZ\",\n          \"dependencyRuleGroup\": [\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            },\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            }\n          ]\n        },\n        {\n          \"dependentServiceCode\": \"PZ\",\n          \"dependencyRuleGroup\": [\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            },\n            {\n              \"dependencyRuleName\": \"Labelfree and PLT rule\",\n              \"dependencyDescription\": \"Labelfree requires Paperless Trade (PLT) only if PLT is allowed for product globaly\",\n              \"dependencyCondition\": \"Must provide the requiredServiceCode if it is allowed for the productCode\",\n              \"requiredServiceCodes\": [\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"serviceCode\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ]\n            }\n          ]\n        }\n      ],\n      \"pickupCapabilities\": {\n        \"nextBusinessDay\": false,\n        \"localCutoffDateAndTime\": \"2019-09-18T15:00:00\",\n        \"GMTCutoffTime\": \"16:00:00\",\n        \"pickupEarliest\": \"09:30:00\",\n        \"pickupLatest\": \"16:00:00\",\n        \"originServiceAreaCode\": \"ELA\",\n        \"originFacilityAreaCode\": \"HHR\",\n        \"pickupAdditionalDays\": 0,\n        \"pickupDayOfWeek\": 3\n      },\n      \"deliveryCapabilities\": {\n        \"deliveryTypeCode\": \"QDDC\",\n        \"estimatedDeliveryDateAndTime\": \"2019-09-20T12:00:00\",\n        \"destinationServiceAreaCode\": \"PRG\",\n        \"destinationFacilityAreaCode\": \"PR3\",\n        \"deliveryAdditionalDays\": 0,\n        \"deliveryDayOfWeek\": 5,\n        \"totalTransitDays\": 2\n      },\n      \"items\": {},\n      \"pricingDate\": \"2020-02-25\"\n    }\n  ],\n  \"exchangeRates\": [\n    {\n      \"currentExchangeRate\": 1.188411,\n      \"currency\": \"GBP\",\n      \"baseCurrency\": \"EUR\"\n    },\n    {\n      \"currentExchangeRate\": 1.188411,\n      \"currency\": \"GBP\",\n      \"baseCurrency\": \"EUR\"\n    }\n  ],\n  \"warnings\": [\n    \"Price can't be calculated\",\n    \"Price can't be calculated\"\n  ]\n}"
    },
    {
      "name": "Wrong input parameters",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          },
          {
            "description": "Please provide message reference\n",
            "key": "Message-Reference",
            "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
          },
          {
            "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
            "key": "Message-Reference-Date",
            "value": "Wed, 21 Oct 2015 07:28:00 GMT"
          },
          {
            "description": "Please provide name of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Version",
            "value": " "
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customerDetails\": {\n    \"shipperDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    },\n    \"receiverDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    }\n  },\n  \"plannedShippingDateAndTime\": \"2020-03-24T13:00:00GMT+00:00\",\n  \"unitOfMeasurement\": \"metric\",\n  \"isCustomsDeclarable\": false,\n  \"packages\": [\n    {\n      \"weight\": 10.5,\n      \"dimensions\": {\n        \"length\": 25,\n        \"width\": 35,\n        \"height\": 15\n      },\n      \"typeCode\": \"3BX\"\n    }\n  ],\n  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"valueAddedServices\": [\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    },\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    }\n  ],\n  \"productsAndServices\": [\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    },\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    }\n  ],\n  \"payerCountryCode\": \"CZ\",\n  \"monetaryAmount\": [\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    }\n  ],\n  \"requestAllValueAddedServices\": false,\n  \"estimatedDeliveryDate\": {\n    \"isRequested\": false,\n    \"typeCode\": \"QDDC\"\n  },\n  \"getAdditionalInformation\": [\n    {\n      \"isRequested\": false,\n      \"typeCode\": \"allValueAddedServicesAndRuleGroups\"\n    },\n    {\n      \"isRequested\": false,\n      \"typeCode\": \"allValueAddedServices\"\n    }\n  ],\n  \"returnStandardProductsOnly\": false,\n  \"nextBusinessDay\": false,\n  \"productTypeCode\": \"all\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/rates?strictValidation=false",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "rates"
          ],
          "query": [
            {
              "key": "strictValidation",
              "value": "false"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"instance\": \"/expressapi/rates\",\n  \"detail\": \"The account number is not found or invalid. Please check the account number and retry.\",\n  \"title\": \"Bad request\",\n  \"message\": \"Bad request\",\n  \"status\": \"400\"\n}"
    },
    {
      "name": "Process errors",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          },
          {
            "description": "Please provide message reference\n",
            "key": "Message-Reference",
            "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
          },
          {
            "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
            "key": "Message-Reference-Date",
            "value": "Wed, 21 Oct 2015 07:28:00 GMT"
          },
          {
            "description": "Please provide name of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Version",
            "value": " "
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customerDetails\": {\n    \"shipperDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    },\n    \"receiverDetails\": {\n      \"postalCode\": \"14800\",\n      \"cityName\": \"Prague\",\n      \"countryCode\": \"CZ\",\n      \"provinceCode\": \"CZ\",\n      \"addressLine1\": \"addres1\",\n      \"addressLine2\": \"addres2\",\n      \"addressLine3\": \"addres3\",\n      \"countyName\": \"Central Bohemia\"\n    }\n  },\n  \"plannedShippingDateAndTime\": \"2020-03-24T13:00:00GMT+00:00\",\n  \"unitOfMeasurement\": \"metric\",\n  \"isCustomsDeclarable\": false,\n  \"packages\": [\n    {\n      \"weight\": 10.5,\n      \"dimensions\": {\n        \"length\": 25,\n        \"width\": 35,\n        \"height\": 15\n      },\n      \"typeCode\": \"3BX\"\n    }\n  ],\n  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"valueAddedServices\": [\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    },\n    {\n      \"serviceCode\": \"II\",\n      \"localServiceCode\": \"II\",\n      \"value\": 100,\n      \"currency\": \"GBP\",\n      \"method\": \"cash\"\n    }\n  ],\n  \"productsAndServices\": [\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    },\n    {\n      \"productCode\": \"P\",\n      \"localProductCode\": \"P\",\n      \"valueAddedServices\": [\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        },\n        {\n          \"serviceCode\": \"II\",\n          \"localServiceCode\": \"II\",\n          \"value\": 100,\n          \"currency\": \"GBP\",\n          \"method\": \"cash\"\n        }\n      ]\n    }\n  ],\n  \"payerCountryCode\": \"CZ\",\n  \"monetaryAmount\": [\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"declaredValue\",\n      \"value\": 100,\n      \"currency\": \"CZK\"\n    }\n  ],\n  \"requestAllValueAddedServices\": false,\n  \"estimatedDeliveryDate\": {\n    \"isRequested\": false,\n    \"typeCode\": \"QDDC\"\n  },\n  \"getAdditionalInformation\": [\n    {\n      \"isRequested\": false,\n      \"typeCode\": \"allValueAddedServicesAndRuleGroups\"\n    },\n    {\n      \"isRequested\": false,\n      \"typeCode\": \"allValueAddedServices\"\n    }\n  ],\n  \"returnStandardProductsOnly\": false,\n  \"nextBusinessDay\": false,\n  \"productTypeCode\": \"all\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/rates?strictValidation=false",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "rates"
          ],
          "query": [
            {
              "key": "strictValidation",
              "value": "false"
            }
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"instance\": \"/expressapi/rates\",\n  \"detail\": \"999: Process failure occurred. Process ID associated for that transaction (1234567890)\",\n  \"title\": \"Internal Server Error\",\n  \"message\": \"Internal Server Error\",\n  \"code\": \"500\"\n}"
    }
  ]
}