## Get TicketBAI invoice

`GET`  https://{entorno}.ticketbaiws.eus/tbai/

This method retrieves the TBAI fingerprint, the QR code and the validation URL of a previously generated TicketBAI invoice. The response body also includes the current status of the invoice; possible values are OK, PENDING or ERROR.

**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.**

**PARAMETERS**

- `serie` (string, required): Invoice series. Ejemplo: `A`
- `numero` (string, required): Invoice number. Ejemplo: `2021000123`

**GET** `https://{entorno}.ticketbaiws.eus/tbai/`

```bash
$ curl --request GET \
     --url https://api-test.ticketbaiws.eus/tbai/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '{"serie":"A","numero":"2021000123"}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
	"result": "OK",
	"return": {
		"status" : "OK",
		"huella_tbai" : "TBAI-B01000012-131121-zG3wtCW3WlOSN-108",
		"qr" : "iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAIAAABEtEjdAAAABmJ...",
		"url" : "https://batuz.eus/QRTBAI/?id=TBAI-..."
	},
	"msg": null
}
```

Fuente: https://ticketbaiws.eus/en/ticketbai-get/
