It can be very useful and powerful to
send data between systems with webhooks.
They usually happen instant based on some
events in a system.
Some ERP systems support webhooks to be
sent once an order is created or updated,
customers are created or updated
etc.
SmartTID has 2 ways of receiving these
webhooks. In both cases there need to be
an internal process in SmartTID to handle
these webhooks to “understand” what to do
with the data.
SmartTID supports some standard webhooks
which are explained and maintained here
(in Danish)
Receive webhook as a url post
We can receive webhooks on https://webhook.smartid.dk with these parameters
Parameter | Description |
APIKey | You need an APIKey which will
identify the customer at SmartTID.
Contact our support at smartapi@support.dk to
recieve your APIKey. We will only
send an APIKey to a known contact
person at our customers |
Source | This parameter will tell SmartTID
where these data is comming from.
As an example it can be ECProject if its from
eConomic and contains project
data |
Body | The body of the post will include
the actual data. Usually this will
be a JSON or XML string. This all
depends on the system sending the
data |
Sample
Receive webhook through the REST API
The same procedure that receives from url
can also receive directly from the REST
API as any other function there. The
function name is just Webhook
To use this function you need to
follow the login procedure here Login as
needed to any other REST API funktion in
the https://smartapi.smarttid.dk/
Parameter | Description |
Source | This parameter will tell SmartTID
where these data is comming from.
As an example it can be ECProject if its from
eConomic and contains project
data |
Body | The body of the post will include
the actual data. Usually this will
be a JSON or XML string. This all
depends on the system sending the
data |