## Representation document - Download uploaded document

`GET`  https://{entorno}.ticketbaiws.eus/doc-representante/

Downloads the representation document already uploaded (Verifactu, Bizkaia or Gipuzkoa), also signed by Ticketbai WS. Returns the PDF file in base 64.

**GET methods accept the parameters either in the body as a JSON payload or as a query string in the URL, as shown in the cURL example.**

**Companies in Araba:**  this method is not available, because in Araba the authorization is given by registering the device certificate ([see instructions](https://ticketbaiws.eus/es/registro-de-certificado-de-dispositivo/)). It returns an error:

```
{"result": "ERROR", "return": null, "msg": "El documento de representación no está disponible para empresas de Araba. Registra el certificado de dispositivo de Ticketbai WS en la sede de la Diputación Foral de Álava."}
```

**PARAMETERS**

-- This method does not accept parameters --

**GET** `https://{entorno}.ticketbaiws.eus/doc-representante/`

```bash
$ curl --request GET \
     --url https://api-test.ticketbaiws.eus/doc-representante/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
	"result": "OK",
	"return": "JVBERi0xLjcNJeLjz9MNCjE1OSAwIG9iag08PC9MaW5lYXJpemVkIDEvTCAxMzQ0MTMwL08gMTYx...",
	"msg": null
}
```

Fuente: https://ticketbaiws.eus/en/doc-representante-get/
