Zoho Inventory
  • 05 Sep 2024
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Zoho Inventory

  • Dark
    Light
  • PDF

Article summary

Zoho Inventory API


API Documentation Link


Configuration Parameters

Any instance where an entry in the below configuration has a leading $ represents a parameter that needs to be replaced with a static value.

Parameters in this document:

  • $base_url - The Base URL will follow the below format:
    Data CenterBase URL
    United Stateshttps://www.zohoapis.com
    Europehttps://www.zohoapis.eu
    Indiahttps://www.zohoapis.in
    Australiahttps://www.zohoapis.com.au
    Canadahttps://www.zohoapis.ca
  • $client_id and $client_secret - The Client ID and Client Secret will be used to authenticate calls to the Zoho Inventory API. To obtain these parameters, you will need to register an application with Zoho's Developer Console. When registering, be sure to include https://platform.panoply.io/sources/callback.html as an Authorized Redirect URI. After completing the registration of your client, you will receive a Client ID and Client Secret. For a complete walkthrough of the Zoho Inventory OAuth2.0 process, see Zoho documentation here.
  • $organization_id - The Organization ID is a unique identifier for your Zoho Inventory organization. This value can be found by logging into your Zoho Inventory account and selecting the dropdown on your Account Name in the upper-righthand corner.
  • $resource_name - The Resource Name represents the name of the resource to be appended and used as part of the Destination Table name. The value that should be used here can be found in the API Resources table below.
  • $endpoint - The Endpoint represents the data that you would like to ingest into Panoply from the Zoho Inventory API. The value of this parameter can be found in the API Resources section below.
  • $scope - The Scope represents the permission-level that is granted to a set of credentials, thus granting them access to different API endpoints. The value that should be used here can be found in the API Resources table below. If applying multiple scopes to a single Authentication process, each value will need to be comma-separated.
  • $data_key - The Data Key represents the location of the data in the API response from Zoho Inventory. The value that should be used here can be found in the API Resources table below.
  • $primary_key - Primary Keys are used to ensure the uniqueness of the rows in a table. The Primary Key is comprised of one or more columns that can be used to identify the row in the data warehouse. The process guarantees that no two rows have the same value in their primary key. The value that should be used here can be found in the API Resources table below.
  • $auth_base_url - The Base URL will follow the below format:
    Data CenterBase URL
    United Stateshttps://accounts.zoho.com
    Europehttps://accounts.zoho.eu
    Indiahttps://accounts.zoho.in
    Australiahttps://accounts.zoho.com.au
    Canadahttps://accounts.zohocloud.ca

API Resources

For a list of API Resources available for Zoho Inventory, please refer to the list of endpoints found below:

Resource$resource_name$endpoint$scope$data_key$primary_key
BillsbillsbillsZohoInventory.bills.READbills{bill_id}
Composite Itemscomposite_itemscompositeitemsZohoInventory.compositeitems.READcomposite_items{composite_item_id}
ContactscontactscontactsZohoInventory.contacts.READcontacts{contact_id}
Credit Notescredit_notescreditnotesZohoInventory.creditnotes.READcreditnotes{creditnote_id}
Currencycurrenciessettings/currenciesZohoInventory.settings.READcurrencies{currency_id}
Customer Paymentscustomer_paymentscustomerpaymentsZohoInventory.customerpayments.READcustomerpayments{payment_id}
InvoicesinvoicesinvoicesZohoInventory.invoices.READinvoices{invoice_id}
ItemsitemsitemsZohoInventory.items.READitems{item_id}
Item Adjustmentsinventory_adjustmentsinventoryadjustmentsZohoInventory.inventoryadjustments.READinventory_adjustments{inventory_adjustment_id}
Item Groupsitem_groupsitemgroupsZohoInventory.items.READitemgroups{group_id}
PackagespackagespackagesZohoInventory.packages.READpackages{package_id}
PricebookspricebookspricebooksZohoInventory.settings.READpricebooks{pricebook_id}
Purchase Orderspurchase_orderspurchaseordersZohoInventory.purchaseorders.READpurchaseorders{purchaseorder_id}
Retainer Invoicesretainer_invoicesretainerinvoicesZohoInventory.invoices.READretainerinvoices{retainerinvoice_id}
Sales Orderssales_orderssalesordersZohoInventory.salesorders.READsalesorders{salesorder_id}
Sales Returnssales_returnssalesreturnsZohoInventory.salesreturns.READsalesreturns{salesreturn_id}
Taxestaxessettings/taxesZohoInventory.settings.READtaxes{tax_id}
Transfer Orderstransfer_orderstransferordersZohoInventory.transferorders.READtransfer_orders{transfer_order_id}
UsersusersusersZohoInventory.settings.READusers{user_id}
Vendor Creditsvendor_creditsvendorcreditsZohoInventory.debitnotes.READvendorcredits{vendor_credit_id}
Warehouseswarehousessettings/warehousesZohoInventory.warehouses.READwarehouses{warehouse_id}

Connector configuration

  • Base url: $base_url/inventory/v1/$endpoint
  • Method: GET
  • URL Parameters: organization_id={organization_id}

Destination Table naming convention is ultimately up to you as the data owner. One common structure used for this API is zoho_inventory_$resource_name.

Authorization

  • Authorization: OAuth2
  • Authorization URL: $auth_base_url/oauth/v2/auth?access_type=offline
  • Access Token URL: $auth_base_url/oauth/v2/token
  • Client Id: {client_id}
  • Client Secret: {client_secret}
  • Scope: $scope
  • Access Token header key: Zoho-oauthtoken
  • Token prefix: Bearer
  • Add to: Headers
    • Refresh access token
      • Enable: Checkbox.png
      • Refresh Token URL: https://accounts.zoho.com/oauth/v2/token
      • Access token response key: access_token
      • Error status codes: 401; 403

Variables

  • Variables
Variable nameVariable value
organization_id$organization_id
  • Secured Variables:
Variable nameVariable value
client_id$client_id
client_secret$client_secret

Pagination

  • Enable: Checkbox.png
  • Get next page value: Static (integer to be incremented)
  • Start page: 1
  • Page step: 1
  • Use next page value: As a URL parameter value
  • URL/body key: page
  • Stop iterating when: Stop key-value pair in response
  • Key in response: page_context.has_more_page
  • Value in response: false

Advanced Settings

  • Disable configuration validation: Checkbox.png
  • Data key: $data_key
  • Primary Key: $primary_key

Was this article helpful?

What's Next