curl --location 'https://nitro.aliaddo.net/v2/documents/invoices' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "01",
"typeOperation": "15",
"mode": "Test",
"format": "Estandar",
"size": "Estandar",
"testSetId": "0e3d0669-03ed-4f70-a237-c9541d22c5a1",
"prefix": "SETP",
"consecutive": 1,
"orderReference": "ORD-2025-001",
"currencyCode": "COP",
"currencyRate": 0,
"issuedAt": "2026-03-10",
"dueAt": "2026-03-10",
"periodStartDate": "2026-03-10",
"periodEndDate": "2026-03-10",
"deliveryAt": "2026-03-10",
"deliveryTerms": "Entrega en puerta",
"terms": "Términos y condiciones comerciales",
"termDay": 30,
"paymentMeanCode": "10",
"branch": {
"name": "Sucursal Principal",
"address": "Calle Ficticia 123, Edificio Empresarial",
"regionCode": "11",
"regionName": "Departamento Ejemplo",
"cityCode": "11001",
"cityName": "Ciudad Ejemplo",
"phone": "1234567890"
},
"resolution": {
"key": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"prefix": "SETP",
"number": 18760000001,
"rangeInitial": 990000000,
"rangeFinal": 995000000,
"validFrom": "2019-01-19",
"validUntil": "2030-01-19"
},
"customer": {
"companyName": "Mi empresa S.A",
"personType": "2",
"regimeType": "49",
"firstName": "Nombres del cliente",
"lastName": "Apellidos del cliente",
"identification": "1234567890",
"digitCheck": "2",
"identificationTypeCode": "13",
"email": "clienteemail@gmail.com",
"phone": "1234567890",
"responsibleFor": "ZZ",
"responsibilities": "R-99-PN",
"BillingAddress": {
"address": "Tu dirección 01 #02-03",
"countryName": "Colombia",
"countryCode": "CO",
"regionName": "Bogotá",
"regionCode": "11",
"cityName": "Bogotá",
"cityCode": "11001",
"postalCode": "110011",
"neighborhood": "Chapinero",
"phone": "1234567890",
"contactName": "Nombre Contacto"
},
"ShippingAddress": {
"address": "Tu dirección 01 #02-03",
"countryName": "Colombia",
"countryCode": "CO",
"regionName": "Bogotá",
"regionCode": "11",
"cityName": "Bogotá",
"cityCode": "11001",
"postalCode": "110011",
"neighborhood": "Chapinero",
"phone": "1234567890",
"contactName": "Nombre Contacto"
}
},
"lines": [
{
"code": "PROD001",
"name": "Producto número 1",
"modelName": "Modelo Prueba",
"description": "Descrpción del producto número 1",
"brandName": "Marca1",
"itemCodeSupplier": "Supplier123",
"unitMeasurementCode": "94",
"unitMeasurementName": "Unidad",
"price": 10000,
"quantity": 5,
"discountAmount": 5000,
"chargeAmount": 5000,
"standardType": "001",
"standardCode": "10101501",
"discounts": [
{
"name": "Descuento por volumen",
"type": "P",
"rate": 10,
"amount": 1000
}
],
"charges": [
{
"name": "Costo de envío",
"type": "F",
"rate": 1000,
"amount": 1000
}
],
"taxes": [
{
"name": "IVA",
"code": "01",
"type": "P",
"rate": 19,
"amount": 1900,
"base": 10000
}
],
"withholdings": [
{
"name": "ReteIVA",
"code": "05",
"type": "P",
"rate": 15,
"amount": 285,
"base": 1900
}
]
}
],
"totals": {
"amount": 50000,
"prepaymentAmount": 0,
"taxesAmount": 9500,
"withholdingAmount": 1425,
"discountsAmount": 0,
"chargesAmount": 0
},
"notes": [
"Nota importante 1",
"Nota importante 2"
],
"remark": "Comentarios adicionales",
"purchaseAndSaleCurrencies": {
"code": "01"
}
}'