---
title: "Gets the job referral chart data for visualization"
method: GET
path: "/api/v1/jobs/{jobId}/referrals/chart"
tags: ["JobReferral"]
---

# Gets the job referral chart data for visualization

`GET /api/v1/jobs/{jobId}/referrals/chart`

## Request

- Base URL: `https://api.fireserviceusa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fireserviceusa.com/api/v1/jobs/{jobId}/referrals/chart`
- Auth: none declared

## Path parameters

- `jobId` integer, required

## Response `200`

Success

- JobReferralChartViewModel: View model for job referral chart
  - `JobId` integer: The job ID
  - `Nodes` ChartNodeViewModel[], nullable: The list of chart nodes
    - `Id` string, nullable: The node ID
    - `Label` string, nullable: The node label
    - `IsRoot` boolean: Whether this is a root node
    - `IsInitialAccount` boolean: Whether this is the initial account
    - `IsEmpty` boolean: Whether the node is empty
    - `AccountData` AccountDataViewModel: View model for account data
      - `AccountId` integer: The account ID
      - `DisplayName` string, nullable: The display name
      - `FullName` string, nullable: The full name
      - `EntityTypeDisplay` string, nullable: The entity type display string (comma-separated)
      - `EntityTypes` string[], nullable: The entity types array
      - `IsEnrolledInLoyaltyRewardsProgram` boolean: Whether the referring entity participates in the loyalty rewards program
      - `LoyaltyRewardsBalance` number, double: The current loyalty rewards balance
    - `Level` integer: The level in hierarchy
    - `ReferralType` string, nullable: The referral type
    - `CommissionRate` number, double, nullable: The commission rate
    - `HierarchyPathNames` string, nullable: The hierarchy path names
    - `IsDirectReferral` boolean: Whether this is a direct referral
  - `Edges` ChartEdgeViewModel[], nullable: The list of chart edges
    - `From` string, nullable: The source node ID
    - `To` string, nullable: The target node ID
  - `Initial` string, nullable: The initial node ID
  - `JobInfo` JobInfoViewModel: View model for job information in chart
    - `JobId` integer: The job ID
    - `JobName` string, nullable: The job name
    - `JobStatus` string, nullable: The job status
    - `TotalReferringAccounts` integer: The total number of referring accounts
    - `TotalRevenueCredit` number, double: The total revenue credit
  - `Version` string, nullable: Version for concurrency control

---

[API](https://skmtc.dev/fireserviceusa/apis/fireservice-usa-p2-api.md) - [All operations](https://skmtc.dev/fireserviceusa/apis/fireservice-usa-p2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireserviceusa/apis/fireservice-usa-p2-api/revisions/96ea2ea68d87?raw)
