Receiving a notification for a sent invoice
All the notifications received by SDI will be dispatched to your configured endpoints for the event customer-notification.
The notification
{
"notification": {
"uuid": <Notification UUID>,
"invoice_uuid": <Invoice UUID>,
"created_at": <Creation date>,
"type": <Notification type>,
"file_name": <File name>,
"message": <Notification JSON>,
"downloaded": <Downloaded boolean>,
"downloaded_at": <Download date>
},
"invoice": <Invoice JSON>
}If "downloaded" is true, the "downloaded_at" property exists, else it doesn't exist.
The <Notification type> is a code which identify the event:
-
NS(Notifica di scarto) Received when SDI reject your invoice because it contains errors. Themarkingproperty of the related invoice will be set atrejected. -
MT(File metadati) Received along with the supplier invoice when delivered by SDI. -
RC(Ricevuta consegna) Received when SDI delivers your invoice. Themarkingproperty of the related invoice will be set atdeliveredin case of B2B invoice ordelivered-pain case of B2G invoice. -
MC(Mancata consegna) Received when SDI can not deliver the invoice to the recipient. Themarkingproperty of the related invoice will be set atnot-delivered. -
EC(Esito committente) Sent to the SDI when a PA decide to accept or reject an invoice (only for PA users). -
SE(Scarto esito committente) Received when SDI doesn't accept an EC notification because it's not valid (only for PA users). -
NE(Notifica esito) Received from SDI when a PA decided to accept or reject your invoice. Themarkingproperty of the related invoice will be set ataccepted-pain caso of outcomeEC01orrejected-pain case of outcomeEC02. -
DT(Notifica decorrenza termini) Received when a PA doesn't reaply with acceptance or rejection within 15 days. Themarkingproperty of the related invoice will be set atdeadline-terms. -
AT(Attestazione trasmissione con impossibilità di recapito) Received when SDI can't deliver your invoice to PA after 10 days. Themarkingproperty of the related invoice will be set atnot-delivered.
If an error happens during the acquisition of a notification, the marking property of the related invoice will be set at notification-error.