FinBaze for Platforms

Concepts

Set how your sandbox is reset:

mutation {
  updatePlatformSandboxSettings(input: { sandboxReset: nightly, sandboxSeedTemplates: [nl_eenmanszaak_services, nl_bv_logistics_oss] }) {
    sandboxReset sandboxSeedTemplates lastResetAt
  }
}
mutation { resetPlatformSandbox { companiesDeleted companiesKept clocksDeleted companiesSeeded { template companyId } errors } }

sandboxReset is none (default) or nightly (02:00 Europe/Amsterdam). A reset deletes every company on your platform and its data, test clocks included, then seeds one company per template in sandboxSeedTemplates. Companies created with preserve: true are kept. Reads use platformSandboxSettings.

The delete is permanent and covers everything that belongs to the company (hard delete, children first). A platform's reset never touches another platform. It runs only in the sandbox, and fails with SANDBOX_ONLY anywhere else.

When a reset finishes, the platform event sandbox.reset.completed is sent with trigger (nightly or manual), the counts of companies deleted, kept and seeded, and any errors. Only one reset runs at a time across the cluster.

Scopes: platform_companies:write to change the setting or reset.