Accounts / receivables platform
Delay the execution of your workflow for a specific amount of time (does not count against your compute time).
The Invoiced API empowers users to automate billing and invoicing processes with ease. It facilitates the creation, sending, and management of invoices, along with tracking payments and customer interaction. By harnessing the Invoiced API on Pipedream, you can craft workflows that respond to business events in real-time, sync invoice data with accounting software, or trigger customer engagement actions upon payment statuses.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
invoiced: {
type: "app",
app: "invoiced",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.invoiced.com/invoices`,
auth: {
username: `${this.invoiced.$auth.api_key}`,
password: ``,
},
})
},
})
The Delay API in Pipedream is a built-in function that allows you to pause a workflow for a specified amount of time. This can be incredibly useful when you need to stagger API calls to avoid rate limits, wait for an external process to complete, or simply introduce a delay between actions in a sequence. With precision up to milliseconds, the Delay API provides a simple yet powerful tool for managing timing in automation workflows.
export default defineComponent({
async run({steps, $}) {
// Specify the amount of time to delay your workflow in milliseconds
return $.flow.delay(5000)
},
})