elgentos/m2-vatfallback-graph-ql

Provides graph ql endpoint to dutchento/m2-vatfallback

Installs: 6 374

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:magento2-module

dev-master 2021-06-29 09:53 UTC

This package is auto-updated.

Last update: 2024-10-29 06:12:46 UTC


README

VatfallbackGraphQL adds a GraphQl endpoint to the Dutchento Vatfallback module for Magento 2.

In the Dutchento Vatfallback module it is possible to use the API endpoint to get company data by VAT number http://domain.com/rest/V1/vat/companylookup/NL133001477B01

With this module this can be done by GraphQl:

query {
  companyLookup(
    vatNumber: "NL133001477B01"
  ) {
    status, 
    country,
    company_name,
    company_address,
    message
  }
}