Skip to main content
POST
/
invoice
/
electronic
/
sale
/
anulation
Anula una factura electrónica de venta
curl --request POST \
  --url https://sandbox.cucu.bo/api/v1/invoice/electronic/sale/anulation \
  --header 'Content-Type: <content-type>' \
  --header 'cucukey: <cucukey>' \
  --data '
{
  "invoiceCode": "D80C9B77",
  "posId": 1,
  "branchId": 1,
  "codeMotive": 1,
  "invoiceNumber": 5
}
'
{
  "message": "COMPLETED_SALE",
  "errors": null,
  "success": true,
  "data": {
    "invoiceNumber": 5,
    "cuf": "1D2C888524A59DA163372084D5C6D0EF29B39A4212405AA79B33246D74",
    "siatCodeState": 905,
    "siatDescriptionStatus": "ANULACION CONFIRMADA",
    "qrCode": "https://pilotosiat.impuestos.gob.bo/consulta/QR?nit=6822046012&cuf=1D2C888524A59DA163372084D5C6D0EF29B39A4212405AA79B33246D74&numero=5&t=2",
    "invoiceCode": "D80C9B77"
  }
}

Headers

Content-Type
string
default:application/json
required

Debe ser siempre 'application/json'

Example:

"application/json"

cucukey
string
default:Token eyJhbGciOiJIUzUxMiJ9...
required

Token obtenido del login. Formato: 'Token '

Example:

"Token abc123def456"

Body

application/json
posId
integer
required

ID del punto de venta

branchId
integer
required

Id sucursal

invoiceCode
string
required

Código de factura que está siendo anulado.

codeMotive
integer
required

Autogenerado desde catálogos por el agrupador 7. (Indica el motivo por el cual la Factura está siendo anulada).

invoiceNumber
integer
required

Número de factura que está siendo anulado.

Response

Factura anulada exitosamente

invoiceNumber
integer

Número de factura emitida.

cuf
string

Código único de factura.

siatCodeState
integer

Código de estado enviado por el SIN.

siatDescriptionStatus
string

Descripción del estado

invoiceCode
string

Código corto de la factura (invoiceCode).

qrCode
string

URL del código QR para validación