Leggere la cronologia di una prenotazione
Unisce l'audit trail della prenotazione e le consegne di notifica generate dai suoi eventi (stesso correlationId o entityId). channels elenca le connessioni attive del fornitore: mode pull significa che il canale legge la disponibilità quando gli serve, senza sottoscrizione. Sola lettura, ultimi 200 record per fonte.
/api/v1/bookings/{id}/activityAuthorization
Path
curl "https://api.takoconnect.com/api/v1/bookings/{id}/activity" \
-H "Authorization: Bearer $TAKO_API_KEY"{
"channels": [
{
"channelConnectionId": "channel-connection-id",
"code": "code",
"name": "name",
"logoUrl": "logoUrl",
"mode": "push",
"status": "PENDING",
"type": "type",
"syncJobId": "sync-job-id",
"errorCode": "errorCode",
"errorMessage": "errorMessage",
"nextRetryAt": "2030-06-15T08:00:00.000Z",
"at": "2030-06-15T08:00:00.000Z"
}
],
"events": [
{
"id": "entity-id",
"kind": "audit",
"at": "2030-06-15T08:00:00.000Z",
"action": "action",
"actorType": "USER",
"actorName": "actorName",
"source": "source",
"after": {}
}
]
}Autorizzazione
AuthorizationBearer <token>
Chiave tenant emessa dalla dashboard o da POST /api-keys, usata come Bearer token.
Scope richiesti: bookings:read
In: header
Parametri di percorso
idstring
Risposte
200object
Operazione riuscita. Lo schema descrive il JSON restituito.
Mostra schema
channelsobject[]
Mostra proprietà
channelConnectionIdstring
codestring
namestring
logoUrlstring | null
modeenum
pushpull
statusenum | null
PENDINGRUNNINGRETRYINGSUCCEEDEDFAILEDRETRIED
typestring | null
syncJobIdstring | null
errorCodestring | null
errorMessagestring | null
nextRetryAtdatetime | null
date-time
atdatetime | null
date-time
eventsobject | object[]
Mostra proprietà
Variante 1
idstring
kindenum
audit
atdatetime
date-time
actionstring
actorTypeenum
USERAPI_KEYSYSTEM
actorNamestring | null
sourcestring
afterany | null
Valore JSON libero; non usare per dedurre campi strutturati non documentati.
Variante 2
idstring
kindenum
delivery
atdatetime
date-time
syncJobIdstring
typestring
channelstring
statusstring
attemptinteger
errorCodestring | null
400object
Validazione o regola di dominio non soddisfatta; correggere la richiesta.
401object
Credenziale assente, revocata, scaduta o non valida.
403object
Scope, ruolo o tipo di credenziale non consentito.
404object
Risorsa assente o non accessibile nel perimetro risolto.
409object
Conflitto di stato, capacità, versione o riferimenti; rileggere lo stato e correggere.
500object
Errore interno. Prima di ripetere una mutazione verificarne l'esito.