The issued B2G document reflects the value of the interest received by an entity for selling product in a governmental structure.

json definition with remarks:

{
    "IntegritySignature": "-",
    "IAPRSignPolicy": 2,
    "CurrencyCode": "EUR",
    "InvoiceTypeCode": "1.1",
    "SpecialInvoiceCategory": 0,
    "VariationType": 0,
    "DocumentType": "Τιμολόγιο - Δ.Αποστολής",
    "DocumentTypeCode": "ELB2G",
    "Series": "ΤΔΑ",
    "Number": "575",
    "IssuerFormatedInvoiceSeriesNumber": "ΤΔΑ-0000057",
    "DateIssued": "2023-06-27T00:00:00",
    "RelativeDocuments": [],
    "GsisRelatedInvoices": [],
    "B2GDetails": {
        "ContractingAuthorityCode": "1000.E00512.0001", // Α.Α.Η.Τ MANDATORY - UNIQUE NUMBER OF THE CONTRACTING AUTHORITY
        "ContractingAuthority": "ΡΥΘΜΙΣΤΙΚΗ ΑΡΧΗ ΕΝΕΡΓΕΙΑΣ (ΡΑΕ)",  //OFFICIAL NAME OF THE ORGANIZATION
        "ContractTypeCode": "3|2018ΕΠ06600057", // OTHER GOVERNENT | ADA OR PDE - MANDATORY(IF IT IS NOT AVAILABLE YOU CAN GIVE VALUE 3|0)
        "ContractReferenceCode": "20SYMV006467658" // ADAM (IF IT IS NOT AVAILABLE YOU CAN GIVE VALUE "0")
    },
    "Issuer": {
        "RegisteredName": "DEMO",
        "Vat": "EL123456789",
        "Phones": [
            "+301221121"
        ],
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "Λεωφόρος Κύμης 132",
            "Postal": "42100"
        },
        "Branch": "Εδρα",
        "PosId": "0",
        "BranchAddress": {}
    },
    "CounterParty": {
        "RegisteredName": "ΡΥΘΜΙΣΤΙΚΗ ΑΡΧΗ ΕΝΕΡΓΕΙΑΣ (ΡΑΕ)",
        "Vat": "099441906",
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "Αθηνάς 63, Πλατεία Εθνικής Αντίστασης",
            "Postal": "10552"
        },
        "Code": "20"
    },
    "Recipient": {
        "RegisteredName": "ΡΥΘΜΙΣΤΙΚΗ ΑΡΧΗ ΕΝΕΡΓΕΙΑΣ (ΡΑΕ)",
        "Vat": "099441906",
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "Αθηνάς 63, Πλατεία Εθνικής Αντίστασης",
            "Postal": "10552"
        }
    },
    "AllowancesCharges": [],
    "Banks": [
        {
            "BicCode": "ERBKGRAA",
            "Name": "EUROBANK ERGASIAS",
            "Account": "Ergasias Bank Account",
            "IBAN": "GR Iban"
        }
    ],
    "DistributionDetails": {
        "InternalDocumentId": "436953964",
        "DeliveryOriginDetails": {
            "Address": {},
            "Remarks": "Κεν/κό"
        },
        "DeliveryDestinationDetails": {
            "Address": {
                "City": "ΑΘΗΝΑ",
                "Street": "Αθηνάς 63, Πλατεία Εθνικής Αντίστασης",
                "Postal": "10552"
            }
        }
    },
    "PaymentDetails": {
        "TotalPieces": 50,
        "PreviousBalance": 0,
        "NewBalance": 206.23,
        "PaymentMethods": [
            {
                "PaymentMethodType": "ΠΙΣΤΩΣΗ 60 ΗΜΕΡΩΝ",
                "PaymentMethodTypeCode": 5,
                "Contactless": false
            }
        ]
    },
    "AdditionalDetails": {
        "TransmissionMethod": "A",
        "AvoidEmailGrouping": false
    },
    "Details": [
        {
            "LineNo": 1,
            "Code": "21-001",
            "MeasurementUnit": "ΤΜΧ",
            "measurementUnitCodeEN": "H87", // MEASUREMENT UNIT CODE INDICATING PIECES -MANDATORY
            "CpvCode": "15511000-3", //CPV CODE OF GOOD/SERVICE/PROJECT BASED ON THE COMMON VOCABULARY FOR PUBLIC PROCUREMENT
            "Descriptions": [
                "ΓΑΛΑ ΣΕ ΧΑΡΤ/ΤΙΑ 1Λ.ΛΙΠ.3,5%"
            ],
            
            "MeasurementUnitCode": 1,
            "Quantity": 50,
            "AllowancesCharges": [],
            "InternalId": "1",
            "TotalNetValueBeforeTotalDiscount": 182.5,
            "LineApportionedDiscountValue": 0,
            "UnitPrice": 3.65,
            "NetTotalAfterInlineALCs": 182.5,
            "NetTotal": 182.5,
            "Total": 206.23,
            "VATTotal": 23.73,
            "VatCategory": "13",
            "VatCategoryCode": 2,
            "IsInformative": false,
            "IsHidden": false,
            "RecordTypeCode": 0,
            "IncomeClassification": {
                "Id": 0,
                "ClassificationTypeCode": "E3_561_001",
                "ClassificationCategoryCode": "category1_2",
                "Amount": 182.5
            }
        }
    ],
    "Summaries": {
        "TotalNetAmount": 182.5,
        "TotalVATAmount": 23.73,
        "TotalGrossValue": 206.23,
        "TotalPayableAmount": 206.23
    },
    "VatAnalysis": [
        {
            "Name": "13",
            "Percentage": 13,
            "VatAmount": 23.73,
            "UnderlyingValue": 182.5
        }
    ],
    "IsDelayed": false,
    "IsDelayedCode": 0
}

Important remarks

  • DocumentTypeCode: This filed must be setted to “ELB2G” so that to be declared that the issued document concerns a B2G transaction
  • 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 B2G invoices.
  • Recipient: This field is being used in case that the expenditure concerns a different physical recipient or any department to which the responsibility has been delegated by law. Else the same value with “CounterParty”
  • InternalDocumentId: It is a unique document number in the issuer’s system
  • B2GDetails: This field is mandatory for all B2G documents and you find more information in the Features & Modules in B2G invoicing section
  • 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.
  • MeasurementUnitCodeEN: This field is mandatory for B2G documents and it declares the measurement unit of the product
  • CpvCode: This field is mandatory for B2G documents and it is a code of good/project/service based on the single classification system for public procurement from the European Union
  • 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