In Zoho Books, your business is termed as an organization. If you have multiple businesses, you simply set each of those up as an individual organization. Each organization is an independent Zoho Books Organization with it’s own organization ID, base currency, time zone, language, contacts, reports, etc.
The parameter organization_id
should be sent in with every API request to identify the organization.
The organization_id
can be obtained from the GET /organizations
API’s JSON response. Alternatively, it can be obtained from the Manage Organizations page in the admin console.
ID of the invoice to remind the customer about.
Array of email address of the recipients.
The subject of the mail.
The body of the mail.
async
(params, auths) => {
}
// See the API docs: https://www.zoho.com/books/api/v3/#Invoices_Remind_Customer
if (!params.organization_id || !params.invoice_id || !params.to_mail_ids|| !params.subject || !params.body) {
throw new Error("Must provide organization_id, invoice_id, to_mail_ids, subject, and body parameters.");
}
return await require("@pipedreamhq/platform").axios(this, {
method: "post",
url: `https://books.${auths.zoho_books.base_api_uri}/api/v3/invoices/${params.invoice_id}/paymentreminder?organization_id=${params.organization_id}`,
headers: {
Authorization: `Zoho-oauthtoken ${auths.zoho_books.oauth_access_token}`,
},
data: {
to_mail_ids: params.to_mail_ids,
cc_mail_ids: params.cc_mail_ids,
subject: params.subject,
body: params.body,
send_from_org_email_id: params.send_from_org_email_id,
send_customer_statement: params.send_customer_statement,
attachments: params.attachments
}
})