The issued B2G document reflects the value of the interest received by an entity for selling products/services in a governmental structure and taxes are included.

json definition with remarks:

{
    "CurrencyCode": "EUR",
    "InvoiceTypeCode": "1.1",
    "DocumentType": "Τιμολόγιο - Δ.Αποστολής",
    "DocumentTypeCode": "ELB2G",
    "Series": "ΤΥΘ",
    "Number": "47",
    "IssuerFormatedInvoiceSeriesNumber": "ΤΥΘ-0000047",
    "DateIssued": "2023-05-16T00:00:00",
    "B2GDetails": {
		"ContractingAuthorityCode": "1007.E84501.0001",
		"ContractingAuthority":"ΔΗΜΟΣ ΑΘΗΝΑΙΩΝ",
		"ContractTypeCode": "2|2018ΕΠ06600057",
		"ContractReferenceCode": "20SYMV006467658"
	},
    "Issuer": {
        "RegisteredName": "ΤΡΙΚΚΗ ΑΕ",
        "Vat": "EL097000029",
        "Phones": ["+30 24310 71130"],
        "Address": {
            "CountryCode": "GR",
            "City": "ΤΡΙΚΑΛΑ",
            "Street": "2ο Χλμ Τρικάλων - Καρδίτσας",
            "Postal": "42100"
        },
        "Branch": "Εδρα",
        "PosId": "0",
        "BranchAddress": {}
    },
    "CounterParty": {
        "RegisteredName": "ΔΗΜΟΣ ΑΘΗΝΑΙΩΝ",
        "Vat": "090025537",
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "Αθηνάς 63, Πλατεία Εθνικής Αντίστασης",
            "Postal": "10552"
        },
        "Code": "20"
    },
    "Recipient": {
        "RegisteredName": "ΔΗΜΟΣ ΑΘΗΝΑΙΩΝ",
        "Vat": "090025537",
        "Address": {
            "CountryCode": "GR",
            "City": "ΑΘΗΝΑ",
            "Street": "Αθηνάς 63, Πλατεία Εθνικής Αντίστασης",
            "Postal": "10552"
        }
    },
	    "Taxes": [
		{
		  "TaxCategoryCode": 17,
		  "TaxTypeCode": 3,
		  "TaxAmount": 0.5
		},
		{
		  "TaxCategoryCode": 16,
		  "TaxTypeCode": 3,
		  "TaxAmount": 10
		},
		{
		  "TaxCategoryCode": 0,
		  "TaxTypeCode": 5,
		  "TaxAmount": 5
		}
		],
    "AllowancesCharges": [],
    "Banks": [{
            "Account": "Ergasias Bank Account",
            "Iban": "GR Iban",
            "Name": "EUROBANK ERGASIAS",
            "BicCode": "ERBKGRAA"
        },
    ],
    "DistributionDetails": {
        "InternalDocumentId": "ΤΥΘ43697",
        "DeliveryOriginDetails": {
            "Address": {},
            "Remarks": "Κεν/κό"
        },
        "DeliveryDestinationDetails": {
            "Address": {
                "City": "ΑΘΗΝΑ",
                "Street": "Αθηνάς 63, Πλατεία Εθνικής Αντίστασης",
                "Postal": "10552"
            }
        }
    },
    "PaymentDetails": {
        "TotalPieces": 50,
        "PreviousBalance": 0.0,
        "NewBalance": 0,
        "PaymentMethods": [
			{
                "PaymentMethodType": "ΠΙΣΤΩΣΗ 60 ΗΜΕΡΩΝ",
                "PaymentMethodTypeCode": 5
            }
        ]
    },
    "AdditionalDetails": {
        "TransmissionMethod": "A",
        "AvoidEmailGrouping": false
    },
    "Details": [{
            "LineNo": 1,
            "Code": "21-001",
            "CpvCode": "15511000-3",
            "Descriptions": ["ΓΑΛΑ ΣΕ ΧΑΡΤ/ΤΙΑ 1Λ.ΛΙΠ.3,5%"],
            "MeasurementUnitCode": 1,
            "MeasurementUnit": "ΤΜΧ",
            "MeasurementUnitCodeEN": "Η87",
            "Quantity": 50.0,
            "AllowancesCharges": [],
            "InternalId": "1",
            "TotalNetValueBeforeTotalDiscount": 182.5,
            "LineApportionedDiscountValue": 0.0,
            "UnitPrice": 3.65,
            "NetTotalAfterInlineALCs": 182.5,
            "NetTotal": 182.5,
            "Total": 206.23,
            "VatTotal": 23.73,
            "VatCategory": "13",
            "VatCategoryCode": 2,
            "IncomeClassification": {
                "ClassificationTypeCode": "E3_561_001",
                "ClassificationCategoryCode": "category1_2",
                "Amount": 182.5
            },
            "IsInformative": false,
            "IsHidden": false,
        },
		{
		  "LineNo": 2,
		  "Code": "1",
		  "Descriptions": [
			"ΛΟΙΠΟΙ ΦΟΡΟΙ ΜΕ ΦΠΑ"
		  ],
		  "MeasurementUnit": "Φορος",
          "MeasurementUnitCodeEN": "Η87",
		  "Quantity": 1,
		  "UnitPrice": 10,
		  "NetTotal": 10,
		  "VatTotal": 2.4,
		  "Total": 12.4,
		  "VatCategoryCode": 1,
		  "OtherTaxesPercentCategoryCode": 17,
		  "RecordTypeCode": 3,
		  "IsInformative": false,
		  "IsHidden": false
		}
    ],
    "Summaries": {
        "TotalNetAmount": 192.5,
        "TotalVATAmount": 26.13,
		"TotalOtherTaxesAmount":10.5,
		"TotalDeductionsAmount":5,
		"TotalGrossValue": 224.13,
    },
    "VatAnalysis": [
		{
            "Name": "0",
            "Percentage": 0,
            "VatAmount": 0,
            "UnderlyingValue": 10.5
        },
	    {
            "Name": "13",
            "Percentage": 13.0,
            "VatAmount": 23.73,
            "UnderlyingValue": 182.5
        },
		{
			"name": "24",
			"percentage": 24,
			"vatAmount": 2.4,
			"underlyingValue": 10
		}
    ],
    "IsDelayed": false,
    "IsDelayedCode": 0,
    "IsRetail": false
}

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