This service allows you to handle interactions with the Italian SDI (Sistema Di Interscambio)
You can configure your account to send invoices directly to the legal storage by setting the api_configuration to your needs
In order to operate, you should register our Recipient Code on the Italian Revenue Agency's website. Please follow this step-by-step guide and provide the following code when needed: JKKZDGR
Create an BusinessRegistryConfiguration with POST /business_registry_configurations for your fiscal_id and your email
A mail will be sent to your address to activate the account on the legal storage platform, if required.
Create an ApiConfiguration for your BusinessRegistryConfiguration with POST /api_configurations. This endpoint can be configured to receive all the notifications with a callback.
Create an XML invoice on the endpoint relative to your configuration
To see an example of the callback objects, plese check the Callbacks tab in the /api_configurations request
Please note that in the English translation:
Customer invoices: Fatture attive
Supplier invoices: Fatture passive
Legal storage: Certificazione a norma
Legal Storage is the service that enables the legal preservation for your documents. All the stored documents are available into the legal storage management software, a third party software.
When creating a BusinessRegistryConfiguration, you will be asked to provide an email address which will be registed on the platform. You will receive an email containing all the steps to complete the registration and access the platform.
If you receive a callback but you have no credit left on your wallet, your account will be temporarily suspended: when this happens, you will be sent a reminder email immediately. In order to re-activate it after a wallet recharge, you would need to submit a PATCH request to /business_registry_configurations/{fiscal_id}/activate
Invoices to the Public Administration are automatically detected and signed.
Create the configurations of your callback endpoints.
All the notifications received by SDI will be dispatched to your configured endpoints.
The fiscal_id is the unique identifier of the business that you want to configure.
You can create separate endpoints for each event: the event code can be one of supplier-invoice, customer-invoice, customer-notification, legal-storage-missing-vat, legal-storage-receipt
| fiscal_id | string Default: "<string>" |
Array of objects 2 items [ items ] |
Array of objects (ApiConfiguration-read) <= 2 items [ items ] The list of ApiConfiguration created for this fiscal_id | |
| message | string |
| success | boolean |
| error | string <nullable> |
{- "fiscal_id": "000133445566",
- "callbacks": [
- {
- "event": "invoice_sent",
- "auth_header": "Bearer 123456789",
- "field": "data"
}
]
}{- "data": [
- {
- "id": "000133445566",
- "callbacks": [
- {
- "event": "invoice_sent",
- "auth_header": "Bearer 123456789",
- "field": "data"
}
]
}
], - "message": "string",
- "success": true,
- "error": "string"
}{- "event": "customer-invoice",
- "data": {
- "invoice": {
- "uuid": "9b8dddbd-7900-48c6-b159-0f60cc9b413c",
- "created_at": "2022-09-13T10:39:14+00:00",
- "filename": "IT10442360961_06XA6.xml",
- "file_id": 1084646898320,
- "payload": {
- "fattura_elettronica_header": {
- "dati_trasmissione": {
- "id_trasmittente": {
- "id_paese": "IT",
- "id_codice": "10442360961"
}, - "progressivo_invio": "06V27",
- "formato_trasmissione": "FPR12",
- "codice_destinatario": "123123123",
- "contatti_trasmittente": null,
- "pec_destinatario": null
}, - "cedente_prestatore": {
- "dati_anagrafici": {
- "id_fiscale_iva": {
- "id_paese": "IT",
- "id_codice": "prova_1663065381275"
}, - "codice_fiscale": null,
- "anagrafica": {
- "denominazione": "John Doe",
- "nome": null,
- "cognome": null,
- "titolo": null,
- "cod_eori": null
}, - "albo_professionale": null,
- "provincia_albo": null,
- "numero_iscrizione_albo": null,
- "data_iscrizione_albo": null,
- "regime_fiscale": "RF01"
}, - "sede": {
- "indirizzo": "Via di Qua, 1",
- "numero_civico": null,
- "cap": "20145",
- "comune": "Milano",
- "provincia": "MI",
- "nazione": "IT"
}, - "stabile_organizzazione": null,
- "iscrizione_rea": null,
- "contatti": null,
- "riferimento_amministrazione": null
}, - "rappresentante_fiscale": null,
- "cessionario_committente": {
- "dati_anagrafici": {
- "id_fiscale_iva": {
- "id_paese": "IT",
- "id_codice": "09876543211"
}, - "codice_fiscale": null,
- "anagrafica": {
- "denominazione": "Jane Doe",
- "nome": null,
- "cognome": null,
- "titolo": null,
- "cod_eori": null
}
}, - "sede": {
- "indirizzo": "Via di La, 2",
- "numero_civico": null,
- "cap": "20145",
- "comune": "Milano",
- "provincia": "MI",
- "nazione": "IT"
}, - "stabile_organizzazione": null,
- "rappresentante_fiscale": null
}, - "terzo_intermediario_o_soggetto_emittente": null,
- "soggetto_emittente": null
}, - "fattura_elettronica_body": [
- {
- "dati_generali": {
- "dati_generali_documento": {
- "tipo_documento": "TD01",
- "divisa": "EUR",
- "data": "2018-07-10",
- "numero": "1",
- "dati_ritenuta": null,
- "dati_bollo": null,
- "dati_cassa_previdenziale": null,
- "sconto_maggiorazione": null,
- "importo_totale_documento": null,
- "arrotondamento": null,
- "causale": null,
- "art73": null
}, - "dati_ordine_acquisto": null,
- "dati_contratto": null,
- "dati_convenzione": null,
- "dati_ricezione": null,
- "dati_fatture_collegate": null,
- "dati_sal": null,
- "dati_ddt": null,
- "dati_trasporto": null,
- "fattura_principale": null
}, - "dati_beni_servizi": {
- "dettaglio_linee": [
- {
- "numero_linea": 1,
- "tipo_cessione_prestazione": null,
- "codice_articolo": null,
- "descrizione": "Descrizione articolo",
- "quantita": null,
- "unita_misura": null,
- "data_inizio_periodo": null,
- "data_fine_periodo": null,
- "prezzo_unitario": "10.00",
- "sconto_maggiorazione": null,
- "prezzo_totale": "10.00",
- "aliquota_iva": "22.00",
- "ritenuta": null,
- "natura": null,
- "riferimento_amministrazione": null,
- "altri_dati_gestionali": null
}
], - "dati_riepilogo": [
- {
- "aliquota_iva": "22.00",
- "natura": null,
- "spese_accessorie": null,
- "arrotondamento": null,
- "imponibile_importo": "10.00",
- "imposta": "2.20",
- "esigibilita_iva": null,
- "riferimento_normativo": null
}
]
}, - "dati_veicoli": null,
- "dati_pagamento": null,
- "allegati": null
}
]
}
}
}
}| fiscal_id | string Default: "<string>" Filters for a fiscal_id |
Array of objects (ApiConfiguration-read) <= 2 items [ items ] | |
| message | string |
| success | boolean |
| error | string <nullable> |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/api_configurations?fiscal_id=SOME_STRING_VALUE"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": [
- {
- "id": "000133445566",
- "callbacks": [
- {
- "event": "invoice_sent",
- "auth_header": "Bearer 123456789",
- "field": "data"
}
]
}
], - "message": "string",
- "success": true,
- "error": "string"
}| id required | string Default: "<string>" The id of the ApiConfiguration |
| data | string |
| message | string |
| success | boolean |
| error | string <nullable> |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/api_configurations/%7Bid%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": null,
- "message": "Deleted",
- "success": true,
- "error": "string"
}Both standard and simplified invoices are supported, to private entities or to the Public Administration
Create a new invoice and send it to the government channel. You should explicit the request body format using the content-type header. Your invoice will be queued instantly and you will get back the invoice UUID as a callback
required | object (FatturaPAFatturaElettronicaHeader-read) |
required | Array of objects (FatturaPAFatturaElettronicaBody-read) 2 items [ items ] |
object | |
| message | string |
| success | boolean |
| error | string <nullable> |
{- "fattura_elettronica_header": {
- "dati_trasmissione": {
- "id_trasmittente": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_destinatario": "<string>",
- "contatti_trasmittente": {
- "telefono": "<string>",
- "email": "<string>"
}, - "pec_destinatario": "<string>"
}, - "cedente_prestatore": {
- "dati_anagrafici": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_fiscale": "<string>",
- "anagrafica": {
- "denominazione": "string",
- "nome": "string",
- "cognome": "string",
- "titolo": "string",
- "cod_eori": "string"
}, - "albo_professionale": "<string>",
- "provincia_albo": "<string>",
- "numero_iscrizione_albo": "<string>",
- "data_iscrizione_albo": "<dateTime>",
- "regime_fiscale": "<string>"
}, - "sede": {
- "indirizzo": "<string>",
- "numero_civico": "<string>",
- "cap": "<string>",
- "comune": "<string>",
- "provincia": "<string>",
- "nazione": "<string>"
}, - "stabile_organizzazione": {
- "indirizzo": "<string>",
- "numero_civico": "<string>",
- "cap": "<string>",
- "comune": "<string>",
- "provincia": "<string>",
- "nazione": "<string>"
}, - "iscrizione_rea": {
- "ufficio": "<string>",
- "numero_rea": "<string>",
- "capitale_sociale": "<string>",
- "socio_unico": "<string>",
- "stato_liquidazione": "<string>"
}, - "contatti": {
- "telefono": "<string>",
- "fax": "<string>",
- "email": "<string>"
}, - "riferimento_amministrazione": "<string>"
}, - "rappresentante_fiscale": {
- "dati_anagrafici": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_fiscale": "<string>",
- "anagrafica": {
- "denominazione": "string",
- "nome": "string",
- "cognome": "string",
- "titolo": "string",
- "cod_eori": "string"
}
}
}, - "cessionario_committente": {
- "dati_anagrafici": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_fiscale": "<string>",
- "anagrafica": {
- "denominazione": "string",
- "nome": "string",
- "cognome": "string",
- "titolo": "string",
- "cod_eori": "string"
}
}, - "sede": {
- "indirizzo": "<string>",
- "numero_civico": "<string>",
- "cap": "<string>",
- "comune": "<string>",
- "provincia": "<string>",
- "nazione": "<string>"
}, - "stabile_organizzazione": {
- "indirizzo": "<string>",
- "numero_civico": "<string>",
- "cap": "<string>",
- "comune": "<string>",
- "provincia": "<string>",
- "nazione": "<string>"
}, - "rappresentante_fiscale": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "denominazione": "<string>",
- "nome": "<string>",
- "cognome": "<string>"
}
}, - "terzo_intermediario_o_soggetto_emittente": {
- "dati_anagrafici": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_fiscale": "<string>",
- "anagrafica": {
- "denominazione": "string",
- "nome": "string",
- "cognome": "string",
- "titolo": "string",
- "cod_eori": "string"
}
}
}, - "soggetto_emittente": "<string>"
}, - "fattura_elettronica_body": [
- {
- "dati_generali": {
- "dati_generali_documento": {
- "tipo_documento": "<string>",
- "divisa": "<string>",
- "data": "<dateTime>",
- "numero": "<string>",
- "dati_ritenuta": [
- {
- "tipo_ritenuta": "string",
- "importo_ritenuta": "string",
- "aliquota_ritenuta": "string",
- "causale_pagamento": "string"
}, - {
- "tipo_ritenuta": "string",
- "importo_ritenuta": "string",
- "aliquota_ritenuta": "string",
- "causale_pagamento": "string"
}
], - "dati_bollo": {
- "bollo_virtuale": "string",
- "importo_bollo": "string"
}, - "dati_cassa_previdenziale": [
- {
- "tipo_cassa": "string",
- "al_cassa": "string",
- "importo_contributo_cassa": "string",
- "imponibile_cassa": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string"
}, - {
- "tipo_cassa": "string",
- "al_cassa": "string",
- "importo_contributo_cassa": "string",
- "imponibile_cassa": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string"
}
], - "sconto_maggiorazione": [
- {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}, - {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}
], - "importo_totale_documento": "<string>",
- "arrotondamento": "<string>",
- "causale": [
- "string",
- "string"
], - "art73": "<string>"
}, - "dati_ordine_acquisto": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_contratto": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_convenzione": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_ricezione": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_fatture_collegate": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_sal": [
- {
- "riferimento_fase": 0
}, - {
- "riferimento_fase": 0
}
], - "dati_ddt": [
- {
- "numero_ddt": "string",
- "data_ddt": "2019-08-24T14:15:22Z",
- "riferimento_numero_linea": [
- "string"
]
}, - {
- "numero_ddt": "string",
- "data_ddt": "2019-08-24T14:15:22Z",
- "riferimento_numero_linea": [
- "string"
]
}
], - "dati_trasporto": {
- "dati_anagrafici_vettore": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_fiscale": "string",
- "anagrafica": {
- "denominazione": "string",
- "nome": "string",
- "cognome": "string",
- "titolo": "string",
- "cod_eori": "string"
}, - "numero_licenza_guida": "string"
}, - "mezzo_trasporto": "<string>",
- "causale_trasporto": "<string>",
- "numero_colli": "<integer>",
- "descrizione": "<string>",
- "unita_misura_peso": "<string>",
- "peso_lordo": "<string>",
- "peso_netto": "<string>",
- "data_ora_ritiro": "<dateTime>",
- "data_inizio_trasporto": "<dateTime>",
- "tipo_resa": "<string>",
- "indirizzo_resa": {
- "indirizzo": "<string>",
- "numero_civico": "<string>",
- "cap": "<string>",
- "comune": "<string>",
- "provincia": "<string>",
- "nazione": "<string>"
}, - "data_ora_consegna": "<dateTime>"
}, - "fattura_principale": {
- "numero_fattura_principale": "<string>",
- "data_fattura_principale": "<dateTime>"
}
}, - "dati_beni_servizi": {
- "dettaglio_linee": [
- {
- "numero_linea": 0,
- "tipo_cessione_prestazione": "string",
- "codice_articolo": [
- {
- "codice_tipo": "string",
- "codice_valore": "string"
}
], - "descrizione": "string",
- "quantita": "string",
- "unita_misura": "string",
- "data_inizio_periodo": "2019-08-24T14:15:22Z",
- "data_fine_periodo": "2019-08-24T14:15:22Z",
- "prezzo_unitario": "string",
- "sconto_maggiorazione": [
- {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}
], - "prezzo_totale": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string",
- "altri_dati_gestionali": [
- {
- "tipo_dato": "string",
- "riferimento_testo": "string",
- "riferimento_numero": "string",
- "riferimento_data": "2019-08-24T14:15:22Z"
}
]
}, - {
- "numero_linea": 0,
- "tipo_cessione_prestazione": "string",
- "codice_articolo": [
- {
- "codice_tipo": "string",
- "codice_valore": "string"
}
], - "descrizione": "string",
- "quantita": "string",
- "unita_misura": "string",
- "data_inizio_periodo": "2019-08-24T14:15:22Z",
- "data_fine_periodo": "2019-08-24T14:15:22Z",
- "prezzo_unitario": "string",
- "sconto_maggiorazione": [
- {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}
], - "prezzo_totale": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string",
- "altri_dati_gestionali": [
- {
- "tipo_dato": "string",
- "riferimento_testo": "string",
- "riferimento_numero": "string",
- "riferimento_data": "2019-08-24T14:15:22Z"
}
]
}
], - "dati_riepilogo": [
- {
- "aliquota_iva": "string",
- "natura": "string",
- "spese_accessorie": "string",
- "arrotondamento": "string",
- "imponibile_importo": "string",
- "imposta": "string",
- "esigibilita_iva": "string",
- "riferimento_normativo": "string"
}, - {
- "aliquota_iva": "string",
- "natura": "string",
- "spese_accessorie": "string",
- "arrotondamento": "string",
- "imponibile_importo": "string",
- "imposta": "string",
- "esigibilita_iva": "string",
- "riferimento_normativo": "string"
}
]
}, - "dati_veicoli": {
- "data": "<dateTime>",
- "totale_percorso": "<string>"
}, - "dati_pagamento": [
- {
- "condizioni_pagamento": "<string>",
- "dettaglio_pagamento": [
- {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}, - {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}
]
}, - {
- "condizioni_pagamento": "<string>",
- "dettaglio_pagamento": [
- {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}, - {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}
]
}
], - "allegati": [
- {
- "nome_attachment": "<string>",
- "algoritmo_compressione": "<string>",
- "formato_attachment": "<string>",
- "descrizione_attachment": "<string>",
- "attachment": null
}, - {
- "nome_attachment": "<string>",
- "algoritmo_compressione": "<string>",
- "formato_attachment": "<string>",
- "descrizione_attachment": "<string>",
- "attachment": null
}
]
}, - {
- "dati_generali": {
- "dati_generali_documento": {
- "tipo_documento": "<string>",
- "divisa": "<string>",
- "data": "<dateTime>",
- "numero": "<string>",
- "dati_ritenuta": [
- {
- "tipo_ritenuta": "string",
- "importo_ritenuta": "string",
- "aliquota_ritenuta": "string",
- "causale_pagamento": "string"
}, - {
- "tipo_ritenuta": "string",
- "importo_ritenuta": "string",
- "aliquota_ritenuta": "string",
- "causale_pagamento": "string"
}
], - "dati_bollo": {
- "bollo_virtuale": "string",
- "importo_bollo": "string"
}, - "dati_cassa_previdenziale": [
- {
- "tipo_cassa": "string",
- "al_cassa": "string",
- "importo_contributo_cassa": "string",
- "imponibile_cassa": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string"
}, - {
- "tipo_cassa": "string",
- "al_cassa": "string",
- "importo_contributo_cassa": "string",
- "imponibile_cassa": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string"
}
], - "sconto_maggiorazione": [
- {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}, - {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}
], - "importo_totale_documento": "<string>",
- "arrotondamento": "<string>",
- "causale": [
- "string",
- "string"
], - "art73": "<string>"
}, - "dati_ordine_acquisto": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_contratto": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_convenzione": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_ricezione": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_fatture_collegate": [
- {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}, - {
- "riferimento_numero_linea": [
- 0
], - "id_documento": "string",
- "data": "2019-08-24T14:15:22Z",
- "num_item": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "codice_cig": "string"
}
], - "dati_sal": [
- {
- "riferimento_fase": 0
}, - {
- "riferimento_fase": 0
}
], - "dati_ddt": [
- {
- "numero_ddt": "string",
- "data_ddt": "2019-08-24T14:15:22Z",
- "riferimento_numero_linea": [
- "string"
]
}, - {
- "numero_ddt": "string",
- "data_ddt": "2019-08-24T14:15:22Z",
- "riferimento_numero_linea": [
- "string"
]
}
], - "dati_trasporto": {
- "dati_anagrafici_vettore": {
- "id_fiscale_iva": {
- "id_paese": "<string>",
- "id_codice": "<string>"
}, - "codice_fiscale": "string",
- "anagrafica": {
- "denominazione": "string",
- "nome": "string",
- "cognome": "string",
- "titolo": "string",
- "cod_eori": "string"
}, - "numero_licenza_guida": "string"
}, - "mezzo_trasporto": "<string>",
- "causale_trasporto": "<string>",
- "numero_colli": "<integer>",
- "descrizione": "<string>",
- "unita_misura_peso": "<string>",
- "peso_lordo": "<string>",
- "peso_netto": "<string>",
- "data_ora_ritiro": "<dateTime>",
- "data_inizio_trasporto": "<dateTime>",
- "tipo_resa": "<string>",
- "indirizzo_resa": {
- "indirizzo": "<string>",
- "numero_civico": "<string>",
- "cap": "<string>",
- "comune": "<string>",
- "provincia": "<string>",
- "nazione": "<string>"
}, - "data_ora_consegna": "<dateTime>"
}, - "fattura_principale": {
- "numero_fattura_principale": "<string>",
- "data_fattura_principale": "<dateTime>"
}
}, - "dati_beni_servizi": {
- "dettaglio_linee": [
- {
- "numero_linea": 0,
- "tipo_cessione_prestazione": "string",
- "codice_articolo": [
- {
- "codice_tipo": "string",
- "codice_valore": "string"
}
], - "descrizione": "string",
- "quantita": "string",
- "unita_misura": "string",
- "data_inizio_periodo": "2019-08-24T14:15:22Z",
- "data_fine_periodo": "2019-08-24T14:15:22Z",
- "prezzo_unitario": "string",
- "sconto_maggiorazione": [
- {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}
], - "prezzo_totale": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string",
- "altri_dati_gestionali": [
- {
- "tipo_dato": "string",
- "riferimento_testo": "string",
- "riferimento_numero": "string",
- "riferimento_data": "2019-08-24T14:15:22Z"
}
]
}, - {
- "numero_linea": 0,
- "tipo_cessione_prestazione": "string",
- "codice_articolo": [
- {
- "codice_tipo": "string",
- "codice_valore": "string"
}
], - "descrizione": "string",
- "quantita": "string",
- "unita_misura": "string",
- "data_inizio_periodo": "2019-08-24T14:15:22Z",
- "data_fine_periodo": "2019-08-24T14:15:22Z",
- "prezzo_unitario": "string",
- "sconto_maggiorazione": [
- {
- "tipo": "string",
- "percentuale": "string",
- "importo": "string"
}
], - "prezzo_totale": "string",
- "aliquota_iva": "string",
- "ritenuta": "string",
- "natura": "string",
- "riferimento_amministrazione": "string",
- "altri_dati_gestionali": [
- {
- "tipo_dato": "string",
- "riferimento_testo": "string",
- "riferimento_numero": "string",
- "riferimento_data": "2019-08-24T14:15:22Z"
}
]
}
], - "dati_riepilogo": [
- {
- "aliquota_iva": "string",
- "natura": "string",
- "spese_accessorie": "string",
- "arrotondamento": "string",
- "imponibile_importo": "string",
- "imposta": "string",
- "esigibilita_iva": "string",
- "riferimento_normativo": "string"
}, - {
- "aliquota_iva": "string",
- "natura": "string",
- "spese_accessorie": "string",
- "arrotondamento": "string",
- "imponibile_importo": "string",
- "imposta": "string",
- "esigibilita_iva": "string",
- "riferimento_normativo": "string"
}
]
}, - "dati_veicoli": {
- "data": "<dateTime>",
- "totale_percorso": "<string>"
}, - "dati_pagamento": [
- {
- "condizioni_pagamento": "<string>",
- "dettaglio_pagamento": [
- {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}, - {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}
]
}, - {
- "condizioni_pagamento": "<string>",
- "dettaglio_pagamento": [
- {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}, - {
- "beneficiario": "string",
- "modalita_pagamento": "string",
- "data_riferimento_termini_pagamento": "2019-08-24T14:15:22Z",
- "giorni_termini_pagamento": 0,
- "data_scadenza_pagamento": "2019-08-24T14:15:22Z",
- "importo_pagamento": "string",
- "cod_ufficio_postale": "string",
- "cognome_quietanzante": "string",
- "nome_quietanzante": "string",
- "cf_quietanzante": "string",
- "titolo_quietanzante": "string",
- "istituto_finanziario": "string",
- "iban": "string",
- "abi": "string",
- "cab": "string",
- "bic": "string",
- "sconto_pagamento_anticipato": "string",
- "data_limite_pagamento_anticipato": "2019-08-24T14:15:22Z",
- "penalita_pagamenti_ritardati": "string",
- "data_decorrenza_penale": "2019-08-24T14:15:22Z",
- "codice_pagamento": "string"
}
]
}
], - "allegati": [
- {
- "nome_attachment": "<string>",
- "algoritmo_compressione": "<string>",
- "formato_attachment": "<string>",
- "descrizione_attachment": "<string>",
- "attachment": null
}, - {
- "nome_attachment": "<string>",
- "algoritmo_compressione": "<string>",
- "formato_attachment": "<string>",
- "descrizione_attachment": "<string>",
- "attachment": null
}
]
}
]
}{- "data": {
- "uuid": "string"
}, - "message": "",
- "success": true,
- "error": "string"
}Create a new invoice and send it to the government channel. You should explicit the request body format using the content-type header. Your invoice will be queued instantly and you will get back the invoice UUID as a callback
required | object (FatturaPAFatturaElettronicaHeader-read) |
required | Array of objects (FatturaPAFatturaElettronicaBody-read) 2 items [ items ] |
object | |
| message | string |
| success | boolean |
| error | string <nullable> |
<?xml version="1.0" encoding="UTF-8"?> <p:FatturaElettronica versione="FPR12" > <FatturaElettronicaHeader> <DatiTrasmissione> <IdTrasmittente> <IdPaese>IT</IdPaese> <IdCodice>10442360961</IdCodice> </IdTrasmittente> <ProgressivoInvio>06V27</ProgressivoInvio> <FormatoTrasmissione>FPR12</FormatoTrasmissione> <CodiceDestinatario>Codice destinatario</CodiceDestinatario> </DatiTrasmissione> <CedentePrestatore> <DatiAnagrafici> <IdFiscaleIVA> <IdPaese>IT</IdPaese> <IdCodice>Codice destinatario</IdCodice> </IdFiscaleIVA> <Anagrafica> <Denominazione>John Doe</Denominazione> </Anagrafica> <RegimeFiscale>RF01</RegimeFiscale> </DatiAnagrafici> <Sede> <Indirizzo>Via di Qua, 1</Indirizzo> <CAP>20145</CAP> <Comune>Milano</Comune> <Provincia>MI</Provincia> <Nazione>IT</Nazione> </Sede> </CedentePrestatore> <CessionarioCommittente> <DatiAnagrafici> <IdFiscaleIVA> <IdPaese>IT</IdPaese> <IdCodice>09876543211</IdCodice> </IdFiscaleIVA> <Anagrafica> <Denominazione>Jane Doe</Denominazione> </Anagrafica> </DatiAnagrafici> <Sede> <Indirizzo>Via di La, 2</Indirizzo> <CAP>20145</CAP> <Comune>Milano</Comune> <Provincia>MI</Provincia> <Nazione>IT</Nazione> </Sede> </CessionarioCommittente> </FatturaElettronicaHeader> <FatturaElettronicaBody> <DatiGenerali> <DatiGeneraliDocumento> <TipoDocumento>TD01</TipoDocumento> <Divisa>EUR</Divisa> <Data>2018-07-10</Data> <Numero>1</Numero> </DatiGeneraliDocumento> </DatiGenerali> <DatiBeniServizi> <DettaglioLinee> <NumeroLinea>1</NumeroLinea> <Descrizione>Descrizione articolo</Descrizione> <PrezzoUnitario>10.00</PrezzoUnitario> <PrezzoTotale>10.00</PrezzoTotale> <AliquotaIVA>22.00</AliquotaIVA> </DettaglioLinee> <DatiRiepilogo> <AliquotaIVA>22.00</AliquotaIVA> <ImponibileImporto>10.00</ImponibileImporto> <Imposta>2.20</Imposta> </DatiRiepilogo> </DatiBeniServizi> </FatturaElettronicaBody> </p:FatturaElettronica>
{- "data": {
- "uuid": "string"
}, - "message": "",
- "success": true,
- "error": "string"
}Create a new invoice and send it to the government channel. You should explicit the request body format using the content-type header. Your invoice will be queued instantly and you will get back the invoice UUID as a callback
required | object (FatturaPAFatturaElettronicaHeader-read) |
required | Array of objects (FatturaPAFatturaElettronicaBody-read) 2 items [ items ] |
object | |
| message | string |
| success | boolean |
| error | string <nullable> |
<?xml version="1.0" encoding="UTF-8"?> <p:FatturaElettronica versione="FPR12" > <FatturaElettronicaHeader> <DatiTrasmissione> <IdTrasmittente> <IdPaese>IT</IdPaese> <IdCodice>10442360961</IdCodice> </IdTrasmittente> <ProgressivoInvio>06V27</ProgressivoInvio> <FormatoTrasmissione>FPR12</FormatoTrasmissione> <CodiceDestinatario>Codice destinatario</CodiceDestinatario> </DatiTrasmissione> <CedentePrestatore> <DatiAnagrafici> <IdFiscaleIVA> <IdPaese>IT</IdPaese> <IdCodice>Codice destinatario</IdCodice> </IdFiscaleIVA> <Anagrafica> <Denominazione>John Doe</Denominazione> </Anagrafica> <RegimeFiscale>RF01</RegimeFiscale> </DatiAnagrafici> <Sede> <Indirizzo>Via di Qua, 1</Indirizzo> <CAP>20145</CAP> <Comune>Milano</Comune> <Provincia>MI</Provincia> <Nazione>IT</Nazione> </Sede> </CedentePrestatore> <CessionarioCommittente> <DatiAnagrafici> <IdFiscaleIVA> <IdPaese>IT</IdPaese> <IdCodice>09876543211</IdCodice> </IdFiscaleIVA> <Anagrafica> <Denominazione>Jane Doe</Denominazione> </Anagrafica> </DatiAnagrafici> <Sede> <Indirizzo>Via di La, 2</Indirizzo> <CAP>20145</CAP> <Comune>Milano</Comune> <Provincia>MI</Provincia> <Nazione>IT</Nazione> </Sede> </CessionarioCommittente> </FatturaElettronicaHeader> <FatturaElettronicaBody> <DatiGenerali> <DatiGeneraliDocumento> <TipoDocumento>TD01</TipoDocumento> <Divisa>EUR</Divisa> <Data>2018-07-10</Data> <Numero>1</Numero> </DatiGeneraliDocumento> </DatiGenerali> <DatiBeniServizi> <DettaglioLinee> <NumeroLinea>1</NumeroLinea> <Descrizione>Descrizione articolo</Descrizione> <PrezzoUnitario>10.00</PrezzoUnitario> <PrezzoTotale>10.00</PrezzoTotale> <AliquotaIVA>22.00</AliquotaIVA> </DettaglioLinee> <DatiRiepilogo> <AliquotaIVA>22.00</AliquotaIVA> <ImponibileImporto>10.00</ImponibileImporto> <Imposta>2.20</Imposta> </DatiRiepilogo> </DatiBeniServizi> </FatturaElettronicaBody> </p:FatturaElettronica>
{- "data": {
- "uuid": "string"
}, - "message": "",
- "success": true,
- "error": "string"
}Create a new invoice and send it to the government channel. You should explicit the request body format using the content-type header. Your invoice will be queued instantly and you will get back the invoice UUID as a callback
required | object (FatturaPAFatturaElettronicaHeader-read) |
required | Array of objects (FatturaPAFatturaElettronicaBody-read) 2 items [ items ] |
object | |
| message | string |
| success | boolean |
| error | string <nullable> |
<?xml version="1.0" encoding="UTF-8"?> <p:FatturaElettronica versione="FPR12" > <FatturaElettronicaHeader> <DatiTrasmissione> <IdTrasmittente> <IdPaese>IT</IdPaese> <IdCodice>10442360961</IdCodice> </IdTrasmittente> <ProgressivoInvio>06V27</ProgressivoInvio> <FormatoTrasmissione>FPR12</FormatoTrasmissione> <CodiceDestinatario>Codice destinatario</CodiceDestinatario> </DatiTrasmissione> <CedentePrestatore> <DatiAnagrafici> <IdFiscaleIVA> <IdPaese>IT</IdPaese> <IdCodice>Codice destinatario</IdCodice> </IdFiscaleIVA> <Anagrafica> <Denominazione>John Doe</Denominazione> </Anagrafica> <RegimeFiscale>RF01</RegimeFiscale> </DatiAnagrafici> <Sede> <Indirizzo>Via di Qua, 1</Indirizzo> <CAP>20145</CAP> <Comune>Milano</Comune> <Provincia>MI</Provincia> <Nazione>IT</Nazione> </Sede> </CedentePrestatore> <CessionarioCommittente> <DatiAnagrafici> <IdFiscaleIVA> <IdPaese>IT</IdPaese> <IdCodice>09876543211</IdCodice> </IdFiscaleIVA> <Anagrafica> <Denominazione>Jane Doe</Denominazione> </Anagrafica> </DatiAnagrafici> <Sede> <Indirizzo>Via di La, 2</Indirizzo> <CAP>20145</CAP> <Comune>Milano</Comune> <Provincia>MI</Provincia> <Nazione>IT</Nazione> </Sede> </CessionarioCommittente> </FatturaElettronicaHeader> <FatturaElettronicaBody> <DatiGenerali> <DatiGeneraliDocumento> <TipoDocumento>TD01</TipoDocumento> <Divisa>EUR</Divisa> <Data>2018-07-10</Data> <Numero>1</Numero> </DatiGeneraliDocumento> </DatiGenerali> <DatiBeniServizi> <DettaglioLinee> <NumeroLinea>1</NumeroLinea> <Descrizione>Descrizione articolo</Descrizione> <PrezzoUnitario>10.00</PrezzoUnitario> <PrezzoTotale>10.00</PrezzoTotale> <AliquotaIVA>22.00</AliquotaIVA> </DettaglioLinee> <DatiRiepilogo> <AliquotaIVA>22.00</AliquotaIVA> <ImponibileImporto>10.00</ImponibileImporto> <Imposta>2.20</Imposta> </DatiRiepilogo> </DatiBeniServizi> </FatturaElettronicaBody> </p:FatturaElettronica>
{- "data": {
- "uuid": "string"
}, - "message": "",
- "success": true,
- "error": "string"
}| createdAt[before] | string Default: "<string>" |
| createdAt[strictly_before] | string Default: "<string>" |
| createdAt[after] | string Default: "<string>" |
| createdAt[strictly_after] | string Default: "<string>" |
| signed | boolean Default: "<boolean>" |
| downloaded | boolean Default: "<boolean>" |
| toPa | string Default: "<string>" Search invoices that was sent to PA. |
| type | string Default: "<string>" When type is 0 search for invoices sent to a customer, when type is 1 search for invoice received by a supplier |
| sender | string Default: "<string>" Search by sender (vat number OR fiscal code). You can specify more values at once comma separated. |
| recipient | string Default: "<string>" Search by recipient (vat number OR fiscal code). You can specify more values at once comma separated. |
| invoiceDate[before] | string Default: "<string>" |
| invoiceDate[strictly_before] | string Default: "<string>" |
| invoiceDate[after] | string Default: "<string>" |
| invoiceDate[strictly_after] | string Default: "<string>" |
| invoiceNumber | string Default: "<string>" |
| recipient.businessName | string Default: "<string>" |
| recipient.businessVatNumberCode | string Default: "<string>" |
| recipient.businessVatNumberCode[] | Array of strings 2 items |
| recipient.businessFiscalCode | string Default: "<string>" |
| recipient.businessFiscalCode[] | Array of strings 2 items |
| sender.businessName | string Default: "<string>" |
| sender.businessVatNumberCode | string Default: "<string>" |
| sender.businessVatNumberCode[] | Array of strings 2 items |
| sender.businessFiscalCode | string Default: "<string>" |
| sender.businessFiscalCode[] | Array of strings 2 items |
| marking | string Default: "<string>" |
| marking[] | Array of strings 2 items |
| page | integer Default: "<integer>" The collection page number |
| created_at | string <date-time> |
| uuid | string |
| type | integer |
| payload | string |
object (BusinessRegistry-read) | |
object (BusinessRegistry-read) | |
| notifications | Array of strings 2 items |
| sdi_file_name | string |
| sdi_file_id | string |
| signed | boolean |
| legally_stored | boolean |
object (PreservedDocument-read) | |
| downloaded | boolean The invoice was downloaded (automatically when received by webhook or manually for polling integrations). |
| downloaded_at | string <date-time> |
| marking | string The marking represent the current status of the invoice. |
| notice | string |
| retry_information | string |
| transmission_format | string Transmission format specified into the invoice. |
| to_pa | boolean |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/invoices?createdAt%5Bbefore%5D=SOME_STRING_VALUE&createdAt%5Bstrictly_before%5D=SOME_STRING_VALUE&createdAt%5Bafter%5D=SOME_STRING_VALUE&createdAt%5Bstrictly_after%5D=SOME_STRING_VALUE&signed=SOME_BOOLEAN_VALUE&downloaded=SOME_BOOLEAN_VALUE&toPa=SOME_STRING_VALUE&type=SOME_STRING_VALUE&sender=SOME_STRING_VALUE&recipient=SOME_STRING_VALUE&invoiceDate%5Bbefore%5D=SOME_STRING_VALUE&invoiceDate%5Bstrictly_before%5D=SOME_STRING_VALUE&invoiceDate%5Bafter%5D=SOME_STRING_VALUE&invoiceDate%5Bstrictly_after%5D=SOME_STRING_VALUE&invoiceNumber=SOME_STRING_VALUE&recipient.businessName=SOME_STRING_VALUE&recipient.businessVatNumberCode=SOME_STRING_VALUE&recipient.businessVatNumberCode%5B%5D=SOME_ARRAY_VALUE&recipient.businessFiscalCode=SOME_STRING_VALUE&recipient.businessFiscalCode%5B%5D=SOME_ARRAY_VALUE&sender.businessName=SOME_STRING_VALUE&sender.businessVatNumberCode=SOME_STRING_VALUE&sender.businessVatNumberCode%5B%5D=SOME_ARRAY_VALUE&sender.businessFiscalCode=SOME_STRING_VALUE&sender.businessFiscalCode%5B%5D=SOME_ARRAY_VALUE&marking=SOME_STRING_VALUE&marking%5B%5D=SOME_ARRAY_VALUE&page=SOME_INTEGER_VALUE"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
[- {
- "created_at": "2019-08-24T14:15:22Z",
- "uuid": "string",
- "type": 0,
- "payload": "string",
- "sender": {
- "uuid": "string",
- "head_office_address_street": "string",
- "head_office_address_street_number": "string",
- "head_office_address_zip_code": "string",
- "head_office_address_city": "string",
- "head_office_address_province": "string",
- "head_office_address_country": "string",
- "office_address_street": "string",
- "office_address_street_number": "string",
- "office_address_zip_code": "string",
- "office_address_city": "string",
- "office_address_province": "string",
- "office_address_country": "string",
- "business_vat_number_country": "string",
- "business_vat_number_code": "string",
- "business_fiscal_code": "string",
- "business_name": "string",
- "name": "string",
- "surname": "string",
- "title": "string",
- "cod_eori": "string",
- "professional_register": "string",
- "professional_register_province": "string",
- "professional_register_registration_number": "string",
- "professional_register_registration_date": "2019-08-24T14:15:22Z",
- "tax_regime": "string",
- "contact_phone": "string",
- "contact_fax": "string",
- "contact_email": "string",
- "rea_registration_office": "string",
- "rea_registration_number": "string",
- "rea_registration_share_capital": "string",
- "rea_registration_sole_shareholder": "string",
- "rea_registration_liquidation_status": "string",
- "reference_administration": "string",
- "fiscal_representative_vat_number_country": "string",
- "fiscal_representative_vat_number_code": "string",
- "fiscal_representative_fiscal_code": "string",
- "fiscal_representative_denomination": "string",
- "fiscal_representative_name": "string",
- "fiscal_representative_surname": "string",
- "fiscal_representative_title": "string",
- "fiscal_representative_cod_eori": "string"
}, - "recipient": {
- "uuid": "string",
- "head_office_address_street": "string",
- "head_office_address_street_number": "string",
- "head_office_address_zip_code": "string",
- "head_office_address_city": "string",
- "head_office_address_province": "string",
- "head_office_address_country": "string",
- "office_address_street": "string",
- "office_address_street_number": "string",
- "office_address_zip_code": "string",
- "office_address_city": "string",
- "office_address_province": "string",
- "office_address_country": "string",
- "business_vat_number_country": "string",
- "business_vat_number_code": "string",
- "business_fiscal_code": "string",
- "business_name": "string",
- "name": "string",
- "surname": "string",
- "title": "string",
- "cod_eori": "string",
- "professional_register": "string",
- "professional_register_province": "string",
- "professional_register_registration_number": "string",
- "professional_register_registration_date": "2019-08-24T14:15:22Z",
- "tax_regime": "string",
- "contact_phone": "string",
- "contact_fax": "string",
- "contact_email": "string",
- "rea_registration_office": "string",
- "rea_registration_number": "string",
- "rea_registration_share_capital": "string",
- "rea_registration_sole_shareholder": "string",
- "rea_registration_liquidation_status": "string",
- "reference_administration": "string",
- "fiscal_representative_vat_number_country": "string",
- "fiscal_representative_vat_number_code": "string",
- "fiscal_representative_fiscal_code": "string",
- "fiscal_representative_denomination": "string",
- "fiscal_representative_name": "string",
- "fiscal_representative_surname": "string",
- "fiscal_representative_title": "string",
- "fiscal_representative_cod_eori": "string"
}, - "notifications": [
- "string",
- "string"
], - "sdi_file_name": "string",
- "sdi_file_id": "string",
- "signed": true,
- "legally_stored": true,
- "preserved_document": {
- "created_at": "2019-08-24T14:15:22Z",
- "uuid": "string",
- "status": "string",
- "receipt_received_at": "2019-08-24T14:15:22Z",
- "object_type": "string",
- "object_id": "string",
- "message": "string",
- "preserved_object_id": "string",
- "weight": 0
}, - "downloaded": true,
- "downloaded_at": "2019-08-24T14:15:22Z",
- "marking": "string",
- "notice": "string",
- "retry_information": "string",
- "transmission_format": "string",
- "to_pa": true
}
]Get an invoice in application/json by default
| uuid required | string Default: "<string>" |
| created_at | string <date-time> |
| uuid | string |
| type | integer |
| payload | string |
object (BusinessRegistry-read) | |
object (BusinessRegistry-read) | |
| notifications | Array of strings 2 items |
| sdi_file_name | string |
| sdi_file_id | string |
| signed | boolean |
| legally_stored | boolean |
object (PreservedDocument-read) | |
| downloaded | boolean The invoice was downloaded (automatically when received by webhook or manually for polling integrations). |
| downloaded_at | string <date-time> |
| marking | string The marking represent the current status of the invoice. |
| notice | string |
| retry_information | string |
| transmission_format | string Transmission format specified into the invoice. |
| to_pa | boolean |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/invoices/%7Buuid%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "created_at": "2019-08-24T14:15:22Z",
- "uuid": "string",
- "type": 0,
- "payload": "string",
- "sender": {
- "uuid": "string",
- "head_office_address_street": "string",
- "head_office_address_street_number": "string",
- "head_office_address_zip_code": "string",
- "head_office_address_city": "string",
- "head_office_address_province": "string",
- "head_office_address_country": "string",
- "office_address_street": "string",
- "office_address_street_number": "string",
- "office_address_zip_code": "string",
- "office_address_city": "string",
- "office_address_province": "string",
- "office_address_country": "string",
- "business_vat_number_country": "string",
- "business_vat_number_code": "string",
- "business_fiscal_code": "string",
- "business_name": "string",
- "name": "string",
- "surname": "string",
- "title": "string",
- "cod_eori": "string",
- "professional_register": "string",
- "professional_register_province": "string",
- "professional_register_registration_number": "string",
- "professional_register_registration_date": "2019-08-24T14:15:22Z",
- "tax_regime": "string",
- "contact_phone": "string",
- "contact_fax": "string",
- "contact_email": "string",
- "rea_registration_office": "string",
- "rea_registration_number": "string",
- "rea_registration_share_capital": "string",
- "rea_registration_sole_shareholder": "string",
- "rea_registration_liquidation_status": "string",
- "reference_administration": "string",
- "fiscal_representative_vat_number_country": "string",
- "fiscal_representative_vat_number_code": "string",
- "fiscal_representative_fiscal_code": "string",
- "fiscal_representative_denomination": "string",
- "fiscal_representative_name": "string",
- "fiscal_representative_surname": "string",
- "fiscal_representative_title": "string",
- "fiscal_representative_cod_eori": "string"
}, - "recipient": {
- "uuid": "string",
- "head_office_address_street": "string",
- "head_office_address_street_number": "string",
- "head_office_address_zip_code": "string",
- "head_office_address_city": "string",
- "head_office_address_province": "string",
- "head_office_address_country": "string",
- "office_address_street": "string",
- "office_address_street_number": "string",
- "office_address_zip_code": "string",
- "office_address_city": "string",
- "office_address_province": "string",
- "office_address_country": "string",
- "business_vat_number_country": "string",
- "business_vat_number_code": "string",
- "business_fiscal_code": "string",
- "business_name": "string",
- "name": "string",
- "surname": "string",
- "title": "string",
- "cod_eori": "string",
- "professional_register": "string",
- "professional_register_province": "string",
- "professional_register_registration_number": "string",
- "professional_register_registration_date": "2019-08-24T14:15:22Z",
- "tax_regime": "string",
- "contact_phone": "string",
- "contact_fax": "string",
- "contact_email": "string",
- "rea_registration_office": "string",
- "rea_registration_number": "string",
- "rea_registration_share_capital": "string",
- "rea_registration_sole_shareholder": "string",
- "rea_registration_liquidation_status": "string",
- "reference_administration": "string",
- "fiscal_representative_vat_number_country": "string",
- "fiscal_representative_vat_number_code": "string",
- "fiscal_representative_fiscal_code": "string",
- "fiscal_representative_denomination": "string",
- "fiscal_representative_name": "string",
- "fiscal_representative_surname": "string",
- "fiscal_representative_title": "string",
- "fiscal_representative_cod_eori": "string"
}, - "notifications": [
- "string",
- "string"
], - "sdi_file_name": "string",
- "sdi_file_id": "string",
- "signed": true,
- "legally_stored": true,
- "preserved_document": {
- "created_at": "2019-08-24T14:15:22Z",
- "uuid": "string",
- "status": "string",
- "receipt_received_at": "2019-08-24T14:15:22Z",
- "object_type": "string",
- "object_id": "string",
- "message": "string",
- "preserved_object_id": "string",
- "weight": 0
}, - "downloaded": true,
- "downloaded_at": "2019-08-24T14:15:22Z",
- "marking": "string",
- "notice": "string",
- "retry_information": "string",
- "transmission_format": "string",
- "to_pa": true
}You can get an invoice in many different formats just specifying a different Accept header:
| uuid required | string Default: "<string>" |
| created_at | string <date-time> |
| uuid | string |
| type | integer |
| payload | string |
object (BusinessRegistry-read) | |
object (BusinessRegistry-read) | |
| notifications | Array of strings 2 items |
| sdi_file_name | string |
| sdi_file_id | string |
| signed | boolean |
| legally_stored | boolean |
object (PreservedDocument-read) | |
| downloaded | boolean The invoice was downloaded (automatically when received by webhook or manually for polling integrations). |
| downloaded_at | string <date-time> |
| marking | string The marking represent the current status of the invoice. |
| notice | string |
| retry_information | string |
| transmission_format | string Transmission format specified into the invoice. |
| to_pa | boolean |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/invoices_download/%7Buuid%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Retrieve the collection of notifications for a given invoice.
You can have the notification message in JSON format or the original XML
by sending the Accept HTTP header to either application/json or application/xml
| uuid required | string Default: "<string>" |
| uuid | string |
| invoice_uuid | string |
| created_at | string The date the notification was received. |
| type | string The notification type (2 letters code). |
| message | string The notification message model. |
| downloaded | boolean The notification was downloaded (automatically when received by webhook or manually for polling integrations). |
| downloaded_at | string <date-time> Notification download date. |
| file_name | string |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/invoices_notifications/%7Buuid%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
[- {
- "uuid": "string",
- "invoice_uuid": "string",
- "created_at": "string",
- "type": "string",
- "message": "string",
- "downloaded": true,
- "downloaded_at": "2019-08-24T14:15:22Z",
- "file_name": "string"
}
]| fiscal_id | string Default: "<string>" The fiscal code or the vat number WITHOUT the country prefix |
| name | string Default: "<string>" The owner's name for the fiscal id. |
string Default: "<string>" The email where the owner of the fiscalId will receive communications from the platform. | |
| apply_signature | boolean Default: "<boolean>" Apply digital signature before sending invoices to SDI. |
| apply_legal_storage | boolean Default: "<boolean>" Apply the legal storage for invoices sent/received by the fiscal id. |
object (BusinessRegistryConfiguration-read) | |
| message | string |
| success | boolean |
| error | string <nullable> |
{- "fiscal_id": "<string>",
- "name": "<string>",
- "email": "<string>",
- "apply_signature": "<boolean>",
- "apply_legal_storage": "<boolean>"
}{- "data": {
- "id": "xxxxxxxxxxxxx",
- "fiscal_id": "000133445566",
- "name": "My company",
- "email": "me@example.com",
- "apply_signature": true,
- "apply_legal_storage": true
}, - "message": "string",
- "success": true,
- "error": "string"
}Array of objects (BusinessRegistryConfiguration-read) <= 2 items [ items ] | |
| message | string |
| success | boolean |
| error | string <nullable> |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/business_registry_configurations"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": [
- {
- "id": "xxxxxxxxxxxxx",
- "fiscal_id": "000133445566",
- "name": "My company",
- "email": "me@example.com",
- "apply_signature": true,
- "apply_legal_storage": true
}
], - "message": "string",
- "success": true,
- "error": "string"
}| fiscal_id required | string Default: "<string>" The fiscal id |
object (BusinessRegistryConfiguration-read) | |
| message | string |
| success | boolean |
| error | string <nullable> |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/business_registry_configurations/%7Bfiscal_id%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "id": "xxxxxxxxxxxxx",
- "fiscal_id": "000133445566",
- "name": "My company",
- "email": "me@example.com",
- "apply_signature": true,
- "apply_legal_storage": true
}, - "message": "string",
- "success": true,
- "error": "string"
}| fiscal_id required | string Default: "<string>" The fiscal id |
| data | any or null |
| message | string |
| success | boolean |
| error | string or null |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/business_registry_configurations/%7Bfiscal_id%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": null,
- "message": "Deleted",
- "success": true,
- "error": "string"
}This method allows you to re-activate a Business Registry Configuration that was previously deactivated, either automatically or manually by the user.
| fiscal_id required | string Default: "<string>" The fiscal id |
object (BusinessRegistryConfiguration-read) | |
| message | string |
| success | boolean |
| error | string <nullable> |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH"); curl_easy_setopt(hnd, CURLOPT_URL, "https://sdi.openapi.it/business_registry_configurations/%7Bfiscal_id%7D/activate"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "id": "xxxxxxxxxxxxx",
- "fiscal_id": "000133445566",
- "name": "My company",
- "email": "me@example.com",
- "apply_signature": true,
- "apply_legal_storage": true
}, - "message": "string",
- "success": true,
- "error": "string"
}Import a customer invoice that was already sent to SDI. The invoice will not be sent to SDI. You can disable webhook events by sending X-DisableEndpoints: true header.
The new CustomerInvoiceImport resource
| invoice required | string Default: "<string>" The base64 encoded invoice XML. |
| notifications | Array of strings 2 items Notification type as key (RC, MC, NS, DT, NE, AT, EC), notification base64 as value. If at least one notification is not provided you must provide invoice_file_name and sdi_id. |
| invoice_file_name | string Default: "<string>" The invoice filename, to be provided only when there is not any notification. |
| sdi_id | string Default: "<string>" The invoice SDI ID, to be provided only when there is not any notification. |
| uuid | string The UUID used to identify uniquely the invoice. |
{- "invoice": "<string>",
- "notifications": {
- "RC": "here the base64 encoded RC notification",
- "NE": "here the base64 encoded NE notification"
}, - "invoice_file_name": "<string>",
- "sdi_id": "<string>"
}{- "uuid": "string"
}Import a supplier invoice that was already received from SDI.
The new SupplierInvoiceImport resource
| invoice required | string Default: "<string>" The base64 encoded invoice XML. |
| metadata | string Default: "<string>" The base64 encoded invoice metadata XML. If it is not provided you must provide invoice_file_name and sdi_id. |
| invoice_file_name | string Default: "<string>" The invoice filename, to be provided only when there is not metadata. |
| sdi_id | string Default: "<string>" he invoice SDI ID, to be provided only when there is not metadata. |
| uuid | string The UUID used to identify uniquely the invoice. In case the invoice XML embeds multiple bodies, you will get an array of UUIDs. |
{- "invoice": "<string>",
- "metadata": "<string>",
- "invoice_file_name": "<string>",
- "sdi_id": "<string>"
}{- "uuid": "string"
}Import a customer invoice that was already sent to SDI. The invoice will not be sent to SDI, but it will be sent to the legal storage. You can disable webhook events by sending X-DisableEndpoints: true header.
The new CustomerInvoiceImport resource
| invoice required | string Default: "<string>" The base64 encoded invoice XML. |
| notifications | Array of strings 2 items Notification type as key (RC, MC, NS, DT, NE, AT, EC), notification base64 as value. If at least one notification is not provided you must provide invoice_file_name and sdi_id. |
| invoice_file_name | string Default: "<string>" The invoice filename, to be provided only when there is not any notification. |
| sdi_id | string Default: "<string>" The invoice SDI ID, to be provided only when there is not any notification. |
| uuid | string The UUID used to identify uniquely the invoice. |
{- "invoice": "<string>",
- "notifications": {
- "RC": "here the base64 encoded RC notification",
- "NE": "here the base64 encoded NE notification"
}, - "invoice_file_name": "<string>",
- "sdi_id": "<string>"
}{- "uuid": "string"
}Import a supplier invoice that was already received from SDI. The invoice will be sent to the legal storage
The new SupplierInvoiceImport resource
| invoice required | string Default: "<string>" The base64 encoded invoice XML. |
| metadata | string Default: "<string>" The base64 encoded invoice metadata XML. If it is not provided you must provide invoice_file_name and sdi_id. |
| invoice_file_name | string Default: "<string>" The invoice filename, to be provided only when there is not metadata. |
| sdi_id | string Default: "<string>" he invoice SDI ID, to be provided only when there is not metadata. |
| uuid | string The UUID used to identify uniquely the invoice. In case the invoice XML embeds multiple bodies, you will get an array of UUIDs. |
{- "invoice": "<string>",
- "metadata": "<string>",
- "invoice_file_name": "<string>",
- "sdi_id": "<string>"
}{- "uuid": "string"
}