# AccountReset

**Beta:**
Salaxy API v04 is in beta: it may change, and it is not used in production yet. Build on v03, the current version.

Controller for resetting account data for testing purposes.

Salaxy API v04 (beta), **Finland only**. 13 operations. Interactive version: [REST API reference](https://code.salaxy.com/reference/rest-api-v04.md). Machine-readable: [OpenAPI document](https://code.salaxy.com/openapi/salaxy-04.json).

**The reference wins:**
These pages are generated from the OpenAPI document. If a guide and this reference disagree about a field, follow the reference. Error responses are not in the document — see [Errors](https://code.salaxy.com/reference/errors.md).

## `DELETE /v04/api/accounts/calculation/all`

**Remove all calculations, payrolls and payments from the account.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/calculation/all)

## `DELETE /v04/api/accounts/invoice`

**Remove invoices with business objects**

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `ids` | query | string[] |  |  |

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/invoice)

## `DELETE /v04/api/accounts/worker/all`

**Remove all workers from the account, including calculations, employment contracts and tax cards.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/worker/all)

## `DELETE /v04/api/accounts/holidays/all`

**Remove all holiday years as well absences from all workers.
Does not touch the default values of holidays in Worker Employment relation.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/holidays/all)

## `DELETE /v04/api/accounts/authorizingAccount/all`

**Delete all empty accounts (company or worker) created by this account.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/authorizingAccount/all)

## `DELETE /v04/api/accounts/data/all`

**Remove all calculations, workers etc. user objects except products and signature from the account.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/data/all)

## `DELETE /v04/api/accounts/product/pensionAndInsurance`

**Remove pension and insurance from the account.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/product/pensionAndInsurance)

## `DELETE /v04/api/accounts/product/all`

**Remove all products from the account.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/product/all)

## `DELETE /v04/api/accounts/signature`

**Remove the signature from the account.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/signature)

## `DELETE /v04/api/accounts/current`

**Delete the account completely including credentials and Auth0 user.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/current)

## `POST /v04/api/accounts/sso-demo/create-certificate`

**For the purposes of Single Sign-On Demo, creates a certificate.**

Request body: `AssertionDemoCertificateRequest` (required)

Response: `AssertionDemoCertificateResponse`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/POST/v04/api/accounts/sso-demo/create-certificate)

## `DELETE /v04/api/accounts/kyc`

**Removes the kyc.**

Response: `string`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/DELETE/v04/api/accounts/kyc)

## `POST /v04/api/accounts/kyc`

**Removes the kyc.**

Response: `AccountBase`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/accountreset/POST/v04/api/accounts/kyc)
