QAPI está en beta — la API puede cambiar sin previo aviso. Usa sandbox para pruebas.
QAPIQAPIDocs · by DTEVIA
Api

Historial del sandbox (hoy)

Devuelve las facturas de prueba creadas HOY (hora de Guatemala), de más reciente a más antigua. Para el detalle completo de una factura usá GET /v1/invoices/{id}.

GET
/v1/sandbox/history

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key con prefijo qapi_live_ o qapi_test_, o JWT (access_token) obtenido vía POST /v1/auth/login. QAPI detecta el tipo automáticamente por el prefijo del token.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/sandbox/history"
{
  "data": [
    {
      "id": "inv_V1StGXR8_Z5jdHi6",
      "status": "PENDING",
      "tipo_dte": "FACT",
      "gran_total": 112,
      "moneda": "GTQ",
      "created_at": "2019-08-24T14:15:22Z"
    }
  ]
}
{
  "type": "https://docs.dtevia.com.gt/errors/validation-error",
  "title": "VALIDATION_ERROR",
  "status": 422,
  "detail": "Error de validación",
  "instance": "/v1/invoices",
  "invalid_params": [
    {
      "field": "items.0.impuestos.0.monto_impuesto",
      "message": "MontoImpuesto IVA inválido. Esperado ~12 (MontoGravable 100 × 0.12), recibido 10"
    }
  ]
}