# VERIFACTU_REPRESENTATION_REQUIRED

To enable VeriFactu in production you must first sign the AEAT representation form for this tax ID

<Callout type="info">
**Category:** [VeriFactu](/errors/category/verifactu)
</Callout>

| | |
|---|---|
| HTTP status | `422` Unprocessable Content |
| Retry | After fixing the cause |

## When it happens

You tried to enable VeriFactu in production for a company that has no signed representation. In production the signed representation is a precondition, because it is what lets BeeL. submit to the tax authority on the company's behalf. Sandbox does not require it.

## How to fix it

Generate, sign and submit the company's representation, then enable VeriFactu again.

## Retry

Not as is: the same request fails the same way. Fix the cause described above, then send the request again, under a new `Idempotency-Key` if the body changed.

## Returned by

The operations where this code is most likely. The list is not exhaustive.

- [`PUT /v1/companies/{company_id}/verifactu-configuration`](/verifactu/updateCompanyVeriFactuConfiguration)

## Rules that cite this code

- [REC-011 · The NIF holder signs the AEAT representation first](/rules/records#rec-011)

## Example response

When this error occurs, the API answers `422` Unprocessable Content with a JSON body of this shape:

```json
{
  "type": "https://docs.beel.es/errors/VERIFACTU_REPRESENTATION_REQUIRED",
  "title": "VERIFACTU_REPRESENTATION_REQUIRED",
  "detail": "To enable VeriFactu in production you must first sign the AEAT representation form for this tax ID",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "VERIFACTU_REPRESENTATION_REQUIRED",
    "message": "To enable VeriFactu in production you must first sign the AEAT representation form for this tax ID",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}
```

The `type` URI is stable and always resolves to this page.

## Message

<Tabs items={["English", "Spanish", "Catalan"]}>
  <Tab value="English">{"To enable VeriFactu in production you must first sign the AEAT representation form for this tax ID"}</Tab>
  <Tab value="Spanish">{"Para activar VeriFactu en producción necesitas antes firmar el modelo de representación AEAT de este NIF"}</Tab>
  <Tab value="Catalan">{"Per activar VeriFactu en producció has de signar abans el model de representació AEAT d'aquest NIF"}</Tab>
</Tabs>

Send the request with `Accept-Language: <es|en|ca>` to receive the message in your preferred language.

## Other errors in this category

<div className="grid grid-cols-2 gap-3 not-prose">
  <Card title="ALREADY_REGISTERED" description="The NIF is already registered in VeriFactu" href="/errors/ALREADY_REGISTERED" />
  <Card title="API_COMMUNICATION_ERROR" description="Error communicating with the VeriFactu API" href="/errors/API_COMMUNICATION_ERROR" />
  <Card title="COMPANY_NIF_MISSING" description="The issuing company has no NIF configured. Set the NIF before submitting invoices to VeriFactu" href="/errors/COMPANY_NIF_MISSING" />
  <Card title="ENV_MISMATCH" description="API key does not match NIF environment: use a live key for production NIFs and a test key for sandbox NIFs" href="/errors/ENV_MISMATCH" />
  <Card title="NIF_NOT_CONFIGURED" description="The profile has no NIF. Complete it before continuing." href="/errors/NIF_NOT_CONFIGURED" />
</div>

## Keep exploring

<div className="grid grid-cols-2 gap-3 not-prose">
  <Card title="All VeriFactu errors" description="Every code in this category in one table." href="/errors/category/verifactu" />
  <Card title="Error reference home" description="Browse every category or jump to the handling guide." href="/errors" />
</div>

---

Full OpenAPI spec: https://docs.beel.es/api/openapi