---
title: "Sdi Webhook"
method: POST
path: "/api/sdi/webhook/{provider}/{token}"
tags: ["autopilot"]
---

# Sdi Webhook

`POST /api/sdi/webhook/{provider}/{token}`

## Request

- Base URL: `https://api.taxcompass.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.taxcompass.it/api/sdi/webhook/{provider}/{token}`
- Auth: none declared

Authenticate one delivery, log its receipts, move the invoices they name.

## Path parameters

- `provider` string, required
- `token` string, required

## Response `200`

Successful Response

- WebhookAck: What the provider gets back — a count, never a document's contents.
  - `received` integer, required: Receipts decoded out of this delivery.
  - `applied` integer, required: Receipts matched to an invoice and logged.
  - `unknown` integer, required: Receipts naming a provider id we do not hold.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/taxcompass/apis/taxcompass-api.md) · [All operations](https://skmtc.dev/taxcompass/apis/taxcompass-api/llms.txt) · [OpenAPI document](https://skmtc.dev/taxcompass/apis/taxcompass-api/revisions/fef5fc6a9b91?raw)
