Skip to main content
Preview erasing a company

Authorizations

Authorization
string
header
required

Personal API key sent as a bearer token, together with X-Organization-Id. The key must have at least the access level the endpoint requires (read, write or admin).

Headers

X-Organization-Id
string

The organization to act in. Required for personal API keys; list the organizations you can access with GET /v1/organizations.

Path Parameters

id
string<uuid>
required

Response

What erasure would remove and keep.

archived
boolean
required

Only an archived company can be erased: archive it first (archiveCompany).

erasure_requested
boolean
required

Erasure was already requested.

invoices
integer
required

The company's invoices and credit notes, not deleted.

documents
integer
required

The files of the company's invoices.

purchase_orders
integer
required

The company's purchase orders.

recipients
integer
required

The company's recipients.

agreements
integer
required

Agreements covering only this company: erased with it.

shared_agreements
integer
required

Agreements shared with other companies: kept for them, without this company.

received_originals
integer
required

Files received over Peppol or by email that the Bookkeeping Act requires kept 5 years after the year they arrived. They are kept until then and erased after.

members_limited
object[]
required

Members whose access is limited to this company. They lose it once the company is erased.