E-conomic, by Visma, is an online accounting software application that promises a simplicity and level of intuitiveness suitable for use by small and medium-sized organizations of any kind.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The E-conomic API enables developers to access the vast majority of data and
functions available through the E-conomic online accounting system. This
includes accessing and manipulating customer, invoice, product, and journal
data. The API also enables integration with third-party applications, such as
online shopping carts and order management systems.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
e_conomic: {
type: "app",
app: "e_conomic",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://restapi.e-conomic.com/self`,
headers: {
"X-AppSecretToken": `${this.e_conomic.$auth.app_secret_token}`,
"X-AgreementGrantToken": `${this.e_conomic.$auth.agreement_grant_token}`,
"Content-Type": `application/json`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})