> ## Documentation Index
> Fetch the complete documentation index at: https://docs.widgetic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ending a Partnership

> How a partnership comes to an end - the last day, the 60-day wind-down, what is turned off and when, how to take your data with you, and what Widgetic keeps

A partnership ends on a **date**, and on nothing else. Widgetic writes down the last day of your partnership, and from the day after it your account goes through the same steps every time: a wind-down in which you can read and export everything but change nothing, and then a close. Nothing is deleted on the way. A missed payment does not end a partnership (it stops the account until the invoice is paid, see [Account Status](https://docs.widgetic.com/docs/partners/account-status.md)), and neither does the end date of a contract that nobody renewed: Widgetic gets in touch first.

This page says what happens when, so that the end never comes as a surprise, and how to take your data with you.

> [!NOTE]
>
> The lengths on this page, 60 days of wind-down and no erasure before 90 days, are the same for every partner. Your contract can give you more time before erasure and can say what happens to credits that are unused. Ask Widgetic before you sign if you need anything else.

## The Steps

| Step | It starts | What works | What does not |
| - | - | - | - |
| **Ending** | The day Widgetic sets the last day, until that day is over | Everything, as it does today | Extra credits can no longer be bought, and no invoice is made for a billing period that begins after the last day |
| **Wind-down** | The day after the last day, for 60 days | Reading everything and exporting it, your published widgets (they are still served), signing in, billing and invoices, making and revoking API keys | Everything that makes or changes something is refused with `403` and `PARTNER_WINDING_DOWN`. Your customers' editors do not open |
| **Closed** | The day after the wind-down | The owner login of your partner can sign in and read the contract and the invoices | Your widgets are no longer served, every API key stops working, and the sessions of the owner login end |
| **Erased** | When Widgetic erases what it holds for you, no earlier than 90 days after the last day | Nothing: this is the end | Widgetic no longer holds your content, your customers or your login. It keeps what accounting needs (see [What Widgetic Keeps](#what-widgetic-keeps)) |

Every date is a UTC day. With a last day of **31 January 2027**:

* Everything works until the end of 31 January. This is the ending.
* The wind-down runs from 1 February to 1 April.
* The account is closed from 2 April.
* Widgetic can erase what it holds from 1 May.

Until Widgetic starts erasing what it holds, the end can be taken back (see [Changing Your Mind](#changing-your-mind)).

## Hearing About It

You are told, and the same facts are always in your dashboard and in the API:

* **When the last day is set or changed**, and again 60, 30, 7 and 1 days before it.
* **The day the wind-down starts**, and again 30, 7 and 1 days before it ends.
* **The day the account closes.**

Each notice is sent once, by email whatever your notification settings say (it is about your account), listed in your [dashboard](https://docs.widgetic.com/docs/partners/dashboard.md) and, when you have set one up, sent to your [webhook](https://docs.widgetic.com/docs/webhooks/partner-webhooks.md) as the event `partner.ending`. If you chose which events your webhook gets, add `partner.ending` to that list (see [Notifications](https://docs.widgetic.com/docs/partners/notifications.md#choose-where-they-go)): with no list, it gets every event. The dashboard also shows a banner from the day the last day is set.

```json theme={"theme":"css-variables"}
{
  "type": "partner.ending",
  "data": {
    "phase": "ending",
    "endsOn": "2027-01-31",
    "windDownEndsOn": "2027-04-01",
    "daysLeft": 30
  }
}
```

`phase` is `ending`, `winding_down` or `closed`. `endsOn` is the last day of the partnership and `windDownEndsOn` the last day of the wind-down. `daysLeft` counts the days to `endsOn` while the partnership is ending and to `windDownEndsOn` during the wind-down (0 on the last of those days), and is `null` once the account is closed. Switch on `phase`, not on the text.

`GET /partners/mine` says the same about each partner, in `partnership`, and its `standing` becomes `winding_down` and then `closed` (see [Account Status](https://docs.widgetic.com/docs/partners/account-status.md)):

```json theme={"theme":"css-variables"}
{
  "success": true,
  "data": {
    "standing": "active",
    "overdueSince": null,
    "partners": [
      {
        "id": "7d5f3c1a-2b64-4c0e-9a51-6f1e2d3c4b5a",
        "status": "active",
        "partnership": {
          "phase": "ending",
          "endsOn": "2027-01-31",
          "windDownEndsOn": "2027-04-01",
          "daysLeft": 30
        }
      }
    ]
  }
}
```

Other fields of the answer are left out here. `partnership.phase` is `in_force` while no last day is set, then `ending`, `winding_down`, `closed` or `erased`; `endsOn`, `windDownEndsOn` and `daysLeft` are `null` while they do not apply.

## While the Partnership Is Ending

Everything works as usual until the end of the last day. Two things change from the day the last day is set:

* **Extra credits can no longer be bought.** `POST /partners/{partnerId}/credits/extra-invoice` answers `422` with `PARTNERSHIP_ENDING`, because credits bought now would be forfeited (see [Your Credits](#your-credits)). If you need more credits before the last day, ask Widgetic.
* **No invoice is made for a billing period that begins after the last day**, whatever the end date of the contract says. A period that begins before it is invoiced as always.

## During the Wind-Down

The account is read-only. Everything that makes or changes something is refused with `403`:

```json theme={"theme":"css-variables"}
{
  "success": false,
  "error": {
    "code": "PARTNER_WINDING_DOWN",
    "message": "This partnership has ended and is winding down: nothing can be created or changed any more. You can still read and export your data, and billing, invoices and notifications stay available.",
    "details": {
      "partnerStatus": "winding_down",
      "endsOn": "2027-01-31",
      "windDownEndsOn": "2027-04-01"
    }
  }
}
```

Branch on `error.code`, not on the message.

* **Reading works.** Every list and every single item can be read, so you can take your data with you (see [Export Your Data](#export-your-data)).
* **Your published widgets are still served**, so the pages of your own platform go on working while you move. A published page is not a change.
* **Your customers cannot open an editor.** A new [editor session](https://docs.widgetic.com/docs/partners/editor-sessions.md) is refused, and the ones that are open stop at their next call. What your customer reads is only: "This service is not available right now. Please contact the website that sent you here."
* **API keys can read, not write.** You can still make a key and revoke one, which is how you make the key that reads and exports, and how you revoke a leaked one.
* **Billing stays open**: your contract, your invoices and paying them, your credits and your [notifications](https://docs.widgetic.com/docs/partners/notifications.md).

## After the Wind-Down

When the wind-down is over the partnership is closed:

```json theme={"theme":"css-variables"}
{
  "success": false,
  "error": {
    "code": "PARTNER_CLOSED",
    "message": "This partnership has ended and is closed. Sign in to read your invoices; everything else is no longer available. Contact Widgetic if you think this is a mistake.",
    "details": {
      "partnerStatus": "closed",
      "endsOn": "2027-01-31",
      "windDownEndsOn": "2027-04-01"
    }
  }
}
```

* **Your widgets are no longer served.**
* **Every API key is refused**, on every call. Nothing is deleted, so the keys work again if the partnership is reopened.
* **The sessions of the owner login end.** The owner can sign in again on widgetic.com to read the contract and the invoices. Nothing else is available.
* **Customers** meet the same sentence as in the wind-down.

## Export Your Data

The wind-down is the time to take your data with you. Everything it takes is readable with a key, because reading stays open.

At the moment **Widgetic makes the export for you**, from a key that only your owner can make:

**1. Make a key that can only read**

Sign in with the owner login of your partner, open the workspace and make a key under **Settings → API keys** with the **Read only** preset. It is a normal partner key (`wgt_prt_`) that cannot change anything. Making a key stays possible through the wind-down. Widgetic never makes or asks for a key on your behalf, and never asks for your password.

**2. Give it to Widgetic once**

Send the key through the channel your contact at Widgetic names. Not by plain email.

**3. Receive the files**

Widgetic reads your data with that key, with calls that only read, and hands you a folder: your partner details, your contract, your invoices and your credit history, your customers (managed users), every widget with its content, design and embed settings and the customer it was made for, your presets and design defaults, your workflows, and the list of the uploaded files of your customers. A `manifest.json` says what each file holds, how many rows it has, its size and its checksum, and what the export does not cover.

**4. Revoke the key**

Revoke the key in **Settings → API keys** as soon as you have the files.

You can also read all of it yourself with a partner key, with the list calls of the [API reference](https://docs.widgetic.com/api-reference/introduction.md), for as long as the partnership is not closed.

**What the export does not cover.** The bytes of the files your customers uploaded: the lists hold each file's details and address, so download the ones that matter while the workspace exists (files kept in your own bucket stay there, and are yours). Files that a visitor sent through a widget's upload adapter. A/B tests, translations, analytics series, notifications and the log of webhook calls, which your dashboard shows but no list of the API exports. The `manifest.json` names what was left out of your export.

**Ask for the export during the wind-down.** Once the account is closed every key is refused, and there is nothing left to export through.

## Your Credits

Credits that you have not used when the partnership ends are **forfeited**, unless your contract says otherwise. Once the wind-down has begun, Widgetic closes your credits with one recorded adjustment: your spending history (`GET /partners/{partnerId}/credits/transactions`) shows it as "Partnership ended: unused credits closed", with the number of credits. Refunds are agreed with Widgetic and paid by hand; nothing is given back by itself.

That includes extra credits you bought earlier, because everything that is left is closed together. If you mean to use credits, use them before the last day: nothing can be generated in the wind-down.

## What Widgetic Keeps

Widgetic erases what it holds for you only when a person at Widgetic does it, and never before 90 days after the last day, so that anything open can be settled first. The erasure removes your content (widgets, compositions, workflows, A/B tests, brand kits, translations), your customers (managed users), your API keys, the addresses and secrets of your storage and webhooks, and your owner login.

Widgetic keeps what it is bound to keep about the money: your partner record, your billing details, your contract, your invoices and your credit history. **Widgetic never touches your own bucket or your own database**: they are yours, and they hold your customers' files and data whatever happens to your account. Widgetic erases the connection string it holds before it deletes your compositions, so the tables it made in your database for them (the `comp_<compositionId>` schemas of [Visitor data in your Neon database](https://docs.widgetic.com/docs/partners/visitor-data-database.md)) stay there, and keeping or removing them is yours.

## Changing Your Mind

Until Widgetic starts erasing what it holds, a partnership that has an end date can be reopened: Widgetic takes the date away, and your keys, your customers' editors, your widgets and your account work again at once. Reopening does not give back the credits that were forfeited; that is for your contract. Ask Widgetic before the date if you want the partnership to go on, and tell your customers early if it will not.

## Errors

| Status | Code | When | What to do |
| - | - | - | - |
| 403 | `PARTNER_WINDING_DOWN` | The wind-down is on and the request would make or change something | Read and export. Branch on `details.windDownEndsOn` for the last day |
| 403 | `PARTNER_CLOSED` | The partnership is closed and the call is not one of the owner's reads on widgetic.com | Nothing to do from the API. Contact Widgetic if you think this is a mistake |
| 422 | `PARTNERSHIP_ENDING` | A last day is set and you asked for an invoice for extra credits | Ask Widgetic if you need credits before the last day |

> [card] [Account Status](https://docs.widgetic.com/docs/partners/account-status.md)
>
> The states of an account and what each one stops

> [card] [Credits & Billing](https://docs.widgetic.com/docs/partners/credits-billing.md)
>
> Invoices, credits and what happens to them


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.