{"openapi":"3.0.0","info":{"title":"A-CUBE API","version":"1.21.6","description":"\n## Getting started\n\nA-CUBE API helps you handling the interaction with **SDI** (*Sistema Di Interscambio*) through simples REST APIs.\n\nWhen you get onboard the A-CUBE API Platform you will receive\n\n- username and password for the authentication\n- a recipient code that must be used in all the invoices that you will receive from third party companies\n\n---\n\nThe process to create and send a new invoice explained in few steps:\n\n1. Login into the platform to obtain a JWT token\n2. [Creates an invoice payload](#operation/postInvoiceCollection) in JSON format\n3. The invoice payload is sent to `POST /invoices`\n4. The invoice payload is validated, translated into FatturaPA XML format and sent to the SDI\n5. Every notification from SDI will be dispatched in real time to the [configured endpoints](#tag/ApiConfiguration).\nAll the notification will always be available using the [notifications API](#tag/Notification)\n\n## Environments\n\n- **sandbox** is the environment where you can test the entire platform without paying at any time, the communication with SDI is simulated.\nThe base URL is https://api-sandbox.acubeapi.com\n- **production** is the environment where the communication with SDI is real, you can't send an invoice to test.\nIf you want to make a real test then you will need to send a credit note to cancel the sent invoice.\nThe base URL is https://api.acubeapi.com\n\nWe support the following TLS protocols: TLSv1_2016 TLSv1.1_2016 TLSv1.2_2018\n\n## Authentication\n\nTo obtain a JWT token send a `POST https://common.api.acubeapi.com/login` (or `POST https://common-sandbox.api.acubeapi.com/login` in case your working on the sandbox environment) specifying the HTTP header `Content-Type: application/json` with the following payload\n\n```\n{\n    \"email\": \"your@email.com\",\n    \"password\": \"your password\"\n}\n```\n\nIf the login went fine you will receive a response with\n\n```\n{\n    \"token\": \"a very long encrypted token\"\n}\n```\n\nThe token you receive is a JWT token that lasts 24 hours.\nThe token is composed by 3 parts, each part is delimited by a dot (`.`) char.\nExploding the token by `.` and doing a base64 decode of the second part you will obtain some useful informtion. Example\n\n```\n{\"iat\":<issue timestamp>,\"exp\":<expire timestamp>,\"roles\":{\"<project name>\": [\"ROLE_WRITER\"]},\"username\":<your email>,\"uid\":<your identifier>}\n```\n\n**You can ask for a token once in 24 hours.**\n\nThe token must be set as Bearer into the **Authorization** header. Example:\n\n```\ncurl -X GET \\\n  https://api-sandbox.acubeapi.com/business-registries \\\n  -H 'Accept: application/json' \\\n  -H 'Authorization: Bearer <here the received token>' \\\n```\n\n<!-- ReDoc-Inject: <security-definitions> -->\n\n## Api orchestration\n\nYou can configure your own endpoints that A-CUBE API will call when an event happens.\nTo manage your endpoints you can use the [API](#tag/ApiConfiguration) or the [dashboard](https://dashboard.acubeapi.com)\n\nThe events that may happen into the platform are:\n\n- **supplier-invoice** when an invoice is received from SDI\n- **supplier-notification** when a notification for a received invoice comes from SDI (only for PA users)\n- **customer-notification** when a notification for a sent invoice comes from SDI\n- **legal-storage-missing-vat** when a `BusinessRegistryConfiguration` is missing the email address required to activate the Legal Storage\n- **legal-storage-receipt** when a `PreservedDocument` receives the receipt from the legal storage\n\n**Every invoice in the platform is identified by a UUID**. This key is received for both created and received invoices.\n\nAll the messages sent to your endpoint are sent with a `POST` request.\nWe manage sending the messages to your endpoints with a queue:\nif your endpoint fails (we don't get a `200` response) then we will retry every 15 minutes for 8 hours.\n\n# Invoices\n\n## Invoice status\n\nEvery invoice has a `marking` property that describes the current status of an invoice.\n\nYou can filter invoices by `marking` as specified [here](#operation/getInvoiceCollection)\n\nThe following diagram shows how the `marking` property is managed into the platform.\n\n<img src=\"/images/public_marking.png\" style=\"max-width: 720px\" alt=\"Invoice marking schema\" />\n\n## Sending an invoice\n\nTo send an invoice you can choose to build a JSON payload as described [here](#operation/postInvoiceCollection).\nIn this case you must send the HTTP header `Content-Type: application/json`.\n\nAlternatively you can send the invoice in the original [FatturaPA format](http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm) and send  the HTTP header `Content-Type: application/xml`.\n\nIn both cases the **endpoint** is `POST /invoices`.\n\nIf everything is fine you will receive an `HTTP 201` or `HTTP 202` status and the invoice UUID as the response.\nThe `marking` property of the invoice will be set at `sent`.\n\nIf something wrong happens during communication with SDI you get back a `HTTP 202` status saying that your invoice has been accepted and queued to retry later.\nA retry will be performed every 15 minutes 32 times.\nThe `marking` property of the invoice will be set at `quarantena`.\n\nIf you want to get instantly the invoice UUID, without waiting for the SDI response, you must send the HTTP header `X-SendAsync: true`.\nIn this case your invoice will be queued instantly and you will get back the invoice UUID as usual, along with the `HTTP 202` status code.\nThe `marking` property of the invoice will be set at `waiting`. You invoice will be processed in about 60s.\n\nWhen the retry will be successful the `marking` property wil be set at `sent`.\nIf, after 32 retries, the invoice is not sent, the `marking` property wil be set at `invoice-error`.\n\nIf the platform can not manage the error you will get a response with a body describing the error in JSON and a status code:\n\n- `HTTP 400` if validation will fail.\n- `HTTP 500` in case of a general error server side.\n\nIn any of the 5xx cases the `marking` property of the invoice will be set at `quarantena` and the `notice` field will describe the problem happened.\n\n**Note**: to avoid retry and manage manually a failure, send the HTTP Header `X-DisableRetry: true` and in case of failure you will receive a 500 HTTP status code.\n\n### Signature\n\nAll invoices to Government (PA) are signed by default, while when the recipient is a company you choose:\n\n- if you have enabled the invoice signature in your contract\n    - by default all the invoices to private companies are signed\n    - you can choose to sign invoice by invoice, by sending the HTTP header `X-SignInvoice: true`\n- if you don't have invoice signature enabled in your contract, invoices will never be signed\n\nInvoice signature is put in the `XAdES-BES` form.\n\n## Receiving an invoice\n\nWhen an invoice with your recipient code (`codice destinatario`) is received, we will send it to your configured endpoint for the event **supplier-invoice**.\n\nThe received payload structure is\n\n```\n{\n    \"invoice\": {\n        \"uuid\": <Invoice UUID>,\n        \"filename\": <Invoice SDI filename>,\n        \"created_at\": <Creation date>,\n        \"payload\": <Invoice JSON>\n    }\n}\n```\n\nThe `marking` property of the invoice will be set at `received` in case everything went fine,\nor `quarantena` in case something went wrong acquiring the invoice (in this case the `notice` property will explain the problem happened).\n\n### What happens to P7M files?\n\nWhen A-Cube receives a P7M signed file, the XML is extracted and made available via API. By the way you can retrieve the original file\nusing the API call [GET /invoices/{uuid}](#operation/getInvoiceItem) specifing the header `Accept: application/octet-stream`\n\n## Receiving a notification for a sent invoice\n\nAll the notifications received by SDI will be dispatched to your configured endpoints for the event **customer-notification**.\n\nThe notification\n\n```\n{\n    \"notification\": {\n        \"uuid\": <Notification UUID>,\n        \"invoice_uuid\": <Invoice UUID>,\n        \"created_at\": <Creation date>,\n        \"type\": <Notification type>,\n        \"message\": <Notification JSON>\n    },\n    \"invoice\": <Invoice JSON>\n}\n```\n\nThe `<Notification type>` is a code which identify the event:\n\n`NS` (Notifica di scarto) Received when SDI reject your invoice because it contains errors.\nThe `marking` property of the related invoice will be set at `rejected`.\n\n`MT` (File metadati) Received along with the supplier invoice when delivered by SDI.\n\n`RC` (Ricevuta consegna) Received when SDI delivers your invoice.\nThe `marking` property of the related invoice will be set at `delivered` in case of B2B invoice or `delivered-pa` in case of B2G invoice.\n\n`MC` (Mancata consegna) Received when SDI can not deliver the invoice to the recipient.\nThe `marking` property of the related invoice will be set at `not-delivered`.\n\n`EC` (Esito committente) Sent to the SDI when a PA decide to accept or reject an invoice (only for PA users).\n\n`SE` (Scarto esito committente) Received when SDI doesn't accept an EC notification because it's not valid (only for PA users).\n\n`NE` (Notifica esito) Received from SDI when a PA decided to accept or reject your invoice.\nThe `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`.\n\n`DT` (Notifica decorrenza termini) Received when a PA doesn't reaply with acceptance or rejection within 15 days.\nThe `marking` property of the related invoice will be set at `deadline-terms`.\n\n`AT` (Attestazione trasmissione con impossibilità di recapito) Received when SDI can't deliver your invoice to PA after 10 days.\nThe `marking` property of the related invoice will be set at `not-delivered`.\n\nIf an error happens during the acquisition of a notification, the `marking` property of the related invoice will be set at `notificaion-error`.\n\n## Simplified invoices\n\n`FatturaElettronicaSemplificata` is a simplified version of the FatturaPA XML format.\n\nIt requires less information to fill, particularly with regards of the customer information.\n\nThe API to be used is [`POST /invoices/simplified`](#operation/postInvoiceSimplifiedCollection).\n\nFollow an example of simplified invoice\n\n```\n{\n    \"fattura_elettronica_header\": {\n        \"dati_trasmissione\": {\n            \"codice_destinatario\": \"ABCDEFG\"\n        },\n        \"cedente_prestatore\": {\n            \"id_fiscale_iva\": {\n                \"id_paese\": \"IT\",\n                \"id_codice\": \"12345678901\"\n            },\n            \"sede\": {\n                \"indirizzo\": \"address string\",\n                \"cap\": \"12345\",\n                \"comune\": \"city string\",\n                \"nazione\": \"IT\"\n            },\n            \"regime_fiscale\": \"RF01\"\n        },\n        \"cessionario_committente\": {\n            \"identificativi_fiscali\": {\n                \"codice_fiscale\": \"ABSDVFCNSHBGAFTS\"\n            }\n        }\n    },\n    \"fattura_elettronica_body\": [{\n        \"dati_generali\": {\n            \"dati_generali_documento\": {\n                \"tipo_documento\": \"TD07\",\n                \"divisa\": \"EUR\",\n                \"data\": \"2020-07-01\",\n                \"numero\": \"111\"\n            }\n        },\n        \"dati_beni_servizi\": [{\n            \"descrizione\": \"goods description\",\n            \"importo\": \"100\",\n            \"dati_iva\": {\n                \"imposta\": \"22\"\n            }\n        }]\n    }]\n}\n```\n\n## Importing invoices\n\nYou can import invoices that was already transited through SDI.\nThese invoices will not be sent to SDI, but they will be sent to the legal storage whenever is required.\n\n### Customer invoices\n\nTo import customer invoices the API call is [`POST /customer-invoice-imports`](#operation/postCustomerInvoiceImportCollection).\nYou must provide as a payload the base64 encoded invoice plus the base64 encoded notifications.\nYou must provide at least one of RC or MC notification.\n\nExample:\n\n```\n{\n    \"invoice\": \"here the base64 encoded invoice XML\",\n    \"notifications\": {\n        \"RC\": \"here the base64 encoded RC notification\",\n        \"NE\": \"here the base64 encoded NE notification\"\n    }\n}\n```\n\n### Supplier invoices\n\nTo import supplier invoices the API call is [`POST /supplier-invoice-imports`](#operation/postSupplierInvoiceImportCollection).\nYou must provide as a payload the base64 encoded invoice plus the base64 encoded metadata file received along with the invoice.\nIt's important to provide the metadata file because it contains useful information like the SDI ID.\n\nExample:\n\n```\n{\n    \"invoice\": \"here the base64 encoded invoice XML\",\n    \"metadata\": \"here the base64 encoded metadata file\"\n}\n```\n\n** Note ** The unit price per invoice is the same applied to normal invoices.\n\n## Searching for documents\n\nWhen asking for a list of invoices you will receive 30 documents per page. You can switch page via the query parameter `page`.\n\nTo get information about the pagination you can send the HTTP header `application/ld+json`. You will receive an enriched payload containing the keys:\n\n- `hydra:member` - the array with the retrieved items\n- `hydra:totalItems` - total filtered items\n- `hydra:view`\n  - `hydra:first` - URL to the first page\n  - `hydra:last` - URL to the last page\n  - `hydra:next` - URL to the next page\n- `hydra:search` - object containing information about the filters\n\nSee [Hydra specifications](https://www.hydra-cg.com/spec/latest/core/) for more information.\n\nSee the documentation to retrieve the [collection](#operation/getInvoiceCollection) for a reference on the filters you can apply.\n\n# Legal Storage\n\nLegal Storage is the service that enables the legal preservation for your documents.\nAll the stored documents are available into the legal storage management software, a third party software (**4ged** available at [https://acube.ewitness.eu](https://acube.ewitness.eu)).\n\n## Flow\n\n1. A PreservedDocument is created and it has `status` equal to `to_be_stored`.\n2. When the PreservedDocument is sent to the legal storage the `status` is set to `sent`.\n3. Once the preservation has been requested, the legal storage will take in charge the document as soon as possible and it will send us a receipt that the document has been taken in charge. The `status` of the document will change in `stored`.\n4. If an error occurred during the process the status will be set to `error` and the field `message` will contain the message received by the legal storage.\n\n## Invoices\n\nAn invoice is elegible for the preservation when these conditions are satisfied:\n\n- The legal storage is enabled in your contract.\n- In case of customer invoices:\n    - The supplier vat number is registered into the `BusinessRegistryConfiguration` and has the `apply_legal_storage` flag set to `true`.\n    - OR the `X-Apply-LegalStorage: true` header is sent.\n- In case of supplier invoices:\n    - The customer vat number or fiscal code is registered into the `BusinessRegistryConfiguration` and has the `apply_legal_storage` flag set to `true`.\n\nAn invoice is sent effectively to the legal storage when is elegible for the preservation and:\n\n- In case of customer invoices:\n    - A notification `RC` or `MC` is received in case of B2B invoices.\n    - A notification `NE`, `DT` or `AT` is received in case of PA invoices.\n- In case of supplier invoices or extra SDI invoices:\n    - The invoice is sent to the legal storage as soon as it is received.\n\nCustomer invoices are sent to the preservation together with all the received notifications (except for NS notifications).\n\nOnce the legal storage takes in charge the document we will receive a receipt, a signed XML document that certifies the invoice has been processed.\nYou can get the receipt by invoking the [API GET /preserved-documents/{uuid}/receipt](#tag/PreservedDocumentReceipt).\n\nYou can receive a realtime notification when a document receives a receipt by declaring an ApiConfiguration for the event [legal-storage-receipt](#operation/postApiConfigurationCollection).\nYou will receive a JSON document for the `PreservedDocument` which received the receipt.\n\nYou can get the `PreservedDocument` for an invoice using the [API GET /invoices/{uuid}/preserved-document](#operation/api_invoices_preserved_document_get_subresource).\nYou will get the same information also in the details of an invoice within the `preserved_document` key.\n\n## Other types of documents\n\nTo send an `Extra SDI` invoice for preservation take a look at [API POST /invoices/extra-sdi](#operation/postInvoiceExtraSDICollection).\n\n## Users hyerarchy and user activation\n\nThere are two types of account who can access into [https://acube.ewitness.eu](https://acube.ewitness.eu):\n\n- The `Customer` account, who is the documents owner, that is to say your customer. The Customer account sees only his own invoices.\n- The `CustomerGroup` account, which is your kind of access as a A-Cube customer. You will have access to all your customer documents.\n\nThe `Customer` account is activated automatically through the following flow:\n\n- As soon as the legal storage receives an invoice for a vat number/fiscal code which is not registered, A-Cube platform will be notified that an email address is required.\n- If an email address has not been provided yet into the linked `BusinessRegistryConfiguration`:\n    - A-Cube will mark the linked `BusinessRegistryConfiguration` with the date time the request was received into the field `email_for_preservation_requested_at` (ref. [API GET /business-registry-configurations/{fiscalId}](#operation/getBusinessRegistryConfigurationItem)).\n    - You will need to provide the email address for your customer using the [API PUT /business-registry-configurations/{fiscalId}](#operation/putBusinessRegistryConfigurationItem) or the [dashboard](https://dashboard.acubeapi.com).\n    - If you have configured an `ApiConfiguration` for the `legal-storage-missing-vat` event you will be notified at your endpoint. You will receive the `BusinessRegistryConfiguration` payload ([API GET /business-registry-configurations/{fiscalId}](#operation/getBusinessRegistryConfigurationItem)) that you will need to give back to A-Cube with [API PUT /business-registry-configurations/{fiscalId}](#operation/putBusinessRegistryConfigurationItem). To manage your endpoints you can use the [API](#tag/ApiConfiguration) or the [dashboard](https://dashboard.acubeapi.com).\n\n    You can simulate the `legal-storage-missing-vat` event by following [this tutorial](#simulate-legal-storage-missing-vat)\n- A-Cube will transmit the email address to the legal storage as soon as it is provided into the linked `BusinessRegistryConfiguration`.\n- The legal storage will send an email to your customer to activate the account.\n\nThe `CustomerGroup` account is enabled directly by A-Cube for you.\n\n# Sandbox\n\n## Introduction\n\nThe sandbox environment is useful to test the integration with A-CUBE API without interacting with the SDI.\n\nThe sandbox environment is available at [https://api-sandbox.acubeapi.com](https://api-sandbox.acubeapi.com).\n\n## Simulate customer invoice\n\nYou can use the API `POST /invoices` to send a customer invoice as specified [here](#section/Sending-an-invoice). In sandbox environment it will not sent to SDI.\nIf you want to simulate that this invoice will fail, specify the `X-WithRetry: true` HTTP header, it will be created with status `quarantena` so you can retry to process invoice (see below).\nThe body must contain a valid Invoice payload.\n\n## Simulate customer invoice retry\n\n`POST /simulate/customer-invoice/<uuid>/retry` here you can simulate to reprocess an invoice that was previously sent with `X-WithRetry: true`.\n\n## Simulate supplier invoice\n\n`POST /simulate/supplier-invoice` here you must **send an invoice** as the payload,\nit will be delivered to your configured endpoints for the event **supplier-invoice**.\nit doesn't matter the `codice_destintario`, you will receive the invoice to your account.\nThe body must contain a valid Invoice payload.\n\nYou can send both JSON and XML invoices. Remember to specify it by using the `Content-Type` header (`application/json` or `application/xml`).\n\nExample:\n\n```\ncurl -X POST \\\n  https://api-sandbox.acubeapi.com/simulate/supplier-invoice \\\n  -H 'Authorization: Bearer <Your Bearer token here>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n      \"fattura_elettronica_header\": {\n        \"dati_trasmissione\": {\n          \"codice_destinatario\": \"1234567\"\n        },\n        \"cedente_prestatore\": {\n          \"dati_anagrafici\": {\n            \"id_fiscale_iva\": {\n              \"id_paese\": \"IT\",\n              \"id_codice\": \"12345678901\"\n            },\n            \"anagrafica\": {\n              \"denominazione\": \"John Doe\"\n            },\n            \"regime_fiscale\": \"RF01\"\n          },\n          \"sede\": {\n            \"indirizzo\": \"Via di Qua, 1\",\n            \"cap\": \"20145\",\n            \"comune\": \"Milano\",\n            \"provincia\": \"MI\",\n            \"nazione\": \"IT\"\n          }\n        },\n        \"cessionario_committente\": {\n          \"dati_anagrafici\": {\n            \"id_fiscale_iva\": {\n              \"id_paese\": \"IT\",\n              \"id_codice\": \"09876543211\"\n            },\n            \"anagrafica\": {\n              \"denominazione\": \"Jane Doe\"\n            }\n          },\n          \"sede\": {\n            \"indirizzo\": \"Via di La, 2\",\n            \"cap\": \"20145\",\n            \"comune\": \"Milano\",\n            \"provincia\": \"MI\",\n            \"nazione\": \"IT\"\n          }\n        }\n      },\n      \"fattura_elettronica_body\": [{\n        \"dati_generali\": {\n          \"dati_generali_documento\": {\n            \"tipo_documento\": \"TD01\",\n            \"divisa\": \"EUR\",\n            \"data\": \"2018-07-10\",\n            \"numero\": \"1\"\n          }\n        },\n        \"dati_beni_servizi\": {\n          \"dettaglio_linee\": [{\n            \"numero_linea\": 1,\n            \"descrizione\": \"Descrizione articolo\",\n            \"prezzo_unitario\": \"10.00\",\n            \"prezzo_totale\": \"10.00\",\n            \"aliquota_iva\": \"22.00\"\n          }],\n          \"dati_riepilogo\": [{\n            \"aliquota_iva\": \"22.00\",\n            \"imponibile_importo\": \"10.00\",\n            \"imposta\": \"2.20\"\n          }]\n        }\n      }]\n    }\n'\n```\n\n## Simulate customer notification\n\n`POST /simulate/customer-notification/<Notification type>/<Invoice uuid>` here you can simulate a **notification sent by SDI**.\nThe `<Notification type>` can be one of the following codes: `NS` `RC` `MC` `NE` `DT` `AT`.\nThe notification will be delivered to your configured endpoints for the event **customer-notification**.\nThe `<Invoice uuid>` parameter must be a UUID of an invoice created using the `POST /invoices` endpoint.\n\n## Simulate legal storage missing vat\n\nYou can simulate the `legal-storage-missing-vat` event by sending a `POST /simulate/legal-storage-missing-vat/<BusinessRegistryConfiguration fiscal id>`.\nYou will receive a [BusinessRegistryConfiguration](#operation/getBusinessRegistryConfigurationItem) payload to your configured endpoint as a POST request:\n\n```\n{\n  \"fiscal_id\": \"here the vat number / fiscal code\",\n  \"name\": null,\n  \"email\": null,\n  \"email_for_preservation_requested_at\": \"the date time the request was received\",\n  \"apply_signature\": true,\n  \"apply_legal_storage\": true,\n  \"legal_storage_active\": false,\n  \"supplier_invoice_enabled\": true\n}\n```\n\nIn the legal storage activation flow you will need to send this payload, with the `email` field filled, to [API PUT /business-registry-configurations/{fiscalId}](#operation/putBusinessRegistryConfigurationItem) or by using the [dashboard](https://dashboard.acubeapi.com).\n\n## Simulate legal storage receipt\n\nYou can simulate the `legal-storage-receipt` event by sending a `POST /simulate/legal-storage-receipt/<Invoice UUID>`.\nYou will receive a [PreservedDocument](#operation/api_invoices_preserved_document_get_subresource) payload to your configured endpoint as a POST request:\n\n```\n{\n  \"uuid\": \"eb5ee16c-7fa4-11e9-a048-0242ac130004\",\n  \"status\": \"stored\",\n  \"receipt_received_at\": \"2019-05-26T10:56:31+00:00\",\n  \"object_type\": \"customer invoice\",\n  \"message\": null,\n  \"preserved_object_id\": \"25071e2f-cf4a-430c-8d5b-1ef2595a67cc\",\n  \"weight\": 100,\n  \"created_at\": \"2019-05-26T10:56:31+00:00\"\n}\n```\n\n# Changelog\n\nSee [here](changelog.html) the list of releases.\n"},"paths":{"/api-configurations":{"get":{"tags":["ApiConfiguration"],"operationId":"getApiConfigurationCollection","summary":"Retrieves the collection of ApiConfiguration resources.","responses":{"200":{"description":"ApiConfiguration collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}}}}},"parameters":[{"name":"businessRegistryConfigurations.fiscalId","in":"query","required":false,"schema":{"type":"string"}},{"name":"businessRegistryConfigurations.fiscalId[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}}]},"post":{"tags":["ApiConfiguration"],"operationId":"postApiConfigurationCollection","summary":"Creates a ApiConfiguration resource.","responses":{"201":{"description":"ApiConfiguration resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}}},"description":"The new ApiConfiguration resource"}}},"/api-configurations/{id}":{"delete":{"tags":["ApiConfiguration"],"operationId":"deleteApiConfigurationItem","summary":"Removes the ApiConfiguration resource.","responses":{"204":{"description":"ApiConfiguration resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"get":{"tags":["ApiConfiguration"],"operationId":"getApiConfigurationItem","summary":"Retrieves a ApiConfiguration resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"ApiConfiguration resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}}}},"404":{"description":"Resource not found"}}},"put":{"tags":["ApiConfiguration"],"operationId":"putApiConfigurationItem","summary":"Replaces the ApiConfiguration resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-write"}}},"description":"The updated ApiConfiguration resource"},"responses":{"200":{"description":"ApiConfiguration resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/ApiConfiguration-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/business-registries":{"get":{"tags":["BusinessRegistry"],"operationId":"getBusinessRegistryCollection","summary":"Retrieves the collection of BusinessRegistry resources.","responses":{"200":{"description":"BusinessRegistry collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistry-read"}}}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]},"post":{"tags":["BusinessRegistry"],"operationId":"postBusinessRegistryCollection","summary":"Creates a BusinessRegistry resource.","responses":{"201":{"description":"BusinessRegistry resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}}},"description":"The new BusinessRegistry resource"}}},"/business-registries/{id}":{"get":{"tags":["BusinessRegistry"],"operationId":"getBusinessRegistryItem","summary":"Retrieves a BusinessRegistry resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"BusinessRegistry resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}}}},"404":{"description":"Resource not found"}}},"delete":{"tags":["BusinessRegistry"],"operationId":"deleteBusinessRegistryItem","summary":"Removes the BusinessRegistry resource.","responses":{"204":{"description":"BusinessRegistry resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"tags":["BusinessRegistry"],"operationId":"putBusinessRegistryItem","summary":"Replaces the BusinessRegistry resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-write"}}},"description":"The updated BusinessRegistry resource"},"responses":{"200":{"description":"BusinessRegistry resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistry-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/business-registry-configurations":{"get":{"tags":["BusinessRegistryConfiguration"],"operationId":"getBusinessRegistryConfigurationCollection","summary":"Retrieves the collection of BusinessRegistryConfiguration resources.","responses":{"200":{"description":"BusinessRegistryConfiguration collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}}}}},"parameters":[{"name":"fiscalId","in":"query","required":false,"schema":{"type":"string"}},{"name":"fiscalId[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"supplierInvoiceEnabled","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"applySignature","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"applyLegalStorage","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"legalStorageActive","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]},"post":{"tags":["BusinessRegistryConfiguration"],"operationId":"postBusinessRegistryConfigurationCollection","summary":"Creates a BusinessRegistryConfiguration resource.","responses":{"201":{"description":"BusinessRegistryConfiguration resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}}},"description":"The new BusinessRegistryConfiguration resource"}}},"/business-registry-configurations/{fiscal_id}/reset-legal-storage-password":{"get":{"description":"\nAsk to reset legal storage portal password for the provided fiscal identifier","summary":"Reset legal storage portal password.","responses":{"200":{"description":"OK"},"403":{"description":"Forbidden"},"404":{"description":"Not found"}},"tags":["BusinessRegistryConfiguration"],"operationId":"reset_ewitness_passwordBusinessRegistryConfigurationItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/business-registry-configurations/{id}":{"get":{"tags":["BusinessRegistryConfiguration"],"operationId":"getBusinessRegistryConfigurationItem","summary":"Retrieves a BusinessRegistryConfiguration resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"BusinessRegistryConfiguration resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}}},"404":{"description":"Resource not found"}}},"put":{"tags":["BusinessRegistryConfiguration"],"operationId":"putBusinessRegistryConfigurationItem","summary":"Replaces the BusinessRegistryConfiguration resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-write"}}},"description":"The updated BusinessRegistryConfiguration resource"},"responses":{"200":{"description":"BusinessRegistryConfiguration resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}},"delete":{"tags":["BusinessRegistryConfiguration"],"operationId":"deleteBusinessRegistryConfigurationItem","summary":"Removes the BusinessRegistryConfiguration resource.","responses":{"204":{"description":"BusinessRegistryConfiguration resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/customer-invoice-imports":{"post":{"description":"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 if necessary","summary":"Import customer invoice","tags":["CustomerInvoiceImport"],"operationId":"postCustomerInvoiceImportCollection","responses":{"201":{"description":"CustomerInvoiceImport resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"text/html":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"text/xml":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"application/zip":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"text/html":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"text/xml":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"application/zip":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d"}}},"description":"The new CustomerInvoiceImport resource"}}},"/invoice-extra-s-d-i-input-business-registries":{"get":{"tags":["InvoiceExtraSDIInputBusinessRegistry"],"operationId":"getInvoiceExtraSDIInputBusinessRegistryCollection","summary":"Retrieves the collection of InvoiceExtraSDIInputBusinessRegistry resources.","responses":{"200":{"description":"InvoiceExtraSDIInputBusinessRegistry collection response"}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]},"post":{"tags":["InvoiceExtraSDIInputBusinessRegistry"],"operationId":"postInvoiceExtraSDIInputBusinessRegistryCollection","summary":"Creates a InvoiceExtraSDIInputBusinessRegistry resource.","responses":{"201":{"description":"InvoiceExtraSDIInputBusinessRegistry resource created"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}}},"description":"The new InvoiceExtraSDIInputBusinessRegistry resource"}}},"/invoice-extra-s-d-i-input-business-registries/{id}":{"get":{"tags":["InvoiceExtraSDIInputBusinessRegistry"],"operationId":"getInvoiceExtraSDIInputBusinessRegistryItem","summary":"Retrieves a InvoiceExtraSDIInputBusinessRegistry resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"InvoiceExtraSDIInputBusinessRegistry resource response"},"404":{"description":"Resource not found"}}},"delete":{"tags":["InvoiceExtraSDIInputBusinessRegistry"],"operationId":"deleteInvoiceExtraSDIInputBusinessRegistryItem","summary":"Removes the InvoiceExtraSDIInputBusinessRegistry resource.","responses":{"204":{"description":"InvoiceExtraSDIInputBusinessRegistry resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"tags":["InvoiceExtraSDIInputBusinessRegistry"],"operationId":"putInvoiceExtraSDIInputBusinessRegistryItem","summary":"Replaces the InvoiceExtraSDIInputBusinessRegistry resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"}}},"description":"The updated InvoiceExtraSDIInputBusinessRegistry resource"},"responses":{"200":{"description":"InvoiceExtraSDIInputBusinessRegistry resource updated"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/invoice-extra-s-d-i-input-metadatas":{"get":{"tags":["InvoiceExtraSDIInputMetadata"],"operationId":"getInvoiceExtraSDIInputMetadataCollection","summary":"Retrieves the collection of InvoiceExtraSDIInputMetadata resources.","responses":{"200":{"description":"InvoiceExtraSDIInputMetadata collection response"}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]},"post":{"tags":["InvoiceExtraSDIInputMetadata"],"operationId":"postInvoiceExtraSDIInputMetadataCollection","summary":"Creates a InvoiceExtraSDIInputMetadata resource.","responses":{"201":{"description":"InvoiceExtraSDIInputMetadata resource created"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}}},"description":"The new InvoiceExtraSDIInputMetadata resource"}}},"/invoice-extra-s-d-i-input-metadatas/{id}":{"get":{"tags":["InvoiceExtraSDIInputMetadata"],"operationId":"getInvoiceExtraSDIInputMetadataItem","summary":"Retrieves a InvoiceExtraSDIInputMetadata resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"InvoiceExtraSDIInputMetadata resource response"},"404":{"description":"Resource not found"}}},"delete":{"tags":["InvoiceExtraSDIInputMetadata"],"operationId":"deleteInvoiceExtraSDIInputMetadataItem","summary":"Removes the InvoiceExtraSDIInputMetadata resource.","responses":{"204":{"description":"InvoiceExtraSDIInputMetadata resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"tags":["InvoiceExtraSDIInputMetadata"],"operationId":"putInvoiceExtraSDIInputMetadataItem","summary":"Replaces the InvoiceExtraSDIInputMetadata resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}}},"description":"The updated InvoiceExtraSDIInputMetadata resource"},"responses":{"200":{"description":"InvoiceExtraSDIInputMetadata resource updated"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/invoices":{"post":{"description":"Create a new invoice and send it to the government channel","tags":["Invoice"],"operationId":"postInvoiceCollection","summary":"Creates a Invoice resource.","responses":{"201":{"description":"Invoice resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Invoice_63c49e7c5585a4291733a4fe9ca56176-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Invoice_0821e7e95ba0b7bf325021140f2120a0-write"}}},"description":"The new Invoice resource"}},"get":{"description":"\nCurrently the Invoice resource contains a `notification` index with a list of notification for the invoice.\nThe `notification` index is deprecated in favour of using the endpoint `/invoices/{uuid}/notifications`\n\nYou can get an invoice collection in many different formats just specifying a different Accept header:\n\n- **application/json**, default, you get some metadata information together with the json payload that represent the invoice\n- **application/zip**, get a zip file with invoices collection (ZIP format)\n","tags":["Invoice"],"operationId":"getInvoiceCollection","summary":"Retrieves the collection of Invoice resources.","responses":{"200":{"description":"Invoice collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Invoice-read"}}}}}},"parameters":[{"name":"createdAt[before]","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdAt[strictly_before]","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdAt[after]","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdAt[strictly_after]","in":"query","required":false,"schema":{"type":"string"}},{"name":"signed","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"downloaded","in":"query","required":false,"schema":{"type":"boolean"}},{"description":"Search invoices that was sent to PA.","name":"toPa","in":"query","required":false,"schema":{"type":"string"}},{"description":"When type is 0 search for invoices sent to a customer, when type is 1 search for invoice received by a supplier","name":"type","in":"query","required":false,"schema":{"type":"string"}},{"description":"Search by sender (vat number OR fiscal code). You can specify more values at once comma separated.","name":"sender","in":"query","required":false,"schema":{"type":"string"}},{"description":"Search by recipient (vat number OR fiscal code). You can specify more values at once comma separated.","name":"recipient","in":"query","required":false,"schema":{"type":"string"}},{"name":"invoiceDate[before]","in":"query","required":false,"schema":{"type":"string"}},{"name":"invoiceDate[strictly_before]","in":"query","required":false,"schema":{"type":"string"}},{"name":"invoiceDate[after]","in":"query","required":false,"schema":{"type":"string"}},{"name":"invoiceDate[strictly_after]","in":"query","required":false,"schema":{"type":"string"}},{"name":"invoiceNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"recipient.businessName","in":"query","required":false,"schema":{"type":"string"}},{"name":"recipient.businessVatNumberCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"recipient.businessVatNumberCode[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"recipient.businessFiscalCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"recipient.businessFiscalCode[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"sender.businessName","in":"query","required":false,"schema":{"type":"string"}},{"name":"sender.businessVatNumberCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"sender.businessVatNumberCode[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"sender.businessFiscalCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"sender.businessFiscalCode[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"marking","in":"query","required":false,"schema":{"type":"string"}},{"name":"marking[]","in":"query","required":false,"explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]}},"/invoices/convert":{"post":{"summary":"Convert an invoice between supported formats","description":"Convert an invoice between supported formats.\n\nSending header `Content-Type: application/json` you will receive back the XML file,\nwhile sending `Content-Type: application/xml` you will receive the JSON content.","responses":{"200":{"description":"OK"},"400":{"description":"Invalid input"}},"tags":["Invoice"],"operationId":"convertInvoiceCollection"}},"/invoices/downloaded":{"post":{"description":"\nSetup the downloaded flag for a collection of invoices.<br>\n<strong>Note</strong>: the downloaded flag is automatically set when an invoice is successfully received with the web-hook","summary":"Setup the downloaded flag for a collection of invoices.","tags":["Invoice"],"responses":{"200":{"description":"The downloaded flag has been set"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"operationId":"api_invoice_batch_downloadedDownloadedEntityCollection","requestBody":{"$ref":"#/components/requestBodies/DownloadedEntity"}}},"/invoices/extra-sdi":{"post":{"description":"Create a new Extra SDI Invoice. As response you will get back the uuid of the created resource.\nThe invoice will be available within the `GET /invoices?type=3` collection or\nusing the usual `GET /invoices/{uuid}` HTTP request.","tags":["InvoiceExtraSDI"],"operationId":"postInvoiceExtraSDICollection","summary":"Creates a InvoiceExtraSDI resource.","responses":{"201":{"description":"InvoiceExtraSDI resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701"}}},"description":"The new InvoiceExtraSDI resource"}}},"/invoices/simplified":{"post":{"description":"Create a new Simplified Invoice (FatturaElettronicaSemplificata FSM10). As response you will get back the uuid of the created resource.\nThe invoice will be available within the `GET /invoices` collection or via the `GET /invoices/{uuid}` HTTP request.","tags":["InvoiceSimplified"],"operationId":"postInvoiceSimplifiedCollection","summary":"Creates a InvoiceSimplified resource.","responses":{"201":{"description":"InvoiceSimplified resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write"}}},"description":"The new InvoiceSimplified resource"}}},"/invoices/stats/{year}":{"get":{"description":"Get the statistic information about your invoices.\n\nYou will receive the sum of invoices and notification, sum of the costs.\nSpecifying the query parameters `fiscal_id` you will get the statistics for a specific customer.\n\nBy default statistics are collected on annual basis but you can ask A-Cube to activate deeper collect operations to get `months`, `days` and even `hour_slots` statistics.","parameters":[{"in":"query","name":"fiscal_id","description":"The fiscal identifier you want to extract statistics, optional. if not provided you will receive the total counters.","schema":{"type":"string"}}],"tags":["InvoiceStats"],"operationId":"getInvoiceStatsItem","summary":"Retrieves a InvoiceStats resource.","responses":{"200":{"description":"InvoiceStats resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"text/html":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"application/xml":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"text/xml":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"application/zip":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/InvoiceStats_6533b6eb3bb11051af206512e18f1ecf"}}}},"404":{"description":"Resource not found"}}}},"/invoices/{id}":{"get":{"parameters":[{"name":"uuid","required":true,"in":"path","schema":{"type":"string"}}],"description":"\n You can get an invoice in many different formats just specifying a different Accept header:\n\n - **application/json**, default, you get some metadata information together with the json payload that represent the invoice\n - **application/xml**, you get the XML format\n - **text/html**, you get the invoice formatted with the chosen stylesheet (via X-PrintTheme header, see below)\n - **application/pdf**, same as HTML but as a PDF file\n - **application/octet-stream**, get the raw file (P7M or XML format)\n\nIn case of HTML and PDF you can choose the printing theme specifying the X-PrintTheme header:\n\n - **standard**, default printing theme\n - **assosoftware**, AssoSoftware printing theme\n - **acube**, A-Cube printing theme (derived from AssoSoftware theme)\n\nIn case you choose A-Cube printing theme, you can write dynamic text within the output file, at the very beginning or in the file footer:\nyou must provide the URL query paramter `dynamic[head-notes]` or `dynamic[foot-notes]`.\n\nExample: `GET /invoices/{uuid}?dynamic[head-notes]=some text in the header&dynamic[foot-notes]=some text in the footer`\n","tags":["Invoice"],"operationId":"getInvoiceItem","summary":"Retrieves a Invoice resource.","responses":{"200":{"description":"Invoice resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/Invoice-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Invoice-read"}}}},"404":{"description":"Resource not found"}}}},"/invoices/{id}/notifications/notify":{"post":{"summary":"Notify your configured webhook for an invoice notifications","responses":{"200":{"description":"OK"},"404":{"description":"Not found"}},"tags":["Invoice"],"operationId":"notify_invoice_notificationsInvoiceItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/invoices/{id}/notify":{"post":{"summary":"Notify your configured webhook for an invoice","responses":{"200":{"description":"OK"},"404":{"description":"Not found"}},"tags":["Invoice"],"operationId":"notify_invoiceInvoiceItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/invoices/{id}/preserved-document":{"get":{"tags":["PreservedDocument","Invoice"],"operationId":"api_invoices_preserved_document_get_subresource","summary":"Retrieves a PreservedDocument resource.","responses":{"200":{"description":"PreservedDocument resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}}}},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/invoices/{uuid}/notifications":{"get":{"parameters":[{"name":"uuid","required":true,"in":"path","schema":{"type":"string"}}],"description":"\nRetrieve the collection of notifications for a given invoice.\nYou can have the notification message in JSON format or the original XML\nby sending the Accept HTTP header to either `application/json` or `application/xml`","summary":"Retrieves the collection of Invoice notifications.","tags":["Notification"],"operationId":"invoice_get_notificationsNotificationCollection","responses":{"200":{"description":"Notification collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}}}}}}},"/login_check":{"post":{"tags":["Auth"],"summary":"Obtain a JWT token","description":"The received token must be used for all the platform endpoint calls. It must be used in the Authorization header. Example: 'Authorization: bearer < your token here >' The token lasts 1 day, after that it will expire and you will need to ask for a new one.","parameters":[{"name":"email","required":"true","schema":{"type":"string"}},{"name":"password","required":"true","schema":{"type":"string"}}],"responses":{"200":{"description":"You will receive a JWT authentication token that you must pass within the Authorization header","content":{"application/ld+json":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"text/html":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"application/xml":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"text/xml":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"application/pdf":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"application/zip":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}},"application/octet-stream":{"schema":{"type":"object","properties":{"token":{"type":"string"}}}}}}},"operationId":"authUserCollection"}},"/notifications/downloaded":{"post":{"description":"\nSetup the downloaded flag for a collection of notification.<br>\n<strong>Note</strong>: the downloaded flag is automatically set when a notification is successfully received with the web-hook","summary":"Setup the downloaded flag for a collection of notification.","tags":["Notification"],"responses":{"200":{"description":"The downloaded flag has been set"},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"operationId":"api_notification_batch_downloadedDownloadedEntityCollection","requestBody":{"$ref":"#/components/requestBodies/DownloadedEntity"}}},"/notifications/{uuid}":{"get":{"parameters":[{"name":"uuid","required":true,"in":"path","schema":{"type":"string"}}],"description":"\nRetrieve a single notification by its uuid.\nYou can have the notification message in JSON format or the original XML\nby sending the Accept HTTP header to either `application/json` or `application/xml`","summary":"Retrieves a single notification.","tags":["Notification"],"operationId":"getNotificationItem","responses":{"200":{"description":"Notification resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}},"text/html":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/xml":{"schema":{"$ref":"#/components/schemas/Notification"}},"text/xml":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/zip":{"schema":{"$ref":"#/components/schemas/Notification"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"404":{"description":"Resource not found"}}}},"/preserved-documents":{"get":{"description":"Get the list of preserved document","tags":["PreservedDocument"],"operationId":"getPreservedDocumentCollection","summary":"Retrieves the collection of PreservedDocument resources.","responses":{"200":{"description":"PreservedDocument collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreservedDocument-read"}}}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]}},"/preserved-documents/{id}":{"get":{"tags":["PreservedDocument"],"operationId":"getPreservedDocumentItem","summary":"Retrieves a PreservedDocument resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"PreservedDocument resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/PreservedDocument-read"}}}},"404":{"description":"Resource not found"}}}},"/preserved-documents/{uuid}/receipt":{"get":{"parameters":[{"name":"uuid","required":true,"in":"path","schema":{"type":"string"}}],"description":"You will get the original XML receipt from the legal storage, the Content-Type is application/xml.","summary":"Retrieve the XML receipt for a preserved document.","tags":["PreservedDocumentReceipt"],"operationId":"gETPreservedDocumentReceiptItem","responses":{"200":{"description":"PreservedDocumentReceipt resource response","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/PreservedDocumentReceipt"}},"text/xml":{"schema":{"$ref":"#/components/schemas/PreservedDocumentReceipt"}}}},"404":{"description":"Resource not found"}}}},"/supplier-invoice-imports":{"post":{"description":"Import a supplier invoice that was already received from SDI. The invoice will be sent to the legal storage if necessary","summary":"Import supplier invoice","tags":["SupplierInvoiceImport"],"operationId":"postSupplierInvoiceImportCollection","responses":{"201":{"description":"SupplierInvoiceImport resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"application/json":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"text/html":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"text/xml":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"application/zip":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"application/json":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"text/html":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"application/xml":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"text/xml":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"application/zip":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a"}}},"description":"The new SupplierInvoiceImport resource"}}},"/user-alert-configurations":{"get":{"tags":["UserAlertConfiguration"],"operationId":"getUserAlertConfigurationCollection","summary":"Retrieves the collection of UserAlertConfiguration resources.","responses":{"200":{"description":"UserAlertConfiguration collection response","content":{"application/ld+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"text/html":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"application/pdf":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"application/zip":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserAlertConfiguration"}}}}}},"parameters":[{"name":"page","in":"query","required":false,"description":"The collection page number","schema":{"type":"integer"}}]},"post":{"tags":["UserAlertConfiguration"],"operationId":"postUserAlertConfigurationCollection","summary":"Creates a UserAlertConfiguration resource.","responses":{"201":{"description":"UserAlertConfiguration resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"description":"The new UserAlertConfiguration resource"}}},"/user-alert-configurations/{id}":{"get":{"tags":["UserAlertConfiguration"],"operationId":"getUserAlertConfigurationItem","summary":"Retrieves a UserAlertConfiguration resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"UserAlertConfiguration resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}}}},"404":{"description":"Resource not found"}}},"delete":{"tags":["UserAlertConfiguration"],"operationId":"deleteUserAlertConfigurationItem","summary":"Removes the UserAlertConfiguration resource.","responses":{"204":{"description":"UserAlertConfiguration resource deleted"},"404":{"description":"Resource not found"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"put":{"tags":["UserAlertConfiguration"],"operationId":"putUserAlertConfigurationItem","summary":"Replaces the UserAlertConfiguration resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}}},"description":"The updated UserAlertConfiguration resource"},"responses":{"200":{"description":"UserAlertConfiguration resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserAlertConfiguration"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/user/change-password":{"post":{"description":"\nUpdate your current user password.\nPassword must be at least 8 chars long and contains at least a letter, a number and a special char of choice of !@#$%^&*","summary":"Change password.","tags":["Auth"],"operationId":"invoice_get_notificationsUserPasswordCollection","responses":{"201":{"description":"UserPassword resource created","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserPassword"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}},"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/json":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"text/html":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/xml":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"text/xml":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/zip":{"schema":{"$ref":"#/components/schemas/UserPassword"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/UserPassword"}}},"description":"The new UserPassword resource"}}},"/users/me/recipient-code":{"get":{"tags":["User"],"summary":"Get your 7 chars recipient code.","operationId":"get_recipient_codeUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User_9c58cef79af79b42adb4b5b369a9b330-read"}}}},"404":{"description":"Resource not found"}}}},"/users/{id}":{"get":{"tags":["User"],"summary":"Get User Profile","description":"Get your profile information","operationId":"getUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-read"}}}},"404":{"description":"Resource not found"}}},"put":{"tags":["User"],"summary":"Update User Profile","description":"Update your profile information","operationId":"putUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-write"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-write"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-write"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-write"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-write"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-write"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-write"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-write"}}},"description":"The updated User resource"},"responses":{"200":{"description":"User resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-read"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-read"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-read"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-read"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/users/{id}/accept-only-verified-invoices":{"get":{"tags":["User"],"summary":"Get verified invoices status.","description":"Get verified supplier invoices status.","operationId":"get_accept_onlyUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}}}},"404":{"description":"Resource not found"}}},"put":{"tags":["User"],"summary":"Set verified supplier invoices status","description":"Update the verified supplier invoices status.\n *                                When this check is enabled, only supplier invoices from registered vat numbers into the BusinessRegistryConfiguration will be accepted.","operationId":"put_accept_onlyUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-write-accept-only"}}},"description":"The updated User resource"},"responses":{"200":{"description":"User resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-read-accept-only"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}},"/users/{id}/alert-configuration":{"get":{"tags":["User"],"summary":"Get alert configuration.","description":"Get alert configuration.","operationId":"get_alert_configurationUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User resource response","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}}}},"404":{"description":"Resource not found"}}},"put":{"tags":["User"],"summary":"Configure alerts","description":"Setup the alert configurations.","operationId":"put_alert_configurationUserItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-write-alert-configuration"}}},"description":"The updated User resource"},"responses":{"200":{"description":"User resource updated","content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/json":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"text/html":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/xml":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"text/xml":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/zip":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/User-read-alert-configuration"}}}},"400":{"description":"Invalid input"},"404":{"description":"Resource not found"}}}}},"security":[{"Bearer":[]}],"x-tagGroups":[{"name":"Platform","tags":["ApiConfiguration","BusinessRegistry","BusinessRegistryConfiguration"]},{"name":"Invoice","tags":["Invoice","InvoiceSimplified","InvoiceExtraSDI","Notification","CustomerInvoiceImport","SupplierInvoiceImport","InvoiceStats"]},{"name":"Legal Storage","tags":["PreservedDocument","PreservedDocumentReceipt"]}],"x-logo":{"url":"https://acubeapi.com/assets/svg/logos/logo_acube.svg"},"servers":[{"url":"/"}],"components":{"requestBodies":{"DownloadedEntity":{"content":{"application/ld+json":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"application/json":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"text/html":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"application/xml":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"text/xml":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"application/pdf":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"application/zip":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}},"application/octet-stream":{"schema":{"$ref":"#/components/schemas/DownloadedEntity"}}},"description":"The new DownloadedEntity resource"}},"securitySchemes":{"Bearer":{"type":"apiKey","in":"header","description":"Value for the Authorization header","name":"Authorization"}},"schemas":{"ApiConfiguration-read":{"type":"object","description":"","properties":{"uuid":{"type":"string"},"event":{"description":"The event code can be one of `supplier-invoice`, `customer-invoice`, `customer-notification`, `legal-storage-missing-vat`, `legal-storage-receipt`","type":"string"},"target_url":{"description":"Full URL to your endpoint","type":"string"},"authentication_type":{"description":"Authentication type can be one of `query`, `header`","type":"string"},"authentication_key":{"description":"The authentication key,\n             in case of type header used as `Authorization: authentication_key authentication_token`","type":"string"},"authentication_token":{"description":"The authentication token,\n             in case of type header used as `Authorization: authentication_key authentication_token`","type":"string"},"business_registry_configurations":{"readOnly":true,"type":"array","items":{"$ref":"#/components/schemas/BusinessRegistryConfiguration-read"}}}},"ApiConfiguration-write":{"type":"object","description":"","properties":{"event":{"description":"The event code can be one of `supplier-invoice`, `customer-invoice`, `customer-notification`, `legal-storage-missing-vat`, `legal-storage-receipt`","type":"string"},"target_url":{"description":"Full URL to your endpoint","type":"string"},"authentication_type":{"description":"Authentication type can be one of `query`, `header`","type":"string"},"authentication_key":{"description":"The authentication key,\n             in case of type header used as `Authorization: authentication_key authentication_token`","type":"string"},"authentication_token":{"description":"The authentication token,\n             in case of type header used as `Authorization: authentication_key authentication_token`","type":"string"}}},"BusinessRegistry-read":{"type":"object","description":"","properties":{"uuid":{"type":"string"},"head_office_address_street":{"type":"string"},"head_office_address_street_number":{"type":"string"},"head_office_address_zip_code":{"type":"string"},"head_office_address_city":{"type":"string"},"head_office_address_province":{"type":"string"},"head_office_address_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"office_address_street":{"type":"string"},"office_address_street_number":{"type":"string"},"office_address_zip_code":{"type":"string"},"office_address_city":{"type":"string"},"office_address_province":{"type":"string"},"office_address_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"business_vat_number_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"business_vat_number_code":{"type":"string"},"business_fiscal_code":{"type":"string"},"business_name":{"type":"string"},"name":{"type":"string"},"surname":{"type":"string"},"title":{"type":"string"},"cod_eori":{"type":"string"},"professional_register":{"type":"string"},"professional_register_province":{"type":"string"},"professional_register_registration_number":{"type":"string"},"professional_register_registration_date":{"description":"ISO 8601:2004 (YYYY-MM-DD)","type":"string","format":"date-time"},"tax_regime":{"type":"string"},"contact_phone":{"type":"string"},"contact_fax":{"type":"string"},"contact_email":{"type":"string"},"rea_registration_office":{"description":"2 chars Italian province","type":"string"},"rea_registration_number":{"type":"string"},"rea_registration_share_capital":{"type":"string"},"rea_registration_sole_shareholder":{"description":"SU sole shareholder, SM many shareholders","type":"string"},"rea_registration_liquidation_status":{"description":"LS in liquidation, LN not in liquidation","type":"string"},"reference_administration":{"type":"string"},"fiscal_representative_vat_number_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"fiscal_representative_vat_number_code":{"type":"string"},"fiscal_representative_fiscal_code":{"type":"string"},"fiscal_representative_denomination":{"type":"string"},"fiscal_representative_name":{"type":"string"},"fiscal_representative_surname":{"type":"string"},"fiscal_representative_title":{"type":"string"},"fiscal_representative_cod_eori":{"type":"string"}},"required":["head_office_address_street","head_office_address_zip_code","head_office_address_city","head_office_address_country"]},"BusinessRegistry-write":{"type":"object","description":"","required":["head_office_address_street","head_office_address_zip_code","head_office_address_city","head_office_address_country"],"properties":{"head_office_address_street":{"type":"string"},"head_office_address_street_number":{"type":"string"},"head_office_address_zip_code":{"type":"string"},"head_office_address_city":{"type":"string"},"head_office_address_province":{"type":"string"},"head_office_address_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"office_address_street":{"type":"string"},"office_address_street_number":{"type":"string"},"office_address_zip_code":{"type":"string"},"office_address_city":{"type":"string"},"office_address_province":{"type":"string"},"office_address_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"business_vat_number_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"business_vat_number_code":{"type":"string"},"business_fiscal_code":{"type":"string"},"business_name":{"type":"string"},"name":{"type":"string"},"surname":{"type":"string"},"title":{"type":"string"},"cod_eori":{"type":"string"},"professional_register":{"type":"string"},"professional_register_province":{"type":"string"},"professional_register_registration_number":{"type":"string"},"professional_register_registration_date":{"description":"ISO 8601:2004 (YYYY-MM-DD)","type":"string","format":"date-time"},"tax_regime":{"type":"string"},"contact_phone":{"type":"string"},"contact_fax":{"type":"string"},"contact_email":{"type":"string"},"rea_registration_office":{"description":"2 chars Italian province","type":"string"},"rea_registration_number":{"type":"string"},"rea_registration_share_capital":{"type":"string"},"rea_registration_sole_shareholder":{"description":"SU sole shareholder, SM many shareholders","type":"string"},"rea_registration_liquidation_status":{"description":"LS in liquidation, LN not in liquidation","type":"string"},"reference_administration":{"type":"string"},"fiscal_representative_vat_number_country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"fiscal_representative_vat_number_code":{"type":"string"},"fiscal_representative_fiscal_code":{"type":"string"},"fiscal_representative_denomination":{"type":"string"},"fiscal_representative_name":{"type":"string"},"fiscal_representative_surname":{"type":"string"},"fiscal_representative_title":{"type":"string"},"fiscal_representative_cod_eori":{"type":"string"}}},"BusinessRegistryConfiguration-read":{"type":"object","description":"","properties":{"fiscal_id":{"description":"The fiscal code or the vat number WITHOUT the country prefix","type":"string"},"name":{"description":"The owner's name for the fiscal id.","type":"string"},"email":{"description":"The email where the owner of the fiscalId will receive communications from the platform.","type":"string"},"email_for_preservation_requested_at":{"readOnly":true,"description":"The legal storage service requested an email address to activate the account.","type":"string","format":"date-time"},"supplier_invoice_enabled":{"description":"The fiscal id is enabled to received supplier invoices.","type":"boolean"},"apply_signature":{"description":"Apply digital signature before sending invoices to SDI.","type":"boolean"},"apply_legal_storage":{"description":"Apply the legal storage for invoices sent/received by the fiscal id.","type":"boolean"},"legal_storage_active":{"readOnly":true,"description":"This is set asynchronously when the email owner has activated the account.","type":"boolean"},"api_configurations":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-read"}}}},"BusinessRegistryConfiguration-write":{"type":"object","description":"","properties":{"fiscal_id":{"description":"The fiscal code or the vat number WITHOUT the country prefix","type":"string"},"name":{"description":"The owner's name for the fiscal id.","type":"string"},"email":{"description":"The email where the owner of the fiscalId will receive communications from the platform.","type":"string"},"supplier_invoice_enabled":{"description":"The fiscal id is enabled to received supplier invoices.","type":"boolean"},"apply_signature":{"description":"Apply digital signature before sending invoices to SDI.","type":"boolean"},"apply_legal_storage":{"description":"Apply the legal storage for invoices sent/received by the fiscal id.","type":"boolean"},"api_configurations":{"type":"array","items":{"$ref":"#/components/schemas/ApiConfiguration-write"}}}},"DownloadedEntity":{"type":"object","description":"","properties":{"uuids":{"type":"array","items":{"type":"string"}},"downloaded":{}}},"FatturaPAAllegati-read":{"type":"object","description":"","required":["nome_attachment","attachment"],"properties":{"nome_attachment":{"type":"string"},"algoritmo_compressione":{"type":"string"},"formato_attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"attachment":{}}},"FatturaPAAllegati-write":{"type":"object","description":"","required":["nome_attachment","attachment"],"properties":{"nome_attachment":{"type":"string"},"algoritmo_compressione":{"type":"string"},"formato_attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"attachment":{}}},"FatturaPAAltriDatiGestionali-read":{"type":"object","description":"Section that allows users to enter, with reference to a detail line, information useful for administrative, management, etc.","required":["tipo_dato"],"properties":{"tipo_dato":{"description":"Code that identifies the type of information","type":"string"},"riferimento_testo":{"type":"string"},"riferimento_numero":{"type":"string"},"riferimento_data":{"type":"string","format":"date-time"}}},"FatturaPAAltriDatiGestionali-write":{"type":"object","description":"Section that allows users to enter, with reference to a detail line, information useful for administrative, management, etc.","required":["tipo_dato"],"properties":{"tipo_dato":{"description":"Code that identifies the type of information","type":"string"},"riferimento_testo":{"type":"string"},"riferimento_numero":{"type":"string"},"riferimento_data":{"type":"string","format":"date-time"}}},"FatturaPAAnagrafica-read":{"type":"object","description":"","properties":{"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"},"titolo":{"type":"string"},"cod_eori":{"description":"Economic Operator Registration and Identification","type":"string"}}},"FatturaPAAnagrafica-write":{"type":"object","description":"","properties":{"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"},"titolo":{"type":"string"},"cod_eori":{"description":"Economic Operator Registration and Identification","type":"string"}}},"FatturaPACedentePrestatore-read":{"type":"object","description":"This is the supplier related section","required":["dati_anagrafici","sede"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiCedentePrestatore-read"},"sede":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"iscrizione_rea":{"$ref":"#/components/schemas/FatturaPAIscrizioneREA-read"},"contatti":{"$ref":"#/components/schemas/FatturaPAContatti-read"},"riferimento_amministrazione":{"type":"string"}}},"FatturaPACedentePrestatore-write":{"type":"object","description":"This is the supplier related section","required":["dati_anagrafici","sede"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiCedentePrestatore-read"},"sede":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"iscrizione_rea":{"$ref":"#/components/schemas/FatturaPAIscrizioneREA-read"},"contatti":{"$ref":"#/components/schemas/FatturaPAContatti-read"},"riferimento_amministrazione":{"type":"string"}}},"FatturaPACessionarioCommittente-read":{"type":"object","description":"This is the customer related section","required":["dati_anagrafici","sede"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiCessionarioCommittente-read"},"sede":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPARappresentanteFiscaleCessionarioCommittente-read"}}},"FatturaPACessionarioCommittente-write":{"type":"object","description":"This is the customer related section","required":["dati_anagrafici","sede"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiCessionarioCommittente-read"},"sede":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPARappresentanteFiscaleCessionarioCommittente-read"}}},"FatturaPACodiceArticolo-read":{"type":"object","description":"","required":["codice_tipo","codice_valore"],"properties":{"codice_tipo":{"type":"string"},"codice_valore":{"type":"string"}}},"FatturaPACodiceArticolo-write":{"type":"object","description":"","required":["codice_tipo","codice_valore"],"properties":{"codice_tipo":{"type":"string"},"codice_valore":{"type":"string"}}},"FatturaPAContatti-read":{"type":"object","description":"","properties":{"telefono":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"}}},"FatturaPAContatti-write":{"type":"object","description":"","properties":{"telefono":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"}}},"FatturaPAContattiTrasmittente-read":{"type":"object","description":"","properties":{"telefono":{"type":"string"},"email":{"type":"string"}}},"FatturaPAContattiTrasmittente-write":{"type":"object","description":"","properties":{"telefono":{"type":"string"},"email":{"type":"string"}}},"FatturaPADatiAnagraficiCedentePrestatore-read":{"type":"object","description":"","required":["id_fiscale_iva","anagrafica","regime_fiscale"],"properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"},"albo_professionale":{"type":"string"},"provincia_albo":{"type":"string"},"numero_iscrizione_albo":{"type":"string"},"data_iscrizione_albo":{"type":"string","format":"date-time"},"regime_fiscale":{"description":"Can be one of\n    RF01\t\tOrdinario\n    RF02\t\tContribuenti minimi (art.1, c.96-117, L. 244/07)\n    RF04\t\tAgricoltura e attività connesse e pesca (artt.34 e 34-bis, DPR 633/72)\n    RF05\t\tVendita sali e tabacchi (art.74, c.1, DPR. 633/72)\n    RF06\t\tCommercio fiammiferi (art.74, c.1, DPR  633/72)\n    RF07\t\tEditoria (art.74, c.1, DPR  633/72)\n    RF08\t\tGestione servizi telefonia pubblica (art.74, c.1, DPR 633/72)\n    RF09\t\tRivendita documenti di trasporto pubblico e di sosta (art.74, c.1, DPR  633/72)\n    RF10\t\tIntrattenimenti, giochi e altre attività di cui alla tariffa allegata al DPR 640/72 (art.74, c.6, DPR 633/72)\n    RF11\t\tAgenzie viaggi e turismo (art.74-ter, DPR 633/72)\n    RF12\t\tAgriturismo (art.5, c.2, L. 413/91)\n    RF13\t\tVendite a domicilio (art.25-bis, c.6, DPR  600/73)\n    RF14\t\tRivendita beni usati, oggetti d’arte, d’antiquariato o da collezione (art.36, DL 41/95)\n    RF15\t\tAgenzie di vendite all’asta di oggetti d’arte, antiquariato o da collezione (art.40-bis, DL 41/95)\n    RF16\t\tIVA per cassa P.A. (art.6, c.5, DPR 633/72)\n    RF17\t\tIVA per cassa (art. 32-bis, DL 83/2012)\n    RF18\t\tAltro\n    RF19\t\tRegime forfettario (art.1, c.54-89, L. 190/2014)","type":"string"}}},"FatturaPADatiAnagraficiCedentePrestatore-write":{"type":"object","description":"","required":["id_fiscale_iva","anagrafica","regime_fiscale"],"properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"},"albo_professionale":{"type":"string"},"provincia_albo":{"type":"string"},"numero_iscrizione_albo":{"type":"string"},"data_iscrizione_albo":{"type":"string","format":"date-time"},"regime_fiscale":{"description":"Can be one of\n    RF01\t\tOrdinario\n    RF02\t\tContribuenti minimi (art.1, c.96-117, L. 244/07)\n    RF04\t\tAgricoltura e attività connesse e pesca (artt.34 e 34-bis, DPR 633/72)\n    RF05\t\tVendita sali e tabacchi (art.74, c.1, DPR. 633/72)\n    RF06\t\tCommercio fiammiferi (art.74, c.1, DPR  633/72)\n    RF07\t\tEditoria (art.74, c.1, DPR  633/72)\n    RF08\t\tGestione servizi telefonia pubblica (art.74, c.1, DPR 633/72)\n    RF09\t\tRivendita documenti di trasporto pubblico e di sosta (art.74, c.1, DPR  633/72)\n    RF10\t\tIntrattenimenti, giochi e altre attività di cui alla tariffa allegata al DPR 640/72 (art.74, c.6, DPR 633/72)\n    RF11\t\tAgenzie viaggi e turismo (art.74-ter, DPR 633/72)\n    RF12\t\tAgriturismo (art.5, c.2, L. 413/91)\n    RF13\t\tVendite a domicilio (art.25-bis, c.6, DPR  600/73)\n    RF14\t\tRivendita beni usati, oggetti d’arte, d’antiquariato o da collezione (art.36, DL 41/95)\n    RF15\t\tAgenzie di vendite all’asta di oggetti d’arte, antiquariato o da collezione (art.40-bis, DL 41/95)\n    RF16\t\tIVA per cassa P.A. (art.6, c.5, DPR 633/72)\n    RF17\t\tIVA per cassa (art. 32-bis, DL 83/2012)\n    RF18\t\tAltro\n    RF19\t\tRegime forfettario (art.1, c.54-89, L. 190/2014)","type":"string"}}},"FatturaPADatiAnagraficiCessionarioCommittente-read":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"}},"required":["anagrafica"]},"FatturaPADatiAnagraficiCessionarioCommittente-write":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"}},"required":["anagrafica"]},"FatturaPADatiAnagraficiRappresentanteFiscale-read":{"type":"object","description":"","required":["id_fiscale_iva","anagrafica"],"properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"}}},"FatturaPADatiAnagraficiRappresentanteFiscale-write":{"type":"object","description":"","required":["id_fiscale_iva","anagrafica"],"properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"}}},"FatturaPADatiAnagraficiTerzoIntermediario-read":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"}},"required":["anagrafica"]},"FatturaPADatiAnagraficiTerzoIntermediario-write":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"}},"required":["anagrafica"]},"FatturaPADatiAnagraficiVettore-read":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"},"numero_licenza_guida":{"type":"string"}},"required":["anagrafica"]},"FatturaPADatiAnagraficiVettore-write":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"codice_fiscale":{"type":"string"},"anagrafica":{"$ref":"#/components/schemas/FatturaPAAnagrafica-read"},"numero_licenza_guida":{"type":"string"}},"required":["anagrafica"]},"FatturaPADatiBeniServizi-read":{"type":"object","description":"","properties":{"dettaglio_linee":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADettaglioLinee-read"}},"dati_riepilogo":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiRiepilogo-read"}}}},"FatturaPADatiBeniServizi-write":{"type":"object","description":"","properties":{"dettaglio_linee":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADettaglioLinee-read"}},"dati_riepilogo":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiRiepilogo-read"}}}},"FatturaPADatiBollo-read":{"type":"object","description":"","required":["bollo_virtuale"],"properties":{"bollo_virtuale":{"type":"string"},"importo_bollo":{"type":"string"}}},"FatturaPADatiBollo-write":{"type":"object","description":"","required":["bollo_virtuale"],"properties":{"bollo_virtuale":{"type":"string"},"importo_bollo":{"type":"string"}}},"FatturaPADatiCassaPrevidenziale-read":{"type":"object","description":"","required":["tipo_cassa","al_cassa","importo_contributo_cassa","aliquota_iva"],"properties":{"tipo_cassa":{"description":"Can be one of\n    TC01\t\tCassa nazionale previdenza e assistenza avvocati e procuratori legali\n    TC02\t\tCassa previdenza dottori commercialisti\n    TC03\t\tCassa previdenza e assistenza geometri\n    TC04\t\tCassa nazionale previdenza e assistenza ingegneri e architetti liberi professionisti\n    TC05\t\tCassa nazionale del notariato\n    TC06\t\tCassa nazionale previdenza e assistenza ragionieri e periti commerciali\n    TC07\t\tEnte nazionale assistenza agenti e rappresentanti di commercio (ENASARCO)\n    TC08\t\tEnte nazionale previdenza e assistenza consulenti del lavoro (ENPACL)\n    TC09\t\tEnte nazionale previdenza e assistenza medici (ENPAM)\n    TC10\t\tEnte nazionale previdenza e assistenza farmacisti (ENPAF)\n    TC11\t\tEnte nazionale previdenza e assistenza veterinari (ENPAV)\n    TC12\t\tEnte nazionale previdenza e assistenza impiegati dell'agricoltura (ENPAIA)\n    TC13\t\tFondo previdenza impiegati imprese di spedizione e agenzie marittime\n    TC14\t\tIstituto nazionale previdenza giornalisti italiani (INPGI)\n    TC15\t\tOpera nazionale assistenza orfani sanitari italiani (ONAOSI)\n    TC16\t\tCassa autonoma assistenza integrativa giornalisti italiani (CASAGIT)\n    TC17\t\tEnte previdenza periti industriali e periti industriali laureati (EPPI)\n    TC18\t\tEnte previdenza e assistenza pluricategoriale (EPAP)\n    TC19\t\tEnte nazionale previdenza e assistenza biologi (ENPAB)\n    TC20\t\tEnte nazionale previdenza e assistenza professione infermieristica (ENPAPI)\n    TC21\t\tEnte nazionale previdenza e assistenza psicologi (ENPAP)\n    TC22\t\tINPS","type":"string"},"al_cassa":{"type":"string"},"importo_contributo_cassa":{"type":"string"},"imponibile_cassa":{"type":"string"},"aliquota_iva":{"type":"string"},"ritenuta":{"type":"string"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura\n    N6\t\tinversione contabile (per le operazioni in reverse charge ovvero nei casi di autofatturazione per acquisti extra UE di servizi ovvero per importazioni di beni nei soli casi previsti)\n    N6.1\t\tinversione contabile - cessione di rottami e altri materiali di recupero\n    N6.2\t\tinversione contabile - cessione di oro e argento puro\n    N6.3\t\tinversione contabile - subappalto nel settore edile\n    N6.4\t\tinversione contabile - cessione di fabbricati\n    N6.5\t\tinversione contabile - cessione di telefoni cellulari\n    N6.6\t\tinversione contabile - cessione di prodotti elettronici\n    N6.7\t\tinversione contabile - prestazioni comparto edile e settori connessi\n    N6.8\t\tinversione contabile - operazioni settore energetico\n    N6.9\t\tinversione contabile - altri casi\n    N7\t\tIVA assolta in altro stato UE (vendite a distanza ex art. 40 c. 3 e 4 e art. 41 c. 1 lett. b,  DL 331/93; prestazione di servizi di telecomunicazioni, tele-radiodiffusione ed elettronici ex art. 7-sexies lett. f, g, art. 74-sexies DPR 633/72)","type":"string"},"riferimento_amministrazione":{"type":"string"}}},"FatturaPADatiCassaPrevidenziale-write":{"type":"object","description":"","required":["tipo_cassa","al_cassa","importo_contributo_cassa","aliquota_iva"],"properties":{"tipo_cassa":{"description":"Can be one of\n    TC01\t\tCassa nazionale previdenza e assistenza avvocati e procuratori legali\n    TC02\t\tCassa previdenza dottori commercialisti\n    TC03\t\tCassa previdenza e assistenza geometri\n    TC04\t\tCassa nazionale previdenza e assistenza ingegneri e architetti liberi professionisti\n    TC05\t\tCassa nazionale del notariato\n    TC06\t\tCassa nazionale previdenza e assistenza ragionieri e periti commerciali\n    TC07\t\tEnte nazionale assistenza agenti e rappresentanti di commercio (ENASARCO)\n    TC08\t\tEnte nazionale previdenza e assistenza consulenti del lavoro (ENPACL)\n    TC09\t\tEnte nazionale previdenza e assistenza medici (ENPAM)\n    TC10\t\tEnte nazionale previdenza e assistenza farmacisti (ENPAF)\n    TC11\t\tEnte nazionale previdenza e assistenza veterinari (ENPAV)\n    TC12\t\tEnte nazionale previdenza e assistenza impiegati dell'agricoltura (ENPAIA)\n    TC13\t\tFondo previdenza impiegati imprese di spedizione e agenzie marittime\n    TC14\t\tIstituto nazionale previdenza giornalisti italiani (INPGI)\n    TC15\t\tOpera nazionale assistenza orfani sanitari italiani (ONAOSI)\n    TC16\t\tCassa autonoma assistenza integrativa giornalisti italiani (CASAGIT)\n    TC17\t\tEnte previdenza periti industriali e periti industriali laureati (EPPI)\n    TC18\t\tEnte previdenza e assistenza pluricategoriale (EPAP)\n    TC19\t\tEnte nazionale previdenza e assistenza biologi (ENPAB)\n    TC20\t\tEnte nazionale previdenza e assistenza professione infermieristica (ENPAPI)\n    TC21\t\tEnte nazionale previdenza e assistenza psicologi (ENPAP)\n    TC22\t\tINPS","type":"string"},"al_cassa":{"type":"string"},"importo_contributo_cassa":{"type":"string"},"imponibile_cassa":{"type":"string"},"aliquota_iva":{"type":"string"},"ritenuta":{"type":"string"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura\n    N6\t\tinversione contabile (per le operazioni in reverse charge ovvero nei casi di autofatturazione per acquisti extra UE di servizi ovvero per importazioni di beni nei soli casi previsti)\n    N6.1\t\tinversione contabile - cessione di rottami e altri materiali di recupero\n    N6.2\t\tinversione contabile - cessione di oro e argento puro\n    N6.3\t\tinversione contabile - subappalto nel settore edile\n    N6.4\t\tinversione contabile - cessione di fabbricati\n    N6.5\t\tinversione contabile - cessione di telefoni cellulari\n    N6.6\t\tinversione contabile - cessione di prodotti elettronici\n    N6.7\t\tinversione contabile - prestazioni comparto edile e settori connessi\n    N6.8\t\tinversione contabile - operazioni settore energetico\n    N6.9\t\tinversione contabile - altri casi\n    N7\t\tIVA assolta in altro stato UE (vendite a distanza ex art. 40 c. 3 e 4 e art. 41 c. 1 lett. b,  DL 331/93; prestazione di servizi di telecomunicazioni, tele-radiodiffusione ed elettronici ex art. 7-sexies lett. f, g, art. 74-sexies DPR 633/72)","type":"string"},"riferimento_amministrazione":{"type":"string"}}},"FatturaPADatiDDT-read":{"type":"object","description":"","required":["numero_ddt"],"properties":{"numero_ddt":{"type":"string"},"data_ddt":{"type":"string","format":"date-time"},"riferimento_numero_linea":{"type":"array","items":{"type":"string"}}}},"FatturaPADatiDDT-write":{"type":"object","description":"","required":["numero_ddt"],"properties":{"numero_ddt":{"type":"string"},"data_ddt":{"type":"string","format":"date-time"},"riferimento_numero_linea":{"type":"array","items":{"type":"string"}}}},"FatturaPADatiDocumentiCorrelati-read":{"type":"object","description":"","properties":{"riferimento_numero_linea":{"type":"array","items":{"type":"integer"}},"id_documento":{"type":"string"},"data":{"type":"string","format":"date-time"},"num_item":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"codice_cig":{"type":"string"}},"required":["id_documento"]},"FatturaPADatiDocumentiCorrelati-write":{"type":"object","description":"","properties":{"riferimento_numero_linea":{"type":"array","items":{"type":"integer"}},"id_documento":{"type":"string"},"data":{"type":"string","format":"date-time"},"num_item":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"codice_cig":{"type":"string"}},"required":["id_documento"]},"FatturaPADatiGenerali-read":{"type":"object","description":"","required":["dati_generali_documento"],"properties":{"dati_generali_documento":{"$ref":"#/components/schemas/FatturaPADatiGeneraliDocumento-read"},"dati_ordine_acquisto":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_contratto":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_convenzione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_ricezione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_fatture_collegate":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_sal":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiSAL-read"}},"dati_ddt":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDDT-read"}},"dati_trasporto":{"$ref":"#/components/schemas/FatturaPADatiTrasporto-read"},"fattura_principale":{"$ref":"#/components/schemas/FatturaPAFatturaPrincipale-read"}}},"FatturaPADatiGenerali-write":{"type":"object","description":"","required":["dati_generali_documento"],"properties":{"dati_generali_documento":{"$ref":"#/components/schemas/FatturaPADatiGeneraliDocumento-read"},"dati_ordine_acquisto":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_contratto":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_convenzione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_ricezione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_fatture_collegate":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDocumentiCorrelati-read"}},"dati_sal":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiSAL-read"}},"dati_ddt":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiDDT-read"}},"dati_trasporto":{"$ref":"#/components/schemas/FatturaPADatiTrasporto-read"},"fattura_principale":{"$ref":"#/components/schemas/FatturaPAFatturaPrincipale-read"}}},"FatturaPADatiGeneraliDocumento-read":{"type":"object","description":"","required":["tipo_documento","divisa","data","numero"],"properties":{"tipo_documento":{"description":"Can be one of\n    TD01\t\tfattura\n    TD02\t\tacconto/anticipo su fattura\n    TD03\t\tacconto/anticipo su parcella\n    TD04\t\tnota di credito\n    TD05\t\tnota di debito\n    TD06\t\tparcella\n    TD16\t\tintegrazione fattura reverse charge interno\n    TD17\t\tintegrazione/autofattura per acquisto servizi dall'estero\n    TD18\t\tintegrazione per acquisto di beni intracomunitari\n    TD19\t\tintegrazione/autofattura per acquisto di beni ex art.17 c.2 DPR 633/72\n    TD20\t\tautofattura per regolarizzazione e integrazione delle fatture (ex art.6 c.8 d.lgs. 471/97  o  art.46 c.5 D.L. 331/93)\n    TD21\t\tautofattura per splafonamento\n    TD22\t\testrazione beni da Deposito IVA\n    TD23\t\testrazione beni da Deposito IVA con versamento dell'IVA\n    TD24\t\tfattura differita di cui all'art. 21, comma 4, lett. a)\n    TD25\t\tfattura differita di cui all'art. 21, comma 4, terzo periodo lett. b)\n    TD26\t\tcessione di beni ammortizzabili e per passaggi interni (ex art.36 DPR 633/72)\n    TD27\t\tfattura per autoconsumo o per cessioni gratuite senza rivalsa","type":"string"},"divisa":{"type":"string"},"data":{"type":"string","format":"date-time"},"numero":{"type":"string"},"dati_ritenuta":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiRitenuta-read"}},"dati_bollo":{"$ref":"#/components/schemas/FatturaPADatiBollo-read"},"dati_cassa_previdenziale":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiCassaPrevidenziale-read"}},"sconto_maggiorazione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAScontoMaggiorazione-read"}},"importo_totale_documento":{"type":"string"},"arrotondamento":{"type":"string"},"causale":{"type":"array","items":{"type":"string"}},"art73":{"type":"string"}}},"FatturaPADatiGeneraliDocumento-write":{"type":"object","description":"","required":["tipo_documento","divisa","data","numero"],"properties":{"tipo_documento":{"description":"Can be one of\n    TD01\t\tfattura\n    TD02\t\tacconto/anticipo su fattura\n    TD03\t\tacconto/anticipo su parcella\n    TD04\t\tnota di credito\n    TD05\t\tnota di debito\n    TD06\t\tparcella\n    TD16\t\tintegrazione fattura reverse charge interno\n    TD17\t\tintegrazione/autofattura per acquisto servizi dall'estero\n    TD18\t\tintegrazione per acquisto di beni intracomunitari\n    TD19\t\tintegrazione/autofattura per acquisto di beni ex art.17 c.2 DPR 633/72\n    TD20\t\tautofattura per regolarizzazione e integrazione delle fatture (ex art.6 c.8 d.lgs. 471/97  o  art.46 c.5 D.L. 331/93)\n    TD21\t\tautofattura per splafonamento\n    TD22\t\testrazione beni da Deposito IVA\n    TD23\t\testrazione beni da Deposito IVA con versamento dell'IVA\n    TD24\t\tfattura differita di cui all'art. 21, comma 4, lett. a)\n    TD25\t\tfattura differita di cui all'art. 21, comma 4, terzo periodo lett. b)\n    TD26\t\tcessione di beni ammortizzabili e per passaggi interni (ex art.36 DPR 633/72)\n    TD27\t\tfattura per autoconsumo o per cessioni gratuite senza rivalsa","type":"string"},"divisa":{"type":"string"},"data":{"type":"string","format":"date-time"},"numero":{"type":"string"},"dati_ritenuta":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiRitenuta-write"}},"dati_bollo":{"$ref":"#/components/schemas/FatturaPADatiBollo-read"},"dati_cassa_previdenziale":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiCassaPrevidenziale-read"}},"sconto_maggiorazione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAScontoMaggiorazione-read"}},"importo_totale_documento":{"type":"string"},"arrotondamento":{"type":"string"},"causale":{"type":"array","items":{"type":"string"}},"art73":{"type":"string"}}},"FatturaPADatiPagamento-read":{"type":"object","description":"","required":["condizioni_pagamento"],"properties":{"condizioni_pagamento":{"type":"string"},"dettaglio_pagamento":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADettaglioPagamento-read"}}}},"FatturaPADatiPagamento-write":{"type":"object","description":"","required":["condizioni_pagamento"],"properties":{"condizioni_pagamento":{"type":"string"},"dettaglio_pagamento":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADettaglioPagamento-read"}}}},"FatturaPADatiRiepilogo-read":{"type":"object","description":"","required":["aliquota_iva","imponibile_importo","imposta"],"properties":{"aliquota_iva":{"type":"string"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura\n    N6\t\tinversione contabile (per le operazioni in reverse charge ovvero nei casi di autofatturazione per acquisti extra UE di servizi ovvero per importazioni di beni nei soli casi previsti)\n    N6.1\t\tinversione contabile - cessione di rottami e altri materiali di recupero\n    N6.2\t\tinversione contabile - cessione di oro e argento puro\n    N6.3\t\tinversione contabile - subappalto nel settore edile\n    N6.4\t\tinversione contabile - cessione di fabbricati\n    N6.5\t\tinversione contabile - cessione di telefoni cellulari\n    N6.6\t\tinversione contabile - cessione di prodotti elettronici\n    N6.7\t\tinversione contabile - prestazioni comparto edile e settori connessi\n    N6.8\t\tinversione contabile - operazioni settore energetico\n    N6.9\t\tinversione contabile - altri casi\n    N7\t\tIVA assolta in altro stato UE (vendite a distanza ex art. 40 c. 3 e 4 e art. 41 c. 1 lett. b,  DL 331/93; prestazione di servizi di telecomunicazioni, tele-radiodiffusione ed elettronici ex art. 7-sexies lett. f, g, art. 74-sexies DPR 633/72)","type":"string"},"spese_accessorie":{"type":"string"},"arrotondamento":{"type":"string"},"imponibile_importo":{"type":"string"},"imposta":{"type":"string"},"esigibilita_iva":{"description":"Codes that can be used:\n    I IVA ad esigibilità immediata\n    D IVA ad esigibilità differita\n    S scissione dei pagamenti","type":"string"},"riferimento_normativo":{"type":"string"}}},"FatturaPADatiRiepilogo-write":{"type":"object","description":"","required":["aliquota_iva","imponibile_importo","imposta"],"properties":{"aliquota_iva":{"type":"string"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura\n    N6\t\tinversione contabile (per le operazioni in reverse charge ovvero nei casi di autofatturazione per acquisti extra UE di servizi ovvero per importazioni di beni nei soli casi previsti)\n    N6.1\t\tinversione contabile - cessione di rottami e altri materiali di recupero\n    N6.2\t\tinversione contabile - cessione di oro e argento puro\n    N6.3\t\tinversione contabile - subappalto nel settore edile\n    N6.4\t\tinversione contabile - cessione di fabbricati\n    N6.5\t\tinversione contabile - cessione di telefoni cellulari\n    N6.6\t\tinversione contabile - cessione di prodotti elettronici\n    N6.7\t\tinversione contabile - prestazioni comparto edile e settori connessi\n    N6.8\t\tinversione contabile - operazioni settore energetico\n    N6.9\t\tinversione contabile - altri casi\n    N7\t\tIVA assolta in altro stato UE (vendite a distanza ex art. 40 c. 3 e 4 e art. 41 c. 1 lett. b,  DL 331/93; prestazione di servizi di telecomunicazioni, tele-radiodiffusione ed elettronici ex art. 7-sexies lett. f, g, art. 74-sexies DPR 633/72)","type":"string"},"spese_accessorie":{"type":"string"},"arrotondamento":{"type":"string"},"imponibile_importo":{"type":"string"},"imposta":{"type":"string"},"esigibilita_iva":{"description":"Codes that can be used:\n    I IVA ad esigibilità immediata\n    D IVA ad esigibilità differita\n    S scissione dei pagamenti","type":"string"},"riferimento_normativo":{"type":"string"}}},"FatturaPADatiRitenuta-read":{"type":"object","description":"","required":["tipo_ritenuta","importo_ritenuta","aliquota_ritenuta","causale_pagamento"],"properties":{"tipo_ritenuta":{"description":"Can be one of\n    RT01\t\tritenuta persone fisiche\n    RT02\t\tritenuta persone giuridiche\n    RT03\t\tcontributo INPS\n    RT04\t\tcontributo ENASARCO\n    RT05\t\tcontributo ENPAM\n    RT06\t\taltro contributo previdenziale","type":"string"},"importo_ritenuta":{"type":"string"},"aliquota_ritenuta":{"type":"string"},"causale_pagamento":{"type":"string"}}},"FatturaPADatiRitenuta-write":{"type":"object","description":"","required":["tipo_ritenuta","importo_ritenuta","aliquota_ritenuta","causale_pagamento"],"properties":{"tipo_ritenuta":{"description":"Can be one of\n    RT01\t\tritenuta persone fisiche\n    RT02\t\tritenuta persone giuridiche\n    RT03\t\tcontributo INPS\n    RT04\t\tcontributo ENASARCO\n    RT05\t\tcontributo ENPAM\n    RT06\t\taltro contributo previdenziale","type":"string"},"importo_ritenuta":{"type":"string"},"aliquota_ritenuta":{"type":"string"},"causale_pagamento":{"type":"string"}}},"FatturaPADatiSAL-read":{"type":"object","description":"","required":["riferimento_fase"],"properties":{"riferimento_fase":{"type":"integer"}}},"FatturaPADatiSAL-write":{"type":"object","description":"","required":["riferimento_fase"],"properties":{"riferimento_fase":{"type":"integer"}}},"FatturaPADatiTrasmissione-read":{"type":"object","description":"","properties":{"id_trasmittente":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"progressivo_invio":{"readOnly":true,"type":"string"},"formato_trasmissione":{"readOnly":true,"type":"string"},"codice_destinatario":{"type":"string"},"contatti_trasmittente":{"$ref":"#/components/schemas/FatturaPAContattiTrasmittente-read"},"pec_destinatario":{"type":"string"}},"required":["codice_destinatario"]},"FatturaPADatiTrasmissione-write":{"type":"object","description":"","required":["codice_destinatario"],"properties":{"codice_destinatario":{"type":"string"},"pec_destinatario":{"type":"string"}}},"FatturaPADatiTrasporto-read":{"type":"object","description":"","properties":{"dati_anagrafici_vettore":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiVettore-read"},"mezzo_trasporto":{"type":"string"},"causale_trasporto":{"type":"string"},"numero_colli":{"type":"integer"},"descrizione":{"type":"string"},"unita_misura_peso":{"type":"string"},"peso_lordo":{"type":"string"},"peso_netto":{"type":"string"},"data_ora_ritiro":{"type":"string","format":"date-time"},"data_inizio_trasporto":{"type":"string","format":"date-time"},"tipo_resa":{"type":"string"},"indirizzo_resa":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"data_ora_consegna":{"type":"string","format":"date-time"}}},"FatturaPADatiTrasporto-write":{"type":"object","description":"","properties":{"dati_anagrafici_vettore":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiVettore-read"},"mezzo_trasporto":{"type":"string"},"causale_trasporto":{"type":"string"},"numero_colli":{"type":"integer"},"descrizione":{"type":"string"},"unita_misura_peso":{"type":"string"},"peso_lordo":{"type":"string"},"peso_netto":{"type":"string"},"data_ora_ritiro":{"type":"string","format":"date-time"},"data_inizio_trasporto":{"type":"string","format":"date-time"},"tipo_resa":{"type":"string"},"indirizzo_resa":{"$ref":"#/components/schemas/FatturaPAIndirizzo-read"},"data_ora_consegna":{"type":"string","format":"date-time"}}},"FatturaPADatiVeicoli-read":{"type":"object","description":"","required":["data","totale_percorso"],"properties":{"data":{"type":"string","format":"date-time"},"totale_percorso":{"type":"string"}}},"FatturaPADatiVeicoli-write":{"type":"object","description":"","required":["data","totale_percorso"],"properties":{"data":{"type":"string","format":"date-time"},"totale_percorso":{"type":"string"}}},"FatturaPADettaglioLinee-read":{"type":"object","description":"","required":["numero_linea","descrizione","prezzo_unitario","prezzo_totale","aliquota_iva"],"properties":{"numero_linea":{"type":"integer"},"tipo_cessione_prestazione":{"type":"string"},"codice_articolo":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPACodiceArticolo-read"}},"descrizione":{"type":"string"},"quantita":{"type":"string"},"unita_misura":{"type":"string"},"data_inizio_periodo":{"type":"string","format":"date-time"},"data_fine_periodo":{"type":"string","format":"date-time"},"prezzo_unitario":{"type":"string"},"sconto_maggiorazione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAScontoMaggiorazione-read"}},"prezzo_totale":{"type":"string"},"aliquota_iva":{"type":"string"},"ritenuta":{"type":"string"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura\n    N6\t\tinversione contabile (per le operazioni in reverse charge ovvero nei casi di autofatturazione per acquisti extra UE di servizi ovvero per importazioni di beni nei soli casi previsti)\n    N6.1\t\tinversione contabile - cessione di rottami e altri materiali di recupero\n    N6.2\t\tinversione contabile - cessione di oro e argento puro\n    N6.3\t\tinversione contabile - subappalto nel settore edile\n    N6.4\t\tinversione contabile - cessione di fabbricati\n    N6.5\t\tinversione contabile - cessione di telefoni cellulari\n    N6.6\t\tinversione contabile - cessione di prodotti elettronici\n    N6.7\t\tinversione contabile - prestazioni comparto edile e settori connessi\n    N6.8\t\tinversione contabile - operazioni settore energetico\n    N6.9\t\tinversione contabile - altri casi\n    N7\t\tIVA assolta in altro stato UE (vendite a distanza ex art. 40 c. 3 e 4 e art. 41 c. 1 lett. b,  DL 331/93; prestazione di servizi di telecomunicazioni, tele-radiodiffusione ed elettronici ex art. 7-sexies lett. f, g, art. 74-sexies DPR 633/72)","type":"string"},"riferimento_amministrazione":{"type":"string"},"altri_dati_gestionali":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAAltriDatiGestionali-read"}}}},"FatturaPADettaglioLinee-write":{"type":"object","description":"","required":["numero_linea","descrizione","prezzo_unitario","prezzo_totale","aliquota_iva"],"properties":{"numero_linea":{"type":"integer"},"tipo_cessione_prestazione":{"type":"string"},"codice_articolo":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPACodiceArticolo-read"}},"descrizione":{"type":"string"},"quantita":{"type":"string"},"unita_misura":{"type":"string"},"data_inizio_periodo":{"type":"string","format":"date-time"},"data_fine_periodo":{"type":"string","format":"date-time"},"prezzo_unitario":{"type":"string"},"sconto_maggiorazione":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAScontoMaggiorazione-read"}},"prezzo_totale":{"type":"string"},"aliquota_iva":{"type":"string"},"ritenuta":{"type":"string"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura\n    N6\t\tinversione contabile (per le operazioni in reverse charge ovvero nei casi di autofatturazione per acquisti extra UE di servizi ovvero per importazioni di beni nei soli casi previsti)\n    N6.1\t\tinversione contabile - cessione di rottami e altri materiali di recupero\n    N6.2\t\tinversione contabile - cessione di oro e argento puro\n    N6.3\t\tinversione contabile - subappalto nel settore edile\n    N6.4\t\tinversione contabile - cessione di fabbricati\n    N6.5\t\tinversione contabile - cessione di telefoni cellulari\n    N6.6\t\tinversione contabile - cessione di prodotti elettronici\n    N6.7\t\tinversione contabile - prestazioni comparto edile e settori connessi\n    N6.8\t\tinversione contabile - operazioni settore energetico\n    N6.9\t\tinversione contabile - altri casi\n    N7\t\tIVA assolta in altro stato UE (vendite a distanza ex art. 40 c. 3 e 4 e art. 41 c. 1 lett. b,  DL 331/93; prestazione di servizi di telecomunicazioni, tele-radiodiffusione ed elettronici ex art. 7-sexies lett. f, g, art. 74-sexies DPR 633/72)","type":"string"},"riferimento_amministrazione":{"type":"string"},"altri_dati_gestionali":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAAltriDatiGestionali-read"}}}},"FatturaPADettaglioPagamento-read":{"type":"object","description":"","properties":{"beneficiario":{"type":"string"},"modalita_pagamento":{"description":"Can be one of\n    MP01\t\tcontanti\n    MP02\t\tassegno\n    MP03\t\tassegno circolare\n    MP04\t\tcontanti presso Tesoreria\n    MP05\t\tbonifico\n    MP06\t\tvaglia cambiario\n    MP07\t\tbollettino bancario\n    MP08\t\tcarta di pagamento\n    MP09\t\tRID\n    MP10\t\tRID utenze\n    MP11\t\tRID veloce\n    MP12\t\tRIBA\n    MP13\t\tMAV\n    MP14\t\tquietanza erario\n    MP15\t\tgiroconto su conti di contabilità speciale\n    MP16\t\tdomiciliazione bancaria\n    MP17\t\tdomiciliazione postale\n    MP18\t\tbollettino di c/c postale\n    MP19\t\tSEPA Direct Debit\n    MP20\t\tSEPA Direct Debit CORE\n    MP21\t\tSEPA Direct Debit B2B\n    MP22\t\tTrattenuta su somme già riscosse\n    MP23        PagoPA","type":"string"},"data_riferimento_termini_pagamento":{"type":"string","format":"date-time"},"giorni_termini_pagamento":{"type":"integer"},"data_scadenza_pagamento":{"type":"string","format":"date-time"},"importo_pagamento":{"type":"string"},"cod_ufficio_postale":{"type":"string"},"cognome_quietanzante":{"type":"string"},"nome_quietanzante":{"type":"string"},"cf_quietanzante":{"type":"string"},"titolo_quietanzante":{"type":"string"},"istituto_finanziario":{"type":"string"},"iban":{"type":"string"},"abi":{"type":"string"},"cab":{"type":"string"},"bic":{"type":"string"},"sconto_pagamento_anticipato":{"type":"string"},"data_limite_pagamento_anticipato":{"type":"string","format":"date-time"},"penalita_pagamenti_ritardati":{"type":"string"},"data_decorrenza_penale":{"type":"string","format":"date-time"},"codice_pagamento":{"type":"string"}},"required":["modalita_pagamento","importo_pagamento"]},"FatturaPADettaglioPagamento-write":{"type":"object","description":"","properties":{"beneficiario":{"type":"string"},"modalita_pagamento":{"description":"Can be one of\n    MP01\t\tcontanti\n    MP02\t\tassegno\n    MP03\t\tassegno circolare\n    MP04\t\tcontanti presso Tesoreria\n    MP05\t\tbonifico\n    MP06\t\tvaglia cambiario\n    MP07\t\tbollettino bancario\n    MP08\t\tcarta di pagamento\n    MP09\t\tRID\n    MP10\t\tRID utenze\n    MP11\t\tRID veloce\n    MP12\t\tRIBA\n    MP13\t\tMAV\n    MP14\t\tquietanza erario\n    MP15\t\tgiroconto su conti di contabilità speciale\n    MP16\t\tdomiciliazione bancaria\n    MP17\t\tdomiciliazione postale\n    MP18\t\tbollettino di c/c postale\n    MP19\t\tSEPA Direct Debit\n    MP20\t\tSEPA Direct Debit CORE\n    MP21\t\tSEPA Direct Debit B2B\n    MP22\t\tTrattenuta su somme già riscosse\n    MP23        PagoPA","type":"string"},"data_riferimento_termini_pagamento":{"type":"string","format":"date-time"},"giorni_termini_pagamento":{"type":"integer"},"data_scadenza_pagamento":{"type":"string","format":"date-time"},"importo_pagamento":{"type":"string"},"cod_ufficio_postale":{"type":"string"},"cognome_quietanzante":{"type":"string"},"nome_quietanzante":{"type":"string"},"cf_quietanzante":{"type":"string"},"titolo_quietanzante":{"type":"string"},"istituto_finanziario":{"type":"string"},"iban":{"type":"string"},"abi":{"type":"string"},"cab":{"type":"string"},"bic":{"type":"string"},"sconto_pagamento_anticipato":{"type":"string"},"data_limite_pagamento_anticipato":{"type":"string","format":"date-time"},"penalita_pagamenti_ritardati":{"type":"string"},"data_decorrenza_penale":{"type":"string","format":"date-time"},"codice_pagamento":{"type":"string"}},"required":["modalita_pagamento","importo_pagamento"]},"FatturaPAFatturaElettronicaBody-read":{"type":"object","description":"","required":["dati_generali","dati_beni_servizi"],"properties":{"dati_generali":{"$ref":"#/components/schemas/FatturaPADatiGenerali-read"},"dati_beni_servizi":{"$ref":"#/components/schemas/FatturaPADatiBeniServizi-read"},"dati_veicoli":{"$ref":"#/components/schemas/FatturaPADatiVeicoli-read"},"dati_pagamento":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiPagamento-read"}},"allegati":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAAllegati-read"}}}},"FatturaPAFatturaElettronicaBody-write":{"type":"object","description":"","required":["dati_generali","dati_beni_servizi"],"properties":{"dati_generali":{"$ref":"#/components/schemas/FatturaPADatiGenerali-read"},"dati_beni_servizi":{"$ref":"#/components/schemas/FatturaPADatiBeniServizi-read"},"dati_veicoli":{"$ref":"#/components/schemas/FatturaPADatiVeicoli-read"},"dati_pagamento":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPADatiPagamento-read"}},"allegati":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAAllegati-read"}}}},"FatturaPAFatturaElettronicaHeader-read":{"type":"object","description":"","required":["dati_trasmissione","cedente_prestatore","cessionario_committente"],"properties":{"dati_trasmissione":{"$ref":"#/components/schemas/FatturaPADatiTrasmissione-read"},"cedente_prestatore":{"$ref":"#/components/schemas/FatturaPACedentePrestatore-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPARappresentanteFiscale-read"},"cessionario_committente":{"$ref":"#/components/schemas/FatturaPACessionarioCommittente-read"},"terzo_intermediario_o_soggetto_emittente":{"$ref":"#/components/schemas/FatturaPATerzoIntermediarioSoggettoEmittente-read"},"soggetto_emittente":{"type":"string"}}},"FatturaPAFatturaElettronicaHeader-write":{"type":"object","description":"","required":["dati_trasmissione","cedente_prestatore","cessionario_committente"],"properties":{"dati_trasmissione":{"$ref":"#/components/schemas/FatturaPADatiTrasmissione-read"},"cedente_prestatore":{"$ref":"#/components/schemas/FatturaPACedentePrestatore-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPARappresentanteFiscale-read"},"cessionario_committente":{"$ref":"#/components/schemas/FatturaPACessionarioCommittente-read"},"terzo_intermediario_o_soggetto_emittente":{"$ref":"#/components/schemas/FatturaPATerzoIntermediarioSoggettoEmittente-read"},"soggetto_emittente":{"type":"string"}}},"FatturaPAFatturaPrincipale-read":{"type":"object","description":"","required":["numero_fattura_principale"],"properties":{"numero_fattura_principale":{"type":"string"},"data_fattura_principale":{"type":"string","format":"date-time"}}},"FatturaPAFatturaPrincipale-write":{"type":"object","description":"","required":["numero_fattura_principale"],"properties":{"numero_fattura_principale":{"type":"string"},"data_fattura_principale":{"type":"string","format":"date-time"}}},"FatturaPAIdFiscale-read":{"type":"object","description":"","required":["id_paese","id_codice"],"properties":{"id_paese":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"id_codice":{"description":"Tax identification code","type":"string"}}},"FatturaPAIdFiscale-write":{"type":"object","description":"","required":["id_paese","id_codice"],"properties":{"id_paese":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"id_codice":{"description":"Tax identification code","type":"string"}}},"FatturaPAIndirizzo-read":{"type":"object","description":"","required":["indirizzo","cap","comune","nazione"],"properties":{"indirizzo":{"type":"string"},"numero_civico":{"type":"string"},"cap":{"type":"string"},"comune":{"type":"string"},"provincia":{"type":"string"},"nazione":{"type":"string"}}},"FatturaPAIndirizzo-write":{"type":"object","description":"","required":["indirizzo","cap","comune","nazione"],"properties":{"indirizzo":{"type":"string"},"numero_civico":{"type":"string"},"cap":{"type":"string"},"comune":{"type":"string"},"provincia":{"type":"string"},"nazione":{"type":"string"}}},"FatturaPAIscrizioneREA-read":{"type":"object","description":"","required":["ufficio","numero_rea","stato_liquidazione"],"properties":{"ufficio":{"type":"string"},"numero_rea":{"type":"string"},"capitale_sociale":{"type":"string"},"socio_unico":{"type":"string"},"stato_liquidazione":{"type":"string"}}},"FatturaPAIscrizioneREA-write":{"type":"object","description":"","required":["ufficio","numero_rea","stato_liquidazione"],"properties":{"ufficio":{"type":"string"},"numero_rea":{"type":"string"},"capitale_sociale":{"type":"string"},"socio_unico":{"type":"string"},"stato_liquidazione":{"type":"string"}}},"FatturaPARappresentanteFiscale-read":{"type":"object","description":"","required":["dati_anagrafici"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiRappresentanteFiscale-read"}}},"FatturaPARappresentanteFiscale-write":{"type":"object","description":"","required":["dati_anagrafici"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiRappresentanteFiscale-read"}}},"FatturaPARappresentanteFiscaleCessionarioCommittente-read":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"denominazione":{"type":"string"},"nome":{"type":"string"},"cognome":{"type":"string"}}},"FatturaPARappresentanteFiscaleCessionarioCommittente-write":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPAIdFiscale-read"},"denominazione":{"type":"string"},"nome":{"type":"string"},"cognome":{"type":"string"}}},"FatturaPAScontoMaggiorazione-read":{"type":"object","description":"","required":["tipo"],"properties":{"tipo":{"type":"string"},"percentuale":{"type":"string"},"importo":{"type":"string"}}},"FatturaPAScontoMaggiorazione-write":{"type":"object","description":"","required":["tipo"],"properties":{"tipo":{"type":"string"},"percentuale":{"type":"string"},"importo":{"type":"string"}}},"FatturaPASemplificataAllegati-read":{"type":"object","description":"","required":["nome_attachment","attachment"],"properties":{"nome_attachment":{"type":"string"},"algoritmo_compressione":{"type":"string"},"formato_attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"attachment":{}}},"FatturaPASemplificataAllegati-write":{"type":"object","description":"","required":["nome_attachment","attachment"],"properties":{"nome_attachment":{"type":"string"},"algoritmo_compressione":{"type":"string"},"formato_attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"attachment":{}}},"FatturaPASemplificataAltriDatiIdentificativi-read":{"type":"object","description":"","properties":{"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"},"sede":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPASemplificataRappresentanteFiscale-read"}},"required":["sede"]},"FatturaPASemplificataAltriDatiIdentificativi-write":{"type":"object","description":"","properties":{"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"},"sede":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPASemplificataRappresentanteFiscale-read"}},"required":["sede"]},"FatturaPASemplificataCedentePrestatore-read":{"type":"object","description":"This is the supplier related section","required":["id_fiscale_iva","sede","regime_fiscale"],"properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"codice_fiscale":{"type":"string"},"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"},"sede":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPASemplificataRappresentanteFiscale-read"},"iscrizione_rea":{"$ref":"#/components/schemas/FatturaPASemplificataIscrizioneREA-read"},"regime_fiscale":{"description":"Can be one of\n    RF01\t\tOrdinario\n    RF02\t\tContribuenti minimi (art.1, c.96-117, L. 244/07)\n    RF04\t\tAgricoltura e attività connesse e pesca (artt.34 e 34-bis, DPR 633/72)\n    RF05\t\tVendita sali e tabacchi (art.74, c.1, DPR. 633/72)\n    RF06\t\tCommercio fiammiferi (art.74, c.1, DPR  633/72)\n    RF07\t\tEditoria (art.74, c.1, DPR  633/72)\n    RF08\t\tGestione servizi telefonia pubblica (art.74, c.1, DPR 633/72)\n    RF09\t\tRivendita documenti di trasporto pubblico e di sosta (art.74, c.1, DPR  633/72)\n    RF10\t\tIntrattenimenti, giochi e altre attività di cui alla tariffa allegata al DPR 640/72 (art.74, c.6, DPR 633/72)\n    RF11\t\tAgenzie viaggi e turismo (art.74-ter, DPR 633/72)\n    RF12\t\tAgriturismo (art.5, c.2, L. 413/91)\n    RF13\t\tVendite a domicilio (art.25-bis, c.6, DPR  600/73)\n    RF14\t\tRivendita beni usati, oggetti d’arte, d’antiquariato o da collezione (art.36, DL 41/95)\n    RF15\t\tAgenzie di vendite all’asta di oggetti d’arte, antiquariato o da collezione (art.40-bis, DL 41/95)\n    RF16\t\tIVA per cassa P.A. (art.6, c.5, DPR 633/72)\n    RF17\t\tIVA per cassa (art. 32-bis, DL 83/2012)\n    RF18\t\tAltro\n    RF19\t\tRegime forfettario (art.1, c.54-89, L. 190/2014)","type":"string"}}},"FatturaPASemplificataCedentePrestatore-write":{"type":"object","description":"This is the supplier related section","required":["id_fiscale_iva","sede","regime_fiscale"],"properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"codice_fiscale":{"type":"string"},"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"},"sede":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"stabile_organizzazione":{"$ref":"#/components/schemas/FatturaPASemplificataIndirizzo-read"},"rappresentante_fiscale":{"$ref":"#/components/schemas/FatturaPASemplificataRappresentanteFiscale-read"},"iscrizione_rea":{"$ref":"#/components/schemas/FatturaPASemplificataIscrizioneREA-read"},"regime_fiscale":{"description":"Can be one of\n    RF01\t\tOrdinario\n    RF02\t\tContribuenti minimi (art.1, c.96-117, L. 244/07)\n    RF04\t\tAgricoltura e attività connesse e pesca (artt.34 e 34-bis, DPR 633/72)\n    RF05\t\tVendita sali e tabacchi (art.74, c.1, DPR. 633/72)\n    RF06\t\tCommercio fiammiferi (art.74, c.1, DPR  633/72)\n    RF07\t\tEditoria (art.74, c.1, DPR  633/72)\n    RF08\t\tGestione servizi telefonia pubblica (art.74, c.1, DPR 633/72)\n    RF09\t\tRivendita documenti di trasporto pubblico e di sosta (art.74, c.1, DPR  633/72)\n    RF10\t\tIntrattenimenti, giochi e altre attività di cui alla tariffa allegata al DPR 640/72 (art.74, c.6, DPR 633/72)\n    RF11\t\tAgenzie viaggi e turismo (art.74-ter, DPR 633/72)\n    RF12\t\tAgriturismo (art.5, c.2, L. 413/91)\n    RF13\t\tVendite a domicilio (art.25-bis, c.6, DPR  600/73)\n    RF14\t\tRivendita beni usati, oggetti d’arte, d’antiquariato o da collezione (art.36, DL 41/95)\n    RF15\t\tAgenzie di vendite all’asta di oggetti d’arte, antiquariato o da collezione (art.40-bis, DL 41/95)\n    RF16\t\tIVA per cassa P.A. (art.6, c.5, DPR 633/72)\n    RF17\t\tIVA per cassa (art. 32-bis, DL 83/2012)\n    RF18\t\tAltro\n    RF19\t\tRegime forfettario (art.1, c.54-89, L. 190/2014)","type":"string"}}},"FatturaPASemplificataCessionarioCommittente-read":{"type":"object","description":"","required":["identificativi_fiscali"],"properties":{"identificativi_fiscali":{"$ref":"#/components/schemas/FatturaPASemplificataIdentificativiFiscali-read"},"altri_dati_identificativi":{"$ref":"#/components/schemas/FatturaPASemplificataAltriDatiIdentificativi-read"}}},"FatturaPASemplificataCessionarioCommittente-write":{"type":"object","description":"","required":["identificativi_fiscali"],"properties":{"identificativi_fiscali":{"$ref":"#/components/schemas/FatturaPASemplificataIdentificativiFiscali-read"},"altri_dati_identificativi":{"$ref":"#/components/schemas/FatturaPASemplificataAltriDatiIdentificativi-read"}}},"FatturaPASemplificataDatiBeniServizi-read":{"type":"object","description":"","required":["descrizione","importo","dati_iva"],"properties":{"descrizione":{"type":"string"},"importo":{"type":"string"},"dati_iva":{"$ref":"#/components/schemas/FatturaPASemplificataDatiIVA-read"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura)","type":"string"},"riferimento_normativo":{"type":"string"}}},"FatturaPASemplificataDatiBeniServizi-write":{"type":"object","description":"","required":["descrizione","importo","dati_iva"],"properties":{"descrizione":{"type":"string"},"importo":{"type":"string"},"dati_iva":{"$ref":"#/components/schemas/FatturaPASemplificataDatiIVA-read"},"natura":{"description":"Can be one of\n    N1\t\tescluse ex art. 15\n    N2\t\tnon soggette\n    N2.1\t\tnon soggette ad IVA ai sensi degli artt. da 7 a 7-septies del DPR 633/72\n    N2.2\t\tnon soggette - altri casi\n    N3\t\tnon imponibili\n    N3.1\t\tnon imponibili - esportazioni\n    N3.2\t\tnon imponibili - cessioni intracomunitarie\n    N3.3\t\tnon imponibili - cessioni verso San Marino\n    N3.4\t\tnon imponibili - operazioni assimilate alle cessioni all'esportazione\n    N3.5\t\tnon imponibili - a seguito di dichiarazioni d'intento\n    N3.6\t\tnon imponibili - altre operazioni che non concorrono alla formazione del plafond\n    N4\t\tesenti\n    N5\t\tregime del margine / IVA non esposta in fattura)","type":"string"},"riferimento_normativo":{"type":"string"}}},"FatturaPASemplificataDatiFatturaRettificata-read":{"type":"object","description":"","required":["numero_fr","data_fr","elementi_rettificati"],"properties":{"numero_fr":{"type":"string"},"data_fr":{"type":"string"},"elementi_rettificati":{"type":"string"}}},"FatturaPASemplificataDatiFatturaRettificata-write":{"type":"object","description":"","required":["numero_fr","data_fr","elementi_rettificati"],"properties":{"numero_fr":{"type":"string"},"data_fr":{"type":"string"},"elementi_rettificati":{"type":"string"}}},"FatturaPASemplificataDatiGenerali-read":{"type":"object","description":"","required":["dati_generali_documento"],"properties":{"dati_generali_documento":{"$ref":"#/components/schemas/FatturaPASemplificataDatiGeneraliDocumento-read"},"dati_fattura_rettificata":{"$ref":"#/components/schemas/FatturaPASemplificataDatiFatturaRettificata-read"}}},"FatturaPASemplificataDatiGenerali-write":{"type":"object","description":"","required":["dati_generali_documento"],"properties":{"dati_generali_documento":{"$ref":"#/components/schemas/FatturaPASemplificataDatiGeneraliDocumento-read"},"dati_fattura_rettificata":{"$ref":"#/components/schemas/FatturaPASemplificataDatiFatturaRettificata-read"}}},"FatturaPASemplificataDatiGeneraliDocumento-read":{"type":"object","description":"","required":["tipo_documento","divisa","data","numero"],"properties":{"tipo_documento":{"description":"Can be one of\n    TD07\t\tfattura semplificata\n    TD08\t\tnota di credito semplificata\n    TD09\t\tnota di debito semplificata","type":"string"},"divisa":{"type":"string"},"data":{"type":"string","format":"date-time"},"numero":{"type":"string"},"bollo_virtuale":{"type":"string"}}},"FatturaPASemplificataDatiGeneraliDocumento-write":{"type":"object","description":"","required":["tipo_documento","divisa","data","numero"],"properties":{"tipo_documento":{"description":"Can be one of\n    TD07\t\tfattura semplificata\n    TD08\t\tnota di credito semplificata\n    TD09\t\tnota di debito semplificata","type":"string"},"divisa":{"type":"string"},"data":{"type":"string","format":"date-time"},"numero":{"type":"string"},"bollo_virtuale":{"type":"string"}}},"FatturaPASemplificataDatiIVA-read":{"type":"object","description":"","properties":{"imposta":{"type":"string"},"aliquota":{"type":"string"}}},"FatturaPASemplificataDatiIVA-write":{"type":"object","description":"","properties":{"imposta":{"type":"string"},"aliquota":{"type":"string"}}},"FatturaPASemplificataDatiTrasmissione-read":{"type":"object","description":"","properties":{"id_trasmittente":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"progressivo_invio":{"type":"string"},"formato_trasmissione":{"type":"string"},"codice_destinatario":{"type":"string"},"pec_destinatario":{"type":"string"}},"required":["codice_destinatario"]},"FatturaPASemplificataDatiTrasmissione-write":{"type":"object","description":"","properties":{"id_trasmittente":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"progressivo_invio":{"type":"string"},"formato_trasmissione":{"type":"string"},"codice_destinatario":{"type":"string"},"pec_destinatario":{"type":"string"}},"required":["codice_destinatario"]},"FatturaPASemplificataFatturaElettronicaBody-read":{"type":"object","description":"","required":["dati_generali","dati_beni_servizi"],"properties":{"dati_generali":{"$ref":"#/components/schemas/FatturaPASemplificataDatiGenerali-read"},"dati_beni_servizi":{"$ref":"#/components/schemas/FatturaPASemplificataDatiBeniServizi-read"},"allegati":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPASemplificataAllegati-read"}}}},"FatturaPASemplificataFatturaElettronicaBody-write":{"type":"object","description":"","required":["dati_generali","dati_beni_servizi"],"properties":{"dati_generali":{"$ref":"#/components/schemas/FatturaPASemplificataDatiGenerali-read"},"dati_beni_servizi":{"$ref":"#/components/schemas/FatturaPASemplificataDatiBeniServizi-read"},"allegati":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPASemplificataAllegati-read"}}}},"FatturaPASemplificataFatturaElettronicaHeader-read":{"type":"object","description":"","required":["dati_trasmissione","cedente_prestatore","cessionario_committente"],"properties":{"dati_trasmissione":{"$ref":"#/components/schemas/FatturaPASemplificataDatiTrasmissione-read"},"cedente_prestatore":{"$ref":"#/components/schemas/FatturaPASemplificataCedentePrestatore-read"},"cessionario_committente":{"$ref":"#/components/schemas/FatturaPASemplificataCessionarioCommittente-read"},"soggetto_emittente":{"type":"string"}}},"FatturaPASemplificataFatturaElettronicaHeader-write":{"type":"object","description":"","required":["dati_trasmissione","cedente_prestatore","cessionario_committente"],"properties":{"dati_trasmissione":{"$ref":"#/components/schemas/FatturaPASemplificataDatiTrasmissione-read"},"cedente_prestatore":{"$ref":"#/components/schemas/FatturaPASemplificataCedentePrestatore-read"},"cessionario_committente":{"$ref":"#/components/schemas/FatturaPASemplificataCessionarioCommittente-read"},"soggetto_emittente":{"type":"string"}}},"FatturaPASemplificataIdFiscale-read":{"type":"object","description":"","required":["id_paese","id_codice"],"properties":{"id_paese":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"id_codice":{"description":"Tax identification code","type":"string"}}},"FatturaPASemplificataIdFiscale-write":{"type":"object","description":"","required":["id_paese","id_codice"],"properties":{"id_paese":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"id_codice":{"description":"Tax identification code","type":"string"}}},"FatturaPASemplificataIdentificativiFiscali-read":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"codice_fiscale":{"type":"string"}}},"FatturaPASemplificataIdentificativiFiscali-write":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"codice_fiscale":{"type":"string"}}},"FatturaPASemplificataIndirizzo-read":{"type":"object","description":"","required":["indirizzo","cap","comune","nazione"],"properties":{"indirizzo":{"type":"string"},"numero_civico":{"type":"string"},"cap":{"type":"string"},"comune":{"type":"string"},"provincia":{"type":"string"},"nazione":{"type":"string"}}},"FatturaPASemplificataIndirizzo-write":{"type":"object","description":"","required":["indirizzo","cap","comune","nazione"],"properties":{"indirizzo":{"type":"string"},"numero_civico":{"type":"string"},"cap":{"type":"string"},"comune":{"type":"string"},"provincia":{"type":"string"},"nazione":{"type":"string"}}},"FatturaPASemplificataIscrizioneREA-read":{"type":"object","description":"","required":["ufficio","numero_rea","stato_liquidazione"],"properties":{"ufficio":{"type":"string"},"numero_rea":{"type":"string"},"capitale_sociale":{"type":"string"},"socio_unico":{"type":"string"},"stato_liquidazione":{"type":"string"}}},"FatturaPASemplificataIscrizioneREA-write":{"type":"object","description":"","required":["ufficio","numero_rea","stato_liquidazione"],"properties":{"ufficio":{"type":"string"},"numero_rea":{"type":"string"},"capitale_sociale":{"type":"string"},"socio_unico":{"type":"string"},"stato_liquidazione":{"type":"string"}}},"FatturaPASemplificataRappresentanteFiscale-read":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"}}},"FatturaPASemplificataRappresentanteFiscale-write":{"type":"object","description":"","properties":{"id_fiscale_iva":{"$ref":"#/components/schemas/FatturaPASemplificataIdFiscale-read"},"denominazione":{"description":"Company name, to be filled in case 'nome' and 'cognome' are empty","type":"string"},"nome":{"description":"Physical person's name, to be filled with 'cognome' in case 'denominazione' is empty","type":"string"},"cognome":{"description":"Physical person's surname, to be filled with 'name' in case 'denominazione' is empty","type":"string"}}},"FatturaPATerzoIntermediarioSoggettoEmittente-read":{"type":"object","description":"","required":["dati_anagrafici"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiTerzoIntermediario-read"}}},"FatturaPATerzoIntermediarioSoggettoEmittente-write":{"type":"object","description":"","required":["dati_anagrafici"],"properties":{"dati_anagrafici":{"$ref":"#/components/schemas/FatturaPADatiAnagraficiTerzoIntermediario-read"}}},"Invoice-read":{"type":"object","description":"","required":["fattura_elettronica_header","fattura_elettronica_body"],"properties":{"fattura_elettronica_header":{"$ref":"#/components/schemas/FatturaPAFatturaElettronicaHeader-read"},"fattura_elettronica_body":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAFatturaElettronicaBody-read"}}}},"InvoiceExtraSDIInputBusinessRegistry":{"type":"object","description":"","properties":{"fiscal_code":{"type":"string"},"vat":{"type":"string"},"country":{"description":"ISO 3166-1 alpha-2 code","type":"string"},"business_name":{"type":"string"}},"required":["business_name"]},"InvoiceExtraSDIInputMetadata":{"type":"object","description":"","properties":{"registration_protocol":{"description":"Protocol number given by the recipient management software.","type":"string"},"registration_date":{"description":"Date when the invoice has been registered into your own registry.","type":"string"},"sectional":{"description":"Registry sectional.","type":"string"},"reference":{"description":"Field to be used to specify a DDT of reference or an order number or any other referral document.","type":"string"},"year":{"description":"The referral year of the document.","type":"string"},"filename":{"description":"Invoice filename, can be very long.","type":"string"}}},"Notification":{"type":"object","description":"","properties":{"uuid":{"type":"string"},"invoice_uuid":{"type":"string"},"created_at":{"description":"The date the notification was received.","type":"string"},"type":{"description":"The notification type (2 letters code).","type":"string"},"message":{"description":"The notification message model.","type":"string"},"downloaded":{"description":"The notification was downloaded (automatically when received by webhook or manually for polling integrations).","type":"boolean"},"downloaded_at":{"description":"Notification download date.","type":"string","format":"date-time"},"file_name":{"type":"string"}}},"PreservedDocument-read":{"type":"object","description":"","properties":{"created_at":{"readOnly":true,"type":"string","format":"date-time"},"uuid":{"readOnly":true,"type":"string"},"status":{"readOnly":true,"description":"Can be on of \"to_be_stored\", \"sent\", \"stored\", \"error\".","type":"string"},"receipt_received_at":{"readOnly":true,"type":"string","format":"date-time"},"object_type":{"readOnly":true,"description":"Can be one of \"customer invoice\", \"supplier invoice\", \"extra sdi supplier invoice\".","type":"string"},"object_id":{"readOnly":true,"description":"The id of the object that went into the legal storage (e.g. Invoice).","type":"string"},"message":{"readOnly":true,"description":"The messages received from the legal storage.","type":"string"},"preserved_object_id":{"readOnly":true,"description":"The legal storage object id.","type":"string"},"weight":{"readOnly":true,"description":"The weight in bytes of the preserved document.","type":"integer"}}},"PreservedDocumentReceipt":{"type":"object","description":"","properties":{"xml":{}}},"User-read":{"type":"object","description":"","properties":{"email":{"readOnly":true,"type":"string"},"fullname":{"type":"string"},"sdi_recipient":{"readOnly":true,"type":"string"},"invoicing_vat_number":{"type":"string"},"invoicing_fiscal_id":{"type":"string"},"invoicing_address":{"type":"string"},"invoicing_city":{"type":"string"},"invoicing_province":{"type":"string"},"invoicing_cap":{"type":"string"},"invoicing_name":{"type":"string"},"statistics_scope":{"readOnly":true,"type":"string"}}},"User-read-accept-only":{"type":"object","description":""},"User-read-alert-configuration":{"type":"object","description":""},"User-write":{"type":"object","description":"","properties":{"fullname":{"type":"string"},"invoicing_vat_number":{"type":"string"},"invoicing_fiscal_id":{"type":"string"},"invoicing_address":{"type":"string"},"invoicing_city":{"type":"string"},"invoicing_province":{"type":"string"},"invoicing_cap":{"type":"string"},"invoicing_name":{"type":"string"}}},"User-write-accept-only":{"type":"object","description":""},"User-write-alert-configuration":{"type":"object","description":""},"UserAlertConfiguration":{"type":"object","description":"","properties":{"credit_alert_email":{"type":"string"},"pre_sale_alert_threshold":{"type":"integer"}}},"UserPassword":{"type":"object","description":"","required":["password"],"properties":{"password":{"type":"string"}}},"InvoiceStatsCountDetails":{"type":"object","description":"","properties":{"count":{"type":"integer"},"cost":{"type":"string"}}},"InvoiceStatsNotificationsDetails":{"type":"object","description":"","properties":{"at":{"type":"integer"},"dt":{"type":"integer"},"mc":{"type":"integer"},"ne":{"type":"integer"},"rc":{"type":"integer"},"ns":{"type":"integer"}}},"InvoiceStatsDetails":{"type":"object","description":"Statistical information about sent and received invoices and their notifications","properties":{"year":{"type":"string"},"month":{"type":"string"},"day":{"type":"string"},"hour_slot":{"type":"string","description":"Day is subdivided into 6 slots of 4 hours each"},"customer_invoices":{"$ref":"#/components/schemas/InvoiceStatsCountDetails"},"supplier_invoices":{"$ref":"#/components/schemas/InvoiceStatsCountDetails"},"supplier_extra_sdi_invoices":{"$ref":"#/components/schemas/InvoiceStatsCountDetails"},"total":{"$ref":"#/components/schemas/InvoiceStatsCountDetails"},"notifications":{"$ref":"#/components/schemas/InvoiceStatsNotificationsDetails"},"months":{"$ref":"#/components/schemas/InvoiceStatsDetails"},"days":{"$ref":"#/components/schemas/InvoiceStatsDetails"},"hour_slots":{"$ref":"#/components/schemas/InvoiceStatsDetails"}}},"CustomerInvoiceImport_37e09e3699ce4cd85a530e39ca948dbf":{"type":"object","description":"","properties":{"uuid":{"description":"The UUID used to identify uniquely the invoice.","type":"string"}}},"CustomerInvoiceImport_c7e59b8bbe39ce7add0447598b83972d":{"type":"object","description":"","required":["invoice"],"properties":{"invoice":{"description":"The base64 encoded invoice XML.","type":"string"},"notifications":{"description":"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.","type":"array","items":{"type":"string"}},"invoice_file_name":{"description":"The invoice filename, to be provided only when there is not any notification.","type":"string"},"sdi_id":{"description":"The invoice SDI ID, to be provided only when there is not any notification.","type":"string"}}},"Invoice_0821e7e95ba0b7bf325021140f2120a0-write":{"type":"object","description":"","required":["fattura_elettronica_header","fattura_elettronica_body"],"properties":{"fattura_elettronica_header":{"$ref":"#/components/schemas/FatturaPAFatturaElettronicaHeader-read"},"fattura_elettronica_body":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPAFatturaElettronicaBody-read"}}}},"Invoice_63c49e7c5585a4291733a4fe9ca56176-read":{"type":"object","description":"","properties":{"uuid":{"type":"string"}}},"InvoiceExtraSDI_4c269f89cbc27eef9f1384ccdd3dbfc7":{"type":"object","description":"","properties":{"uuid":{"type":"string"}}},"InvoiceExtraSDI_5d75206d1abef65beae8e6ede9d5a701":{"type":"object","description":"","required":["payload","type","recipient","sender","date","number"],"properties":{"payload":{"description":"The base64 encoded file content. Max size of the payload is 10 Megabytes.","type":"string"},"type":{"type":"integer","enum":[3],"example":3,"description":"The type must be set to 3 for supplier extra invoices."},"recipient":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"},"sender":{"$ref":"#/components/schemas/InvoiceExtraSDIInputBusinessRegistry"},"date":{"description":"The recipient business registry\nInvoice date format yyyy-mm-dd.","type":"string","format":"date-time"},"number":{"description":"Invoice number.","type":"string"},"filename":{"description":"Invoice filename, if not provided it will be set as the invoice uuid.pdf.","type":"string"},"metadata":{"$ref":"#/components/schemas/InvoiceExtraSDIInputMetadata"}}},"InvoiceSimplified_20cdd44f6e582e834f470935d0a48353-write":{"type":"object","description":"","required":["fattura_elettronica_header","fattura_elettronica_body"],"properties":{"fattura_elettronica_header":{"$ref":"#/components/schemas/FatturaPASemplificataFatturaElettronicaHeader-read"},"fattura_elettronica_body":{"type":"array","items":{"$ref":"#/components/schemas/FatturaPASemplificataFatturaElettronicaBody-read"}}}},"InvoiceSimplified_c0da8873c8cf57b143fb40db59273112-read":{"type":"object","description":"","properties":{"uuid":{"type":"string"}}},"InvoiceStats_6533b6eb3bb11051af206512e18f1ecf":{"type":"object","description":"","properties":{"fiscal_id":{"type":"string"},"stats":{"$ref":"#/components/schemas/InvoiceStatsDetails"}}},"SupplierInvoiceImport_9463fbb572de38cd53ef0f6b5f0f4e9f":{"type":"object","description":"","properties":{"uuid":{"description":"The UUID used to identify uniquely the invoice. In case the invoice XML embeds multiple bodies, you will get an array of UUIDs.","type":"string"}}},"SupplierInvoiceImport_94cf0087d8b28e4f4ec3c97f11f6cd6a":{"type":"object","description":"","required":["invoice"],"properties":{"invoice":{"description":"The base64 encoded invoice XML.","type":"string"},"metadata":{"description":"The base64 encoded invoice metadata XML. If it is not provided you must provide invoice_file_name and sdi_id.","type":"string"},"invoice_file_name":{"description":"The invoice filename, to be provided only when there is not metadata.","type":"string"},"sdi_id":{"description":"he invoice SDI ID, to be provided only when there is not metadata.","type":"string"}}},"User_9c58cef79af79b42adb4b5b369a9b330-read":{"type":"object","description":""}}}}