This is a sample json layout to help you easily implement a Wholesale Document

json definition with remarks:

the following format consists of different objects that are distinct modules and each of these objects have their own tags. In this context we have the following:

  • basic document elements
  • Issuer details
  • Counterparty information
  • Payment method details
  • Discount details
  • Tax data
  • Item/Product detail lines
  • Document Totals
  • Vat analysis
  • Special line comments
  • Special comments on the document and we have ensured that you can have available anything that makes sense to include on a Document even in cases where the information is not a tax item

// basic document elements

{

    "currency": "EUR",
    "currencyCode": "EUR",
    "invoiceType": "ΤΙΜΟΛΟΓΙΟ",
    "invoiceTypeCode": "1.1",
    "specialInvoiceCategory": 0,
    "variationType": 0,
    "documentType": "ΤΙΜΟΛΟΓΙΟ",
    "documentTypeCode": "INVOICE",
    "series": "LMCW",
    "number": "1",
    "dateIssued": "2022-11-28T00:00:00",
    "relativeDocuments": [
        ""
    ],

// elements regarding issuer of the Document

    "issuer": {
        "registeredName": "LMC Demo Company",
        "registrationNumber": "118058830",
        "vat": "EL118058830",
        "taxOfficeCode": "ΦΑΕ ΑΘΗΝΩΝ",
        "activities": [],
        "generalCommercialRegistryNumber": "Γ.Ε.Μ.Η.",
        "phones": [
            "2109999999"
        ],
        "faxes": [],
        "emails": [],
        "address": {
            "countryCode": "GR",
            "municipality": "ΑΘΗΝΑ",
            "city": "ΑΘΗΝΑ",
            "street": "Κηφισού 32, 11000 Athens, Greece",
            "postal": "11000",
            "geographicalCoordinates": {}
        }
    },

// elements regarding the counterparty of the Document

    "counterParty": {
        "registeredName": "CORRAS GAS Station Demo",
        "registrationNumber": "154981088",
        "vat": "EL154981088",
        "taxOfficeCode": "ΦΑΕ ΑΘΗΝΩΝ",
        "activities": [],
        "generalCommercialRegistryNumber": "Γ.Ε.Μ.Η.",
        "phones": [
            "2109999999"
        ],
        "faxes": [],
        "emails": [],
        "address": {
            "countryCode": "GR",
            "municipality": "ΑΘΗΝΑ",
            "city": "ΑΘΗΝΑ",
            "street": "Κηφισού 32, 11000 Athens, Greece",
            "postal": "11000",
            "geographicalCoordinates": {}
        }
    },

// elements regarding the allowances of the Document

    "allowancesCharges": [],

// elements regarding the payment details of the Document

    "paymentDetails": {
        "paymentMethods": [
            {
                "paymentMethodType": "Κατάθεση σε Τραπεζικό λογαριασμό",
                "paymentMethodTypeCode": 1,
                "amount": 25.45
            }
        ],
        "paymentDate": "2022-11-10T00:00:00",
        "exchangeCurrency": "EUR"
    },

// elements as “internalDocumentId” is a MUST as it identifies the uniqueness of your Document

    "DistributionDetails": {
        "internalDocumentId": "10002"
    },

// elements regarding the way of sending the Documents e.g.

  • “E” sending by email and then fill in the sending email in the tag “accountingDepartmentEmails”,
  • “A” for archiving without sending
  • or the template that will be used for Document preview
      "additionalDetails": {
          "transmissionmethod": "A",
          "avoidEmailGrouping": false,
          "documentTemplate": "",
          "callback": true
      },
    

// elements regarding the Item(s) or Product of the Documents

    "details": [
        {
            "lineNo": 1,
            "code": "Test1",
            "descriptions": [
                "Παροχή Υπηρεσιών Συμβουλευτικής"
            ],
            "measurementUnit": "",
            "startingDate": "2022-11-28T00:00:00",
            "quantity": 1,
            "unitPrice": 1000.00,
            "netTotal": 1000.00,
            "total": 1240.00,
            "vatTotal": 240.00,
            "vatCategory": "24",
            "vatCategoryCode": 1,
            "recordTypeCode": 0,
            "incomeClassification": {
                "id": 0,
                "classificationTypeCode": "E3_561_001",
                "classificationCategoryCode": "category1_3",
                "amount": 1000.00
            }
        },
    ],

// elements regarding the Totals of the Documents

    "summaries": {
        "totalNetAmount": 1000.00,
        "totalVATAmount": 240.0,
        "totalGrossValue": 1240.00,
        "totalCharges": 0.0,
        "totalPayableAmount": 1240.00,
        "totalallowances": 0.0
    },

// elements regarding the VAT analysis of the Documents

    "vatAnalysis": [
        {
            "percentage": 24,
            "vatAmount": 240.00,
            "underlyingValue": 1000.00
        }
    ],

// elements of generic use for your Document

    "miscellaneousdata": {
        "moreInformation1": "",
        "moreInformation2": "",
        "moreInformation3": "",
        "comments1": "",
        "comments2": "",
        "accompanyingText": ""
    },
    "isDelayed": false,
    "isDelayedCode": 0
}