This is a sample json layout to help you easily implement a Invoice for Self-Billing 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": "ΤΑΤΑ",
  "Number": "00002845",
  "SelfPricing": true, // Declares that it is self-billing
  "DateIssued": "2022-03-04",
  "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": "Company name ",
    "Vat": "EL999999999",
    "TaxOffice": "Φ.Α.Ε. ΑΘΗΝΩΝ ",
    "Activities": [
      "REAL ESTATE"
    ],
    "Address": {
      "City": "ΑΘΗΝΑ",
      "Municipality": "ΑΤΤΙΚΗΣ",
      "Street": "ΗΠΕΙΡΟΥ 30",
      "Postal": "12345",
      "CountryCode": "GR"
    },
    "Phones": [
      "210-9999999"
    ]
  },
  "PaymentDetails": {
    "PaymentDate": "2022-03-14",
    "PaymentMethods": [
      {
        "PaymentMethodType": "ΕΠΙ ΠΙΣΤΩΣΕΙ",
        "PaymentMethodTypeCode": 5 //IAPR code - paragraph 8.12 of mydata documentation
      }
    ]
  },
  "DistributionDetails": {
	"InternalDocumentId": "ΜΟΝΑΔΙΚΟΣ IDENTIFIER ΤΟΥ ΠΑΡΑΣΤΑΤΙΚΟΥ"
	},
  "AdditionalDetails": {
    "AccountingDepartmentEmails": [
      "emailcounterparty@gmail.com"
    ],
    "TransmissionMethod": "E",
    "AvoidEmailGrouping": false,
    "DocumentTemplate": "0"
  },
  "Details": [
    {
      "LineNo": 1,
      "Descriptions": [
        "ΛΟΙΠΑ ΕΞΟ∆Α (ΕΚ∆.ΕΓΓΡ.ΚΤΗΜ.ΓΡΑΦ ΜΑΡΑΘ) ∆ΟΣΗ 5/8"
      ],
      "MeasurementUnitCode": 1, //IAPR code - paragraph 8.13 of mydata documentation
      "Quantity": 1,
      "VatCategoryCode": 1, //Κωδικός ΑΑΔΕ
      "VatCategory": "24 %",
      "VatTotal": 332.29,
      "NetTotal": 1384.56,
      "Total": 1716.85 ,
      "ExpensesClassification": { //IAPR expenses classification - paragrapg 8.11 of mydata documentation
        "ClassificationTypeCode": "E3_586",
        "ClassificationCategoryCode": "category2_3",
        "Amount": 1384.56
      },
      "VatClassification": { //IAPR vat classification - paragrapg 8.11 of mydata documentation
        "ClassificationTypeCode": "VAT_365",
        "ClassificationCategoryCode": "category2_3",
        "Amount": 1384.56
      }	  
    }
  ],
  "Summaries": {
    "TotalNetAmount": 1384.56,
    "TotalVATAmount": 332.29,
    "TotalGrossValue": 1716.85
  },
  "VatAnalysis": [
    {
      "Name": "24%",
      "VatAmount": 332.29,
      "UnderlyingValue": 1384.56
    }
  ],
  "MiscellaneousData": {
    "MoreInformation1": "Προαιρετικό πεδίο για σχόλια"
    },
  "IsDelayedCode": 0 // Value 0: Realtime, 1: Problem on the issuer side, 2: Problem on the AADE side 
}

Important remarks

  • SelfPricing: This field is setted with value true when the issued invoice is about selfbilling, which means that the invoice is issued by the recipient of the goods or services (self-billing) or by a third party in the name and on behalf of the seller.
  • 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