Skip to main content
POST
/
event
/
end
Finalizar evento significativo
curl --request POST \
  --url https://sandbox.cucu.bo/api/v1/event/end \
  --header 'Content-Type: <content-type>' \
  --header 'cucukey: <cucukey>' \
  --data '
{
  "posId": 1,
  "eventCode": "1IQIZ3G1KHYHGQ"
}
'
{
  "message": "COMPLETED",
  "errors": null,
  "success": true,
  "data": [
    {
      "packageId": 6,
      "siatStatusDescription": "VALIDADA",
      "siatStatus": 908,
      "siatCodeReception": "396f5d6f-c0eb-11ec-8238-859ee1bceb21",
      "docSector": 1,
      "typeInvoice": 1,
      "process": true,
      "posId": 120,
      "branchId": 0,
      "crc32": [
        "CF088B9A"
      ]
    }
  ]
}

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

eventCode
string
required

Código asignado al evento

Response

200 - application/json

Evento finalizado exitosamente

message
string
errors
string | null
success
boolean
data
object[]