Get TicketBAI Submission Status
ticketbai_statusPoll the hacienda acknowledgement status for a TicketBAI submission. Returns the TBAI identifier, territory, and confirmation or rejection state.
Instructions
Poll the hacienda acknowledgement status for a TicketBAI submission. Returns the TBAI identifier, territory, and hacienda's confirmation or rejection state.
Common status values: • submitted — sent, awaiting hacienda response (check again in 30-60s) • accepted — hacienda confirmed the submission (AEAT/foral treasury received) • rejected — hacienda rejected (check rejectionReason for correction guidance) • error — internal processing error (see error field)
/ Consulta el estado de acuse de recibo de la hacienda foral para un envío TicketBAI. Devuelve el identificador TBAI, territorio y estado de confirmación o rechazo.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoiceId": "<invoiceId>"
},
"name": "ticketbai_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | Frihet invoice ID (same as used in ticketbai_submit) / ID de la factura |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | CSV (Código Seguro de Verificación) for the submission | |
| qrUrl | Yes | QR code URL to print on the invoice (null if not yet available) | |
| errors | Yes | Hacienda error messages if rejected (null if none) | |
| estado | Yes | Current submission status stored server-side (e.g. 'accepted', 'rejected') | |
| accepted | Yes | Whether the submission has been accepted by the hacienda foral | |
| submittedAt | Yes | ISO 8601 timestamp the submission was recorded (null if unknown) | |
| tbaiIdentifier | Yes | TicketBAI identifier |