Chilkat Online Tools

SQL Server / DHL Express APIs (MyDHL API) / Landed Cost

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    EXEC sp_OASetProperty @http, 'BasicAuth', 1
    EXEC sp_OASetProperty @http, 'Login', '<Basic Auth Username>'
    EXEC sp_OASetProperty @http, 'Password', '<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"
    --     }
    --   },
    --   "accounts": [
    --     {
    --       "typeCode": "shipper",
    --       "number": "123456789"
    --     },
    --     {
    --       "typeCode": "shipper",
    --       "number": "123456789"
    --     }
    --   ],
    --   "unitOfMeasurement": "metric",
    --   "currencyCode": "CZK",
    --   "isCustomsDeclarable": true,
    --   "getCostBreakdown": true,
    --   "packages": [
    --     {
    --       "weight": 10.5,
    --       "dimensions": {
    --         "length": 25,
    --         "width": 35,
    --         "height": 15
    --       },
    --       "typeCode": "3BX"
    --     }
    --   ],
    --   "items": [
    --     {
    --       "number": 1,
    --       "quantity": 2,
    --       "unitPrice": 531707534491942,
    --       "unitPriceCurrencyCode": "EUR",
    --       "name": "KNITWEAR COTTON",
    --       "description": "KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION",
    --       "manufacturerCountry": "CN",
    --       "partNumber": "12345555",
    --       "quantityType": "prt",
    --       "customsValue": 120,
    --       "customsValueCurrencyCode": "EUR",
    --       "commodityCode": "6110129090",
    --       "weight": 5,
    --       "weightUnitOfMeasurement": "metric",
    --       "category": "204",
    --       "brand": "SHOE 1",
    --       "goodsCharacteristics": [
    --         {
    --           "typeCode": "IMPORTER",
    --           "value": "Registered"
    --         },
    --         {
    --           "typeCode": "IMPORTER",
    --           "value": "Registered"
    --         }
    --       ],
    --       "additionalQuantityDefinitions": [
    --         {
    --           "typeCode": "DPR",
    --           "amount": 2
    --         },
    --         {
    --           "typeCode": "DPR",
    --           "amount": 2
    --         }
    --       ],
    --       "estimatedTariffRateType": "default_rate"
    --     }
    --   ],
    --   "productCode": "P",
    --   "localProductCode": "P",
    --   "isDTPRequested": true,
    --   "isInsuranceRequested": false,
    --   "charges": [
    --     {
    --       "typeCode": "insurance",
    --       "amount": 1250,
    --       "currencyCode": "CZK"
    --     },
    --     {
    --       "typeCode": "insurance",
    --       "amount": 1250,
    --       "currencyCode": "CZK"
    --     }
    --   ],
    --   "shipmentPurpose": "personal",
    --   "transportationMode": "air",
    --   "merchantSelectedCarrierName": "DHL",
    --   "getTariffFormula": true,
    --   "getQuotationID": true
    -- }

    DECLARE @json int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.postalCode', '14800'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.cityName', 'Prague'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.countryCode', 'CZ'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.provinceCode', 'CZ'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.addressLine1', 'addres1'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.addressLine2', 'addres2'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.addressLine3', 'addres3'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.shipperDetails.countyName', 'Central Bohemia'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.postalCode', '14800'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.cityName', 'Prague'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.countryCode', 'CZ'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.provinceCode', 'CZ'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.addressLine1', 'addres1'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.addressLine2', 'addres2'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.addressLine3', 'addres3'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'customerDetails.receiverDetails.countyName', 'Central Bohemia'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'accounts[0].typeCode', 'shipper'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'accounts[0].number', '123456789'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'accounts[1].typeCode', 'shipper'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'accounts[1].number', '123456789'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'unitOfMeasurement', 'metric'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'currencyCode', 'CZK'
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'isCustomsDeclarable', 1
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'getCostBreakdown', 1
    EXEC sp_OAMethod @json, 'UpdateNumber', @success OUT, 'packages[0].weight', '10.5'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'packages[0].dimensions.length', 25
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'packages[0].dimensions.width', 35
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'packages[0].dimensions.height', 15
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'packages[0].typeCode', '3BX'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].number', 1
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].quantity', 2
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].unitPrice', 123
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].unitPriceCurrencyCode', 'EUR'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].name', 'KNITWEAR COTTON'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].description', 'KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].manufacturerCountry', 'CN'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].partNumber', '12345555'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].quantityType', 'prt'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].customsValue', 120
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].customsValueCurrencyCode', 'EUR'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].commodityCode', '6110129090'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].weight', 5
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].weightUnitOfMeasurement', 'metric'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].category', '204'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].brand', 'SHOE 1'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].goodsCharacteristics[0].typeCode', 'IMPORTER'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].goodsCharacteristics[0].value', 'Registered'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].goodsCharacteristics[1].typeCode', 'IMPORTER'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].goodsCharacteristics[1].value', 'Registered'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].additionalQuantityDefinitions[0].typeCode', 'DPR'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].additionalQuantityDefinitions[0].amount', 2
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].additionalQuantityDefinitions[1].typeCode', 'DPR'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'items[0].additionalQuantityDefinitions[1].amount', 2
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'items[0].estimatedTariffRateType', 'default_rate'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'productCode', 'P'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'localProductCode', 'P'
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'isDTPRequested', 1
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'isInsuranceRequested', 0
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'charges[0].typeCode', 'insurance'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'charges[0].amount', 1250
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'charges[0].currencyCode', 'CZK'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'charges[1].typeCode', 'insurance'
    EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'charges[1].amount', 1250
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'charges[1].currencyCode', 'CZK'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'shipmentPurpose', 'personal'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'transportationMode', 'air'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'merchantSelectedCarrierName', 'DHL'
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'getTariffFormula', 1
    EXEC sp_OAMethod @json, 'UpdateBool', @success OUT, 'getQuotationID', 1

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Webstore-Platform-Name', ''
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Shipping-System-Platform-Name', ''
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Message-Reference', 'd0e7832e-5c98-11ea-bc55-0242ac13'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Plugin-Version', ''
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Plugin-Name', ''
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Shipping-System-Platform-Version', ''
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Message-Reference-Date', 'Wed, 21 Oct 2015 07:28:00 GMT'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Webstore-Platform-Version', ''

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://api-mock.dhl.com/mydhlapi/landed-cost', 'application/json', @json
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp


    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

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"
    }
  },
  "accounts": [
    {
      "typeCode": "shipper",
      "number": "123456789"
    },
    {
      "typeCode": "shipper",
      "number": "123456789"
    }
  ],
  "unitOfMeasurement": "metric",
  "currencyCode": "CZK",
  "isCustomsDeclarable": true,
  "getCostBreakdown": true,
  "packages": [
    {
      "weight": 10.5,
      "dimensions": {
        "length": 25,
        "width": 35,
        "height": 15
      },
      "typeCode": "3BX"
    }
  ],
  "items": [
    {
      "number": 1,
      "quantity": 2,
      "unitPrice": 531707534491942,
      "unitPriceCurrencyCode": "EUR",
      "name": "KNITWEAR COTTON",
      "description": "KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION",
      "manufacturerCountry": "CN",
      "partNumber": "12345555",
      "quantityType": "prt",
      "customsValue": 120,
      "customsValueCurrencyCode": "EUR",
      "commodityCode": "6110129090",
      "weight": 5,
      "weightUnitOfMeasurement": "metric",
      "category": "204",
      "brand": "SHOE 1",
      "goodsCharacteristics": [
        {
          "typeCode": "IMPORTER",
          "value": "Registered"
        },
        {
          "typeCode": "IMPORTER",
          "value": "Registered"
        }
      ],
      "additionalQuantityDefinitions": [
        {
          "typeCode": "DPR",
          "amount": 2
        },
        {
          "typeCode": "DPR",
          "amount": 2
        }
      ],
      "estimatedTariffRateType": "default_rate"
    }
  ],
  "productCode": "P",
  "localProductCode": "P",
  "isDTPRequested": true,
  "isInsuranceRequested": false,
  "charges": [
    {
      "typeCode": "insurance",
      "amount": 1250,
      "currencyCode": "CZK"
    },
    {
      "typeCode": "insurance",
      "amount": 1250,
      "currencyCode": "CZK"
    }
  ],
  "shipmentPurpose": "personal",
  "transportationMode": "air",
  "merchantSelectedCarrierName": "DHL",
  "getTariffFormula": true,
  "getQuotationID": true
}'
https://api-mock.dhl.com/mydhlapi/landed-cost

