npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

aade-publicity-search

v1.0.6

Published

Request publicity records (street, city, name, type, status etc.) from AADE (Independent Public Revenue Authority) about a company using their VAT number (AFM)

Downloads

18

Readme

AADE Publicity Search

Request publicity records (street, city, name, type, status etc.) from AADE (Independent Public Revenue Authority) about a company using their VAT number (AFM), powered by Javascript.

Installation

Install aade-publicity-search with npm

  npm install aade-publicity-search

Find the package on NPM Registry

Usage/Examples

const getCompanyPublicityByAADE = require('aade-publicity-search')

// Pass only the VATID of the company that your want to search and the username/password for the authentication
getCompanyPublicityByAADE("vatid","user", "pass").then((data) => {
    // Do something with the data
});

// or pass the VATID that the request called by
getCompanyPublicityByAADE("vatid","user", "pass", "vatidcalledby").then((data) => {
    // Do something with the data
});


// or pass the VATID that the request called by
getCompanyPublicityByAADE("vatid","user", "pass", "vatidcalledby").then((data) => {
    // Do something with the data
});

// or maybe you want some debugging/logging each step
getCompanyPublicityByAADE("vatid","user", "pass", "vatidcalledby", true).then((data) => {
    // Do something with the data
});

Parameters

| Name | Type | Required | Description | ------------- | ------------- | ------------- | ------------- | | search_vatid | string | Yes | Company VATID that you want to request publicity records | | aade_publicity_username | string | Yes | AADE Publicity username that used for API call | | aade_publicity_password | string | Yes | AADE Publicity password that used for API call | | searched_by_vatid | string | No | Publicity records requested by VATID | | debug | boolean | No | Logging steps until finish, if you enable this |

Data Return

| Name | Type | Description | | ------------- | ------------- | ------------- | | call_seq_id | string | AADE Call/Request ID |
| have_errors | boolean | This indicates if your request have any errors | | errors_info.code | string | AADE Code error (can be null if no errors) | | errors_info.descr | string | AADE Description error (can be null if no errors) | | data | object | Results (can be null if we have errors) |

Response Examples

// Success
[
  call_seq_id: '120746974',
  have_errors: false,
  errors_info: [ code: null, descr: null ],
  data: {
    afm: '123456789   ',
    doy: '1234',
    doy_descr: 'ΘΕΣΣΑΛΟΝΙΚΗΣ',
    i_ni_flag_descr: 'ΜΗ ΦΠ',
    deactivation_flag: '1',
    deactivation_flag_descr: 'ΕΝΕΡΓΟΣ ΑΦΜ          ',
    firm_flag_descr: 'ΕΠΙΤΗΔΕΥΜΑΤΙΑΣ      ',
    onomasia: 'ΔΟΚΙΜΑΣΤΙΚΗ ΕΤΑΙΡΕΙΑ ΑΝΩΝΥΜΗ ΕΤΑΙΡΕΙΑ',
    commer_title: 'ΔΟΚΙΜΑΣΤΙΚΗ ΕΤΑΙΡΕΙΑ',
    legal_status_descr: 'ΑΝΩΝΥΜΗ ΕΤΑΙΡΕΙΑ',
    postal_address: 'ΛΕΩΦΟΡΟΣ ΝΙΚΗΣ',
    postal_address_no: '55        ',
    postal_zip_code: '12345',
    postal_area_description: 'ΘΕΣΣΑΛΟΝΙΚΗ',
    regist_date: '2022-11-22',
    stop_date: null,
    normal_vat_system_flag: 'Y'
  }
]

// Errors

[
  call_seq_id: '120745719',
  have_errors: true,
  errors_info: [
    code: 'RG_WS_PUBLIC_TOKEN_USERNAME_NOT_AUTHENTICATED',
    descr: 'Ο συνδυασμός χρήστη/κωδικού πρόσβασης που δόθηκε δεν είναι έγκυρος.'
  ],
  data: null
]

Error Codes

| Code | Description | | ------------- | ------------- | | RG_WS_PUBLIC_TOKEN_USERNAME_NOT_AUTHENTICATED | Wrong username/password | | RG_WS_PUBLIC_WRONG_AFM | Invalid VATID | | RG_WS_PUBLIC_EPIT_NF | VATID Searched, no business activity (before/now) |

FAQ

How this library works?

It's very simple. The library just make a regular HTTP SOAP (XML) Request to AADE publicity endpoint, passing the required data, gather the response and parse it for easier usage.

How i can obtain an AADE publicity username / password?

You need to login with your taxisnet and obtain your username / password from this link

Who can use this library?

Everybody can use this library! But from the AADE side, access have only people that have/has income from business activities. More information you can find here

It's safe to put my credentials and use the library?

Of course it's safe and legal to use this library. For the credentials part, you can store it as enviromental values (.env file) and pass it through here for maximum security.

Support / Questions

For support, email [email protected]. Also you can buy me a coffee to thank me, i will not say no.

Bugs/Suggestions

For bugs/suggestions please open an issue so we can see it in more detail. Please put the necessary issue tags that describe your request before open an issue. Forking is free and cool for everyone too!

Tech Stack

Libraries: Axios

AADE Request Type: XML (SOAP)

License

You can use this library for personal or business usage and improve it freely.

Authors