1. DianServices
Bilidox
  • Raíz
    • TestService
      • valuesGetAll
      • valuesS3GetItem
      • valuesDBGetItem
      • countersDBGetItem
    • DianServices
      • NumberingRangeGetAll
        GET
      • StatusZipGetAll
        GET
      • DocumentGetItem (invoice)
        GET
      • DocumentGetItem (support)
        GET
      • DocumentGetItemPayroll
        GET
      • CustomerPartyGetItem
        GET
      • DocumentNotesGetAll
        GET
      • DocumentEventsGetAll
        GET
      • SendMailCreate
        POST
      • TestSetCreate
        POST
      • InvoiceCreate
        POST
      • InvoiceCreate Test
        POST
      • InvoiceCreate Copy OK
        POST
      • CreditnoteCreate
        POST
      • CreditnoteCreate Copy
        POST
      • EquivalentCreate
        POST
      • EquivalentCreate Copy
        POST
      • EquivalentSpdCreate
        POST
      • EquivalentSpdCreate Copy
        POST
      • SupportCreate
        POST
      • SupportCreate Copy
        POST
      • PayrollCreate
        POST
      • PayrollCreate Copy
        POST
      • EventCreate
        POST
      • EventCreate ProviderRadian
        POST
    • S3File
      • fileUrlGetItem
      • filePdfGetItem
      • fileXmlGetItem
      • fileCreate
    • DDBRepositories
      • typesGetAll
      • typesGetAllTaxes
    • DDBProvider
      • providerGetAll
      • providersGetItem
      • providersCreate
      • providersUpdate
    • DDBCompany
      • companyGetAll
      • companyGetItem
      • companyGetItemCounter
      • companyCreate
      • companyUpdate
      • companyUpdateAttach
    • DDBCounter
      • counterGetAll
      • counterGetItem
    • DDBCertificate
      • certificateGetAll
      • certificateGetItem
      • certificateFileGetItem
      • certificateCreate
      • certificateUpdate
    • DDBDocument
      • documentGetAll
      • documentGetItem
    • DDBPurchaseOrder
      • purchaseorderGetAll
      • purchaseorderGetItem
      • purchaseorderPaymentGetPayu
      • purchaseorderPaymentGetWompi
      • purchaseorderCreate
      • purchaseorderCreatePayment
      • purchaseorderCreatePayment Wompi
      • purchaseorderUpdate
    • DDBSoftware
      • softwareGetAll
      • softwareGetItem
      • softwareCreate
      • softwareUpdate
    • DDBNumeration
      • numerationGetAll
      • numerationGetItem
      • numerationCreate
      • numerationUpdate
    • DDBEmployee
      • employeeGetAll
      • employeeGetItem
      • employeeCreate
      • employeeUpdate
    • DDBCustomer
      • customerGetAll
      • customerGetItem
      • customerCreate
      • customerUpdate
    • DDBSupplier
      • supplierGetAll
      • supplierGetItem
      • supplierCreate
      • supplierUpdate
    • DDBItem
      • itemGetAll
      • itemGetItem
      • itemCreate
      • itemUpdate
    • DDBUser
      • userOauth
      • userGetAll
      • userGetItem
      • userCreate
      • userCreateIntegrations
      • userUpdate
      • userChangePassword
      • userForgotPassword
      • userResetPassword
    • DDBSecurity
      • tokenCreate
      • tokenCreateIntegrations
  1. DianServices

InvoiceCreate

POST
/v1/dian/invoices/
📌
Endpoint que permite crear una Factura Electrónica de Venta, con los datos requeridos para enviar a la DIAN.
Crear una Factura Electrónica de Venta

Solicitud

Autorización
Proporciona tu token bearer en el encabezado
Authorization
al realizar solicitudes a recursos protegidos.
Ejemplo:
Authorization: Bearer ********************
Parámetros de consulta

Parámetros del Body application/json

Ejemplos

Respuestas

