DIAN Colombia icon

DIAN Colombia

Facturación Electrónica Colombia - NIT, TRM, UVT

NIT → Formatear

AI-generated

Summary

Format a given NIT string into the standard Colombian format with pattern XXX.XXX.XXX-X.

Inputs

  • NIT (required) — The NIT string to format, e.g., "900.123.456-7".

Output shape

a single record with the formatted NIT string returned in the 'response' field within a JSON array

Returns an array containing one JSON object with keys 'success', 'statusCode', 'response' (the formatted NIT), 'error' (null if successful), and 'input' (echoing the original input). If the formatting fails, 'success' is false and 'error' explains the failure.

Examples

Example 1: Formatting a plain numeric NIT input

Provide the raw NIT string without formatting punctuation as input to the 'NIT' parameter under resource 'NIT' and operation 'Formatear'. The node formats it to the standard pattern with dots and dash.

Links

Discussion