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. Themarking
property 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. Themarking
property of the related invoice will be set atdelivered
in case of B2B invoice ordelivered-pa
in case of B2G invoice. -
MC
(Mancata consegna) Received when SDI can not deliver the invoice to the recipient. Themarking
property 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. Themarking
property of the related invoice will be set ataccepted-pa
in caso of outcomeEC01
orrejected-pa
in case of outcomeEC02
. -
DT
(Notifica decorrenza termini) Received when a PA doesn't reaply with acceptance or rejection within 15 days. Themarking
property 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. Themarking
property 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
.