This is a sample json layout to help you easily implement a Retail 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": "11.2", "specialInvoiceCategory": 0, "variationType": 0, "documentType": "ΑΠΟΔΕΙΞΗ ΠΑΡΟΧΗΣ ΥΠΗΡΕΣΙΩΝ", "documentTypeCode": "INVOICE", "series": "LMCD", "number": "1", "dateIssued": "2022-11-28T13:33:43.845Z", "relativeDocuments": [], "orderCode": "Test1",
// 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 payment details of the Document
"paymentDetails": { "paymentMethods": [ { "paymentMethodId": "1", "paymentMethodType": "Credit Card", "paymentMethodTypeCode": 7, "amount": 100.00 } ], "paymentDate": "2022-11-14T00:00:00", "counterpartCurrency": "EUR" },
// 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": {
"accountingDepartmentEmails": [
"test@example.com"
],
"transmissionMethod": "E",
"documentTemplate": ""
},
// elements regarding the Item(s) or Product of the Documents
"details": [
{
"lineNo": 1,
"date": "2022-11-28T13:33:43.845Z",
"code": "Test1",
"descriptions": [
"Παροχή Υπηρεσιών Πληροφορικής"
],
"specialFeatures": [],
"quantity": 1,
"allowancesCharges": [
{
"type": 0
}
],
"unitPrice": 80.65,
"netTotal": 80.65,
"total": 100.00,
"allowancesTotal": 0,
"vatTotal": 19.35,
"vatCategory": "24",
"vatCategoryCode": 1,
"recordTypeCode": 0,
"incomeClassification": {
"id": 0,
"classificationType": "0",
"classificationTypeCode": "E3_561_003",
"classificationCategory": "ZIEN",
"classificationCategoryCode": "category1_3",
"amount": 100.00
}
}
],
// elements regarding the Totals of the Documents
"summaries": {
"totalNetAmount": 80.65,
"totalVATAmount": 19.35,
"totalGrossValue": 100.00,
"totalAllowances": 0,
"totalCharges": 0,
"totalPayableAmount": 100.00
},
// elements regarding the VAT analysis of the Documents
"vatAnalysis": [
{
"percentage": 24,
"vatAmount": 19.35,
"underlyingValue": 100.00
}
],
// elements as “internalDocumentId” is a MUST as it identifies the uniqueness of your Document
"DistributionDetails": {
"internalDocumentId": "10001"
},
// elements of generic use for your Document
"miscellaneousdata": { "moreInformation1": "", "moreInformation2": "", "moreInformation3": "", "comments1": "", "comments2": "", "accompanyingText": "Έχετε τη δυνατότητα να εξοφλείτε τα τιμολόγιά σας στον παρακάτω τραπεζικό λογαριασμό: Citibank:I ,,, ", "purchasedate": "2022-10-10T00:00:00" }, }