This is a sample json layout to help you easily implement a Invoice for VAT rental for the Banking Sector.

json definition with remarks:

{
    "CurrencyCode": "EUR",
    "InvoiceType": "Δειγμα Ενοικίου Με ΦΠΑ",
    "InvoiceTypeCode": "2.1", // IAPR  code - paragram 8.1 of mydata documentation
    "DocumentTypeCode": "INVOICE",
    "Series": "LKJH",
    "Number": "021",
    "DateIssued": "2023-04-24T00:00:00",
    "RelativeDocuments": [
        "Αντιστοιχεί στο πεδίο ΣΧΕΤ. ΠΑΡΑΣΤ/ΚΟ"
    ],
    "Issuer": {
        "RegisteredName": "Scrooge Bank",
        "Vat": "EL123456789",
        "TaxOffice": "ΦΑΕ ΑΘΗΝΩΝ",
        "Activities": [
            "ΤΡΑΠΕΖΑ"
        ],
        "GeneralCommercialRegistryNumber": "999999999",
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "ΑΡΙΣΤΟΤΕΛΟΥΣ 14",
            "Postal": "12345"
        },
         "Phones": [
            "2106666666"
        ],
        "Url": "mybank.gr"
    },
    "CounterParty": {
        "Code": "007796",
        "RegisteredName": "ΠΕΤΡΟΣ ΠΕΤΡΟΥ",
        "Vat": "EL99999999",
        "TaxOffice": "Φ.Α.Ε. ΑΘΗΝΩΝ ",
        "Activities": [
            "REAL ESTATE"
        ],
        "Address": {
            "City": "ΑΘΗΝΑ",
            "Municipality": "ΑΤΤΙΚΗΣ",
            "Street": "ΗΠΕΙΡΟΥ 30",
            "Postal": "12345",
            "CountryCode": "GR"
        },
        "Phones": [
            "210-9999999"
        ]
    },
    "PaymentDetails": {
        "PaymentDate": "2022-03-17",
        "PaymentMethods": [
            {
                "PaymentMethodType": "ΜΕΤΡΗΤΑ",
                "PaymentMethodTypeCode": 2 //IAPR code - paragraph 8.12 of mydata documentation
            }
        ]
    },
    "DistributionDetails": {
        "InternalDocumentId": "LKJH021"
    },
    "AdditionalDetails": {
        "AccountingDepartmentEmails": [
            "emailcounterparty@gmail.com"
        ],
        "TransmissionMethod": "E",
        "AvoidEmailGrouping": false,
        "DocumentTemplate": "0"
    },
    "Details": [
        {
            "LineNo": 1,
            "Descriptions": [
                "ΕΝΟΙΚΙΟ ΙΟΥΛΙΟΥ 2022"
            ],
            "MeasurementUnitCode": 1, //IAPR code - paragraph 8.13 of mydata documentation
            "Quantity": 1,
            "VatCategoryCode": 1, //IAPR code - paragraph 8.2 of mydata documentation
            "VatCategory": "24 %",
            "VatTotal": 240,
            "NetTotal": 1000,
            "Total": 1240,
            "IncomeClassification": { //IAPR income classification - paragraph 8.9
                "ClassificationTypeCode": "E3_561_001", //or E3_562
                "ClassificationCategoryCode": "category1_3", //or category1_5
                "Amount": 1000
            }
        }
    ],
    "Summaries": {
        "TotalNetAmount": 1000,
        "TotalVATAmount": 240,
        "ΤotalStampDutyAmount": 0, // Total Stamp Value
        "TotalGrossValue": 1240
    },
    "VatAnalysis": [
        {
            "Name": "24%",
            "VatAmount": 240,
            "UnderlyingValue": 1000
        }
    ],
    "MiscellaneousData": {
        "MoreInformation1": "Προαιρετικό πεδίο για σχόλια"
    },
    "IsDelayedCode": 0 //Value 0: Realtime, 1: Problem on the issuer side, 2: Problem on the AADE side
}

Important remarks

  • Issuer: Τhe details of the issuer are entered in this object and it is mandatory for all the invoices
  • Counterparty: Τhe details of the counterparty are entered in this object. It is mandatory for the B2Β invoices.
  • InternalDocumentId: It is a unique document number in the issuer’s system
  • PaymethodTypeCode: This code corresponds to the paragraph 8.12 of IAPR myDATA manual
  • TransmissionMethod: If this field has value “E”, an email with the invoice url will be sent to the email address that has being setted to the field “AccountingDepartmentEmails”. If it has value “A”, the invoice is only going to be archived.
  • Details: In this object, each line is a product/service that you sell and all the details of it.
  • Summaries: the summary ammounts
  • VatAnalysis: The analysis of vat amounts by percentage
  • IsDelayedCode: This field is used for heterochronous transmission. Value 0: Realtime, 1: Problem on the issuer side, 2: Problem on the IAPR side