Ir al contenido

Resumen fiscalConsulta el resumen fiscal de un período

Consulta el resumen fiscal de un período

Ver como Markdown
GET
/api/v1/finance/summary
curl --request GET \
--url https://gateway.novafe.com.do/api/v1/finance/summary \
--header 'X-API-Key: <X-API-Key>'

Resumen fiscal entre from y to (inclusive), por fecha de emisión.

Autenticación: requiere una API key (header X-API-Key) con rol admin_tenant, emisor o consultor.

from
string format: date
to
string format: date

OK

Tipo de contenidoapplication/json

Resumen fiscal del lado ventas (lo que el contribuyente emitió) para un rango de fechas — visibilidad interna, no un formato de envío de la DGII (606/607/608): ese mapeo exacto queda para cuando se consiga el spec real. Un e-CF rejected no cuenta en ningún total: nunca quedó facturado ante la DGII.

object
from
obligatorio

Siempre en formato dd-MM-aaaa.

string
/^\d{2}-\d{2}-\d{4}$/
to
obligatorio

Siempre en formato dd-MM-aaaa.

string
/^\d{2}-\d{2}-\d{4}$/
totalCount
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
totalInvoiced
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalItbis
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalItbis1
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalItbis2
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalItbis3
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalExempt
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalItbisWithheld
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalIsrWithheld
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalCreditNoteAmount
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalDebitNoteAmount
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
netCreditDebitEffect
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
byType
obligatorio
Array<object>

Totales de un tipo de e-CF puntual dentro del rango.

object
type
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
typeName
obligatorio
string
count
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
totalAmount
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
totalItbis
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
Ejemplo
{
"from": "21-02-2026",
"to": "21-02-2026"
}

Falta la API key o no es válida: no existe, fue revocada o venció (Auth.MissingApiKey, Auth.InvalidApiKey).

Tipo de contenidoapplication/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Identificador estable del error, con la forma Grupo.Nombre. Es el que debes comparar en tu código.

string
traceId

Identificador de la petición. Inclúyelo al escribir a soporte.

string
Ejemplo
{
"code": "Ecf.IdempotencyKeyRequired"
}

La API key no tiene el rol que pide la operación (Auth.Forbidden).

Tipo de contenidoapplication/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Identificador estable del error, con la forma Grupo.Nombre. Es el que debes comparar en tu código.

string
traceId

Identificador de la petición. Inclúyelo al escribir a soporte.

string
Ejemplo
{
"code": "Ecf.IdempotencyKeyRequired"
}

Superaste el máximo de peticiones por minuto de tu organización (RateLimit.Exceeded). Espera los segundos del header Retry-After.

Tipo de contenidoapplication/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Identificador estable del error, con la forma Grupo.Nombre. Es el que debes comparar en tu código.

string
traceId

Identificador de la petición. Inclúyelo al escribir a soporte.

string
Ejemplo
{
"code": "Ecf.IdempotencyKeyRequired"
}
Retry-After
integer

Segundos que debes esperar antes de repetir la petición.