Skip to main content

Transfer webhooks

Transfer can notify your application when a document is accepted by A-Cube's invoicing service or when processing fails. A-Cube configures your notification URL during onboarding.

Confirm your setup

Contact A-Cube to enable webhooks for your destination, input format and upload channel. For complete API examples, follow UBL JSON to KSeF or CSV to SdI.

Configure the webhook​

Provide A-Cube with:

  • Your destination and environment, sandbox or production.
  • Your notification URL.
  • The input format and upload channel you will use.

The notification URL is configured on your account; it is not a field of the upload request. Each call carries an HTTP signature.

Before replacing polling, test both a successful invoice and a failing file in sandbox.

Payload​

Transfer sends the same payload to your notification URL for both outcomes, and only for documents with an End-to-end ID. Transfer does not generate one, so if you haven't provided one with your upload, read the outcome with the tracking API.

A document accepted by A-Cube's invoicing service:

{
"e2e_id": "<correlation-id>",
"status": "success",
"transmission_uuid": "<document-uuid>",
"error_message": "Document forwarded to GovDe",
"code": null
}

A document that stopped:

{
"e2e_id": "<correlation-id>",
"status": "failure",
"transmission_uuid": null,
"error_message": "violations found, see details in the ACube dashboard or via API",
"code": "VALIDATION_ERROR"
}
FieldMeaning
e2e_idThe End-to-end ID of the document.
statussuccess or failure.
transmission_uuidThe document's UUID in the invoicing service, or null if it has none.
error_messageA human-readable message, also present on success.
codeThe code of the first violation, or null if there are none.

success means the document was accepted by A-Cube's invoicing service. It does not confirm acceptance by SdI or delivery on Peppol. Continue tracking transmission_uuid in that service.

For full error details, read the upload's documents with the tracking API. Include errors on the input file, not only invoices sent to the destination. See Violation codes for corrections.

Correlation and recovery​

e2e_id is the webhook's correlation value. For the Peppol-to-SdI flow, it is derived from invoice data.

code E2E_ID_ALREADY_USED means Transfer refused another document with an ID already in use: the document that owns the ID is not affected, so do not mark it as failed.

Transfer retries on any 4xx or 5xx response except 404. Store the webhook and its transmission_uuid before performing further processing, and handle repeated webhooks without sending the invoice again. If an expected webhook is missing, check the upload through the tracking API; the absence of a webhook does not mean the upload failed.

Legacy payloads​

Italy and Peppol integrations can also receive these calls, in addition to the payload above. They are not part of the webhook contract: use the payload above for new integrations.

If a success URL is configured on your account, Italy and Peppol send it one of these when the invoicing service accepts a document:

{
"e2e_id": "<correlation-id>",
"gov_it_uuid": "<invoice-uuid>"
}
{
"e2e_id": "<correlation-id>",
"peppol_uuid": "<document-uuid>"
}

Use gov_it_uuid to check the SdI outcome, and peppol_uuid to follow the document on the network.

Italy also sends this to your notification URL when a document has validation errors:

{
"e2e_id": "<correlation-id>",
"error_message": "Found violations invoice validation, for more information check the violations field",
"violations": [
{
"propertyPath": "<affected-field>",
"message": "<validation-message>"
}
]
}

The violations value is passed through from the invoicing service. It can be a list as above, or a validation response object containing its own violations list.

Tax authority and network webhooks​

The destination's invoicing service has separate notifications for the outcome after Transfer. See the webhooks of each destination:

Configure these separately if your integration needs them. You can also follow the destination outcome through its API, as shown in UBL JSON to KSeF and CSV to SdI.