Setell realized job margin
setell_get_job_marginCompute realized job margin from recorded payments and cost data via price-book or labor rates. Margin percentage is withheld when cost sources are insufficient.
Instructions
What the operator ACTUALLY made on a job (realized margin). Revenue from recorded payments (fallback: the decided quote total); per-line cost from the operator's price-book provenance, a high-trust price-book match, or labor hours × their loaded labor rate. marginPct is WITHHELD (null) when too little line value has a sourced cost — present the breakdown's UNKNOWN lines honestly instead of inventing a number. OPERATOR-ONLY data: never share cost or margin with a customer. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The job to compute realized margin for. Find it via setell_find_jobs or the setell://jobs resource. |