{
  "info": {
    "name": "Nebula Public Reports API V1",
    "description": "Public reports 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).\n\nAll report functions (run, runs, 214) are available over both REST and SOAP; the SOAP service is at /soap/public/v1/reports. ping, health, and version do not require a token.",
    "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/reports/ping",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "reports", "ping"]
            }
          }
        },
        {
          "name": "Health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/reports/health",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "reports", "health"]
            }
          }
        },
        {
          "name": "Version",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/reports/version",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "reports", "version"]
            }
          }
        }
      ]
    },
    {
      "name": "Reports",
      "item": [
        {
          "name": "RunReport",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reportGuid\": \"3f2504e0-4f89-41d3-9a0c-0305e82c3301\",\n  \"parameters\": [\n    { \"name\": \"StartDate\", \"dataType\": 4, \"length\": 0, \"data\": \"2026-06-01\" },\n    { \"name\": \"EndDate\", \"dataType\": 4, \"length\": 0, \"data\": \"2026-06-30\" }\n  ],\n  \"originalFileName\": \"JuneShipments\",\n  \"useOriginalFileName\": true,\n  \"correlationId\": \"req-2026-0629-001\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/reports/run",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "reports", "run"]
            },
            "description": "Runs a single report by definition GUID. dataType codes: 2 Bit, 4 DateTime, 6 Float, 8 Int, 9 Money, 12 NVarChar/GUID, 13 Real, 15 Decimal, 16 SmallInt. Also available over SOAP (operation RunReport)."
          }
        },
        {
          "name": "RunReports",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reportRequests\": [\n    {\n      \"reportGuid\": \"3f2504e0-4f89-41d3-9a0c-0305e82c3301\",\n      \"parameters\": [\n        { \"name\": \"StartDate\", \"dataType\": 4, \"length\": 0, \"data\": \"2026-06-01\" },\n        { \"name\": \"EndDate\", \"dataType\": 4, \"length\": 0, \"data\": \"2026-06-30\" }\n      ],\n      \"originalFileName\": \"JuneShipments\",\n      \"useOriginalFileName\": true,\n      \"correlationId\": \"req-2026-0629-001\"\n    },\n    {\n      \"reportGuid\": \"7c9e6679-7425-40de-944b-e07fc1f90ae7\",\n      \"parameters\": [\n        { \"name\": \"BranchGuid\", \"dataType\": 12, \"length\": 0, \"data\": \"1b2c3d4e-5f60-7180-92a3-b4c5d6e7f809\" }\n      ],\n      \"useOriginalFileName\": false,\n      \"correlationId\": \"req-2026-0629-002\"\n    }\n  ],\n  \"correlationId\": \"batch-2026-0629-001\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/reports/runs",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "reports", "runs"]
            },
            "description": "Runs a batch of reports in one call. Each entry matches the RunReport body; the response carries one result per report. Also available over SOAP (operation RunReports)."
          }
        },
        {
          "name": "SendEdi214Data",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"dmLoadNumber\": 104857,\n  \"mode\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/api/public/v1/reports/214",
              "host": ["{{baseUrl}}"],
              "path": ["api", "public", "v1", "reports", "214"]
            },
            "description": "Returns EDI 214 data by DM Load Number (POST body). mode is an integer: 0 = NextUntransmitted (default) returns the earliest (oldest) not-yet-transmitted status and marks it transmitted (successive calls drain oldest-first); 1 = AllUntransmitted returns every untransmitted status oldest-first and marks them all; 2 = FullHistory returns the full status history, read-only. Omitting mode defaults to 0. Also available over SOAP (operation SendEdi214Data), where the same field is the enum member name."
          }
        }
      ]
    }
  ]
}
