# Zoho Invoice

## Pipeline Concepts

Before setting up the Pipeline, learn about Pipeline concepts [here](https://docs.sprinkledata.com/product/ingesting-your-data/pipelines)

## Step by Step Guide

### STEP-1: Configure Connection

To learn about Connection, refer [here](https://docs.sprinkledata.com/product/ingesting-your-data/pipelines)

* Log into Sprinkle application
* Navigate to Ingest -> Connections Tab -> New Connection ->&#x20;
* Select Zoho Invoice
* Provide all the mandatory details
  * *Name*: Name to identify this connection
  * *Advance Setting:* Refer [here](#advanced-connection-settings)
* Connect to Zoho
* Test Connection&#x20;
* Create

### STEP-2: Configure Pipeline

To learn about Pipeline, refer [here](https://docs.sprinkledata.com/product/ingesting-your-data/pipelines)

* Navigate to Ingest -> Pipeline Tab -> Add ->&#x20;
* Select Zoho Invoice
* Provide the name -> Create
* **Connection Tab**:&#x20;
  * From the drop-down, select the name of connection created in STEP-2
  * Update

### STEP-3: Create Dataset

**Datasets Tab**: To learn about Dataset, refer [here](https://docs.sprinkledata.com/product/ingesting-your-data/pipelines). Add Dataset for each report/dataset that you want to integrate, providing following details

* Organization(Required): Select the Organization whose data you want to access&#x20;
* *Report Type* (Required) : Type of report
  * *Contacts*
  * *Credit Notes*
  * *Credit Notes Refunds*
  * *Credit Notes Templates*
  * *Credit Applied*
    * Due Date(Required): Date format will be yyyy-mm-dd.
  * *Currencies*
  * *Customer Payments*
    * Start Date(Required): Date format will be yyyy-mm-dd. It is the start date from it ingest the data from.
    * Window for backfill(Required): Mention window for backfill, for backfilling metrics in every run to include updates from attribution window.
  * *Customer Payments Refunds*
    * Customer Payments (Required): \
      \- All Ids(Data will be fetched for all Customer Payments Ids present in Account)\
      \- Multi Select(Data will be fetched for given Customer Payment Ids and dropdown will appear to select the id).
      * Customer Payment ID (Required): Select Customer Payment Ids for which data will be fetched.
  * *Employees*
  * *Estimates*
  * *Estimates Templates*
  * *Expenses*
  * *Expenses Categories*
  * *Invoices*
    * Start Date(Required): Date format will be yyyy-mm-dd. It is the start date from it ingest the data from.
    * Window for backfill(Required): Mention window for backfill, for backfilling metrics in every run to include updates from attribution window.
  * *Invoice Payments*
    * Due Date(Required): Date format will be yyyy-mm-dd.
  * *Invoice Templates*
  * *Items*
  * *Price\_Lists*
  * *Projects*
  * *Projects Time Entries*
  * *Recurring Expenses*
  * *Recurring Invoices*
  * *Retainer Invoices*
  * *Retainer Invoices Templates*
  * *Taxes*
  * *Tax Exemptions*
  * *Tax Authorities*
  * *Users*
* Flatten Level(Required) : Select One Level or Multi Level. In one level, flattening will not be applied on complex type. They will be stored as string. In multi level, flattening will be applied in complex level till they become simple type.
* *Destination Schema* (Required) : Data warehouse schema where the table will be ingested into
* *Destination Table name* (Required) : It is the table name to be created on the warehouse. If not given, sprinkle will create like ds\_\<Pipelinename>\_\<tablename>
* *Destination Create Table Clause*: Provide additional clauses to warehouse-create table queries such as clustering, partitioning, and more, useful for optimizing DML statements. [Learn more](https://docs.sprinkledata.com/product/ingesting-your-data/pipelines/databases/features/destination-create-table-clause) on how to use this field.
* Create

### STEP-4: Run and schedule Ingestion

In the **Ingestion Jobs** ta&#x62;**:**

* Trigger the Job, using Run button
* To schedule, enable Auto-Run. Change the frequency if needed

### Advanced Connection Settings

* **API Read Timeout (In seconds) :** Maximum time of inactivity between two data packets when waiting for the server's response. The default value is 30 seconds
* **API Connection Timeout (In seconds) :**  Time period within which a connection between a client and a server must be established.
* **Retry Limit :** Number of retries allowed when an API call fails. For example if an API call fails and retry limit is 5 then it will check 5 times for that API call and if it succeeded then it will stop checkin&#x67;**.**
* **Retry Sleep Time (In milliseconds) :** Given time, after which retry should happen in case an API call fails.
* **Max Records :** field sets the max limit on the number of records that can be downloaded during each API call.&#x20;
* **Incremental Batch Size (In days) :** No. of days in one batch for which data is being downloaded during incremental ingestion.
* **Version :** it gives information about the version of Zoho Invoice API being used.
* **Domain :** Select from dropdown ( .in, .com, .eu, .com.au )

## Dataset Fields

<details>

<summary>Contacts</summary>

* contact\_id&#x20;
* contact\_name&#x20;
* customer\_name&#x20;
* vendor\_name&#x20;
* company\_name&#x20;
* website&#x20;
* language\_code
* language\_code\_formatted&#x20;
* contact\_type&#x20;
* contact\_type\_formatted&#x20;
* status&#x20;
* customer\_sub\_type&#x20;
* source&#x20;
* is\_linked\_with\_zohocrm&#x20;
* payment\_terms&#x20;
* payment\_terms\_label&#x20;
* currency\_id&#x20;
* twitter&#x20;
* facebook&#x20;
* currency\_code&#x20;
* outstanding\_receivable\_amount&#x20;
* outstanding\_receivable\_amount\_bcy&#x20;
* unused\_credits\_receivable\_amount&#x20;
* first\_name&#x20;
* last\_name&#x20;
* email&#x20;
* phone&#x20;
* mobile&#x20;
* portal\_status&#x20;
* created\_time&#x20;
* created\_time\_formatted&#x20;
* last\_modified\_time l
* ast\_modified\_time\_formatted&#x20;
* custom\_fields&#x20;
* custom\_field\_hash
* &#x20;ach\_supported&#x20;
* has\_attachment

</details>

<details>

<summary>Credit Notes</summary>

* creditnote\_id
* creditnote\_number
* status
* reference\_number
* date
* total
* balance
* customer\_id
* customer\_name
* currency\_id
* currency\_code
* created\_time
* last\_modified\_time
* is\_emailed

</details>

<details>

<summary>Credit Notes Refund</summary>

* creditnote\_refund\_id
* creditnote\_id"
* date
* refund\_mode
* reference\_number
* creditnote\_number
* customer\_name
* description
* amount\_bcy
* amount\_fcy

</details>

<details>

<summary>Credit Notes Templates</summary>

* template\_name
* template\_id
* template\_type

</details>

<details>

<summary>Credit Applied</summary>

* creditnote\_id
* creditnotes\_invoice\_id
* creditnotes\_number
* credited\_date
* amount\_applied
* creditnotes\_invoice\_id
* creditnotes\_number
* credited\_date
* amount\_applied

</details>

<details>

<summary>Currencies</summary>

* currency\_id
* currency\_code
* currency\_name
* currency\_symbol
* price\_precision
* currency\_format
* is\_base\_currency
* exchange\_rate
* effective\_date

</details>

<details>

<summary>Customer Payments</summary>

* payment\_id&#x20;
* payment\_number&#x20;
* invoice\_numbers&#x20;
* date&#x20;
* payment\_mode&#x20;
* payment\_mode\_formatted&#x20;
* amount&#x20;
* bcy\_amount&#x20;
* unused\_amount&#x20;
* bcy\_unused\_amount&#x20;
* description&#x20;
* product\_description&#x20;
* reference\_number&#x20;
* customer\_id&#x20;
* customer\_name&#x20;
* created\_time&#x20;
* last\_modified\_time&#x20;
* last\_four\_digits&#x20;
* gateway\_transaction\_id&#x20;
* bcy\_refunded\_amount&#x20;
* applied\_invoices
* has\_attachment&#x20;
* documents&#x20;
* custom\_fields\_list&#x20;
* tax\_amount\_withheld&#x20;
* payment\_type&#x20;
* settlement\_status

</details>

<details>

<summary>Customer Payments Refunds</summary>

* payment\_refund\_id
* payment\_id
* date
* refund\_mode
* reference\_number
* payment\_number
* customer\_name
* amount\_bcy
* amount\_fcy

</details>

<details>

<summary>Employees</summary>

* employee\_id
* name
* email

</details>

<details>

<summary>Estimates</summary>

* estimate\_id&#x20;
* zcrm\_potential\_id&#x20;
* zcrm\_potential\_name&#x20;
* customer\_name&#x20;
* customer\_id
* company\_name&#x20;
* status&#x20;
* color\_code&#x20;
* current\_sub\_status\_id&#x20;
* current\_sub\_status&#x20;
* estimate\_number&#x20;
* reference\_number&#x20;
* date currency\_id&#x20;
* currency\_code&#x20;
* total&#x20;
* created\_time&#x20;
* last\_modified\_time&#x20;
* accepted\_date&#x20;
* declined\_date&#x20;
* expiry\_date&#x20;
* has\_attachment&#x20;
* is\_viewed\_by\_client&#x20;
* client\_viewed\_time is\_emailed&#x20;
* is\_viewed\_in\_mail&#x20;
* template\_type&#x20;
* template\_id&#x20;
* mail\_first\_viewed\_time&#x20;
* mail\_last\_viewed\_time&#x20;
* salesperson\_id&#x20;
* salesperson\_name

</details>

<details>

<summary>Estimates Template</summary>

* template\_name&#x20;
* template\_id&#x20;
* template\_type

</details>

<details>

<summary>Expenses</summary>

* expense\_id
* date
* account\_name
* description
* currency\_id
* currency\_code
* bcy\_total
* bcy\_total\_without\_tax
* total
* total\_without\_tax
* is\_billable
* reference\_number
* customer\_id
* customer\_name
* status
* created\_time
* last\_modified\_time
* expense\_receipt\_name
* mileage\_rate
* mileage\_unit
* expense\_type
* start\_reading
* end\_reading

</details>

<details>

<summary>Expenses Categories</summary>

* account\_id
* account\_name
* description
* status

</details>

<details>

<summary>Invoice</summary>

* invoice\_id&#x20;
* ach\_payment\_initiated&#x20;
* zcrm\_potential\_id&#x20;
* zcrm\_potential\_name&#x20;
* customer\_name&#x20;
* customer\_id&#x20;
* company\_name&#x20;
* status&#x20;
* color\_code&#x20;
* current\_sub\_status\_id&#x20;
* current\_sub\_status&#x20;
* invoice\_number&#x20;
* reference\_number&#x20;
* date due\_date&#x20;
* due\_days&#x20;
* currency\_id&#x20;
* schedule\_time&#x20;
* email&#x20;
* currency\_code&#x20;
* currency\_symbol&#x20;
* is\_pre\_gst&#x20;
* template\_type no\_of\_copies&#x20;
* show\_no\_of\_copies&#x20;
* is\_viewed\_by\_client&#x20;
* has\_attachment&#x20;
* client\_viewed\_time&#x20;
* invoice\_url type&#x20;
* project\_name&#x20;
* billing\_address\_address&#x20;
* billing\_address\_street2&#x20;
* billing\_address\_city&#x20;
* billing\_address\_state&#x20;
* billing\_address\_zipcode&#x20;
* billing\_address\_country&#x20;
* billing\_address\_phone&#x20;
* billing\_address\_fax&#x20;
* billing\_address\_attention&#x20;
* shipping\_address\_address&#x20;
* shipping\_address\_street2&#x20;
* shipping\_address\_city&#x20;
* shipping\_address\_state&#x20;
* shipping\_address\_zipcode&#x20;
* shipping\_address\_country&#x20;
* shipping\_address\_phone&#x20;
* shipping\_address\_fax&#x20;
* shipping\_address\_attention&#x20;
* country&#x20;
* phone&#x20;
* created\_by&#x20;
* updated\_time&#x20;
* transaction\_type&#x20;
* total balance&#x20;
* created\_time&#x20;
* last\_modified\_time&#x20;
* is\_emailed&#x20;
* is\_viewed\_in\_mail&#x20;
* mail\_first\_viewed\_time&#x20;
* mail\_last\_viewed\_time&#x20;
* reminders\_sent&#x20;
* last\_reminder\_sent\_date&#x20;
* payment\_expected\_date&#x20;
* last\_payment\_date&#x20;
* custom\_fields&#x20;
* custom\_field\_hash&#x20;
* template\_id&#x20;
* documents&#x20;
* salesperson\_id&#x20;
* salesperson\_name&#x20;
* shipping\_charge&#x20;
* adjustment&#x20;
* write\_off\_amount&#x20;
* exchange\_rate

</details>

<details>

<summary>Invoice Payments</summary>

* payment\_id&#x20;
* payment\_number&#x20;
* invoice\_id&#x20;
* invoice\_payment\_id&#x20;
* payment\_mode&#x20;
* description&#x20;
* date&#x20;
* reference\_number&#x20;
* exchange\_rate&#x20;
* amount&#x20;
* tax\_amount\_withheld&#x20;
* online\_transaction\_id&#x20;
* is\_single\_invoice\_payment

</details>

<details>

<summary>Invoice Templates</summary>

* template\_name&#x20;
* template\_id&#x20;
* template\_type

</details>

<details>

<summary>Items</summary>

* item\_id&#x20;
* name&#x20;
* item\_name&#x20;
* unit&#x20;
* status&#x20;
* source&#x20;
* is\_linked\_with\_zohocrm&#x20;
* zcrm\_product\_id&#x20;
* description&#x20;
* rate&#x20;
* tax\_id&#x20;
* tax\_name&#x20;
* tax\_percentage&#x20;
* product\_type&#x20;
* has\_attachment&#x20;
* sku&#x20;
* image\_name&#x20;
* image\_type&#x20;
* image\_document\_id&#x20;
* created\_time&#x20;
* last\_modified\_time&#x20;
* show\_in\_storefront

</details>

<details>

<summary>Price Lists</summary>

* pricebook\_id
* name
* description
* currency\_id
* "currency\_code
* pricebook\_items
* status
* is\_default
* pricebook\_type
* is\_increase
* rounding\_type
* sales\_or\_purchase\_type

</details>

<details>

<summary>Projects</summary>

* project\_id
* project\_name
* customer\_id
* customer\_name
* description
* status
* billing\_type
* rate
* created\_time
* has\_attachment
* total\_hours
* billable\_hours

</details>

<details>

<summary>Projects Time Entries</summary>

* time\_entry\_id
* project\_id
* project\_name
* customer\_id
* customer\_name
* task\_id
* task\_name
* user\_id
* is\_current\_user
* user\_name
* log\_date
* begin\_time
* end\_time
* log\_time
* is\_billable
* billed\_status
* invoice\_id
* notes
* timer\_started\_at
* timer\_duration\_in\_minutes
* created\_time

</details>

<details>

<summary>Recurring Expenses</summary>

* recurring\_expense\_id
* recurrence\_name
* recurrence\_frequency
* repeat\_every
* last\_created\_date
* next\_expense\_date
* account\_name
* description
* currency\_id
* currency\_code
* total
* is\_billable
* customer\_name
* status
* created\_time
* last\_modified\_time

</details>

<details>

<summary>Recurring Invoices</summary>

* recurring\_invoice\_id
* recurrence\_name
* customer\_name
* customer\_id
* currency\_id
* currency\_code
* start\_date
* end\_date
* last\_sent\_date
* next\_invoice\_date
* line\_items
* billing\_address
* shipping\_address
* payment\_gateways
* payment\_options

</details>

<details>

<summary>Retainer Invoices</summary>

* retainerinvoice\_id
* customer\_name
* retainerinvoice\_number
* customer\_id
* status
* reference\_number
* project\_or\_estimate\_name
* date
* currency\_id
* currency\_code
* is\_viewed\_by\_client
* client\_viewed\_time
* total
* balance
* created\_time
* last\_modified\_time
* is\_emailed
* last\_payment\_date
* has\_attachment

</details>

<details>

<summary>Retainer Invoices Templates</summary>

* template\_name
* template\_id
* template\_type

</details>

<details>

<summary>Taxes</summary>

* tax\_id
* tax\_name
* tax\_percentage
* tax\_type
* tax\_authority\_id
* tax\_authority\_name"
* is\_value\_added
* is\_default\_tax
* is\_editable

</details>

<details>

<summary>Tax Authorities</summary>

* tax\_authority\_id&#x20;
* tax\_authority\_name&#x20;
* description&#x20;
* registration\_number&#x20;
* registration\_number\_label

</details>

<details>

<summary>Tax Exemptions</summary>

* tax\_exemption\_id
* tax\_exemption\_code
* description
* type
* type\_formatted"

</details>

<details>

<summary>Users</summary>

* user\_id&#x20;
* role\_id&#x20;
* name&#x20;
* email&#x20;
* is\_customer\_segmented&#x20;
* is\_vendor\_segmented&#x20;
* user\_role&#x20;
* user\_type&#x20;
* status&#x20;
* is\_current\_user&#x20;
* photo\_url&#x20;
* is\_employee

</details>
