Skip to main content
POST
/
event
/
start
curl --request POST \
  --url https://sandbox.cucu.bo/api/v1/event/start \
  --header 'Content-Type: <content-type>' \
  --header 'cucukey: <cucukey>' \
  --data '
{
  "posId": 1,
  "codeMotive": 1,
  "description": "TEST INVOICE EDU"
}
'
{
"message": "COMPLETED",
"errors": null,
"success": true,
"data": {
"description": "TEST INVOICE EDU",
"descriptionMotive": "CORTE DEL SERVICIO DE INTERNET",
"eventCode": "XM8VYT1I4FUIPSQM",
"dateInitEvent": "2022-04-21T16:06:07.136",
"dateEndEvent": null,
"siatReceptionCode": null,
"cufEvent": "BQUFVQnVVOkdBNz0U2RTU3MkM2REY=Q3nCrHpCTldFV1VFGMjQxREZDMERCQ",
"controlCodeEvent": "0BE7EBAAAD56D74",
"cafc": "134E1F5FE954D",
"codeMotive": 5,
"isEndEvent": null,
"pack": null
}
}

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

codeMotive
integer
required

Código del motivo (ver agrupador 6 de catálogos)

description
string
required

Descripción del evento significativo

branchId
integer | null

ID de la sucursal

dateInitEvent
string<date-time> | null

Fecha de inicio del evento (opcional)

dateEndEvent
string<date-time> | null

Fecha de finalización del evento (opcional)

Response

200 - application/json

Evento iniciado exitosamente

message
string
errors
string | null
success
boolean
data
object