Invoice and accounting cloud software for companies and freelancers
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
FacturaDirecta is a powerful API that lets you create and manage invoices,
quotes, and other documents. You can use it to automate your billing process,
or to create custom documents for your clients. FacturaDirecta is easy to use
and has a wide range of features, making it a great choice for any business.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
facturadirecta: {
type: "app",
app: "facturadirecta",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.facturadirecta.$auth.account_name}.facturadirecta.com/api/products.xml`,
auth: {
username: `${this.facturadirecta.$auth.api_token}`,
password: `x`,
},
})
},
})
// 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
},
})