curl -X POST "https://sandbox.cucu.bo/api/v1/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/credit-note" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"pointOfSaleId": "660e8400-e29b-41d4-a716-446655440004",
"notaType": "CREDITO",
"paymentMethodCode": 1,
"returnedDetails": [
{
"activityEconomic": "620100",
"codeProductSin": "83141",
"description": "Devolucion parcial - Servicio de software",
"quantity": 1,
"unitMeasure": 58,
"priceUnit": 200.00
}
]
}'
{
"success": true,
"message": "Nota creada exitosamente",
"data": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"invoiceNumber": 10,
"cuf": "3983G8305613443F748GCBGCD4765FB93313BE59F1A7AF25FCFC9BG85",
"state": "VALIDATED",
"clientBusinessName": "EMPRESA DEMO S.R.L.",
"amountTotal": 200.00,
"emissionDate": "2026-02-22T10:30:00",
"pdfUrl": "https://sandbox.cucu.bo/api/v1/public/invoice/3983G...G85/pdf",
"xmlUrl": "https://sandbox.cucu.bo/api/v1/public/invoice/3983G...G85/xml"
},
"timestamp": "2026-02-22T10:30:00"
}
Emite una nota de credito o debito contra una factura original validada.
curl -X POST "https://sandbox.cucu.bo/api/v1/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/credit-note" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"pointOfSaleId": "660e8400-e29b-41d4-a716-446655440004",
"notaType": "CREDITO",
"paymentMethodCode": 1,
"returnedDetails": [
{
"activityEconomic": "620100",
"codeProductSin": "83141",
"description": "Devolucion parcial - Servicio de software",
"quantity": 1,
"unitMeasure": 58,
"priceUnit": 200.00
}
]
}'
{
"success": true,
"message": "Nota creada exitosamente",
"data": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"invoiceNumber": 10,
"cuf": "3983G8305613443F748GCBGCD4765FB93313BE59F1A7AF25FCFC9BG85",
"state": "VALIDATED",
"clientBusinessName": "EMPRESA DEMO S.R.L.",
"amountTotal": 200.00,
"emissionDate": "2026-02-22T10:30:00",
"pdfUrl": "https://sandbox.cucu.bo/api/v1/public/invoice/3983G...G85/pdf",
"xmlUrl": "https://sandbox.cucu.bo/api/v1/public/invoice/3983G...G85/xml"
},
"timestamp": "2026-02-22T10:30:00"
}
VALIDATED. No se puede emitir una nota contra facturas rechazadas, anuladas o pendientes.| Parametro | Tipo | Req | Descripcion |
|---|---|---|---|
id | UUID | Si | UUID de la factura original contra la que se emite la nota |
| Parametro | Tipo | Req | Descripcion |
|---|---|---|---|
X-API-Key | string | Si | Tu API Key |
Content-Type | string | Si | application/json |
| Campo | Tipo | Req | Descripcion |
|---|---|---|---|
pointOfSaleId | UUID | Si | UUID del punto de venta registrado en SIAT |
notaType | string | Si | Tipo de nota: CREDITO o DEBITO |
paymentMethodCode | integer | Si | Codigo de metodo de pago (1-308). 1 = Efectivo |
cardNumber | string | No | Numero de tarjeta (si aplica al metodo de pago) |
observations | string | No | Observaciones (max 500 caracteres) |
isTicket | boolean | No | true para generar ticket 80mm ademas de A4 |
returnedDetails | array | Si | Items devueltos/ajustados (minimo 1) |
| Campo | Tipo | Req | Descripcion |
|---|---|---|---|
activityEconomic | string | Si | Codigo de actividad economica CAEB |
codeProductSin | string | Si | Codigo de producto/servicio del catalogo SIN |
codeProduct | string | No | Codigo interno del producto |
description | string | Si | Descripcion del producto o servicio devuelto (max 500) |
quantity | number | Si | Cantidad devuelta (mayor a 0) |
unitMeasure | integer | Si | Unidad de medida SIN. 58 = Servicio, 1 = Unidad |
priceUnit | number | Si | Precio unitario en bolivianos (mayor a 0) |
amountDiscount | number | No | Descuento aplicado al item (default 0) |
serialNumber | string | No | Numero de serie (si aplica) |
imeiNumber | string | No | Numero IMEI (si aplica) |
curl -X POST "https://sandbox.cucu.bo/api/v1/invoices/a1b2c3d4-e5f6-7890-abcd-ef1234567890/credit-note" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"pointOfSaleId": "660e8400-e29b-41d4-a716-446655440004",
"notaType": "CREDITO",
"paymentMethodCode": 1,
"returnedDetails": [
{
"activityEconomic": "620100",
"codeProductSin": "83141",
"description": "Devolucion parcial - Servicio de software",
"quantity": 1,
"unitMeasure": 58,
"priceUnit": 200.00
}
]
}'
{
"success": true,
"message": "Nota creada exitosamente",
"data": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"invoiceNumber": 10,
"cuf": "3983G8305613443F748GCBGCD4765FB93313BE59F1A7AF25FCFC9BG85",
"state": "VALIDATED",
"clientBusinessName": "EMPRESA DEMO S.R.L.",
"amountTotal": 200.00,
"emissionDate": "2026-02-22T10:30:00",
"pdfUrl": "https://sandbox.cucu.bo/api/v1/public/invoice/3983G...G85/pdf",
"xmlUrl": "https://sandbox.cucu.bo/api/v1/public/invoice/3983G...G85/xml"
},
"timestamp": "2026-02-22T10:30:00"
}
returnedDetails se marcan con codigoDetalleTransaccion=2 (devolucion)codigoDetalleTransaccion=1montoTotalOriginal, montoTotalDevuelto, montoDescuentoCreditoDebito, montoEfectivoCreditoDebitoServicioFacturacionDocumentoAjuste (sector 24)montoGiftCard > 0, el paymentMethodCode debe incluir el codigo 27 (Gift Card). Error SIAT 1050 si se omite./f/{cuf} o los endpoints publicos, igual que una factura regular.