Postman Collection Item JSON

{
  "name": "Landed Cost",
  "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  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"unitOfMeasurement\": \"metric\",\n  \"currencyCode\": \"CZK\",\n  \"isCustomsDeclarable\": true,\n  \"getCostBreakdown\": true,\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  \"items\": [\n    {\n      \"number\": 1,\n      \"quantity\": 2,\n      \"unitPrice\": 531707534491942,\n      \"unitPriceCurrencyCode\": \"EUR\",\n      \"name\": \"KNITWEAR COTTON\",\n      \"description\": \"KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION\",\n      \"manufacturerCountry\": \"CN\",\n      \"partNumber\": \"12345555\",\n      \"quantityType\": \"prt\",\n      \"customsValue\": 120,\n      \"customsValueCurrencyCode\": \"EUR\",\n      \"commodityCode\": \"6110129090\",\n      \"weight\": 5,\n      \"weightUnitOfMeasurement\": \"metric\",\n      \"category\": \"204\",\n      \"brand\": \"SHOE 1\",\n      \"goodsCharacteristics\": [\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        },\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        }\n      ],\n      \"additionalQuantityDefinitions\": [\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        },\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        }\n      ],\n      \"estimatedTariffRateType\": \"default_rate\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"isDTPRequested\": true,\n  \"isInsuranceRequested\": false,\n  \"charges\": [\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    }\n  ],\n  \"shipmentPurpose\": \"personal\",\n  \"transportationMode\": \"air\",\n  \"merchantSelectedCarrierName\": \"DHL\",\n  \"getTariffFormula\": true,\n  \"getQuotationID\": true\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/landed-cost",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "landed-cost"
      ]
    },
    "description": "The Landed Cost section allows further information around products being sold to be provided. In return the duty, tax and shipping charges are calculated in real time and provides transparency about any extra costs the buyer may have to pay before they reach them.\n"
  },
  "response": [
    {
      "name": "Landed cost",
      "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  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"unitOfMeasurement\": \"metric\",\n  \"currencyCode\": \"CZK\",\n  \"isCustomsDeclarable\": true,\n  \"getCostBreakdown\": true,\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  \"items\": [\n    {\n      \"number\": 1,\n      \"quantity\": 2,\n      \"unitPrice\": 531707534491942,\n      \"unitPriceCurrencyCode\": \"EUR\",\n      \"name\": \"KNITWEAR COTTON\",\n      \"description\": \"KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION\",\n      \"manufacturerCountry\": \"CN\",\n      \"partNumber\": \"12345555\",\n      \"quantityType\": \"prt\",\n      \"customsValue\": 120,\n      \"customsValueCurrencyCode\": \"EUR\",\n      \"commodityCode\": \"6110129090\",\n      \"weight\": 5,\n      \"weightUnitOfMeasurement\": \"metric\",\n      \"category\": \"204\",\n      \"brand\": \"SHOE 1\",\n      \"goodsCharacteristics\": [\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        },\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        }\n      ],\n      \"additionalQuantityDefinitions\": [\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        },\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        }\n      ],\n      \"estimatedTariffRateType\": \"default_rate\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"isDTPRequested\": true,\n  \"isInsuranceRequested\": false,\n  \"charges\": [\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    }\n  ],\n  \"shipmentPurpose\": \"personal\",\n  \"transportationMode\": \"air\",\n  \"merchantSelectedCarrierName\": \"DHL\",\n  \"getTariffFormula\": true,\n  \"getQuotationID\": true\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/landed-cost",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "landed-cost"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Invocation-Id",
          "value": "sed ut mollit",
          "description": "Unique identifier of the transaction"
        },
        {
          "key": "Message-Reference",
          "value": "sed ut mollit",
          "description": "Message reference provided by customer as part of reqeust or automatically generated when not provided"
        },
        {
          "key": "Quotation-Id",
          "value": "sed ut mollit",
          "description": "Quotation ID if getQuotationID is requested"
        },
        {
          "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  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"unitOfMeasurement\": \"metric\",\n  \"currencyCode\": \"CZK\",\n  \"isCustomsDeclarable\": true,\n  \"getCostBreakdown\": true,\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  \"items\": [\n    {\n      \"number\": 1,\n      \"quantity\": 2,\n      \"unitPrice\": 531707534491942,\n      \"unitPriceCurrencyCode\": \"EUR\",\n      \"name\": \"KNITWEAR COTTON\",\n      \"description\": \"KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION\",\n      \"manufacturerCountry\": \"CN\",\n      \"partNumber\": \"12345555\",\n      \"quantityType\": \"prt\",\n      \"customsValue\": 120,\n      \"customsValueCurrencyCode\": \"EUR\",\n      \"commodityCode\": \"6110129090\",\n      \"weight\": 5,\n      \"weightUnitOfMeasurement\": \"metric\",\n      \"category\": \"204\",\n      \"brand\": \"SHOE 1\",\n      \"goodsCharacteristics\": [\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        },\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        }\n      ],\n      \"additionalQuantityDefinitions\": [\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        },\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        }\n      ],\n      \"estimatedTariffRateType\": \"default_rate\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"isDTPRequested\": true,\n  \"isInsuranceRequested\": false,\n  \"charges\": [\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    }\n  ],\n  \"shipmentPurpose\": \"personal\",\n  \"transportationMode\": \"air\",\n  \"merchantSelectedCarrierName\": \"DHL\",\n  \"getTariffFormula\": true,\n  \"getQuotationID\": true\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/landed-cost",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "landed-cost"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"instance\": \"/expressapi/landedcost\",\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  \"accounts\": [\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    },\n    {\n      \"typeCode\": \"shipper\",\n      \"number\": \"123456789\"\n    }\n  ],\n  \"unitOfMeasurement\": \"metric\",\n  \"currencyCode\": \"CZK\",\n  \"isCustomsDeclarable\": true,\n  \"getCostBreakdown\": true,\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  \"items\": [\n    {\n      \"number\": 1,\n      \"quantity\": 2,\n      \"unitPrice\": 531707534491942,\n      \"unitPriceCurrencyCode\": \"EUR\",\n      \"name\": \"KNITWEAR COTTON\",\n      \"description\": \"KNITWEAR 100% COTTON REDUCTION PRICE FALL COLLECTION\",\n      \"manufacturerCountry\": \"CN\",\n      \"partNumber\": \"12345555\",\n      \"quantityType\": \"prt\",\n      \"customsValue\": 120,\n      \"customsValueCurrencyCode\": \"EUR\",\n      \"commodityCode\": \"6110129090\",\n      \"weight\": 5,\n      \"weightUnitOfMeasurement\": \"metric\",\n      \"category\": \"204\",\n      \"brand\": \"SHOE 1\",\n      \"goodsCharacteristics\": [\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        },\n        {\n          \"typeCode\": \"IMPORTER\",\n          \"value\": \"Registered\"\n        }\n      ],\n      \"additionalQuantityDefinitions\": [\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        },\n        {\n          \"typeCode\": \"DPR\",\n          \"amount\": 2\n        }\n      ],\n      \"estimatedTariffRateType\": \"default_rate\"\n    }\n  ],\n  \"productCode\": \"P\",\n  \"localProductCode\": \"P\",\n  \"isDTPRequested\": true,\n  \"isInsuranceRequested\": false,\n  \"charges\": [\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    },\n    {\n      \"typeCode\": \"insurance\",\n      \"amount\": 1250,\n      \"currencyCode\": \"CZK\"\n    }\n  ],\n  \"shipmentPurpose\": \"personal\",\n  \"transportationMode\": \"air\",\n  \"merchantSelectedCarrierName\": \"DHL\",\n  \"getTariffFormula\": true,\n  \"getQuotationID\": true\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/landed-cost",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "landed-cost"
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"instance\": \"/expressapi/landedcost\",\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}"
    }
  ]
}