The issued document includes the residence tax which the company collects and pays in full to the state. In the case where the document is issued for retail (B2C), the 'counterparty' field can be omitted. If «counterparty” field is included, all mandatory fields, must be completed: “RegisteredName”: “Retail Customer”, “Vat”: ''empty or 00000000”, the object “Address” including all the fields.

json definition with remarks:


{
    "invoiceTypeCode": "8.2",
    "documentType": "ΦΟΡΟΣ ΔΙΑΜΟΝΗΣ 2",
    "documentTypeCode": "INVOICE",
    "series": "GFD",
    "number": "157037",
    "dateIssued": "2024-05-14T00:00:00",
    "currencyCode": "EUR",
    "correlatedInvoices": // MARK of the correlated invoice
    [
        400001897562549
    ],
    "Issuer": {
        "RegisteredName": "Best Hospitality",
        "Vat": "EL118058830",
        "TaxOffice": "ΦΑΕ ΑΘΗΝΩΝ",
        "Activities": [
            "ΤΡΑΠΕΖΑ"
        ],
        "GeneralCommercialRegistryNumber": "999999999",
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "ΑΡΙΣΤΟΤΕΛΟΥΣ 14",
            "Postal": "12345"
        },
        "Phones": [
            "2106666666"
        ],
        "Url": "myhost.gr"
    },
    "counterParty": {
        "registeredName": "ΕΠΩΝΥΜΙΑ ΠΕΛΑΤΗ",
        "registrationNumber": "154981088",
        "vat": "EL000000000",
        "taxOfficeCode": "ΦΑΕ ΑΘΗΝΩΝ",
        "activities": [],
        "generalCommercialRegistryNumber": "Γ.Ε.Μ.Η.",
        "phones": [
            "2109999999"
        ],
        "faxes": [],
        "emails": [],
        "address": {
            "countryCode": "GR",
            "municipality": "ΑΘΗΝΑ",
            "city": "ΑΘΗΝΑ",
            "street": "Κηφισού 32, 11000 Athens, Greece",
            "postal": "11000"
        }
    },
    "distributionDetails": {
        "internalDocumentId": "f3061307-8dae-4851-9c09"
    },
    "paymentDetails": {
        "paymentMethods": [
            {
                "amount": 126,
                "paymentMethodTypeCode": 5
            }
        ]
    },
    "AdditionalDetails": {
        "AccountingDepartmentEmails": [],
        "TransmissionMethod": "A"
    },
    "details": [
        {
            "lineNo": 1,
            "descriptions": [
                "ΜΟΝΟ ΦΟΡΟΣ ΔΙΑΜΟΝΗΣ"
            ],
            "total": 2,
            "netTotal": 0,
            "vatTotal": 0,
            "vatCategoryCode": 8,
            "recordTypeCode": 0,
            "otherTaxesPercentCategoryCode": 6,
            "otherTaxesAmount": 2,
            "incomeClassification": {
                "classificationCategoryCode": "category1_95",
                "amount": 0
            }
        }
    ],
    "summaries": {
        "totalNetAmount": 0,
        "totalVATAmount": 0,
        "totalGrossValue": 2,
        "totalOtherTaxesAmount": 2
    },
    "isDelayedCode": 0
}

Important remarks

  • correlatedInvoices: This is an array that includes the MARKs of the correlated invoices for which the residence tax is been issued.
  • 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 8.2 documents.
  • InternalDocumentId: It is a unique document number in the issuer’s system
  • PaymethodTypeCode: This code corresponds to the paragraph 8.12 of IAPR myDATA documentation
  • 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 AADE side