Electronic Invoicing Solutions for Businesses, Professionals and Forfeiters
Activate via API and in seconds Legalinvoice, the B2B and PA Electronic Invoicing software.
All the knowledge you need
Here you can find some advice to consider to approach this API. If you prefer, we provide code samples, OAS3 documentation, the ability to try the API live via the Swagger UI or import the entire collection into Postman. We also offer a Sandbox environment where you can experiment with all kinds of requests completely free of charge.
Get the token in the appropriate section before you start.
- Oas file url https://console.openapi.com/oas/en/legalinvoice.openapi.json
- Fork or import with Postman
- Production domain legalinvoice.openapi.it
- Sandbox domain test.legalinvoice.openapi.it
- Production Scopes 7
-
Sandbox Scopes 7
- GET test.legalinvoice.openapi.it/account
- POST test.legalinvoice.openapi.it/forfettario
- POST test.legalinvoice.openapi.it/start
- POST test.legalinvoice.openapi.it/pro
- PATCH test.legalinvoice.openapi.it/account
- GET test.legalinvoice.openapi.it/modulo_attivazione
- DELETE test.legalinvoice.openapi.it/account
Legal Invoice (1.0.0)
Web service that allows you to activate an account for electronic invoicing.
Register a new 'forfettario' legal invoice account
This method allows you to register a new legal invoice account of type 'forfettario'. 'forfettario' means that you have 50 starting invoices. For the documents the system will call from the following ip: 34.76.237.249
Authorizations:
Request Body schema: application/json
cf_piva_titolare required | string cf/piva holder |
denominazione_titolare required | string name of the holder |
comune_titolare required | string holder city |
indirizzo_titolare required | string holder address |
cap_titolare required | string holder postal code |
provincia_titolare required | string holder province |
email required | string holder email |
nome_richiedente required | string customer name |
cognome_richiedente required | string customer surname |
sesso_richiedente required | string Enum: "M" "F" gender |
cf_richiedente required | string customer fiscal code |
data_nascita_richiedente | string customer date of birth (accepted format: dd/mm/yyyy) |
telefono | string customer phone |
cellulare | string customer mobile phone |
documento_identita required | string Url where the system can download a customer identity document; accepted format: pdf. The system will call from the following ip: 34.76.237.249 |
modulo_attivazione required | string Url where the system can download the activation form; accepted format: pdf. The system will call from the following ip: 34.76.237.249 |
object (Callback) | |
autorinnovo | boolean Default: false if set to true, it allows the system to renew the account automatically upon expiration, trying to withdraw credit from the owner's purse |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
Response samples
- 200
- 402
- 406
- 428
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "in_attivazione",
- "tipo_account": "forfettario",
- "username": null,
- "password": null,
- "fatture": 50,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": null,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Register a new 'start' legal invoice account
This method allows you to register a new legal invoice account of type 'start'. 'start' means that you have 200 starting invoices. For the documents the system will call from the following ip: 34.76.237.249
Authorizations:
Request Body schema: application/json
cf_piva_titolare required | string cf/piva holder |
denominazione_titolare required | string name of the holder |
comune_titolare required | string holder city |
indirizzo_titolare required | string holder address |
cap_titolare required | string holder postal code |
provincia_titolare required | string holder province |
email required | string holder email |
nome_richiedente required | string customer name |
cognome_richiedente required | string customer surname |
sesso_richiedente required | string Enum: "M" "F" gender |
cf_richiedente required | string customer fiscal code |
data_nascita_richiedente | string customer date of birth (accepted format: dd/mm/yyyy) |
telefono | string customer phone |
cellulare | string customer mobile phone |
documento_identita required | string Url where the system can download a customer identity document; accepted format: pdf. The system will call from the following ip: 34.76.237.249 |
modulo_attivazione required | string Url where the system can download the activation form; accepted format: pdf. The system will call from the following ip: 34.76.237.249 |
object (Callback) | |
autorinnovo | boolean Default: false if set to true, it allows the system to renew the account automatically upon expiration, trying to withdraw credit from the owner's purse |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
Response samples
- 200
- 402
- 406
- 428
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "in_attivazione",
- "tipo_account": "start",
- "username": null,
- "password": null,
- "fatture": 200,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": null,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Register a new 'pro' legal invoice account
This method allows you to register a new legal invoice account of type 'pro'. 'pro' means that you have 400 starting invoices and the possibility of adding extra company names. For the documents the system will call from the following ip: 34.76.237.249
Authorizations:
Request Body schema: application/json
cf_piva_titolare required | string cf/piva holder |
denominazione_titolare required | string name of the holder |
comune_titolare required | string holder city |
indirizzo_titolare required | string holder address |
cap_titolare required | string holder postal code |
provincia_titolare required | string holder province |
email required | string holder email |
nome_richiedente required | string customer name |
cognome_richiedente required | string customer surname |
sesso_richiedente required | string Enum: "M" "F" gender |
cf_richiedente required | string customer fiscal code |
data_nascita_richiedente | string customer date of birth (accepted format: dd/mm/yyyy) |
telefono | string customer phone |
cellulare | string customer mobile phone |
documento_identita required | string Url where the system can download a customer identity document; accepted format: pdf. The system will call from the following ip: 34.76.237.249 |
modulo_attivazione required | string Url where the system can download the activation form; accepted format: pdf. The system will call from the following ip: 34.76.237.249 |
object (Callback) | |
autorinnovo | boolean Default: false if set to true, it allows the system to renew the account automatically upon expiration, trying to withdraw credit from the owner's purse |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
Response samples
- 200
- 402
- 406
- 428
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "in_attivazione",
- "tipo_account": "pro",
- "username": null,
- "password": null,
- "fatture": 400,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": null,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Download the activation form
This method allows you to directly download the activation form. Once compiled and signed it will be passed in the form of a base 64 encoded string using the POST method together with an identity document.
Authorizations:
Responses
Response Schema: application/pdf
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://legalinvoice.openapi.it/modulo_attivazione"); 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);
List of your legal invoice accounts
This method shows you the list of legal invoice accounts that belong to your username
Authorizations:
Responses
Response Schema: application/json
Array of objects (Accounts) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://legalinvoice.openapi.it/account"); 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);
Response samples
- 200
- 404
- "data": [
- {
- "id": "62b19eea2f7b5264ce34ac29",
- "tipo_account": "forfettario",
- "stato": "attivo",
- "timestamp_creazione": 1655807719,
- "timestamp_scadenza": 1939728960,
- "owner": "[email protected]"
- {
- "id": "62b077c1b6c50605d24df95c",
- "tipo_account": "pro",
- "stato": "revocato",
- "timestamp_creazione": 1655732160,
- "timestamp_scadenza": 1939728960,
- "owner": "[email protected]"
- "success": true,
- "message": "",
- "error": null
Specific legal invoice account
This method shows you the specific legal invoice account related to the id
Authorizations:
path Parameters
id required | string Example: 62b19eea2f7b5264ce34ac29 Account id |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://legalinvoice.openapi.it/account/%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);
Response samples
- 200
- 400
- 404
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "attivo",
- "tipo_account": "forfettario",
- "password": "iujedwhn324234",
- "fatture": 50,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": 1939728960,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Add extra invoices or extra company names
This method allows you to add extra invoices or extra company names. Invoices can be added for all types of accounts while company names can only be added for those of the 'pro' type.
Authorizations:
path Parameters
id required | string Example: 62b19eea2f7b5264ce34ac29 Account id |
Request Body schema: application/json
fatture_extra | integer [ 50 .. 900 ] number of extra invoices, only accepted multiples of 50 for forfettario and 100 for start/pro |
ragioni_sociali_extra | integer [ 1 .. 1000 ] number of extra company names |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- Payload
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
- "fatture_extra": 200
Response samples
- 200
- 400
- 402
- 404
- 406
- 428
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "attivo",
- "tipo_account": "forfettario",
- "password": "iujedwhn324234",
- "fatture": 50,
- "fatture_extra": 200,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": 1939728960,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Revocation of a legal invoice account
This method allows you to revoke the specific legal invoice account related to the id
Authorizations:
path Parameters
id required | string Example: 62b19eea2f7b5264ce34ac29 Account id |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://legalinvoice.openapi.it/account/%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);
Response samples
- 200
- 400
- 404
- 428
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "revocato",
- "tipo_account": "forfettario",
- "password": "iujedwhn324234",
- "fatture": 50,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": 1939728960,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Renewal of legal invoice account
This method allows you to renew for one or more year the legal invoice account identified by the id
Authorizations:
path Parameters
id required | string Example: 62b19eea2f7b5264ce34ac29 Account id |
query Parameters
anni | integer Example: anni=2 Number of years for which you want to renew the account. If not passed it is 1 by default |
Responses
Response Schema: application/json
object (Account) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://legalinvoice.openapi.it/account/%7Bid%7D/rinnovo?anni=2"); 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);
Response samples
- 200
- 400
- 402
- 404
- 428
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "attivo",
- "tipo_account": "forfettario",
- "password": "iujedwhn324234",
- "fatture": 50,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": 1939728960,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null
Specific legal invoice account
This method shows you the the legal invoice account or accounts related to the email
Authorizations:
path Parameters
email required |
Responses
Response Schema: application/json
Account (object) or Accounts (object) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://legalinvoice.openapi.it/account/%7Bemail%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);
Response samples
- 200
- 400
- 404
- "data": {
- "cf_piva_titolare": "12485671007",
- "denominazione_titolare": "openapi srl",
- "comune_titolare": "roma",
- "indirizzo_titolare": "via filippo marinetti 221",
- "cap_titolare": "00143",
- "provincia_titolare": "rm",
- "nome_richiedente": "Mario",
- "cognome_richiedente": "Rossi",
- "sesso_richiedente": "M",
- "cf_richiedente": "MRXXXXXXXXXXXF",
- "documento_identita": "d64681184e3637335b606acdfa79b927.pdf",
- "modulo_attivazione": "75a9580aeb9a97d050cd00118bceb7f8.pdf",
- "data_nascita_richiedente": null,
- "telefono": null,
- "cellulare": null,
- "stato": "attivo",
- "tipo_account": "forfettario",
- "password": "iujedwhn324234",
- "fatture": 50,
- "fatture_extra": 0,
- "ragioni_sociali_extra": 0,
- "timestamp_creazione": 1655807719,
- "timestamp_ultima_modifica": 1655816051,
- "timestamp_scadenza": 1939728960,
- "autorinnovo": false,
- "id": "62b19eea2f7b5264ce34ac29"
- "success": true,
- "message": "",
- "error": null