Zoho Invoice is an online invoicing software designed to help freelancers and small businesses with invoicing and payment collection.
Go to siteimport { 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}`,
},
})
},
})
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.
Creates a new invoice in Zoho Invoice. See the documentation.
Zoho Invoice uses OAuth authentication. When you connect your Zoho Invoice account, Pipedream will open a popup window where you can sign into Zoho Invoice and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Invoice API.
Pipedream requests the following authorization scopes when you connect your account:
ZohoInvoice.settings.READ
ZohoInvoice.invoices.CREATE
ZohoInvoice.invoices.READ
ZohoInvoice.estimates.CREATE
ZohoInvoice.estimates.READ
ZohoInvoice.contacts.READ
ZohoInvoice.contacts.Create
GET
https://accounts.zoho.com/oauth/v2/auth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
prompt=consent
&
access_type=offline
POST
{{custom_fields.accounts_server}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
{{custom_fields.accounts_server}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}