Webhooks & revision
Webhooks og revisionslogs — reagér på events og spor ændringer.
Webhook
Endpoints
| POST | /internal/signatures/send-email | Signature email relay |
| POST | /internal/signatures/webhook | Signature middleware webhook |
| GET | /webhooks | Henter samlingen af Webhook-ressourcer. |
| POST | /webhooks | Opretter en Webhook-ressource. |
| GET | /webhooks/{id} | Henter en Webhook-ressource. |
| PATCH | /webhooks/{id} | Opdaterer Webhook-ressourcen. |
| DELETE | /webhooks/{id} | Fjerner Webhook-ressourcen. |
| POST | /webhooks/e_invoice/incoming_cost | Incoming cost invoice webhook |
| POST | /webhooks/e_invoice/status | Opretter en Webhook-ressource. |
| POST | /webhooks/stripe | Opretter en Webhook-ressource. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | string | |
| url | string | |
| active | boolean | |
| events | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Revisions Log
Endpoints
| GET | /audit-logs | Henter samlingen af AuditLog-ressourcer. |
| GET | /audit-logs/{id} | Henter en AuditLog-ressource. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| 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) |
Webhook-log
Endpoints
| GET | /webhook-logs | Henter samlingen af WebhookLog-ressourcer. |
| GET | /webhook-logs/{id} | Henter en WebhookLog-ressource. |
Skemafelter
| Felt | Type | Beskrivelse |
|---|---|---|
| id | string | |
| url | string | |
| event | string | |
| statusCode | integernull | |
| responseTime | integer | |
| response | string |