Zoho Books - List Customer Payments
@sergio
code:
data:privatelast updated:3 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
zoho_books_list_customer_payments
Lists all the payments made by your customer.
auth
(auths.zoho_books)
params
Organization id

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.

 
string ·params.organization_id
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
}
29
//See the API docs: https://www.zoho.com/books/api/v3/#Customer-Payments_List_Customer_Payments

if (!params.organization_id) {
  throw new Error("Must provide organization_id parameter.");
}

return await require("@pipedreamhq/platform").axios(this, {
  method: "get",
  url: `https://books.${auths.zoho_books.base_api_uri}/api/v3/customerpayments?organization_id=${params.organization_id}`,
  headers: {
    Authorization: `Zoho-oauthtoken ${auths.zoho_books.oauth_access_token}`
  },
  params: {
    customer_name: params.customer_name,
    reference_number: params.reference_number,
    date: params.date,
    amount: params.amount,
    notes: params.notes,
    payment_mode: params.payment_mode,
    filter_by: params.filter_by,
    sort_column: params.sort_column,
    search_text: params.search_text,
    customer_id: params.customer_id,
    page : params.page ,
    per_page :params.per_page 
  }
});