tenancy

GET /v1/orgs/{orgId}/closure-plan

What closing this organization would do.

Todos os endpoints de tenancy

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

Onde vai o ID da sua organização

Este endpoint aceita o ID da sua organização diretamente na URL, como orgId. Substitua-o no caminho — não há cabeçalho ou parâmetro de consulta que sirva como alternativa.

O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

curl -X GET https://api.zinndigital.com/v1/orgs/{orgId}/closure-plan \
  -H "Authorization: Bearer zdk_live_…"

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

A **pure read** — opens no transport, arms no workflow, writes nothing — computed by the same function `DELETE /v1/orgs/{orgId}` runs, so the summary a customer confirms is the plan that then executes. ⛔ Gated on `org.delete`, not `org.read`: the plan is a complete inventory of the account (every site, every client org, every retained domain) plus what it owes.

Parâmetros

NomeTipoObrigatórioO que é
orgId (path)UuidSimOrganization ID (UUIDv7).

Resposta

NomeTipoObrigatórioO que é
org_idUuidSimUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_typestringSim
site_idsUuid[]SimSites that will be torn down, through the ordinary teardown — so they land in `DeletedSite` and stay restorable for the whole retention window.
reparented_org_idsUuid[]SimD-W15-11 — client orgs re-parented to Zinn®. Never torn down.
retained_domain_idsUuid[]SimD-W15-12 — domains that keep renewing and stay the customer's. Reported so nobody discovers on an invoice what closing did not stop paying for.
forfeited_credit_minorintegerSim⚖️ Wallet credit this organization holds and will **LOSE** on closure — *"credit is not returnable ever, even on account closure etc."* (owner ruling, 2026-08-22). ⛔ Reported fo…
forfeited_credit_currencystringSimISO-4217 code for `forfeited_credit_minor`.
outstanding_minorintegerSimMinor units owed (D-W15-13). Mixed currencies report the largest single-currency total, never a sum — adding minor units across currencies is the §2.8 error.
outstanding_currencystringSimISO 4217 code for `outstanding_minor`; empty when nothing is owed.
blocked_by_balancebooleanSimTrue when the closure would be refused and the org suspended instead.

Erros que este endpoint pode retornar

401 · 403 · 404 · 429