Online accounting software
Zoho Books is an online accounting software that helps you manage your
finances, get paid faster, and work collaboratively with your clients and
teams. The Zoho Books API provides a wide variety of integration possibilities
to connect with your accounting software and build powerful, efficient
applications. With the API, you can quickly and easily add functionality that
simplifies your complex tasks, such as invoicing, payments, bank
reconciliation, reporting, and more.
Below are some of the features, tasks, and applications that can be built using
the Zoho Books API:
Once you've connected your account, you can run your workflow and fetch data from the API. You can change any of the code associated with this step, changing the API endpoint you'd like to retrieve data from, or modifying the results in any way.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_books: {
type: "app",
app: "zoho_books",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.zoho_books.$auth.api_domain}/books/v3/users/me`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_books.$auth.oauth_access_token}`,
},
params: {
organization_id: `${this.zoho_books.$auth.organization_id}`,
},
})
},
})
// 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
},
})