x-api-key y x-company-id.POST /public/api/numeraciones/create| Header | Tipo | Requerido | Descripción |
|---|---|---|---|
x-api-key | string | Sí | Clave de acceso (API Key) de tu compañía. |
x-company-id | integer | Sí | Identificador de la compañía. |
Content-Type | string | Sí | application/json |
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
Prefix | string | Sí | Prefijo de la numeración. |
AuthorizationNumber | string | Sí | Número de la resolución DIAN. |
ValidFrom | string | Sí | Inicio de vigencia, formato yyyy-MM-ddTHH:mm:ss. |
ValidTo | string | Sí | Fin de vigencia, formato yyyy-MM-ddTHH:mm:ss. |
StartValue | integer | Sí | Número inicial del rango autorizado. |
EndValue | integer | Sí | Número final del rango autorizado. |
DocumentType | string | Sí | Tipo de documento (ver valores admitidos). |
Nit | string | No | NIT de la compañía. Si se envía, debe coincidir con el registrado para x-company-id. |
EfectiveValue | integer | No | Consecutivo actual. Si no se envía, se inicializa con StartValue. |
Name | string | No | Nombre de referencia. No incide en el registro. |
AutoIncrement | boolean | No | No incide en el registro. |
DocumentType| Valor | Documento |
|---|---|
Invoice | Factura de venta |
CreditNote | Nota crédito |
DebitNote | Nota débito |
ContingencyInvoice | Factura de contingencia |
SupportDocument | Documento soporte |
Pos | Documento POS |
StartValue no puede ser mayor que EndValue.ValidFrom no puede ser posterior a ValidTo.Prefix y AuthorizationNumber para la compañía.{
"Nit": "900123456",
"AuthorizationNumber": "18760000001",
"Prefix": "SETP",
"ValidFrom": "2026-01-15T00:00:00",
"ValidTo": "2027-01-15T00:00:00",
"StartValue": 1,
"EndValue": 5000,
"EfectiveValue": 1,
"DocumentType": "Invoice"
}| Campo | Tipo | Descripción |
|---|---|---|
Errors | array<string> | Mensajes de error. Puede contener varios cuando hay múltiples validaciones fallidas. |
IsValid | boolean | true si la numeración fue registrada. |
ResultCode | integer | Código de resultado (ver tabla). |
Warning | array<string> | Advertencias no bloqueantes. |
ResultData | array<object> | Numeración registrada (ver detalle). |
ResultData| Campo | Tipo | Descripción |
|---|---|---|
FromNumber | string | Número inicial del rango registrado. |
ToNumber | string | Número final del rango registrado. |
Prefix | string | Prefijo de la numeración. |
ResolutionNumber | string | Número de la resolución. |
ResolutionType | string | Tipo de documento enviado. |
ValidDateFrom | string | Inicio de vigencia. |
ValidDateTo | string | Fin de vigencia. |
ResolutionDate | string | No se retorna en esta operación (null). |
TechnicalKey | string | No se retorna en esta operación (null). |
| ResultCode | HTTP | IsValid | Significado |
|---|---|---|---|
| 200 | 200 | true | Numeración registrada correctamente. |
| 400 | 400 | false | Datos inválidos: campos obligatorios ausentes, formato de fecha incorrecto, rangos incoherentes, NIT que no coincide, compañía inexistente o numeración duplicada. |
| 403 | 403 | false | API Key inválida para la compañía indicada. |
| 500 | 500 | false | Error al guardar la numeración. |
{
"Errors": [],
"IsValid": true,
"ResultCode": 200,
"Warning": [],
"ResultData": [
{
"FromNumber": "1",
"ToNumber": "5000",
"Prefix": "SETP",
"ResolutionNumber": "18760000001",
"ResolutionDate": null,
"ResolutionType": "Invoice",
"TechnicalKey": null,
"ValidDateFrom": "2026-01-15T00:00:00",
"ValidDateTo": "2027-01-15T00:00:00"
}
]
}{
"Errors": [
"El campo Prefix es requerido.",
"El campo ValidFrom no tiene un formato de fecha válido (yyyy-MM-dd'T'HH:mm:ss).",
"StartValue no puede ser mayor que EndValue."
],
"IsValid": false,
"ResultCode": 400,
"Warning": [],
"ResultData": []
}{
"Errors": ["Ya existe una numeración con el mismo prefijo y número de autorización para esta compañía."],
"IsValid": false,
"ResultCode": 400,
"Warning": [],
"ResultData": []
}{
"Errors": ["El Nit enviado (900999999) no coincide con el registrado para la compañía (1)."],
"IsValid": false,
"ResultCode": 400,
"Warning": [],
"ResultData": []
}{ "Errors": ["x-api-key inválida para la compañía indicada."], "IsValid": false, "ResultCode": 403, "Warning": [], "ResultData": [] }{ "Errors": ["Error interno al guardar la numeración: <detalle>"], "IsValid": false, "ResultCode": 500, "Warning": [], "ResultData": [] }curl --location --globoff 'https://{{ur_basel}}/public/api/numeraciones/create' \
--header 'x-api-key: {{api-key}}' \
--header 'x-company-id: {{company_id}}' \
--header 'Content-Type: application/json' \
--data '{
"Nit": "804002599",
"Name": "A",
"AuthorizationNumber": "187600000011",
"Prefix": "EPOS",
"ValidFrom": "2019-01-19T15:00:00",
"ValidTo": "2030-01-19T05:00:00",
"StartValue": 1,
"EndValue": 1000000,
"EfectiveValue": null,
"DocumentType": "Pos",
"AutoIncrement": false
}
/* "SupportDocument", "Invoice", "CreditNote","DebitNote""ContingencyInvoice","Pos" */'{
"Errors": [],
"IsValid": true,
"ResultCode": 200,
"Warning": [],
"ResultData": [
{
"FromNumber": "1",
"ToNumber": "60000",
"Prefix": "FCUT",
"ResolutionNumber": "18764051679459",
"ResolutionDate": "2023-07-11",
"ResolutionType": "01",
"TechnicalKey": "36a880ee9921a592406bd1c8041248fe8cbfd5b42f9e701526a250eaefa90821",
"ValidDateFrom": "2023-07-11",
"ValidDateTo": "2024-07-11"
},
{
"FromNumber": "1",
"ToNumber": "99999999",
"Prefix": "FEVR",
"ResolutionNumber": "18760000001",
"ResolutionDate": null,
"ResolutionType": "030",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "0",
"ToNumber": "999999999",
"Prefix": "FELI",
"ResolutionNumber": "9999999999",
"ResolutionDate": null,
"ResolutionType": "032",
"TechnicalKey": null,
"ValidDateFrom": "2022-01-01",
"ValidDateTo": "1999-12-31"
},
{
"FromNumber": "0",
"ToNumber": "999999999",
"Prefix": "FELU",
"ResolutionNumber": "9999999999",
"ResolutionDate": null,
"ResolutionType": "031",
"TechnicalKey": null,
"ValidDateFrom": "2022-01-01",
"ValidDateTo": "1999-12-31"
},
{
"FromNumber": "7",
"ToNumber": "5000",
"Prefix": "DS",
"ResolutionNumber": "18764042743898",
"ResolutionDate": "2023-01-11",
"ResolutionType": "01",
"TechnicalKey": null,
"ValidDateFrom": "2023-01-11",
"ValidDateTo": "2024-01-11"
},
{
"FromNumber": "1",
"ToNumber": "5000000",
"Prefix": "SETT",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2019-01-18",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "990000000",
"ToNumber": "999999999",
"Prefix": "NCBU",
"ResolutionNumber": "000000000",
"ResolutionDate": null,
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "990000000",
"ToNumber": "999999999",
"Prefix": "NDBU",
"ResolutionNumber": "000000000",
"ResolutionDate": null,
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "8000",
"Prefix": "FBAR",
"ResolutionNumber": "18764051679799",
"ResolutionDate": "2023-07-11",
"ResolutionType": "01",
"TechnicalKey": "1c3381e603d77a573fd58f29ac1e7cf2a730694ec6ea45c7c7a24ac32f2e3097",
"ValidDateFrom": "2023-07-11",
"ValidDateTo": "2024-07-11"
},
{
"FromNumber": "1",
"ToNumber": "40000",
"Prefix": "FBMG",
"ResolutionNumber": "18764051679158",
"ResolutionDate": "2023-07-11",
"ResolutionType": "01",
"TechnicalKey": "9ae055af5b3be793b384712017cf696ce2df5b851e6dc2369de6a4cd956a762d",
"ValidDateFrom": "2023-07-11",
"ValidDateTo": "2024-07-11"
},
{
"FromNumber": "1",
"ToNumber": "200",
"Prefix": "FINV",
"ResolutionNumber": "18764042410970",
"ResolutionDate": "2023-01-03",
"ResolutionType": "01",
"TechnicalKey": "2b28e666bc646cad3b914b942bddb09bc9083c9f42a81c43fe794b9685d5fd66",
"ValidDateFrom": "2023-01-03",
"ValidDateTo": "2024-01-03"
},
{
"FromNumber": "873",
"ToNumber": "1000",
"Prefix": "BS",
"ResolutionNumber": "18764051856658",
"ResolutionDate": "2023-07-14",
"ResolutionType": "01",
"TechnicalKey": "0bf53f40641d26271b254046fd9459b47e55076b77e8fc3dada53a25025e5334",
"ValidDateFrom": "2023-07-14",
"ValidDateTo": "2024-01-14"
},
{
"FromNumber": "0",
"ToNumber": "999999999",
"Prefix": "FELA",
"ResolutionNumber": "9999999999",
"ResolutionDate": "1969-12-31",
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2021-12-31",
"ValidDateTo": "1999-12-30"
},
{
"FromNumber": "1",
"ToNumber": "985000000",
"Prefix": "SEDS",
"ResolutionNumber": "18760000002",
"ResolutionDate": "2022-12-31",
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2022-12-31",
"ValidDateTo": "2025-12-30"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTNC",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2024-09-25",
"ResolutionType": "91",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "5000000",
"Prefix": "SETT",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-01-13",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "57675",
"ToNumber": "500000",
"Prefix": "CLFE",
"ResolutionNumber": "999999999999",
"ResolutionDate": "2022-06-22",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2022-06-22",
"ValidDateTo": "2026-06-22"
},
{
"FromNumber": "1",
"ToNumber": "14276",
"Prefix": "GENA",
"ResolutionNumber": "18764073939730",
"ResolutionDate": "2026-01-16",
"ResolutionType": "01",
"TechnicalKey": "db6806cd02f0e58e32dbfd241a428421632d878f8a5197740a361af1c39ca4ff",
"ValidDateFrom": "2025-01-16",
"ValidDateTo": "2026-01-16"
},
{
"FromNumber": "1",
"ToNumber": "50000000",
"Prefix": "K286",
"ResolutionNumber": "18764074413516",
"ResolutionDate": "2023-07-11",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTSP",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": "60",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTNE",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTSP",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": "60",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTSC",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": "94",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTSD",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": "93",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTDA",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTEA",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": "033",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTND",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-10",
"ResolutionType": "92",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "9999999999",
"Prefix": "FTNA",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2025-02-09",
"ResolutionType": null,
"TechnicalKey": null,
"ValidDateFrom": "2019-01-18",
"ValidDateTo": "2030-01-18"
},
{
"FromNumber": "1",
"ToNumber": "50000000",
"Prefix": "K172",
"ResolutionNumber": "18764071143277",
"ResolutionDate": "2023-07-11",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "5000000",
"Prefix": "CONT",
"ResolutionNumber": "187600000011",
"ResolutionDate": "2025-01-13",
"ResolutionType": "03",
"TechnicalKey": null,
"ValidDateFrom": "2019-01-18",
"ValidDateTo": "2030-01-18"
},
{
"FromNumber": "1",
"ToNumber": "500000",
"Prefix": "C617",
"ResolutionNumber": "999999999999",
"ResolutionDate": "2025-01-13",
"ResolutionType": "01",
"TechnicalKey": null,
"ValidDateFrom": "2025-01-16",
"ValidDateTo": "2026-01-16"
},
{
"FromNumber": "1",
"ToNumber": "5000000",
"Prefix": "SETT",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2019-01-18",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
},
{
"FromNumber": "1",
"ToNumber": "5000000",
"Prefix": "SETT",
"ResolutionNumber": "18760000001",
"ResolutionDate": "2019-01-18",
"ResolutionType": "01",
"TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"ValidDateFrom": "2019-01-19",
"ValidDateTo": "2030-01-19"
}
]
}