Zoho Invoice is an online invoicing software designed to help freelancers and small businesses with invoicing and payment collection.
Triggers when a new estimate is created. See the documentation.
Triggers when a new invoice is created in Zoho Invoice. See the documentation.
Creates a new estimate in Zoho Invoice. See the documentation.
Create a new document in a collection of your choice. See the docs here
Creates a new invoice in Zoho Invoice. See the documentation.
Execute an aggregation pipeline on a MongoDB collection. See the documentation
The Zoho Invoice API offers a suite of tools to automate the invoicing and billing processes. With this API, you can create and manage customers, invoices, and payments. On Pipedream, you can harness these capabilities to build workflows that trigger on specific events, such as new invoice creation, or scheduled tasks that could, for example, follow up on unpaid invoices. Due to its serverless architecture, Pipedream ensures each step of your workflow runs only when needed, saving resources and time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_invoice: {
type: "app",
app: "zoho_invoice",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.zoho_invoice.$auth.api_domain}/invoice/v3/users/me`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_invoice.$auth.oauth_access_token}`,
"X-com-zoho-invoice-organizationid": `${this.zoho_invoice.$auth.organization_id}`,
},
})
},
})
The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb'
export default defineComponent({
props: {
mongodb: {
type: "app",
app: "mongodb",
},
collection: {
type: "string"
},
filter: {
type: "object"
}
},
async run({steps, $}) {
const MongoClient = mongodb.MongoClient
const {
database,
hostname,
username,
password,
} = this.mongodb.$auth
const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = client.db(database)
const results = await db.collection(this.collection).find(this.filter).toArray();
$.export('results', results);
await client.close()
},
})