cURL
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" ] } ] }
Registra la finalización de un evento significativo (contingencia)
Debe ser siempre 'application/json'
"application/json"
Token obtenido del login. Formato: 'Token '
"Token abc123def456"
ID del punto de venta
Código asignado al evento
Evento finalizado exitosamente
Show child attributes