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: 5,
pointOfSaleId: '660e8400-e29b-41d4-a716-446655440004',
clientDocumentType: 5,
clientDocumentNumber: '99001',
clientBusinessName: 'ZONA FRANCA COMERCIAL ORURO S.A.',
paymentMethodCode: 1,
receptionPartyNumber: 12345,
details: [{
activityEconomic: '620100',
codeProductSin: '83141',
description: 'Mercaderia importada - zona franca',
quantity: 50,
unitMeasure: 1,
priceUnit: 120.00
}]
})
});