factus-js iconfactus-js
Rangos de numeración

Rangos asociados al software

Obtener los rangos de numeración asociados al software.

Firma del método

getSoftwareRange(
  options?: RequestOptions,
): Promise<ApiResponse<SoftwareNumberingRange[]>>

Endpoint Factus

GET /v2/numbering-ranges/dian

Fuente oficial: Rangos asociados al software

Parámetros

Este método no recibe parámetros.

Ejemplo

const response = await factus.numberingRanges.getSoftwareRange();
const numberingRanges = response.data;

for (const numberingRange of numberingRanges) {
  console.log(numberingRange.prefix, numberingRange.from, numberingRange.to);
}

Ejemplo de respuesta

{
  "status": "OK",
  "message": "Solicitud exitosa",
  "data": [
    {
      "resolution_number": "18760000007",
      "prefix": "SEDS",
      "from": "984000000",
      "to": "985000000",
      "start_date": "2024-01-01",
      "end_date": "2024-12-31",
      "technical_key": ""
    }
  ]
}

En esta página