address.country: "COL" and the identification details below.
Changing the customer’s country does not configure the issuing business.
Before you start
Complete Colombia issuer setup. Confirm the selected team, provider credentials, numbering configuration, and test environment with the owner. The public team API does not expose the provider selection. A saved Colombian customer does not configure the issuer.Customer identification
These fields are accepted on a saved customer and on an embedded invoice customer. They are optional in the shared input schema; supplying a contact does not guarantee that its information is sufficient for DIAN issuance.
Supply the recipient’s actual classification instead of relying on fallbacks.
The mapper removes
R-99-PN when it is combined with an O-* responsibility.
See the customer API reference for the full accepted document-code list.
Fiscal responsibility codes
These are the five values accepted by the API. Use the recipient’s actual registered responsibilities; a default is not a determination of their tax status.
DIAN’s validation FAQ, question 1
explains this five-code list. Consult its current technical documentation
and regulations
for the applicable requirements.
fiscal_responsibilities and tribute_code are separate
fields: do not infer IVA responsibility solely from R-99-PN.
Invoice compatibility fields
The publicPOST /invoices/income validator still requires these fields for Colombia:
Send the public API code
"03" for a bank transfer. Although the Colombian provider
uses "47", the current income and draft request validators do not accept "47"
as payment_form. Provider payloads and public API requests have different schemas.1, can be rejected before
the request reaches Factus. The provider adapter rounds an accepted rate to two decimals.
Do not rely on omitted or invalid rates producing an invoice with unchanged amounts.
Credit invoices and item fields
A credit invoice ispayment_method: "PPD" with payment_due_date (YYYY-MM-DD), on
POST /invoices/income or on a draft. The due date is required for a Colombian PPD invoice
and must not be before the stamping day in Bogotá; Factus takes no issue date, so DIAN dates
the bill when it is stamped. The DIAN document prints “Pago a crédito” and the
“Fecha de vencimiento”, and the observations start with the term, such as Plazo: 30 días.
payment_due_date is refused for other countries and for PUE. On a draft, send null
to clear it.
Colombia has no payment complements: the Mexico PPD and payment-complement recipe does not
apply, and a payment complement (P) for a Colombian team is refused before it reaches Factus.
The public item schema exposes description, quantity, unit_price, product_key,
unit_key, and taxes. The Colombian adapter uses the product key as an item reference
fallback; it does not use the Mexican unit_key as its DIAN unit code. Provider-only
fields such as unit_measure_code are not exposed by this public item schema.
Do not copy a direct Factus item payload into a gigstack request.
tax_system and Mexican SAT catalogs do not replace Colombian identification,
responsibility, or municipality codes.
Customer purchase order
To send your customer’s purchase order (orden de compra) to DIAN, set the team settingorder_reference once with PUT /teams/{id}/settings. It is a template filled from each
invoice, with the same placeholders as the Mexican team addenda:
metadata.orderId. DIAN receives it as the
invoice’s order reference (cac:OrderReference/cbc:ID).
{metadata.<key>}or{client.<field>}, with text around it if you need it (OC-{metadata.orderId}).- A trailing
?makes the value optional: an invoice without it is issued with no purchase order. Without?, an invoice that lacks the value is refused. - The value must be text or a whole number. Send large numbers as text.
- Credit notes, debit notes and global invoices never carry it. Send
nullto turn it off.
Issuer setup and verification
The issuing team needs its Colombian provider credentials and numbering configuration for the selected environment. Its test and live configurations are separate. Issuing debit notes also needs an active Nota Débito numbering range. This page was checked against the public request schemas and Colombian provider mappings on October 8, 2026. It has not been exercised end to end with a Colombian test issuer. The existing staging verification covers the Mexican examples; it does not prove Colombian issuance, credit notes, or cancellation behavior.First immediate-payment invoice
Case: a Colombian test issuer invoices one service for COP 100,000 plus illustrative 19% IVA, paid immediately by bank transfer. The intended total is COP 119,000. Use the classification and taxes appropriate to your actual transaction.The requests below were reviewed against the public validators and Colombian provider
mapping. They have not been executed with a Colombian test issuer. The expected
response fields are source-reviewed, not captured test results. Test recipient data must
come from your approved provider test setup; no universal Colombian fixture is assumed.
1. Create the Colombian test recipient
Use Bash withcurl and jq. Set GIGSTACK_BASE_URL and GIGSTACK_API_KEY with the
quickstart environment commands, then check the
environment and key distinction. Supply CO_TEST_NIT without the verification digit,
CO_TEST_LEGAL_NAME, and a unique CO_CUSTOMER_REFERENCE locally from your approved test
setup. The example models a domestic legal entity, IVA responsible, with no listed
special fiscal responsibility, located in Bogotá (11001). Adjust those classifications
and location to the recipient before submitting.
201 for a new customer or 200 when the search reuses one. Inspect the returned
recipient details before continuing: search.update: false does not refresh an existing
record. Mexico SAT validation fields do not establish DIAN validity.
2. Prepare and review the invoice
SetCO_ORDER_REFERENCE to the stable reference for this one invoice. use: "G03"
below is only a compatibility string accepted by the shared API; the Colombia adapter
does not transmit it as a DIAN fiscal classification. Likewise, product_key provides
an item reference fallback; its Mexican classification meaning does not apply here.
PUE selects
immediate payment in the adapter. This request records an invoice; it does not collect
the bank transfer or register a payment record.
3. Issue only after review and authorization
POST /invoices/income issues immediately through the configured provider.
200 with data.uuid. Preserve that value
as an opaque identifier: the Colombian adapter derives it from the provider’s CUFE,
CUDE, or document number; do not require a Mexican UUID format. Verify the stored
recipient, COP currency, intended totals, and status: "valid". If any check fails,
retain the response and investigate before another issuance attempt.
Recover after a timeout
Keep the same business reference. Look up the original invoice by the exactidempotency_key filter; do not add metadata filters to this lookup:
CLIENT_ID, test mode, COP currency and
COP 119,000 total before treating it as your completed invoice. Save its uuid and read
that invoice again. A different customer or amount is a reference conflict to investigate.
Zero matches does not prove issuance failed. The provider may have issued a document
before gigstack persisted it. Do not assume the Mexican PAC retry guarantees establish
identical Colombian provider behavior. For an ambiguous result, ask
support@gigstack.io to reconcile the provider document,
providing the team, environment/mode, business reference, request time and redacted error.
Never include the API key or provider credentials.
Colombian annulment produces a credit note and can leave the original invoice valid.
Do not apply the Mexican cancellation completion check to Colombia.
Colombian credit and annulment flows remain outside the end-to-end verification described here.
Debit notes
A debit note (nota débito) charges an additional amount on a sales invoice already issued: interest, collection expenses, or a change in value. Send it toPOST /invoices/income with three
extra fields. Only teams invoicing in Colombia can issue one; other teams get 400.
items hold only the additional amounts, not the original invoice’s lines. A debit
note can’t be a global invoice. motive or billing_period on anything but a debit note is
refused. These checks run before a credit is consumed or a folio reserved.
uuid or DIAN number) and send the billing_period it covers, with the
credit note’s items. DIAN has no invoice reference for this case: gigstack issues it as a
debit note without an invoice reference (operation type 32) and keeps the credit note as its
related document. Without billing_period the request is refused with 400, as is a
billing_period on a debit note that debits a sales invoice.
What gigstack does. It sends the note to Factus as a debit note that references the
debited invoice. The team’s Factus account needs one active Nota Débito numbering
range for the environment; without one, or with several and no default configured, the
answer is 400 with message.code: "COL_NUMBERING_RANGE_ERROR". The returned series
and folio_number are DIAN’s number (for example ND3). Without a series in the
request, the note is numbered under the team’s debit-note serie, then ND, never the
sales-invoice serie.
The response is the usual income invoice, invoice_type: "I", plus
document_kind: "debit_note" and motive. Only debit notes carry these two fields.
Debit notes are listed by GET /invoices/income with the sales invoices; there is no
filter on document_kind.
Limits.
- The referenced document must be a sales invoice or a credit note of the same team and
mode. Another debit note can’t be referenced (
COL_BILL_NOT_FOUND, answered before a credit is consumed). A DIAN number that names no document of the team is passed to Factus as a sales-invoice number. - A debit note can’t be cancelled. To reverse it, issue a credit note on the original invoice.
- Factus refuses a new debit note while an earlier one is still waiting to reach DIAN
(
COL_DEBIT_NOTE_ERROR). Contact support@gigstack.io.