Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 3.13 KB

File metadata and controls

47 lines (38 loc) · 3.13 KB

Receive

A received invoice.

Properties

Name Type Description Notes
id int Unique identifier. For POST requests, leave it at `0` — the server will assign one automatically. For PUT requests, set it to the id of the record you want to update. [optional]
created datetime Creation date. It is set automatically. [optional] [readonly]
version int Row version, for optimistic concurrency. It is set automatically. [optional] [readonly]
user_id int User id. It is set automatically based on the authenticated user. [optional] [readonly]
company_id int Company id. It is set automatically based on the VAT number extracted from the invoice payload (the sender for `send`, the recipient for `receive`). [optional] [readonly]
committente str VAT number of the Cessionario/Committente (customer). This is automatically set based on the recipient's VAT number. [optional] [readonly]
prestatore str VAT number of the Cedente/Prestatore (vendor). This is automatically set based on the sender's VAT number. [optional] [readonly]
identifier str SDI identifier. This is set by the SDI and is guaranteed to be unique within the SDI system. [optional] [readonly]
file_name str Xml file name. If not provided on send, it will be auto-generated. [optional]
format str SDI format (FPA12, FPR12, FSM10, ...) [optional]
payload str Xml payload. This is the actual xml content, as string. On send, it can be base64 encoded. If it's not, it will be encoded before sending. It is guaranteed to be encrypted at rest.
last_update datetime Last update from SDI. [optional] [readonly]
date_sent datetime When the invoice was sent to SDI. [optional] [readonly]
documents List[DocumentData] The invoices included in the payload. This is set by the system, based on the xml content. [optional] [readonly]
encoding str Whether the payload is Base64 encoded or a plain XML (text). [optional]
nome_prestatore str Business name of the prestatore (supplier/seller) extracted from the invoice XML. [optional]
is_read bool Whether the invoice has been read at least once. Set to true only when the invoice is requested with include_payload=true. [optional]
message_id str SDI message id. [optional]

Example

from invoicetronic_sdk.models.receive import Receive

# TODO update the JSON string below
json = "{}"
# create an instance of Receive from a JSON string
receive_instance = Receive.from_json(json)
# print the JSON string representation of the object
print(Receive.to_json())

# convert the object into a dict
receive_dict = receive_instance.to_dict()
# create an instance of Receive from a dict
receive_from_dict = Receive.from_dict(receive_dict)

[Back to Model list] [Back to API list] [Back to README]