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({
pointOfSaleId: '660e8400-e29b-41d4-a716-446655440004',
documentSectorType: 28,
clientDocumentType: 5,
clientDocumentNumber: '99001',
clientBusinessName: 'GLOBAL TECH INC.',
buyerAddress: '1200 Market St, San Francisco, CA',
destinationPlace: 'Estados Unidos',
codeCountry: 1,
currencyCode: 2,
exchangeRate: 6.96,
paymentMethodCode: 1,
details: [{
activityEconomic: '620100',
codeProductSin: '83141',
description: 'Desarrollo de software a medida',
quantity: 1,
unitMeasure: 58,
priceUnit: 5000.00
}]
})
});