{{baseUrl}}/simulate/:type
POST {{baseUrl}}/simulate/:type
This service in valid only in Sandbox
This endpoint facilitates testing of services within a sandbox environment, providing the ability to simulate various functionalities:
Supplier Invoice Simulation: Enables the submission of supplier invoices. This service accepts simulated invoices without specific restrictions on the 'codice_destinatario'. Upon submission, the invoice is sent to your account's configured endpoints for the 'supplier-invoice' event.
Customer Notification Simulation: Allows the simulation of customer notifications with various types (NS, RC, MC, NE, DT, AT). It triggers notifications sent to your configured endpoints for the 'customer-notification' event.
NS (Notifica di scarto) Received when SDI reject your invoice because it contains errors. The marking property of the related invoice will be set at rejected.
RC (Ricevuta consegna) Received when SDI delivers your invoice. The marking property of the related invoice will be set at delivered in case of B2B invoice or delivered-pa in case of B2G invoice.
MC (Mancata consegna) Received when SDI can not deliver the invoice to the recipient. The marking property of the related invoice will be set at not-delivered.
NE (Notifica esito) Received from SDI when a PA decided to accept or reject your invoice. The marking property of the related invoice will be set at accepted-pa in caso of outcome EC01 or rejected-pa in case of outcome EC02.
DT (Notifica decorrenza termini) Received when a PA doesn't reaply with acceptance or rejection within 15 days. The marking property of the related invoice will be set at deadline-terms.
AT (Attestazione trasmissione con impossibilità di recapito) Received when SDI can't deliver your invoice to PA after 10 days. The marking property of the related invoice will be set at not-delivered.
- Legal Storage Receipt Simulation: Simulates the legal storage receipt event, dispatching a PreservedDocument payload to your pre-configured endpoint as a POST request.
These services serve distinct purposes, allowing controlled testing of specific functionalities within a simulated environment.
Request Body
{"fattura_elettronica_header"=>{"dati_trasmissione"=>{"codice_destinatario"=>"<string>"}, "cedente_prestatore"=>{"dati_anagrafici"=>{"id_fiscale_iva"=>{"id_paese"=>"<string>", "id_codice"=>"<string>"}, "anagrafica"=>{"denominazione"=>"<string>"}, "regime_fiscale"=>"<string>"}, "sede"=>{"indirizzo"=>"<string>", "cap"=>"<string>", "comune"=>"<string>", "provincia"=>"<string>", "nazione"=>"<string>"}}, "cessionario_committente"=>{"dati_anagrafici"=>{"id_fiscale_iva"=>{"id_paese"=>"<string>", "id_codice"=>"<string>"}, "anagrafica"=>{"denominazione"=>"<string>"}}, "sede"=>{"indirizzo"=>"<string>", "cap"=>"<string>", "comune"=>"<string>", "provincia"=>"<string>", "nazione"=>"<string>"}}}, "fattura_elettronica_body"=>[{"dati_generali"=>{"dati_generali_documento"=>{"tipo_documento"=>"<string>", "divisa"=>"<string>", "data"=>"<string>", "numero"=>"<string>"}}, "dati_beni_servizi"=>{"dettaglio_linee"=>[{"numero_linea"=>"<integer>", "descrizione"=>"<string>", "prezzo_unitario"=>"<string>", "prezzo_totale"=>"<string>", "aliquota_iva"=>"<string>"}, {"numero_linea"=>"<integer>", "descrizione"=>"<string>", "prezzo_unitario"=>"<string>", "prezzo_totale"=>"<string>", "aliquota_iva"=>"<string>"}], "dati_riepilogo"=>[{"aliquota_iva"=>"<string>", "imponibile_importo"=>"<string>", "imposta"=>"<string>"}, {"aliquota_iva"=>"<string>", "imponibile_importo"=>"<string>", "imposta"=>"<string>"}]}}, {"dati_generali"=>{"dati_generali_documento"=>{"tipo_documento"=>"<string>", "divisa"=>"<string>", "data"=>"<string>", "numero"=>"<string>"}}, "dati_beni_servizi"=>{"dettaglio_linee"=>[{"numero_linea"=>"<integer>", "descrizione"=>"<string>", "prezzo_unitario"=>"<string>", "prezzo_totale"=>"<string>", "aliquota_iva"=>"<string>"}, {"numero_linea"=>"<integer>", "descrizione"=>"<string>", "prezzo_unitario"=>"<string>", "prezzo_totale"=>"<string>", "aliquota_iva"=>"<string>"}], "dati_riepilogo"=>[{"aliquota_iva"=>"<string>", "imponibile_importo"=>"<string>", "imposta"=>"<string>"}, {"aliquota_iva"=>"<string>", "imponibile_importo"=>"<string>", "imposta"=>"<string>"}]}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":"true","message":"simulate supplier_invoice sended","error":"null"}