Webhook e audit
Webhook e log di audit — reagisci agli eventi e traccia i cambiamenti.
Webhook
Endpoint
| POST | /internal/signatures/send-email | Signature email relay |
| POST | /internal/signatures/webhook | Signature middleware webhook |
| GET | /webhooks | Recupera la raccolta di risorse Webhook. |
| POST | /webhooks | Crea una risorsa Webhook. |
| GET | /webhooks/{id} | Recupera una risorsa Webhook. |
| PATCH | /webhooks/{id} | Aggiorna la risorsa Webhook. |
| DELETE | /webhooks/{id} | Rimuove la risorsa Webhook. |
| POST | /webhooks/e_invoice/incoming_cost | Incoming cost invoice webhook |
| POST | /webhooks/e_invoice/status | Crea una risorsa Webhook. |
| POST | /webhooks/stripe | Crea una risorsa Webhook. |
Campi schema
| Campo | Tipo | Descrizione |
|---|---|---|
| id | string | |
| url | string | |
| active | boolean | |
| events | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Log di audit
Endpoint
| GET | /audit-logs | Recupera la raccolta di risorse AuditLog. |
| GET | /audit-logs/{id} | Recupera una risorsa AuditLog. |
Campi schema
| Campo | Tipo | Descrizione |
|---|---|---|
| id | string | |
| action | string | |
| executorEmployee | mixed | |
| relatedEmployee | mixed | |
| relationId | string | |
| relationName | string | |
| metadata | array | |
| details | stringnull | A free-text note attached to the action — e.g. the optional reason a `resourcing-allocation-declined` entry carries, written by {@see \App\Api\State\Resourcing\DeclineRequestProcessor}. Nullable: most actions (create/confirm/delete/…) carry no note and leave this null, and a decline with no reason given leaves it null too — the reason is optional, not the column. |
| createdAt | string (date-time) |
Registro webhook
Endpoint
| GET | /webhook-logs | Recupera la raccolta di risorse WebhookLog. |
| GET | /webhook-logs/{id} | Recupera una risorsa WebhookLog. |
Campi schema
| Campo | Tipo | Descrizione |
|---|---|---|
| id | string | |
| url | string | |
| event | string | |
| statusCode | integernull | |
| responseTime | integer | |
| response | string |