/go-mydata-aade

A go-sdk for the myData API provided by Greek government

Primary LanguageGoCreative Commons Zero v1.0 UniversalCC0-1.0

Codacy Badge codebeat badge CircleCI Quality Gate Status codecov Go Report Card GoDoc

go-myDATA-aade

A Go based SDK to communicate with the myDATA Rest API provided by the Greek Government

Quick guide

  1. Create your myDATA user account here or if you want to test the API in a developer environment here
  2. Add the client ( github.com/ppapapetrou76/go-mydata-aade as dependency to your project
  3. Initialize the client as below
	client, err := mydata.NewClient(&mydata.Config{
		Host:            "https://mydata-dev.azure-api.net",
		UserID:          "<YOUR_USER_ID>",
		SubscriptionKey: "<YOUR_SUBSCRIPTION_KEY>",
	})
  1. Invoke client operations such as CancelInvoice or RequestTransmittedDocs
  2. You can check the full list of implemented functions here

Supported methods

ERP Methods

  • RequestDocs (Returns all invoices submitted by other parties and the receiver is the authorized entity)
  • RequestTransmittedDocs (Returns all invoices submitted by the authorized entity to third-parties)
  • CancelInvoice (Cancels an already issued invoice without issuing a new one)
  • SendInvoices (Submits one or more invoices for a given entity)

Provider Methods

To be implemented soon

ERP Methods

  • SendExpensesClassification
  • SendIncomeClassification

Provider Methods

  • SendInvoices
  • RequestTransmittedDocs
  • RequestReceiverInfo