---
title: "DEPRECATED. Create a new Administration"
method: POST
path: "/legal_entities/{legal_entity_id}/administrations"
tags: ["Administrations"]
---

# DEPRECATED. Create a new Administration

`POST /legal_entities/{legal_entity_id}/administrations`

## Request

- Base URL: `https://api.storecove.com/api/v2`
- URL: `https://api.storecove.com/api/v2/legal_entities/{legal_entity_id}/administrations`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/storecove/apis/storecove-api/docs/legal_entities/:legal_entity_id/administrations/post.ts> (a function with typed inputs; its response is checked against the schema)

DEPRECATED. Create a new Administration. An Administration is an email destination for purchase invoices.

## Path parameters

- `legal_entity_id` integer, required

## Request body

- AdministrationCreate
  - `sender_email_identity_id` integer: The id of the SenderEmailIdentity. If not provided, the Storecove default sender will be used
  - `legal_entity_id` integer: The LegalEntity the Administration belongs to.
  - `email` string: The email address to send the received document to
  - `packaging` 'ubl': How to package the purchase invoice.
  - `package_version` 'peppol_bis_v3' | 'aunz' | 'sg': The version of the package.

## Response `200`

Success

- Administration
  - `id` integer: The Storecove assigned id for the Administration.
  - `sender_email_identity_id` integer: The id of the SenderEmailIdentity. If not provided, the Storecove default sender will be used
  - `legal_entity_id` integer: The LegalEntity the Administration belongs to.
  - `email` string: The email address to send the received document to
  - `packaging` 'ubl': How to package the purchase invoice.
  - `package_version` 'peppol_bis_v3' | 'aunz' | 'sg': The version of the package.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity

## Changes

- **2021-03-06** `0312ae5500d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/storecove/apis/storecove-api/changes/legal_entities/:legal_entity_id/administrations/post.md)

---

[API](https://skmtc.dev/storecove/apis/storecove-api.md) - [All operations](https://skmtc.dev/storecove/apis/storecove-api/llms.txt) - [OpenAPI document](https://skmtc.dev/storecove/apis/storecove-api/revisions/18226354b6a5?raw)
