{
  "info": {
    "name": "Nebula Public Rating API V1",
    "description": "Public rating endpoints for Nebula.WebService.Core.\n\nSetup:\n1. Set the 'baseUrl' collection variable to your server URL.\n2. Set the 'bearerToken' variable to the Bearer token issued to your client branch.\n\nThe baseUrl is pre-configured for the Nebula test environment (https://webservices.nebulasuite.net).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://webservices.nebulasuite.net",
      "type": "string"
    },
    {
      "key": "bearerToken",
      "value": "YOUR_BEARER_TOKEN",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Health",
      "item": [
        {
          "name": "Ping",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/rating/ping",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "rating", "ping"]
            }
          }
        },
        {
          "name": "Health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/rating/health",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "rating", "health"]
            }
          }
        },
        {
          "name": "Version",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/rating/version",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "rating", "version"]
            }
          }
        }
      ]
    },
    {
      "name": "Rating",
      "item": [
        {
          "name": "GetLastMileRate",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"originZipCode\": \"75201\",\n  \"destinationZipCode\": \"78701\",\n  \"rateDate\": \"2026-05-08T00:00:00Z\",\n  \"serviceLevel\": \"OHS\",\n  \"totalWeight\": 500,\n  \"lineItems\": [\n    {\n      \"class\": 100,\n      \"weight\": 500,\n      \"description\": \"General Freight\",\n      \"pieces\": 1,\n      \"length\": 48,\n      \"width\": 40,\n      \"height\": 40\n    }\n  ],\n  \"accessorials\": [\n    {\n      \"accessorialType\": \"Liftgate\",\n      \"locationType\": 1\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/rating/GetLastMileRate",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "rating", "GetLastMileRate"]
            },
            "description": "Returns last-mile freight rate estimates. Accepts service level by code (OHS, OHN, IHT, ROC, ROP, WGL, WGC) or full name. Accessorial locationType: 0 = Pickup, 1 = Delivery."
          }
        }
      ]
    }
  ]
}
