Cancel (storno) a previously issued document

Sent when the customer's automation cancels an invoice (for example after a refund).
data.original_document identifies the document you issued earlier. Answer with the
cancellation document (200), or 202 and report it on data.callback_url.
Only sent if your manifest declares features.invoicing.capabilities.storno: true.

Payload

Common envelope of every message (Standard Webhooks payload format).

const
enum
required

Message type.

Allowed:
date-time
required

When the message was created (not the attempt time).

boolean
Defaults to false

Test message – validate it, but do not issue a legally valid document.

data
object
required
Headers
string
required
length ≤ 100

Unique message id, identical on every retry of the same message. Use it for idempotency.

integer
required

Unix timestamp (seconds) of this attempt. Reject if more than 5 minutes off.

string
required

Space-separated v1,<base64> signatures.

Responses

5XX

Temporary failure. SAPI retries the message with the same webhook-id.

LoadingLoading…