VIES (Indepdent Publisher) v2.1 Code Update (#3006)
* Revert "Merge branch 'microsoft:dev' into dev" This reverts commit096a7c3199
, reversing changes made tocb0948670f
. * Revert "Merge branch 'microsoft:dev' into dev" This reverts commitcb0948670f
, reversing changes made todc26e8a026
. * Revert "Revert "Merge branch 'microsoft:dev' into dev"" This reverts commit01764d0a6d
. * Revert "Revert "Merge branch 'microsoft:dev' into dev"" This reverts commita3f086ef0f
. * Add files via upload * Revert "Add files via upload" This reverts commiteeff7b7a02
. * Add files via upload * Delete independent-publisher-connectors/FileIO directory * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Revert "Add files via upload" This reverts commit1d85506958
. * Update readme.md * Revert "Update readme.md" This reverts commitb94447a142
. * Update script.csx * Update apiDefinition.swagger.json * Switch folder
This commit is contained in:
Родитель
e8e742947b
Коммит
d93a836e4f
|
@ -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.
|
|
@ -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": []
|
||||
}
|
||||
{
|
||||
"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": []
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -1,5 +1,3 @@
|
|||
#r "Newtonsoft.Json"
|
||||
|
||||
using System.Net;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
Загрузка…
Ссылка в новой задаче