Skip to content

software-architects/vat-id-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VAT ID Checker

Build

Introduction

This project ckecks the correctness of the data you use to create an invoice via Billomat.
If the UST_ID, company name, company address are not correct, for example if you have a typo, you receive a message via slack in an certain channel you can configure
If the data is correct you will receive an OK message.
If you don't want to, you can enable it in the configuration.

VatCheckReceive

How does it work?

Basically you use a Billomat Webhook to send data from a certain event (invoice create) to our program, which sends the data to a eu_validation program and validates the received data with the user's inserted one.

Billomat

To create a Webhook go to Settings-> Administration -> Webhooks -> New Webook
Insert in the URL slot this URL https://vatidchecker.azurewebsites.net/api/VatIDCheck and the application/json format.

A Webhook is used to invoke the inserted URL, if an event happens. In our case it's if you create an invoice.

Slack Slash Command

To use our slack slash command you have to be in the same channel you configured with the SLACKCHANNEL parameter.
Just type /vatchecker {UST_ID}.
Insert the UST_ID you want to check and press Enter.
The bot sends this UST_ID to the same eu_validation program as before and slack displays the UST_ID, company name and company address

e.g.
SlackBotSend
SlackBotReceive

Configuration Parameters

Parameter Description
BILLOMATID To get your billomat ID, just copy your yourbillomatid, e.g https://yourbillomatid.billomat.net/
APIKEY To enable your api-key in Billomat go to Settings-> Administration -> User -> Edit -> Enable API Access -> Show API Key
SLACKAUTHORIZATIONKEY To be able to send messages to slack create a slack api token Bearer xoxb-....
SENDMESSAGEONSUCCESS true or false If true, you receive a message even if everything's correct. If false, you won't receive a message upon success
SLACKCHANNEL The channel you want to receive the message or write with the vat-id-checker-bot
SLACKUSER To be marked in the message. Got to Show Profile -> Click on the 3 Dots -> Copy your User ID, e.g U02FJAF8B

Relevant Links

About

Azure Functions for automatic check of VAT IDs for time cockpit and billomat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors