diff --git a/independent-publisher-connectors/VIES by European Commission/Readme.md b/independent-publisher-connectors/VIES/Readme.md similarity index 96% rename from independent-publisher-connectors/VIES by European Commission/Readme.md rename to independent-publisher-connectors/VIES/Readme.md index fa60c1500..6e55257b6 100644 --- a/independent-publisher-connectors/VIES by European Commission/Readme.md +++ b/independent-publisher-connectors/VIES/Readme.md @@ -1,25 +1,25 @@ -# VIES -VIES (VAT Information Exchange System) is an electronic mean of validating VAT-identification numbers of economic operators registered in the European Union for cross border transactions on goods or services. You can verify the validity of a VAT number issued by any Member State / Northern Ireland by selecting that Member State / Northern Ireland from the drop-down menu provided, and entering the number to be validated. - -## Publisher: Tomasz Poszytek - -## Prerequisites -No prerequisites. - -## Supported Operations -### Check VAT validity -Action looks up data in VIES database to see, if for given country's ISO code and VAT number there is a registered company. If data is valid, service will return "true" along with company's details. Otherwise it will return false. - -## Obtaining Credentials -No credentials needed. - -## Known Issues and Limitations -Sometimes requests to VIES may take more time than expected which may lead to timeouts. If you face such issues, try building requests to VIES in a loop running until a correct response is received. Apart from that, no other issues or limitations are known at the moment of api creation. - -## Changelog - -1.0: Initial release of the Independent Publisher Connector. -2.0: Updates to the connector caused by changes in VIES endpoint. - -## Getting Started +# VIES +VIES (VAT Information Exchange System) is an electronic mean of validating VAT-identification numbers of economic operators registered in the European Union for cross border transactions on goods or services. You can verify the validity of a VAT number issued by any Member State / Northern Ireland by selecting that Member State / Northern Ireland from the drop-down menu provided, and entering the number to be validated. + +## Publisher: Tomasz Poszytek + +## Prerequisites +No prerequisites. + +## Supported Operations +### Check VAT validity +Action looks up data in VIES database to see, if for given country's ISO code and VAT number there is a registered company. If data is valid, service will return "true" along with company's details. Otherwise it will return false. + +## Obtaining Credentials +No credentials needed. + +## Known Issues and Limitations +Sometimes requests to VIES may take more time than expected which may lead to timeouts. If you face such issues, try building requests to VIES in a loop running until a correct response is received. Apart from that, no other issues or limitations are known at the moment of api creation. + +## Changelog + +1.0: Initial release of the Independent Publisher Connector. +2.0: Updates to the connector caused by changes in VIES endpoint. + +## Getting Started Visit https://ec.europa.eu/taxation_customs/vies/vatRequest.html to test the api on your own. \ No newline at end of file diff --git a/independent-publisher-connectors/VIES by European Commission/apiDefinition.swagger.json b/independent-publisher-connectors/VIES/apiDefinition.swagger.json similarity index 96% rename from independent-publisher-connectors/VIES by European Commission/apiDefinition.swagger.json rename to independent-publisher-connectors/VIES/apiDefinition.swagger.json index 576328c27..027b09226 100644 --- a/independent-publisher-connectors/VIES by European Commission/apiDefinition.swagger.json +++ b/independent-publisher-connectors/VIES/apiDefinition.swagger.json @@ -1,148 +1,148 @@ -{ - "swagger": "2.0", - "info": { - "title": "VIES", - "description": "VIES (VAT Information Exchange System) is an electronic mean of validating VAT-identification numbers of economic operators registered in the European Union. You can verify the validity of a VAT number issued by any Member State / Northern Ireland by selecting that Member State / Northern Ireland from the drop-down menu provided, and entering the number to be validated.", - "version": "2.0", - "contact": { - "name": "Tomasz Poszytek", - "url": "https://aka.ms/poszytek", - "email": "tomasz@poszytek.eu" - } - }, - "x-ms-connector-metadata": [ - { - "propertyName": "Website", - "propertyValue": "https://ec.europa.eu/taxation_customs/vies" - }, - { - "propertyName": "Privacy policy", - "propertyValue": "https://ec.europa.eu/taxation_customs/vies/disclaimer.html" - }, - { - "propertyName": "Categories", - "propertyValue": "Finance;Commerce" - } - ], - "host": "ec.europa.eu", - "basePath": "/", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/taxation_customs/vies/services/checkVatService": { - "post": { - "responses": { - "200": { - "description": "200", - "schema": { - "type": "object", - "properties": { - "countryCode": { - "type": "string", - "description": "Country code in ISO format.", - "title": "Country code" - }, - "vatNumber": { - "type": "string", - "description": "Validated VAT number.", - "title": "VAT number" - }, - "requestDate": { - "type": "string", - "description": "Timestamp when the request was placed.", - "title": "Request date" - }, - "valid": { - "type": "string", - "description": "If the VAT is valid or not.", - "title": "Valid" - }, - "name": { - "type": "string", - "title": "Company name" - }, - "address": { - "type": "string", - "description": "Company address.", - "title": "Address" - } - } - } - } - }, - "summary": "Check VAT validity", - "description": "Provide country ISO code and VAT number to check its validity.", - "operationId": "CheckVATValidity", - "parameters": [ - { - "name": "body", - "in": "body", - "required": false, - "schema": { - "type": "object", - "properties": { - "countryCode": { - "type": "string", - "description": "Country code in ISO format", - "title": "Country Code", - "enum": [ - "AT", - "BE", - "BG", - "CY", - "CZ", - "DE", - "DK", - "EE", - "EL", - "ES", - "FI", - "FR", - "HR", - "HU", - "IE", - "IT", - "LT", - "LU", - "LV", - "MT", - "NL", - "PL", - "PT", - "RO", - "SE", - "SI", - "SK", - "XI" - ] - }, - "vatNumber": { - "type": "string", - "description": "Vat number to be checked (without preceding country code and special characters).", - "title": "Vat number" - } - }, - "required": [ - "countryCode", - "vatNumber" - ] - } - } - ] - } - } - }, - "definitions": {}, - "parameters": {}, - "responses": {}, - "securityDefinitions": {}, - "security": [], - "tags": [] -} \ No newline at end of file +{ + "swagger": "2.0", + "info": { + "title": "VIES", + "description": "VIES (VAT Information Exchange System) is an electronic mean of validating VAT-identification numbers of economic operators registered in the European Union. You can verify the validity of a VAT number issued by any Member State / Northern Ireland by selecting that Member State / Northern Ireland from the drop-down menu provided, and entering the number to be validated.", + "version": "2.1", + "contact": { + "name": "Tomasz Poszytek", + "url": "https://aka.ms/poszytek", + "email": "tomasz@poszytek.eu" + } + }, + "x-ms-connector-metadata": [ + { + "propertyName": "Website", + "propertyValue": "https://ec.europa.eu/taxation_customs/vies" + }, + { + "propertyName": "Privacy policy", + "propertyValue": "https://ec.europa.eu/taxation_customs/vies/disclaimer.html" + }, + { + "propertyName": "Categories", + "propertyValue": "Finance;Commerce" + } + ], + "host": "ec.europa.eu", + "basePath": "/", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/taxation_customs/vies/services/checkVatService": { + "post": { + "responses": { + "200": { + "description": "200", + "schema": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "Country code in ISO format.", + "title": "Country code" + }, + "vatNumber": { + "type": "string", + "description": "Validated VAT number.", + "title": "VAT number" + }, + "requestDate": { + "type": "string", + "description": "Timestamp when the request was placed.", + "title": "Request date" + }, + "valid": { + "type": "string", + "description": "If the VAT is valid or not.", + "title": "Valid" + }, + "name": { + "type": "string", + "title": "Company name" + }, + "address": { + "type": "string", + "description": "Company address.", + "title": "Address" + } + } + } + } + }, + "summary": "Check VAT validity", + "description": "Provide country ISO code and VAT number to check its validity.", + "operationId": "CheckVATValidity", + "parameters": [ + { + "name": "body", + "in": "body", + "required": false, + "schema": { + "type": "object", + "properties": { + "countryCode": { + "type": "string", + "description": "Country code in ISO format", + "title": "Country Code", + "enum": [ + "AT", + "BE", + "BG", + "CY", + "CZ", + "DE", + "DK", + "EE", + "EL", + "ES", + "FI", + "FR", + "HR", + "HU", + "IE", + "IT", + "LT", + "LU", + "LV", + "MT", + "NL", + "PL", + "PT", + "RO", + "SE", + "SI", + "SK", + "XI" + ] + }, + "vatNumber": { + "type": "string", + "description": "Vat number to be checked (without preceding country code and special characters).", + "title": "Vat number" + } + }, + "required": [ + "countryCode", + "vatNumber" + ] + } + } + ] + } + } + }, + "definitions": {}, + "parameters": {}, + "responses": {}, + "securityDefinitions": {}, + "security": [], + "tags": [] +} diff --git a/independent-publisher-connectors/VIES by European Commission/apiProperties.json b/independent-publisher-connectors/VIES/apiProperties.json similarity index 95% rename from independent-publisher-connectors/VIES by European Commission/apiProperties.json rename to independent-publisher-connectors/VIES/apiProperties.json index 2c65393b2..b127969aa 100644 --- a/independent-publisher-connectors/VIES by European Commission/apiProperties.json +++ b/independent-publisher-connectors/VIES/apiProperties.json @@ -1,12 +1,12 @@ -{ - "properties": { - "connectionParameters": {}, - "iconBrandColor": "#da3b01", - "scriptOperations": [ - "CheckVATValidity" - ], - "capabilities": [], - "publisher": "Tomasz Poszytek", - "stackOwner": "European Commission" - } +{ + "properties": { + "connectionParameters": {}, + "iconBrandColor": "#da3b01", + "scriptOperations": [ + "CheckVATValidity" + ], + "capabilities": [], + "publisher": "Tomasz Poszytek", + "stackOwner": "European Commission" + } } \ No newline at end of file diff --git a/independent-publisher-connectors/VIES by European Commission/script.csx b/independent-publisher-connectors/VIES/script.csx similarity index 99% rename from independent-publisher-connectors/VIES by European Commission/script.csx rename to independent-publisher-connectors/VIES/script.csx index 3b46c1179..5ef0a4ce7 100644 --- a/independent-publisher-connectors/VIES by European Commission/script.csx +++ b/independent-publisher-connectors/VIES/script.csx @@ -1,5 +1,3 @@ -#r "Newtonsoft.Json" - using System.Net; using Newtonsoft.Json; using Newtonsoft.Json.Linq;