package
0.200.1
Repository: https://github.com/invopop/gobl.git
Documentation: pkg.go.dev

# README

🇬🇷 GOBL Greece Tax Regime

Greece uses the myDATA and Peppol BIS Billing 3.0 formats for their e-invoicing/tax-reporting system.

Example GR GOBL files can be found in the examples (YAML uncalculated documents) and examples/out (JSON calculated envelopes) subdirectories.

Public Documentation

Greece specifics

Invoice Type

The Greek tax authority (IAPR) requires the invoice type to be specified as part of the invoice. In GOBL, this type can be set using the gr-mydata-invoice-type extension in the tax section.

Alternatively, GOBL will set the extension for you based on the type and the tax tags you set in your GOBL invoice. The table below shows how this mapping is done:

TypeDescriptionGOBL TypeGOBL Tags
1.1Sales Invoicestandardgoods
1.2Sales Invoice/Intra-community Suppliesstandardgoods, export, eu
1.3Sales Invoice/Third Country Suppliesstandardgoods, export
1.4Sales Invoice/Sale on Behalf of Third Partiesstandardgoods, self-billed
2.1Service Rendered Invoicestandardservices
2.2Intra-community Service Rendered Invoicestandardservices, export, eu
2.3Third Country Service Rendered Invoicestandardservices, export
5.1Credit Invoice/Associatedcredit-note
11.1Retail Sales Receiptstandardgoods, simplified
11.2Service Rendered Receiptstandardservices, simplified
11.3Simplified Invoicestandardsimplified
11.4Retail Sales Credit Notecredit-notesimplified
11.5Retail Sales Receipt on Behalf of Third Partiescredit-notegoods, simplified, self-billed

For example, this is how you set the IAPR invoice type explicitly:

{
  "$schema": "https://gobl.org/draft-0/bill/invoice",
  // ...
  "tax": {
    "ext": {
      "gr-mydata-invoice-type": "2.1"
    }
  }
}

And this is how you'll get the same result by using the GOBL type and tags:

{
  "$schema": "https://gobl.org/draft-0/bill/invoice",
  // ...
  "type": "standard",
  "tax": {
    "tags": ["services"]
  }
}

VAT categories

Greece has three VAT rates: standard, reduced and super-reduced. Each of these rates are reduced by a 30% on the islands of Leros, Lesbos, Kos, Samos and Chios. The tax authority identifies each rate with a specific VAT category.

In GOBL, the IAPR VAT category code must be set using the gr-mydata-vat-rate extension of a line's tax to one of the codes:

CodeDescriptionGOBL Rate
1Standard ratestandard
2Reduced ratereduced
3Super-reduced ratesuper-reduced
4Standard rate (Island)standard+island
5Reduced rate (Island)reduced+island
6Super-reduced rate (Island)super-reduced+island
7Without VATexempt
8Records without VAT

Please, note that GOBL will automatically set the proper gr-mydata-vat-rate code and tax percent automatically when the line tax uses any of the GOBL rates specified in the table above. For example:

{
  "$schema": "https://gobl.org/draft-0/bill/invoice",
  // ...
  "lines": [
    {
      "i": 1,
      "quantity": "20",
      "item": {
        "name": "Υπηρεσίες Ανάπτυξης",
        "price": "90.00",
      },
      "sum": "1800.00",
      "taxes": [
        {
          "cat": "VAT",
          "rate": "standard+island"
        }
      ],
      "total": "1800.00"
    }
  ],
}

VAT exemptions

Greece invoices can be exempt of VAT for different causes and the tax authority require a specific cause code to be provided.

In a GOBL invoice, the rate of a line's tax need to be set to exempt, and the ext map's gr-mydata-exemption property needs to be set to one of these codes:

CodeDescription
1Without VAT - article 3 of the VAT code
2Without VAT - article 5 of the VAT code
3Without VAT - article 13 of the VAT code
4Without VAT - article 14 of the VAT code
5Without VAT - article 16 of the VAT code
6Without VAT - article 19 of the VAT code
7Without VAT - article 22 of the VAT code
8Without VAT - article 24 of the VAT code
9Without VAT - article 25 of the VAT code
10Without VAT - article 26 of the VAT code
11Without VAT - article 27 of the VAT code
12Without VAT - article 27 - Seagoing Vessels of the VAT code
13Without VAT - article 27.1.γ - Seagoing Vessels of the VAT code
14Without VAT - article 28 of the VAT code
15Without VAT - article 39 of the VAT code
16Without VAT - article 39a of the VAT code
17Without VAT - article 40 of the VAT code
18Without VAT - article 41 of the VAT code
19Without VAT - article 47 of the VAT code
20VAT included - article 43 of the VAT code
21VAT included - article 44 of the VAT code
22VAT included - article 45 of the VAT code
23VAT included - article 46 of the VAT code
24Without VAT - article 6 of the VAT code
25Without VAT - ΠΟΛ.1029/1995
26Without VAT - ΠΟΛ.1167/2015
27Without VAT - Other VAT exceptions
28Without VAT - Article 24 (b) (1) of the VAT Code (Tax Free)
29Without VAT - Article 47b of the VAT Code (OSS non-EU scheme)
30Without VAT - Article 47c of the VAT Code (OSS EU scheme)
31Excluding VAT - Article 47d of the VAT Code (IOSS)

