Incoming expenses

Incoming expenses is fetched from Visma e-conomic once a day. This is executed during the night.

There is however an option to get expenses into Moment directly after these have been booked, but this involves some configuration to be done in Visma e-conomic. To get this activated, there must be created a webhook.

Webhook

In Visma e-conomic, naviage to "All settings" (found under the yellow cogwheel button) and on the menu on the left look for "Webhooks".

Select then Webhooks menu item. The page will show you a list of existing webhooks and the option to create new ones.

To create a webhook, click on the "New webhook" (Nyt webhook) button. This will show a dialog that is to be filled out.

Here's an explanation on what to do with each of these fields

  • Type: Select the option "Kassekladde bogført"

  • Navn: Write a name to describe the use of the webhook, e.g. "Moment udlæg"

  • URL: This is the URL to where Visma e-conomic is to send information when an expenses is booked. This must be: "https://app.moment.team/api/1.0/webhooks/economic"

  • Sendt data: This is the data that will be sent to the URL above. This must be like this. Note! The text must be exactly as shown here, copy/paste.

    • { "fromNo":"[FROMSERIALNO]", "toNo":"[TOSERIALNO]", "code":"company_code", "authToken":"UUID", "type":"expense" }

    • Replace company_code with the code from the Moment URL.

      • https://app.moment.team/name-of-company/myself = name-of-company

    • Replace UUID with the code given in Moment integration configuration.

  • Content type: This is a description on how the data sent is to be formatted, this must be "application/json"

Last updated