---
title: "Retrieve a managed account"
method: GET
path: "/accounts/{account}"
tags: ["Account"]
---

# Retrieve a managed account

`GET /accounts/{account}`

## Request

- Base URL: `https://api.factuarea.com/v1`
- URL: `https://api.factuarea.com/v1/accounts/{account}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Retrieve one of your managed accounts by `id`: status, environment, plan, your `access_level`, tax IDs, claim state and management status.
- Works with any `access_level`, `none` included.
- A non-managed, foreign or ended account returns 404 `account_not_found`.
- Requires the privileged `accounts:read` scope.

## Path parameters

- `account` string, uuid, required

## Headers

- `Factuarea-Version` string, date

## Response `200`

- object
  - `data` ManagedAccount, required: An account your account provisioned for one of your clients: a SEPARATE account, with its own tax IDs and plan, that your account manages and pays until its holder claims it and takes over. Its pending claim voucher is read in `claim`, without secret or link: those are returned once, by the provisioning and by the reissue.
    - `id` string, uuid, required: Opaque identifier (UUID v7) of the managed account. It is the `{account}` of the managed account routes.
    - `object` 'managed_account', required: Always `managed_account`.
    - `external_ref` string, required: Your own reference for this account, unique per provider. Provisioning it again returns this same account.
    - `status` 'provisioned' | 'claimed' | 'active', required: Status of the ACCOUNT: `provisioned` (created by you, not claimed yet), `claimed` (its holder took it) or `active`. The end of the management is read in `management`, not here.
    - `environment` 'live' | 'test', required: Environment of the account: always the one of the key that provisioned it. A test account is never charged and cannot be claimed.
    - `plan` 'emprendedor' | 'empresario' | 'integral' | 'enterprise', required: Current plan of the managed account. `enterprise` is only assigned by Factuarea by contract.
    - `pending_plan` 'emprendedor' | 'empresario' | 'integral' | 'null', nullable, required: Plan requested by a downgrade that takes effect at the end of the current period, or `null`.
    - `billing_interval` string, required: Billing interval of the managed account (managed accounts are billed monthly).
    - `access_level` 'none' | 'view' | 'operate', required: Access level of your account on this account: `none` (provisioning only), `view` (read-only) or `operate`.
    - `display_name` string, required: Visible name of the account.
    - `language` 'es' | 'en' | 'ca' | 'null', nullable, required: Language of the account and of its claim voucher, or `null` when not recorded.
    - `companies` object[], required: Tax IDs of the managed account.
      - `id` string, uuid, required: Opaque identifier (UUID v7) of the tax ID, the `{company}` of the company axis.
      - `tax_id` string, required: Spanish fiscal identifier (NIF, CIF, NIE). Structural format: NIF `^\d{8}[A-Z]$`, NIE `^[XYZ]\d{7}[A-Z]$`, CIF `^[A-Z]\d{7}[A-Z0-9]$`. AEAT control-digit (checksum) validation is enforced when the request opts in via the `Factuarea-Version` header on or after the activation version; without that opt-in the legacy permissive behaviour is preserved.
      - `name` string, required: Name of the tax ID.
    - `claimed` boolean, required: Whether its holder already claimed the account.
    - `claimed_at` string, date-time, nullable, required: When its holder claimed the account (ISO 8601), or `null`.
    - `management` object, required: Management of the account by your account.
      - `status` 'active' | 'ended', required: `active` while your account manages it; `ended` once the management ended.
      - `ended_at` string, date-time, nullable, required: When the management ended (ISO 8601), or `null`.
    - `paid_by_provider` boolean, required: Whether your account pays this account. `false` once its holder took over the payment.
    - `created_at` string, date-time, required: When the account was provisioned (ISO 8601).
    - `claim` object, nullable, required: The PENDING claim voucher of the account, WITHOUT its secret or its link (those are returned once, by the provisioning and by the reissue). `null` when the account is already claimed, is a test account or has no pending voucher.
      - `status` 'valid' | 'expired', required: `valid` while the voucher has not expired; `expired` once `expires_at` passed (reissue it).
      - `issued_at` string, date-time, required: When the voucher was issued (ISO 8601).
      - `expires_at` string, date-time, required: When the voucher expires (ISO 8601).
      - `ttl_days` integer, required: Days of validity the voucher was issued with.
      - `sent_by_email` boolean, required: Whether the voucher left by email to the holder.
      - `masked_email` string, nullable, required: Email of the holder, masked, or `null` when the voucher was not sent by email.
    - `payment_assumed_at` string, date-time, nullable, required: When the holder took over the payment of the account (ISO 8601), or `null` while your account still pays it (`paid_by_provider`).
    - `plan_renews_at` string, date-time, nullable, required: End of the current billing period of the plan (ISO 8601): when a pending downgrade takes effect and the next periodic invoice is issued. `null` when the account is not charged to your account.

## Other responses

- `400`: `parameter_unknown` with `subcode` `retired_active_profile_header`: the retired `X-Active-Profile` header was sent; the company goes in the path. `parameter_invalid_format` on `Factuarea-Version`: the header is not a `YYYY-MM-DD` date. `unsupported_api_version`: the `Factuarea-Version` date is not a supported version.
- `401`: Missing or invalid API key.
- `403`: The request is authenticated but not allowed: the API key lacks the required scope (`insufficient_scope`), the plan does not include the public API or this feature (`addon_not_active`, `feature_not_available_in_plan`), or the module is not available with a test key (`module_not_available_in_sandbox`).
- `404`: The requested resource does not exist or belongs to another company. `account_not_found`: the account in the path does not exist or is not the account of the API key.
- `429`: Rate limit exceeded. Retry after the duration in `Retry-After`.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/factuarea/apis/factuarea-public-api.md) · [All operations](https://skmtc.dev/factuarea/apis/factuarea-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/factuarea/apis/factuarea-public-api/revisions/718e77934422?raw)