For example:

"lines": [
  {
    "i": 1,
    "quantity": "20",
    "item": {
      "name": "Υπηρεσίες Ανάπτυξης",
      "price": "90.00",
    },
    "sum": "1800.00",
    "taxes": [
      {
        "cat": "VAT",
        "rate": "exempt",
        "ext": {
          "gr-mydata-exemption": "30"
        }
      }
    ],
    "total": "1800.00"
  }
]

Payment Methods

The IAPR requires invoices to specify a payment method code. In a GOBL invoice, the payment means is set using the key field in the payment instructions. The following table lists all the IAPR payment methods and how GOBL will map from the payment instructions key to each of them:

CodeNameGOBL Payment Instruction Key
1Domestic Payments Account Numbercredit-transfer
2Foreign Payments Account Numbercredit-transfer+foreign
3Cashcash
4Checkcheque
5On creditpromissory-note
6Web Bankingonline
7POS / e-POScard

For example:

"payment": {
  "instructions": {
    "key": "credit-transfer+foreign" // Will set the IAPR Payment Method to "2"
  }
}

Income Classification

Invoices reported to the Greek tax authority via myDATA can optionally include information about the income classification of each invoice item.

In a GOBL invoice, the gr-mydata-income-cat and gr-mydata-income-type extensions can be set at item level to any of the values expected by the IAPR:

Income Category

ValueDescription
category1_1Commodity Sale Income (+)/(-)
category1_2Product Sale Income (+)/(-)
category1_3Provision of Services Income (+)/(-)
category1_4Sale of Fixed Assets Income (+)/(-)
category1_5Other Income/Profits (+)/(-)
category1_6Self-Deliveries/Self-Supplies (+)/(-)
category1_7Income on behalf of Third Parties (+)/(-)
category1_8Past fiscal years income (+)/(-)
category1_9Future fiscal years income (+)/(-)
category1_10Other Income Adjustment/Regularisation Entries (+)/(-)
category1_95Other Income-related Information (+)/(-)

Income Type

ValueDescription
E3_106Self-Production of Fixed Assets – Self-Deliveries – Destroying invntory/Com modities
E3_205Self-Production of Fixed Assets – Self-Deliveries – Destroying invntory/Raw and other materials
E3_210Self-Production of Fixed Assets – Self-Deliveries – Destroying invntory/Pro ducts and production in progress
E3_305Self-Production of Fixed Assets – Self-Deliveries – Destroying invntory/Raw and other materials
E3_310Self-Production of Fixed Assets – Self-Deliveries – Destroying invntory/Pro ducts and production in progress
E3_318Self-Production of Fixed Assets – Self-Deliveries – Destroying in`vntory/Pro duction expenses
E3_561_001Wholesale Sales of Goods and Services – for Traders
E3_561_002Wholesale Sales of Goods and Services pursuant to article 39a paragraph 5 of the VAT Code (Law 2859/2000)
E3_561_003Retail Sales of Goods and Services – Private Clientele
E3_561_004Retail Sales of Goods and Services pursuant to article 39a paragraph 5 of the VAT Code (Law 2859/2000)
E3_561_005Intra-Community Foreign Sales of Goods and Services
E3_561_006Third Country Foreign Sales of Goods and Services
E3_561_007Other Sales of Goods and Services
E3_562Other Ordinary Income
E3_563Credit Interest and Related Income
E3_564Credit Exchange Differences
E3_565Income from Participations
E3_566Profits from Disposing Non-Current Assets
E3_567Profits from the Reversal of Provisions and Impairments
E3_568Profits from Measurement at Fair Value
E3_570Extraordinary income and profits
E3_595Self-Production Expenses
E3_596Subsidies - Grants
E3_597Subsidies – Grants for Investment Purposes – Expense Coverage
E3_880_001Wholesale Sales of Fixed Assets
E3_880_002Retail Sales of Fixed Assets
E3_880_003Intra-Community Foreign Sales of Fixed Assets
E3_880_004Third Country Foreign Sales of Fixed Assets
E3_881_001Wholesale Sales on behalf of Third Parties
E3_881_002Retail Sales on behalf of Third Parties
E3_881_003Intra-Community Foreign Sales on behalf of Third Parties
E3_881_004Third Country Foreign Sales on behalf of Third Parties
E3_598_001Sales of goods belonging to excise duty
E3_598_003Sales on behalf of farmers through an agricultural cooperative e.t.c.

For example:

"lines": [
  {
    "i": 1,
    "quantity": "20",
    "item": {
      "name": "Υπηρεσίες Ανάπτυξης",
      "price": "90.00",
      "ext": {
        "gr-mydata-income-cat": "category1_1",
        "gr-mydata-income-type": "E3_561_001",
      }
    }
  }
]