---
title: "Retrieve VeriFactu config"
method: GET
path: "/companies/{company}/verifactu/config"
tags: ["VeriFactu"]
---

# Retrieve VeriFactu config

`GET /companies/{company}/verifactu/config`

## Request

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

Return your company's VeriFactu configuration (mode, environment, enrollment status) and how it remits to AEAT.
- `remission_mode` is `own_certificate`, `social_collaborator` or `power_of_attorney`; `presenter_certificate_status` is `valid`, `invalid` or `not_configured`.
- Includes active representation fields and `social_collaborator_available`. Passwords are never exposed.

## Path parameters

- `company` string, uuid, required

## Headers

- `Factuarea-Version` string, date

## Response `200`

- object
  - `data` VeriFactuConfig, required: VeriFactu configuration of your company (mode, environment, enrollment). Returned by `GET /v1/companies/{company}/verifactu/config` and `PATCH /v1/companies/{company}/verifactu/settings`. The certificate password is never exposed.
    - `object` 'verifactu_config', required
    - `enabled` boolean, required: Indicates whether VeriFactu is enabled for the company.
    - `mode` string, required: VeriFactu operation mode.
    - `auto_transmit` boolean, required: Indicates whether transmissions to AEAT are sent automatically.
    - `environment` string, required: AEAT environment (`sandbox` / `production`).
    - `notification_emails` string[], required: Notification emails for VeriFactu events.
    - `is_locked_until` string, date-time, nullable, required: Date until which the mode change is locked, or `null` if not locked.
    - `has_active_certificate` boolean, required: Whether there is an active certificate configured.
    - `active_certificate_id` string, nullable, required: UUID v7 of the active certificate, or `null` if there is none.
    - `updated_at` string, date-time, nullable, required
    - `remission_mode` 'own_certificate' | 'social_collaborator' | 'power_of_attorney', required: Who remits your records to AEAT: `own_certificate` (the default: your own certificate), `social_collaborator` (Factuarea remits with its certificate as social collaborator, annex I of the Resolution of 18-12-2024) or `power_of_attorney` (Factuarea remits under a power of attorney registered with AEAT). A third-party mode requires an active representation of the kind it asks for (`POST /v1/companies/{company}/verifactu/representation`); change it with `PATCH /v1/companies/{company}/verifactu/settings`.
    - `has_active_representation` boolean, required: Whether the company has a current representation that has NOT expired — the one that enables third-party remission — regardless of the mode. A representation that has expired keeps `active_representation_id` and `_kind` but this field is `false` (see `active_representation_is_expired`).
    - `active_representation_id` string, nullable, required: UUID v7 of the current (not revoked) representation, even if it has expired, or `null` if there is none.
    - `active_representation_kind` 'social_collaboration_annex_i' | 'aeat_power_of_attorney' | 'null', nullable, required: Kind of the current (not revoked) representation, even if it has expired, or `null` if there is none.
    - `active_representation_valid_until` string, date, nullable, required: Last day of validity (YYYY-MM-DD, Europe/Madrid) of the current representation, or `null` when there is none or it does not expire.
    - `active_representation_is_expired` boolean, required: Whether the current representation has expired. `false` when there is none.
    - `social_collaborator_available` boolean, required: Whether this instance offers the `social_collaborator` remission mode (the social-collaboration agreement with AEAT is in force). It is a fact of the instance, the same for every company: while it is `false`, `PATCH /v1/companies/{company}/verifactu/settings` with that mode returns 422 `social_collaborator_unavailable` and `power_of_attorney` covers the same use case.
    - `presenter_certificate_status` 'valid' | 'invalid' | 'not_configured', required: State of the certificate that the remission would present given `remission_mode`: yours in `own_certificate`, the one of Factuarea in a third-party mode. `valid`: usable; `invalid`: configured but expired, revoked or for another tax ID; `not_configured`: there is none. The certificate of Factuarea never exposes its holder, tax ID, serial number or identifier.

## 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. `profile_not_found`: the company in the path does not exist, is not in the API key scope or belongs to the other environment (live or test).
- `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)
