Skip to main content
GET
Preview deleting or closing the organization (owner only)
Shows what deleting an organization would do, without changing anything.

Authentication

  • Authorization: Bearer <token>
Only the organization owner can call this endpoint.

Path Parameters

Response Fields

If pending has any non-zero value, closing fails with 409 ORGANIZATION_HAS_PENDING_OPERATIONS.

Example Request

Example Response

retainedUntil is a UTC instant (ISO 8601). In this example, 2033-01-01T05:59:59.000Z is 31 December 2032, 23:59:59 America/Mexico_City time. Show it in that time zone, not in UTC.

Common Errors

403 Forbidden

Only the owner can preview closing the organization.

404 Not Found

The organization does not exist.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Close preview.

mode
enum<string>
required

What DELETE /organizations/:id would do: delete (no production CFDI) or close (production CFDI are retained).

Available options:
delete,
close
Example:

"close"

retainedUntil
string | null
required

Retention date when mode is close; null otherwise.

Example:

"2033-01-01T05:59:59.000Z"

pending
object
required

Operations in progress. The organization cannot be closed or deleted while any count is above zero.