---
title: "Send past HighLevel won deals as conversions"
method: POST
path: "/v1/accounts/{accountId}/gohighlevel-won-deals-backfill"
tags: ["Accounts"]
---

# Send past HighLevel won deals as conversions

`POST /v1/accounts/{accountId}/gohighlevel-won-deals-backfill`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/accounts/{accountId}/gohighlevel-won-deals-backfill`
- Auth: HTTP bearer

Send the opportunities a connected HighLevel sub-account won in the last 90 days through the conversion relay. Each is stored as a Purchase conversion and forwarded to the profile's ad platforms when `reportToAds` is on.

Each call sends up to 50 and skips deals Zernio already holds, so calling again goes on with the rest. `remaining` says how many are left. A deal that fails is picked again on the next call, so stop when a call sends none.

Returns `relay_off` when the conversion relay is off (`updateGohighlevelSettings`). Needs a read-write key.

## Path parameters

- `accountId` string, required

## Response `200`

Backfill result

- object
  - `outcome` 'sent' | 'relay_off', required
  - `sent` integer: Deals sent in this call.
  - `failed` integer: Deals that could not be sent in this call.
  - `remaining` integer: Unsent deals left for the next call.

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `403`: The API key is read-only
- `404`: Account not found
- `409`: Another call is sending this sub-account's past won deals. Retry when it ends.

## Changes

- **2026-11-22** `3596659309f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/accounts/:accountId/gohighlevel-won-deals-backfill/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/d7fe40ebafb6?raw)
