co-dian-v2
Extensions to support the Colombian DIAN (Dirección de Impuestos y Aduanas Nacionales)
specifications for electronic invoicing based on UBL 2.1.
Correction Definitions
Auto-generation of corrective invoices or credit and debit notes is supported. A reason is required in thereason
field
when submitting the correction options.
Invoice Types
The types of invoices that can be created with a preceding definition:-
credit-note
-
debit-note
Stamp Keys
Stamp keys from the previous invoice that need to be referenced:-
dian-cude
Extension Keys
One or all of the following extensions may be required as part of the correction options. See the Extensions section for possible values.-
co-dian-credit-code
-
co-dian-debit-code
Extensions
DIAN Municipality Code
The municipality code as defined by the DIAN. Set the 5-digit code for the municipality where the issuer is located in both the supplier and customer:co-dian-municipality
co-dian-municipality
Pattern:
^\d$
Credit Code
The DIAN correction code is required when issuing credit notes in Colombia and is not automatically assigned by GOBL. It must be be included inside thepreceding
document references.
The extension will be offered as an option in the invoice correction process.
Usage example:
co-dian-credit-code
co-dian-credit-code
Code | Name |
---|---|
1 | Partial refund |
2 | Revoked |
3 | Discount |
4 | Adjustment |
5 | Other |
Debit Code
The DIAN correction code is required when issuing debit notes in Colombia and is not automatically assigned by GOBL. The extension will be offered as an option in the invoice correction process.co-dian-debit-code
co-dian-debit-code
Code | Name |
---|---|
1 | Interest |
2 | Pending charges |
3 | Change in value |
4 | Other |
Fiscal Responsibility Code
The fiscal responsibility code as defined by the DIAN for Colombian electronic invoicing. Maps to the UBL’sTaxLevelCode
field.
The DIAN requires that Colombian invoices specify the fiscal responsibilities of the
supplier or customer using specific codes. If no value is provided, GOBL will
automatically set R-99-PN
as the default.
Code | Description |
---|---|
O-13 | Gran contribuyente |
O-15 | Autorretenedor |
O-23 | Agente de retención IVA |
O-47 | Régimen simple de tributación |
R-99-PN | No aplica - Otros |
co-dian-fiscal-responsibility
co-dian-fiscal-responsibility
Code | Name |
---|---|
O-13 | Major taxpayer |
O-15 | Self-withholder |
O-23 | VAT withholding agent |
O-47 | Simple tax regime |
R-99-PN | Not applicable – Others |