const response = await fetch('https://sandbox.cucu.bo/api/v1/invoices', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
documentSectorType: 11,
pointOfSaleId: '660e8400-e29b-41d4-a716-446655440004',
clientDocumentType: 5,
clientDocumentNumber: '99001',
clientBusinessName: 'JUAN PEREZ MAMANI',
paymentMethodCode: 1,
studentName: 'Maria Perez Lopez',
billedPeriod: 'Marzo 2026',
details: [{
activityEconomic: '801000',
codeProductSin: '93101',
description: 'Colegiatura mensual - 3er grado primaria',
quantity: 1,
unitMeasure: 58,
priceUnit: 450.00
}]
})
});