Chilkat Online Tools

delphiAx / ShipEngine Walkthrough / UPS Mail Innovations Test

Back to Collection Items

var
http: TChilkatHttp;
success: Integer;
sbResponseBody: TChilkatStringBuilder;
jResp: TChilkatJsonObject;
respStatusCode: Integer;

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

http := TChilkatHttp.Create(Self);

http.SetRequestHeader('API-Key','{{API_KEY}}');

sbResponseBody := TChilkatStringBuilder.Create(Self);
success := http.QuickGetSb('https://api.shipengine.com/v1/carriers',sbResponseBody.ControlInterface);
if (success = 0) then
  begin
    Memo1.Lines.Add(http.LastErrorText);
    Exit;
  end;

jResp := TChilkatJsonObject.Create(Self);
jResp.LoadSb(sbResponseBody.ControlInterface);
jResp.EmitCompact := 0;

Memo1.Lines.Add('Response Body:');
Memo1.Lines.Add(jResp.Emit());

respStatusCode := http.LastStatus;
Memo1.Lines.Add('Response Status Code = ' + IntToStr(respStatusCode));
if (respStatusCode >= 400) then
  begin
    Memo1.Lines.Add('Response Header:');
    Memo1.Lines.Add(http.LastHeader);
    Memo1.Lines.Add('Failed.');
    Exit;
  end;

Curl Command

curl -X GET
	-H "API-Key: {{API_KEY}}"
https://api.shipengine.com/v1/carriers

Postman Collection Item JSON

