> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.invoice-api.xhub.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.invoice-api.xhub.io/_mcp/server.

# Declaración responsable of the invoicing software (ES)

GET https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion

Returns the manufacturer's "declaración responsable" for this invoicing system, as required by art. 13.2 RD 1007/2023 and art. 15 Orden HAC/1177/2024: the declaration must be viewable **inside the system**. For an API product that means retrievable over the API. The document describes the software manufacturer (us), not your organisation — it is identical for every API key. `hasPendingLegalReview` is `true` while the wording still carries our internal legal-review marker.

Reference: https://docs.invoice-api.xhub.io/api-reference/verifactu/declaracion

## Authentication

- `Authorization` header (bearer token, required) — API Key authentication. Use `sk_live_*` for production or `sk_test_*` for testing.

## Servers

- `https://service.invoice-api.xhub.io` (Invoice API v1 (production), default)
- `/` (Diese Instanz (lokale Entwicklung))

## Response

### 200

The declaración responsable, as plain text plus metadata

- `text` (string, required) — The declaración responsable in full, as plain text (Spanish, art. 13.2).
- `version` (string, required) — Software version the declaration was signed for (IdSistemaInformatico version).
- `hasPendingLegalReview` (boolean, required) — True while the wording still carries our internal legal-review marker — the document is then a draft, not a signed declaration.
- `producedAt` (string, required) — ISO-8601 timestamp of this rendering.

## Errors

### 501 Not Implemented Error

The platform is missing mandatory VERIFACTU_* configuration — the message names every missing variable. Not retryable.

- `any`

## Examples

**Response**

```json
{
  "text": "string",
  "version": "string",
  "hasPendingLegalReview": true,
  "producedAt": "string"
}
```

**SDK Code**

```python
import requests

url = "https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://service.invoice-api.xhub.io/api/v1/verifactu/declaracion")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```