🟢200
application/json
Bodyapplication/json

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location '/v1/dian/invoices/?isTest=true&companyId=901084328&providerId=901084328' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Id": "SETP990000514",
    "TypeCode": "01",
    "OperationCode": "10",
    "Number": 990000514,
    "Date": "2025-02-18",
    "DueDate": "2025-02-18",
    "CurrencyCode": "COP",
    "Note": "La Firma Digital tendrá una vigencia de 1 año a partir de la fecha de activación por parte del Proveedor CAMERFIRMA COLOMBIA S.A.S\r\n",
    "Cufe": "",
    "SchemeName": "",
    "FileName": "",
    "QrCode": "",
    "OrderReference": {
        "Number": "",
        "Date": "2025-01-27T00:00:00"
    },
    "NumberingRange": {
        "Id": 18760000001,
        "Date": "2019-03-14",
        "Prefix": "SETP",
        "FromNumber": 990000000,
        "ToNumber": 995000000,
        "TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
        "StartDate": "2019-01-19",
        "EndDate": "2030-01-19"
    },
    "SoftwareProvider": {
        "Id": "ecf4f36c-6a79-4beb-b1dd-3183691b3b55",
        "Name": "901084328Cuental",
        "Pin": "84328",
        "TestSetId": "f8d85a4d-920c-43f5-a34e-115de12d59c4",
        "ProviderId": "901084328",
        "ProviderName": "",
        "Origin": "Cuental"
    },
    "SigningCertificate": {
        "Password": "MyLNgMAeGqhXWmeY",
        "Content": "",
        "Url": "https://app.cuental.com/ImagesArchivo/CF_20240628115545269.p12",
        "Token": "aHR0cHM6Ly9hcHAuY3VlbnRhbC5jb20vSW1hZ2VzQXJjaGl2by9DRl8yMDI0MDYyODExNTU0NTI2OS5wMTJ-TXlMTmdNQWVHcWhYV21lWQ"
    },
    "CompanyParty": {
        "ProviderId": "901084328",
        "ImageUrl": "https://app.cuental.com/ImagesArchivo/PM_20180517201411241.jpg",
        "Id": "901084328",
        "IdentificationType": "31",
        "Name": "GRAFOSOFT SAS",
        "PhysicalLocation": {
            "Address": "NATURA ECOPARQUE EMPRESARIAL KM 2 ANILLO VIAL OF 628 T2",
            "CityCode": "68276",
            "SubentityCode": "68",
            "CountryCode": "CO",
            "CountryName": "",
            "PostalZone": ""
        },
        "OrganizationTypeCode": "1",
        "RegimeCode": "R-99-PN",
        "TaxLevelCode": "R-99-PN",
        "TaxResidentCode": "10",
        "TaxCode": null,
        "CorporateRegistration": "05-376678-16",
        "IndustryClassificationCode": "6201",
        "Email": "facturacion@grafosoft.com",
        "Phone": "3108697825"
    },
    "CustomerParty": {
        "Id": "901084328",
        "IdentificationType": "31",
        "Name": "GRAFOSOFT SAS",
        "PhysicalLocation": {
            "Address": "NATURA ECOPARQUE EMPRESARIAL KM 2 ANILLO VIAL OF 628 T2",
            "CityCode": "68276",
            "SubentityCode": "68",
            "CountryCode": "CO",
            "CountryName": "",
            "PostalZone": ""
        },
        "OrganizationTypeCode": "1",
        "RegimeCode": "R-99-PN",
        "TaxLevelCode": "R-99-PN",
        "TaxResidentCode": "10",
        "TaxCode": null,
        "CorporateRegistration": "05-376678-16",
        "IndustryClassificationCode": "6201",
        "Email": "facturacion@grafosoft.com",
        "Phone": "3108697825"
    },
    "Items": [
        {
            "Code": "37091",
            "Description": "Certificado Facturacion Electronica Vigencia 1 Año",
            "Quantity": 1.00,
            "Price": 126050.42,
            "PriceReference": 150000.00,
            "SubtotalAmount": 126050.42,
            "UnitCode": "EA",
            "BrandName": "",
            "ModelName": "",
            "Note": "",
            "ThirdPartyIdentification": "",
            "consignmentTransport": null,
            "Discounts": [],
            "Charges": [],
            "Taxes": [
                {
                    "Code": "01",
                    "Amount": 23949.58,
                    "Percentage": 19.00,
                    "TaxableAmount": 126050.42,
                    "PerUnitAmount": 0.0,
                    "Concept": "Tarifa general"
                }
            ]
        }
    ],
    "PaymentMeans": {
        "Code": "2",
        "MethodCode": "31",
        "Date": "2025-03-18"
    },
    "LegalMonetaryTotal": {
        "GrossAmount": 126050.42,
        "TaxExclusiveAmount": 126050.4200,
        "TaxInclusiveAmount": 150000.00,
        "DiscountAmount": 0.0,
        "ChargeAmount": 0.0,
        "PrepaidAmount": 0.00,
        "PayableAmount": 150000.00
    },
    "PaymentExchangeRate": null,
    "DeliveryTerms": {
        "Code": "",
        "SpecialTerms": ""
    },
    "CustomizePrintFormat": {
        "HeaderText": "",
        "FooterText": "Esta Factura de Venta se asimila en sus efectos a la letra de Cambio (Art. 621 y 774 de C.C.)"
    },
    "Period": {
        "StartDate": "2025-01-27T22:45:00.42",
        "EndDate": "2025-01-27T22:45:00.42"
    },
    "HealthSectorExtension": null,
    "CashRegister": null,
    "BuyerBenefits": null
}'
Respuesta Ejemplo de Respuesta
{
    "Id": "SETP990000514",
    "TypeCode": "01",
    "OperationCode": "10",
    "Number": 990000514,
    "Date": "2025-02-18",
    "DueDate": "2025-02-18",
    "CurrencyCode": "COP",
    "Note": "La Firma Digital tendrá una vigencia de 1 año a partir de la fecha de activación por parte del Proveedor CAMERFIRMA COLOMBIA S.A.S\r\n",
    "Cufe": "",
    "SchemeName": "",
    "FileName": "",
    "QrCode": "",
    "OrderReference": {
        "Number": "",
        "Date": "2025-01-27T00:00:00"
    },
    "NumberingRange": {
        "Id": 18760000001,
        "Date": "2019-03-14",
        "Prefix": "SETP",
        "FromNumber": 990000000,
        "ToNumber": 995000000,
        "TechnicalKey": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
        "StartDate": "2019-01-19",
        "EndDate": "2030-01-19"
    },
    "SoftwareProvider": {
        "Id": "ecf4f36c-6a79-4beb-b1dd-3183691b3b55",
        "Name": "901084328Cuental",
        "Pin": "84328",
        "TestSetId": "f8d85a4d-920c-43f5-a34e-115de12d59c4",
        "ProviderId": "901084328",
        "ProviderName": "",
        "Origin": "Cuental"
    },
    "SigningCertificate": {
        "Password": "MyLNgMAeGqhXWmeY",
        "Content": "",
        "Url": "https://app.cuental.com/ImagesArchivo/CF_20240628115545269.p12",
        "Token": "aHR0cHM6Ly9hcHAuY3VlbnRhbC5jb20vSW1hZ2VzQXJjaGl2by9DRl8yMDI0MDYyODExNTU0NTI2OS5wMTJ-TXlMTmdNQWVHcWhYV21lWQ"
    },
    "CompanyParty": {
        "ProviderId": "901084328",
        "ImageUrl": "https://app.cuental.com/ImagesArchivo/PM_20180517201411241.jpg",
        "Id": "901084328",
        "IdentificationType": "31",
        "Name": "GRAFOSOFT SAS",
        "PhysicalLocation": {
            "Address": "NATURA ECOPARQUE EMPRESARIAL KM 2 ANILLO VIAL OF 628 T2",
            "CityCode": "68276",
            "SubentityCode": "68",
            "CountryCode": "CO",
            "CountryName": "",
            "PostalZone": ""
        },
        "OrganizationTypeCode": "1",
        "RegimeCode": "R-99-PN",
        "TaxLevelCode": "R-99-PN",
        "TaxResidentCode": "10",
        "TaxCode": null,
        "CorporateRegistration": "05-376678-16",
        "IndustryClassificationCode": "6201",
        "Email": "facturacion@grafosoft.com",
        "Phone": "3108697825"
    },
    "CustomerParty": {
        "Id": "901084328",
        "IdentificationType": "31",
        "Name": "GRAFOSOFT SAS",
        "PhysicalLocation": {
            "Address": "NATURA ECOPARQUE EMPRESARIAL KM 2 ANILLO VIAL OF 628 T2",
            "CityCode": "68276",
            "SubentityCode": "68",
            "CountryCode": "CO",
            "CountryName": "",
            "PostalZone": ""
        },
        "OrganizationTypeCode": "1",
        "RegimeCode": "R-99-PN",
        "TaxLevelCode": "R-99-PN",
        "TaxResidentCode": "10",
        "TaxCode": null,
        "CorporateRegistration": "05-376678-16",
        "IndustryClassificationCode": "6201",
        "Email": "facturacion@grafosoft.com",
        "Phone": "3108697825"
    },
    "Items": [
        {
            "Code": "37091",
            "Description": "Certificado Facturacion Electronica Vigencia 1 Año",
            "Quantity": 1.00,
            "Price": 126050.42,
            "PriceReference": 150000.00,
            "SubtotalAmount": 126050.42,
            "UnitCode": "EA",
            "BrandName": "",
            "ModelName": "",
            "Note": "",
            "ThirdPartyIdentification": "",
            "consignmentTransport": null,
            "Discounts": [],
            "Charges": [],
            "Taxes": [
                {
                    "Code": "01",
                    "Amount": 23949.58,
                    "Percentage": 19.00,
                    "TaxableAmount": 126050.42,
                    "PerUnitAmount": 0.0,
                    "Concept": "Tarifa general"
                }
            ]
        }
    ],
    "PaymentMeans": {
        "Code": "2",
        "MethodCode": "31",
        "Date": "2025-03-18"
    },
    "LegalMonetaryTotal": {
        "GrossAmount": 126050.42,
        "TaxExclusiveAmount": 126050.4200,
        "TaxInclusiveAmount": 150000.00,
        "DiscountAmount": 0.0,
        "ChargeAmount": 0.0,
        "PrepaidAmount": 0.00,
        "PayableAmount": 150000.00
    },
    "PaymentExchangeRate": null,
    "DeliveryTerms": {
        "Code": "",
        "SpecialTerms": ""
    },
    "CustomizePrintFormat": {
        "HeaderText": "",
        "FooterText": "Esta Factura de Venta se asimila en sus efectos a la letra de Cambio (Art. 621 y 774 de C.C.)"
    },
    "Period": {
        "StartDate": "2025-01-27T22:45:00.42",
        "EndDate": "2025-01-27T22:45:00.42"
    },
    "HealthSectorExtension": null,
    "CashRegister": null,
    "BuyerBenefits": null
}
Modificado en 2026-07-15 20:11:01
Anterior
TestSetCreate
Siguiente
InvoiceCreate Test
Built with