{
  "name": "UPS Mail Innovations Test",
  "event": [
    {
      "listen": "test",
      "script": {
        "exec": [
          "let response = pm.response.json();",
          "",
          "if (response.carriers.length > 0) {",
          "    for (let { carrier_id, carrier_code } of response.carriers) {",
          "        pm.collectionVariables.set(carrier_code, carrier_id);",
          "    }",
          "    ",
          "    const template = `",
          "        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css\">",
          "        <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css\">",
          "        ",
          "        <h1>Connected Carriers</h1>",
          "        <p class=\"lead\">",
          "            You have <span class=\"badge badge-success\">{{carriers.length}} carriers</span> connected to your ShipEngine account.",
          "        </p>",
          "        ",
          "        <table class=\"table table-hover\">",
          "            <thead class=\"thead-dark\">",
          "                <tr>",
          "                    <th>ID</th>",
          "                    <th>Carrier</th>",
          "                    <th>Code</th>",
          "                    <th>Account Number</th>",
          "                    <th># of Services</th>",
          "                    <th># of Package Types</th>",
          "                    <th># of Options</th>",
          "                </tr>",
          "            </thead>",
          "            <tbody>",
          "                {{#each carriers}}",
          "                    <tr>",
          "                        <td>{{carrier_id}}</td>",
          "                        <td>",
          "                            <img alt=\"{{nickname}}\" style=\"height: 30px\"",
          "                            src=\"https://www.shipengine.com/docs/img/logos/carriers/{{carrier_code}}.svg\">",
          "                        </td>",
          "                        <td>",
          "                            <samp>{{carrier_code}}</samp>",
          "                        </td>",
          "                        <td>{{account_number}}</td>",
          "                        <td>{{services.length}}</td>",
          "                        <td>{{packages.length}}</td>",
          "                        <td>{{options.length}}</td>",
          "                    </tr>",
          "                {{/each}}",
          "            </tbody>",
          "        </table>",
          "    `;",
          "    ",
          "    pm.visualizer.set(template, response);",
          "}"
        ],
        "type": "text/javascript"
      }
    }
  ],
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "https://api.shipengine.com/v1/carriers",
      "protocol": "https",
      "host": [
        "api",
        "shipengine",
        "com"
      ],
      "path": [
        "v1",
        "carriers"
      ]
    },
    "description": "This request returns a list of all the carrier accounts that you have connected to ShipEngine"
  },
  "response": [
    {
      "name": "List your carriers",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "https://api.shipengine.com/v1/carriers",
          "protocol": "https",
          "host": [
            "api",
            "shipengine",
            "com"
          ],
          "path": [
            "v1",
            "carriers"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Date",
          "value": "Mon, 16 Sep 2019 20:55:32 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json; charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "24628"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Access-Control-Allow-Origin",
          "value": "https://www.shipengine.com"
        },
        {
          "key": "Vary",
          "value": "Origin"
        },
        {
          "key": "x-shipengine-requestid",
          "value": "bf6551d9-2ee8-47ce-b1d6-fa2db6182a1f"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"carriers\": [\n        {\n            \"carrier_id\": \"se-121861\",\n            \"carrier_code\": \"stamps_com\",\n            \"account_number\": \"test_account_121861\",\n            \"requires_funded_amount\": true,\n            \"balance\": 8343.36,\n            \"nickname\": \"ShipEngine Test Account - Stamps.com\",\n            \"friendly_name\": \"Stamps.com\",\n            \"primary\": false,\n            \"has_multi_package_supporting_services\": false,\n            \"supports_label_messages\": true,\n            \"services\": [\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_first_class_mail\",\n                    \"name\": \"USPS First Class Mail\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_media_mail\",\n                    \"name\": \"USPS Media Mail\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_parcel_select\",\n                    \"name\": \"USPS Parcel Select Ground\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_priority_mail\",\n                    \"name\": \"USPS Priority Mail\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_priority_mail_express\",\n                    \"name\": \"USPS Priority Mail Express\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_first_class_mail_international\",\n                    \"name\": \"USPS First Class Mail Intl\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_priority_mail_international\",\n                    \"name\": \"USPS Priority Mail Intl\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": false\n                },\n                {\n                    \"carrier_id\": \"se-121861\",\n                    \"carrier_code\": \"stamps_com\",\n                    \"service_code\": \"usps_priority_mail_express_international\",\n                    \"name\": \"USPS Priority Mail Express Intl\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": false\n                }\n            ],\n            \"packages\": [\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"cubic\",\n                    \"name\": \"Cubic\",\n                    \"description\": \"Cubic\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"flat_rate_envelope\",\n                    \"name\": \"Flat Rate Envelope\",\n                    \"description\": \"USPS flat rate envelope. A special cardboard envelope provided by the USPS that clearly indicates \\\"Flat Rate\\\".\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"flat_rate_legal_envelope\",\n                    \"name\": \"Flat Rate Legal Envelope\",\n                    \"description\": \"Flat Rate Legal Envelope\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"flat_rate_padded_envelope\",\n                    \"name\": \"Flat Rate Padded Envelope\",\n                    \"description\": \"Flat Rate Padded Envelope\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"large_envelope_or_flat\",\n                    \"name\": \"Large Envelope or Flat\",\n                    \"description\": \"Large envelope or flat. Has one dimension that is between 11 1/2\\\" and 15\\\" long, 6 1/18\\\" and 12\\\" high, or 1/4\\\" and 3/4\\\" thick.\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"large_flat_rate_box\",\n                    \"name\": \"Large Flat Rate Box\",\n                    \"description\": \"Large Flat Rate Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"large_package\",\n                    \"name\": \"Large Package (any side > 12\\\")\",\n                    \"description\": \"Large package. Longest side plus the distance around the thickest part is over 84\\\" and less than or equal to 108\\\".\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"letter\",\n                    \"name\": \"Letter\",\n                    \"description\": \"Letter\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"medium_flat_rate_box\",\n                    \"name\": \"Medium Flat Rate Box\",\n                    \"description\": \"USPS flat rate box. A special 11\\\" x 8 1/2\\\" x 5 1/2\\\" or 14\\\" x 3.5\\\" x 12\\\" USPS box that clearly indicates \\\"Flat Rate Box\\\"\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"package\",\n                    \"name\": \"Package\",\n                    \"description\": \"Package. Longest side plus the distance around the thickest part is less than or equal to 84\\\"\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"regional_rate_box_a\",\n                    \"name\": \"Regional Rate Box A\",\n                    \"description\": \"Regional Rate Box A\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"regional_rate_box_b\",\n                    \"name\": \"Regional Rate Box B\",\n                    \"description\": \"Regional Rate Box B\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"small_flat_rate_box\",\n                    \"name\": \"Small Flat Rate Box\",\n                    \"description\": \"Small Flat Rate Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"thick_envelope\",\n                    \"name\": \"Thick Envelope\",\n                    \"description\": \"Thick envelope. Envelopes or flats greater than 3/4\\\" at the thickest point.\"\n                }\n            ],\n            \"options\": [\n                {\n                    \"name\": \"non_machinable\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                }\n            ]\n        },\n        {\n            \"carrier_id\": \"se-121862\",\n            \"carrier_code\": \"ups\",\n            \"account_number\": \"test_account_121862\",\n            \"requires_funded_amount\": false,\n            \"balance\": 0,\n            \"nickname\": \"ShipEngine Test Account - UPS\",\n            \"friendly_name\": \"UPS\",\n            \"primary\": false,\n            \"has_multi_package_supporting_services\": true,\n            \"supports_label_messages\": true,\n            \"services\": [\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_standard_international\",\n                    \"name\": \"UPS Standard®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_next_day_air_early_am\",\n                    \"name\": \"UPS Next Day Air® Early\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_worldwide_express\",\n                    \"name\": \"UPS Worldwide Express®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_next_day_air\",\n                    \"name\": \"UPS Next Day Air®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_ground_international\",\n                    \"name\": \"UPS Ground® (International)\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_worldwide_express_plus\",\n                    \"name\": \"UPS Worldwide Express Plus®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_next_day_air_saver\",\n                    \"name\": \"UPS Next Day Air Saver®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_worldwide_expedited\",\n                    \"name\": \"UPS Worldwide Expedited®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_2nd_day_air_am\",\n                    \"name\": \"UPS 2nd Day Air AM®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_2nd_day_air\",\n                    \"name\": \"UPS 2nd Day Air®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_worldwide_saver\",\n                    \"name\": \"UPS Worldwide Saver®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_2nd_day_air_international\",\n                    \"name\": \"UPS 2nd Day Air® (International)\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_3_day_select\",\n                    \"name\": \"UPS 3 Day Select®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_ground\",\n                    \"name\": \"UPS® Ground\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121862\",\n                    \"carrier_code\": \"ups\",\n                    \"service_code\": \"ups_next_day_air_international\",\n                    \"name\": \"UPS Next Day Air® (International)\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                }\n            ],\n            \"packages\": [\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"package\",\n                    \"name\": \"Package\",\n                    \"description\": \"Package. Longest side plus the distance around the thickest part is less than or equal to 84\\\"\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups__express_box_large\",\n                    \"name\": \"UPS  Express® Box - Large\",\n                    \"description\": \"Express Box - Large\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_10_kg_box\",\n                    \"name\": \"UPS 10 KG Box®\",\n                    \"description\": \"10 KG Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_25_kg_box\",\n                    \"name\": \"UPS 25 KG Box®\",\n                    \"description\": \"25 KG Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_express_box\",\n                    \"name\": \"UPS Express® Box\",\n                    \"description\": \"Express Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_express_box_medium\",\n                    \"name\": \"UPS Express® Box - Medium\",\n                    \"description\": \"Express Box - Medium\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_express_box_small\",\n                    \"name\": \"UPS Express® Box - Small\",\n                    \"description\": \"Express Box - Small\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_express_pak\",\n                    \"name\": \"UPS Express® Pak\",\n                    \"description\": \"Pak\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_letter\",\n                    \"name\": \"UPS Letter\",\n                    \"description\": \"Letter\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"ups_tube\",\n                    \"name\": \"UPS Tube\",\n                    \"description\": \"Tube\"\n                }\n            ],\n            \"options\": [\n                {\n                    \"name\": \"bill_to_account\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"bill_to_country_code\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"bill_to_party\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"bill_to_postal_code\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"contains_alcohol\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"delivered_duty_paid\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"dry_ice\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"dry_ice_weight\",\n                    \"default_value\": \"0\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"freight_class\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"non_machinable\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"saturday_delivery\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                }\n            ]\n        },\n        {\n            \"carrier_id\": \"se-121863\",\n            \"carrier_code\": \"fedex\",\n            \"account_number\": \"test_account_121863\",\n            \"requires_funded_amount\": false,\n            \"balance\": 0,\n            \"nickname\": \"ShipEngine Test Account - FedEx\",\n            \"friendly_name\": \"FedEx\",\n            \"primary\": false,\n            \"has_multi_package_supporting_services\": true,\n            \"supports_label_messages\": true,\n            \"services\": [\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_ground\",\n                    \"name\": \"FedEx Ground®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_home_delivery\",\n                    \"name\": \"FedEx Home Delivery®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_2day\",\n                    \"name\": \"FedEx 2Day®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_2day_am\",\n                    \"name\": \"FedEx 2Day® A.M.\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_express_saver\",\n                    \"name\": \"FedEx Express Saver®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_standard_overnight\",\n                    \"name\": \"FedEx Standard Overnight®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_priority_overnight\",\n                    \"name\": \"FedEx Priority Overnight®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_first_overnight\",\n                    \"name\": \"FedEx First Overnight®\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_1_day_freight\",\n                    \"name\": \"FedEx 1Day® Freight\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_2_day_freight\",\n                    \"name\": \"FedEx 2Day® Freight\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_3_day_freight\",\n                    \"name\": \"FedEx 3Day® Freight\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_first_overnight_freight\",\n                    \"name\": \"FedEx First Overnight® Freight\",\n                    \"domestic\": true,\n                    \"international\": false,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_ground_international\",\n                    \"name\": \"FedEx International Ground®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_international_economy\",\n                    \"name\": \"FedEx International Economy®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_international_priority\",\n                    \"name\": \"FedEx International Priority®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_international_first\",\n                    \"name\": \"FedEx International First®\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_international_economy_freight\",\n                    \"name\": \"FedEx International Economy® Freight\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                },\n                {\n                    \"carrier_id\": \"se-121863\",\n                    \"carrier_code\": \"fedex\",\n                    \"service_code\": \"fedex_international_priority_freight\",\n                    \"name\": \"FedEx International Priority® Freight\",\n                    \"domestic\": false,\n                    \"international\": true,\n                    \"is_multi_package_supported\": true\n                }\n            ],\n            \"packages\": [\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_envelope_onerate\",\n                    \"name\": \"FedEx One Rate® Envelope\",\n                    \"description\": \"FedEx® Envelope\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_extra_large_box_onerate\",\n                    \"name\": \"FedEx One Rate® Extra Large Box\",\n                    \"description\": \"FedEx® Extra Large Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_large_box_onerate\",\n                    \"name\": \"FedEx One Rate® Large Box\",\n                    \"description\": \"FedEx® Large Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_medium_box_onerate\",\n                    \"name\": \"FedEx One Rate® Medium Box\",\n                    \"description\": \"FedEx® Medium Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_pak_onerate\",\n                    \"name\": \"FedEx One Rate® Pak\",\n                    \"description\": \"FedEx® Pak\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_small_box_onerate\",\n                    \"name\": \"FedEx One Rate® Small Box\",\n                    \"description\": \"FedEx® Small Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_tube_onerate\",\n                    \"name\": \"FedEx One Rate® Tube\",\n                    \"description\": \"FedEx® Tube\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_10kg_box\",\n                    \"name\": \"FedEx® 10kg Box\",\n                    \"description\": \"FedEx® 10kg Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_25kg_box\",\n                    \"name\": \"FedEx® 25kg Box\",\n                    \"description\": \"FedEx® 25kg Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_box\",\n                    \"name\": \"FedEx® Box\",\n                    \"description\": \"FedEx® Box\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_envelope\",\n                    \"name\": \"FedEx® Envelope\",\n                    \"description\": \"FedEx® Envelope\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_pak\",\n                    \"name\": \"FedEx® Pak\",\n                    \"description\": \"FedEx® Pak\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"fedex_tube\",\n                    \"name\": \"FedEx® Tube\",\n                    \"description\": \"FedEx® Tube\"\n                },\n                {\n                    \"package_id\": null,\n                    \"package_code\": \"package\",\n                    \"name\": \"Package\",\n                    \"description\": \"Package. Longest side plus the distance around the thickest part is less than or equal to 84\\\"\"\n                }\n            ],\n            \"options\": [\n                {\n                    \"name\": \"bill_to_account\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"bill_to_country_code\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"bill_to_party\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"bill_to_postal_code\",\n                    \"default_value\": \"\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"contains_alcohol\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"delivered_duty_paid\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"dry_ice\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"dry_ice_weight\",\n                    \"default_value\": \"0\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"non_machinable\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                },\n                {\n                    \"name\": \"saturday_delivery\",\n                    \"default_value\": \"false\",\n                    \"description\": \"\"\n                }\n            ]\n        }\n    ]\n}"
    }
  ]
}