Ejemplo de código · sustituye los datos antes de usarlo
POST /v1/invoices
{
"organization_nit": "900234567",
"source_reference": "FEV-1042",
"currency": "COP",
"buyer": {
"identification_type": "NIT",
"identification_number": "800123456",
"verification_digit": "1",
"organization_type": "legal_entity",
"tax_tribute_code": "01",
"legal_name": "Inversiones Bogotá S.A.S."
},
"lines": [{
"code": "SRV-01",
"description": "Servicio de consultoría",
"quantity": "1",
"unit_code": "EA",
"standard_code": "001",
"unit_price_minor": 45000000,
"taxes": [{ "code": "VAT", "rate_basis_points": 1900, "treatment": "taxed" }]
}],
"payment_details": [{ "form": "cash", "method_code": "CASH", "amount_minor": 53550000 }]
}