customer takes one of two shapes, chosen by kind.
An identified buyer
The default ("kind": "identified", which may be left out). Only the identification and the
name are required:
A natural person with no RUT data:
tax_scheme and fiscal_responsibilities: Cufea does not query the RUT, and the values go into
the signed XML as given.
Send the address when the sale happens outside your premises: FAK07 requires it then.
Consumidor final
For an anonymous buyer send"kind": "final_consumer". Cufea fills the party the Anexo
prescribes (FAK61-FAK64): natural person, id type 13, id 222222222222, name
consumidor final, responsibility R-99-PN and tax scheme ZZ. Only an email and the
address of the place of sale may be added; any other field is refused with 422.
222222222222 as a NIT (31) or with a check digit.
DANE codes
city_code (5 digits, DANE municipality) and department_code (2 digits, DANE department)
are checked for their format only. Cufea does not check that the code exists, nor that
city_name and department_name match it: the codes and the names go into the XML as sent.
Take both from the DIAN lists (Municipio-2.1.gc and Departamentos-2.1.gc in the DIAN
toolbox) or another official source; a made-up code is accepted by Cufea and can then be
refused by the DIAN.