payments, in order. Each entry
becomes one UBL PaymentMeans (the Anexo allows 1..N, rule FAN01):
- Do not collapse a split-tender sale into one generic code such as
ZZZ(“Otro”): send one entry per means used. form1(contado) means the seller is paid at the sale, also when a customer pays with a credit card;2(crédito) means the customer owes the balance. Every credit entry needs adue_date(FAN04); Cufea refuses the invoice without one (422 invoice_invalid).amountis optional. Cufea stores it and returns it inpaymentson every invoice response, but it is not part of the signed XML (the Anexo defines no amount inPaymentMeans) and Cufea does not check that the amounts add up to the total.payment(a single object) still works and means the same aspaymentswith one entry. Sendpaymentorpayments, not both: either both or neither is422 validation_error.- Invoice responses carry
paymentsas signed:form,method_codeanddue_dateread from the XML,amountas you sent it (nullwhen you sent none). - Credit and debit notes keep a single
payment. method_codemust be a code of the DIAN list MediosPago-2.1 (Anexo 1.9 table 13.3.4.2, toolboxMediosPago-2.1.gc; the API reference lists them as the enum ofmethod_code). Any other value, on an invoice (paymentor anypaymentsentry) or a note, is422 validation_errorwith the field’sloc, e.g.["body", "payments", "1", "method_code"], instead of a DIAN rejection (“Medio de pago inválido”, FAN03 / CAN03a / DAN03a).formtakes only1or2.- Cufea checks the list only: which code fits a sale or a note is your choice.
Payment means on a credit note
A credit note carries onepayment. Cufea does not enforce which means fits which case; this
is the mapping that two real credit notes issued with Siigo and accepted by the DIAN follow:
A credit
payment (form 2) needs its due_date on a note too (CAN04).