> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tradeguardins.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tradeguardins.com/_mcp/server.

# Handling Issue Resolution Yourself

> Follow up with your own subcontractors using TradeGuard's issues, webhooks and plain-English fix text.

# Handling issue resolution yourself

When a subcontractor doesn't meet your requirements, TradeGuard opens an **issue**. If you contact your subcontractors yourself (for example, you run a staffing or software platform and the relationship with the sub is yours), everything you need to follow up is on the issue:

* `whatsWrong`: what failed, in plain English;
* `whatToAskFor`: what to ask the subcontractor or their insurance agent for.

You send the request, upload the new document when it arrives, and the issue closes on its own once the new document passes. You never mark an issue fixed by hand.

## 1. Listen for the webhooks

Subscribe your endpoint to these events in the dashboard (see [Webhooks](/getting-started/onboarding-guide#webhooks) in the Onboarding Guide):

| Event                       | When it fires                                                                                                | What to do                                                                                     |
| --------------------------- | ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| `issue.created`             | A requirement failed, or TradeGuard reached a dead end (for example, it couldn't reach the insurance agent). | Send the subcontractor the `whatToAskFor` text.                                                |
| `issue.updated`             | The same problem was found again (`refireCount` goes up), or someone acknowledged the issue.                 | Check whether `whatsWrong` changed. If the sub sent something that still doesn't pass, it did. |
| `issue.resolved`            | A person resolved the issue with a note.                                                                     | Stop following up.                                                                             |
| `issue.closed`              | A later check passed (the usual way an issue ends), a review cleared it, or it was closed without a fix.     | Stop following up.                                                                             |
| `compliance.status_changed` | A subcontractor's compliance status changed.                                                                 | Update the sub's status in your system.                                                        |
| `compliance.expiring_soon`  | A policy or document expires soon.                                                                           | Ask for the renewal before it lapses.                                                          |

Every `issue.*` webhook carries the full issue, including `whatsWrong` and `whatToAskFor`, so you don't have to fetch it again.

## 2. Read the issue

```
GET /v1/issues?status=open
GET /v1/issues/:id
```

```json
{
  "data": {
    "id": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8091",
    "subcontractorId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
    "category": "non_compliant",
    "status": "open",
    "title": "General Liability $2M — Non-compliant",
    "whatsWrong": "General Liability each-occurrence is $1,000,000; required at least $2,000,000",
    "whatToAskFor": "Ask for an updated certificate of insurance (COI) showing General Liability each-occurrence of at least $2,000,000.",
    "gap": { "...": "the structured comparison, for your own code" }
  }
}
```

### What the two lines mean

* **`whatsWrong`** names each failing check, one sentence each. It is written by fixed templates from the issue's `gap`, never by AI, so the same problem always reads the same way and you can show it to the subcontractor as is.
* **`whatToAskFor`** is one request covering everything on the issue. When several things are wrong with one certificate, they are combined into a single ask for one updated COI. A few cases need nothing from the subcontractor yet:
  * **TradeGuard is reviewing it.** The text starts with "Nothing to ask for yet". TradeGuard reviews held documents within 1 business day, and the issue updates or closes on its own. See [Documents Held for Review](/getting-started/held-for-review).
  * **Your requirement is missing a setting.** The text starts with "Nothing to ask the subcontractor for". Finish the requirement in your compliance profile instead.
  * **The subcontractor record is missing information.** The text tells you what to add to the subcontractor (for example, a license number) so the check can run.

The `summary` field is still there for existing integrations. New integrations should use `whatsWrong` and `whatToAskFor`.

### Examples by category

| `category`            | Example `whatsWrong`                                                                                            | Example `whatToAskFor`                                                                                                                                                                                             |
| --------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `non_compliant`       | General Liability is missing the Waiver of Subrogation endorsement                                              | Ask for an updated certificate of insurance (COI) showing the Waiver of Subrogation endorsement on the General Liability policy.                                                                                   |
| `expired`             | Workers Compensation expired on 2026-09-30                                                                      | Ask for an updated certificate of insurance (COI) showing a current Workers Compensation policy (the renewal or replacement, with its new policy dates).                                                           |
| `carrier_outreach`    | We couldn't reach the insurance agent (Jane Agent) to verify policy GL-123: no one answered after several calls | Ask the subcontractor for their insurance agent's current phone number and email, or ask the agent to send an updated certificate of insurance (COI) directly.                                                     |
| `failed_verification` | The insurance agent (Jane Agent) said policy GL-123 was canceled                                                | Ask for proof of replacement coverage: an updated certificate of insurance (COI) for a current policy.                                                                                                             |
| `coverage_flag`       | The certificate is held for review: the insured name on the certificate doesn't match the subcontractor         | Nothing to ask for yet: TradeGuard reviews held certificates within 1 business day. If the review doesn't clear it, ask for a COI issued to the subcontractor's legal business name (or correct the name on file). |
| `review_rejected`     | A document was rejected in review: the scan is unreadable                                                       | Ask the subcontractor for a new copy of the document that fixes the problem above.                                                                                                                                 |
| `report_criterion`    | Entity is administratively dissolved                                                                            | Ask the subcontractor to restore their good standing with the Secretary of State and send proof.                                                                                                                   |
| `onboarding`          | Required documents have not been received                                                                       | Ask the subcontractor for their certificate of insurance (COI) and any other documents your compliance profile requires.                                                                                           |

## 3. Upload the new document

When the subcontractor (or their insurance agent) sends the new document, upload it:

```
POST /v1/subcontractors/:subId/documents
Content-Type: multipart/form-data
```

| Field              | Value                      |
| ------------------ | -------------------------- |
| `file`             | The file itself            |
| `documentCategory` | e.g. `insurance` for a COI |

If the file is hosted somewhere, `POST /v1/subcontractors/:subId/documents/url` takes a `sourceUrl` instead. The [Onboarding Guide](/getting-started/onboarding-guide) covers both.

## 4. The issue closes on its own

TradeGuard reads the new document and re-checks the subcontractor automatically. If everything on the issue now passes, the issue closes and you get `issue.closed`. If something still fails, the issue stays open, `refireCount` goes up, `whatsWrong` and `whatToAskFor` describe what is still missing, and you get `issue.updated`.

To re-check sooner, or after changing the subcontractor's details, start a check yourself with `POST /v1/subcontractors/:subId/compliance/check` (see [Reading Compliance Results](/getting-started/compliance-results)).

## Good to know

* One issue covers one requirement for one subcontractor. A new problem with the same requirement updates the open issue instead of opening a second one.
* You can acknowledge an issue (`PATCH /v1/issues/:id` with `{"action": "acknowledge"}`) to show your team is on it. That doesn't change what TradeGuard checks.
* Closing an issue by hand (`{"action": "close"}`) doesn't fix anything. If the problem is still there, the next check opens a new issue.