# php-zoho-subscriptions

[![Latest Stable Version](https://poser.pugx.org/sudiptochoudhury/php-zoho-subscriptions/version)](https://packagist.org/packages/sudiptochoudhury/php-zoho-subscriptions)
[![Latest Unstable Version](https://poser.pugx.org/sudiptochoudhury/php-zoho-subscriptions/v/unstable)](//packagist.org/packages/sudiptochoudhury/php-zoho-subscriptions)
[![License](https://poser.pugx.org/sudiptochoudhury/php-zoho-subscriptions/license)](https://packagist.org/packages/sudiptochoudhury/php-zoho-subscriptions)
[![Total Downloads](https://poser.pugx.org/sudiptochoudhury/php-zoho-subscriptions/downloads)](https://packagist.org/packages/sudiptochoudhury/php-zoho-subscriptions)
[![composer.lock available](https://poser.pugx.org/sudiptochoudhury/php-zoho-subscriptions/composerlock)](https://packagist.org/packages/sudiptochoudhury/php-zoho-subscriptions)


Zoho Subscriptions API Client for PHP

```php

use SudiptoChoudhury\Zoho\Subscriptions\Api;

...

$subscriptions = new Api([
                'oauthtoken' => '<<Zoho Subscriptions OAuth Token>>', // https://www.zoho.com/subscriptions/api/v1/#oauth
                'zohoOrgId' => '<<Zoho Organization ID>>',
            ]);


$resultJson = $subscriptions->addCustomer($data); // create a customer

$resultJson = $subscriptions->addSubscription($data); // create a subscription
 
 
```

> Auth Token (Will be deprecated soon), but you can still use it.

```php

use SudiptoChoudhury\Zoho\Subscriptions\Api;

...

$subscriptions = new Api([
                'authtoken' => '<<Zoho Subscriptions Auth Token>>', // https://accounts.zoho.com/apiauthtoken/nb/create
                'zohoOrgId' => '<<Zoho Organization ID>>',
            ]);


$resultJson = $subscriptions->addCustomer($data); // create a customer

$resultJson = $subscriptions->addSubscription($data); // create a subscription
 
 
```

## Installation


### Requirements

- Any flavour of PHP 7.0+ should do


### Install With Composer

You can install the library via [Composer](http://getcomposer.org) by adding the following line to the 
**require** block of your *composer.json* file (replace dev-master with latest stable version):

```
"sudiptochoudhury/php-zoho-subscriptions": "dev-master"
```

or run the following command:

```
composer require sudiptochoudhury/php-zoho-subscriptions
```


## Setting up Authentication 

> **Get Organization ID** Before you start, read https://www.zoho.com/subscriptions/api/v1/#organization-id to know your Organization ID.  


### Setup OAuth and use oauth token

Follow instructions from https://www.zoho.com/subscriptions/api/v1/#oauth and get the `oathtoken`. 

Pass the oauth token via the constructor.

```php

use SudiptoChoudhury\Zoho\Subscriptions\Api;


new Api([
    'oauthtoken' => '<<Zoho Subscriptions OAuth Token>>', // https://www.zoho.com/subscriptions/api/v1/#oauth
    'zohoOrgId' => '<<Zoho Organization ID>>',
]);
```
 

### Or Use AuthToken 
> will be deprecated soon

Crete and retrieve AuthToken from https://accounts.zoho.com/apiauthtoken/nb/create and set the AuthToken and Organization ID in the constructor. 

```php

use SudiptoChoudhury\Zoho\Subscriptions\Api;


new Api([
    'authtoken' => '<<Zoho Subscriptions Auth Token>>', // https://accounts.zoho.com/apiauthtoken/nb/create
    'zohoOrgId' => '<<Zoho Organization ID>>',
]);
```


## How to use

Next, call the desired method from the table given below. In some methods you may need to pass parameters. The parameters
are to be passed as an associative array. The required list of parameters can be found in the parameters column of the
table or you may get more details going to the original Zoho Subscription API documentation.

Examples:
```php
$resultJson = $subscriptions->getOrganizations(); 

$resultJson = $subscriptions->addCustomer(['display_name'=> 'Sudipto Choudhury', 'email'=> 'mail@sudipto.net']); // create a customer
```

### Available API Methods


| Method & Endpoint | Parameters | Description |
|-------------------|------------|-------------|
`getHostedpage(array)`<br/>[ \[GET\] /hostedpages/{hostedpage_id} ](https://zoho.com/subscriptions/api/v1/#retrieve-a-hosted-page) | `hostedpage_id` | *Getting the details of a particular hosted page*<br/>**PlaceHolder to replace** : `hostedpage_id`<br/>[API DOC](https://zoho.com/subscriptions/api/v1/#retrieve-a-hosted-page)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`getHostedpages()`<br/>[ \[GET\] /hostedpages ](https://zoho.com/subscriptions/api/v1/#list-of-hostedpages) | \[none\] | *Listing all the hostedpages*<br/>[API DOC](https://zoho.com/subscriptions/api/v1/#list-of-hostedpages)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`addNewSubscriptionHostedpages(array)`<br/>[ \[POST\] /hostedpages/newsubscription ](https://zoho.com/subscriptions/api/v1/#create-a-subscription93) | `customer_id`<br/>`contactpersons`<br/>`plan`<br/>`addons`<br/>`starts_at`<br/>`custom_fields`<br/>`coupon_code`<br/>`reference_id`<br/>`additional_param`<br/>`redirect_url` | *Creating a hosted page for a new subscription for an existing customer*<br/>[API DOC](https://zoho.com/subscriptions/api/v1/#create-a-subscription93)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`addNewCustomerNewSubscriptionHostedpages(array)`<br/>[ \[POST\] /hostedpages/newsubscription ](https://zoho.com/subscriptions/api/v1/#create-a-subscription93) | `plan`<br/>`addons`<br/>`starts_at`<br/>`custom_fields`<br/>`coupon_code`<br/>`reference_id`<br/>`additional_param`<br/>`redirect_url` | *Creating a hosted page for a new subscription for a new customer*<br/>[API DOC](https://zoho.com/subscriptions/api/v1/#create-a-subscription93)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`addUpdateCardHostedpages(array)`<br/>[ \[POST\] /hostedpages/updatecard ](https://zoho.com/subscriptions/api/v1/#create-a-subscription93) | `subscription_id`<br/>`additional_param`<br/>`redirect_url` | *Creating a hosted page for updating a card linked to a specific subscription*<br/>[API DOC](https://zoho.com/subscriptions/api/v1/#create-a-subscription93)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`addOnetimeAddonHostedpages(array)`<br/>[ \[POST\] /hostedpages/buyonetimeaddon ](https://www.zoho.com/subscriptions/api/v1/#buy-one-time-addon-for-a-subscription) | `subscription_id`<br/>`addons`<br/>`additional_param`<br/>`redirect_url` | *Creating a hosted page for onetime addon purchase*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#buy-one-time-addon-for-a-subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`addUpdateSubscriptionHostedpages(array)`<br/>[ \[POST\] /hostedpages/updatesubscription ](https://www.zoho.com/subscriptions/api/v1/#update-a-subscription100) | `subscription_id`<br/>`contactpersons`<br/>`plan`<br/>`addons`<br/>`reference_id`<br/>`starts_at`<br/>`additional_param`<br/>`redirect_url` | *Creating a hosted page for updating an existing subscription*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#update-a-subscription100)<br/>[HELP DOC](http://zoho.com/subscriptions/help/hosted-pages.html) |
`getTransactions(array)`<br/>[ \[GET\] /transactions?customer_id={customer_id}&filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Customers_List_Of_transactions) | `customer_id`<br/>`filter_by` \[default: `TransactionType.ALL`\] | *List all transactions of a particular customer*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : TransactionType.(All  \|  INVOICE  \|  PAYMENT  \|  CREDIT  \|  REFUND)<br/> 2)`customer_id` : Customer ID of the customer<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_List_Of_transactions)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/trans-overview.html) |
`deleteCustomerComment(array)`<br/> \[DELETE\] /customers/{customer_id}/comments/{comment_id}  | `customer_id`<br/>`comment_id` | *Delete a particular customer comment.*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/> `comment_id` |
`activateCustomers(array)`<br/> \[POST\] /customers/markasactive?customer_ids={customer_ids}  | `customer_ids` | *Bulk marking multiple customers as active*<br/>**Placeholders to replace** : <br/> `customer_ids`<br/>`customer_ids` should be replaced by customer id's seperated by comma |
`disableCustomerPaymentReminder(array)`<br/> \[POST\] /customers/{customer_id}/paymentreminder/disable  | `customer_id` | *Disabling payment reminder for a particular customer*<br/>**Placeholders to replace** : <br/> <br/> `customer_id` |
`activateCustomer(array)`<br/>[ \[POST\] /customers/{customer_id}/markasactive ](https://www.zoho.com/subscriptions/api/v1/#Customers_Mark_as_active) | `customer_id` | *Marking a particular customer as active*<br/>**Placeholders to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_Mark_as_active)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#make-customer-inactive) |
`getCustomers(array)`<br/>[ \[GET\] /customers?filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Customers_List_all_customers) | `filter_by` \[default: `Status.All`\] | *Retrieving details of all the customers*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : Status.(All  \|  Active  \|  Inactive  \|  Gapps  \|  Crm  \|  NonSubscribers  \|  PortalEnabled  \|  PortalDisabled)<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_List_all_customers)<br/>[HELP DOC](http://zoho.com/subscriptions/help/customer.html) |
`getCustomer(array)`<br/>[ \[GET\] /customers/{customer_id} ](https://www.zoho.com/subscriptions/api/v1/#Customers_Retrieve_a_customer) | `customer_id` | *Retrieving details of a particular customer*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_Retrieve_a_customer)<br/>[HELP DOC](http://zoho.com/subscriptions/help/customer.html) |
`getCustomerComments(array)`<br/> \[GET\] /customers/{customer_id}/comments  | `customer_id` | *Retrieving comments of a particular customer*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/>[HELP DOC](http://zoho.com/subscriptions/help/customer.html) |
`updateCustomer(array)`<br/>[ \[PUT\] /customers/{customer_id} ](https://www.zoho.com/subscriptions/api/v1/#Customers_Update_a_customer) | `customer_id`<br/>`display_name`<br/>`salutation`<br/>`first_name`<br/>`last_name`<br/>`email`<br/>`company_name`<br/>`phone`<br/>`mobile`<br/>`website`<br/>`twitter`<br/>`facebook`<br/>`billing_address`<br/>`shipping_address`<br/>`currency_code`<br/>`notes`<br/>`payment_terms`<br/>`payment_terms_label`<br/>`ach_supported`<br/>`custom_fields`<br/>`default_templates` | *Updating the details of a particular customer*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_Update_a_customer)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html) |
`deleteCustomer(array)`<br/>[ \[DELETE\] /customers/{customer_id} ](https://www.zoho.com/subscriptions/api/v1/#Customers_Delete_a_customer) | `customer_id` | *Delete a particular customer.*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_Delete_a_customer)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#deleting-customer) |
`getCustomerUnusedCredits(array)`<br/> \[GET\] /customers/{customer_id}/unusedcredits  | `customer_id` | *Unused credit of a particular customer*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/>[HELP DOC](http://zoho.com/subscriptions/help/customer.html) |
`deactivateCustomers(array)`<br/> \[POST\] /customers/markasinactive?customer_ids={customer_ids}  | `customer_ids` | *Bulk marking multiple customers as inactive*<br/>**Placeholders to replace** : <br/> `customer_ids`<br/>`customer_ids` should be replaced by customer id's seperated by comma |
`addCustomer(array)`<br/>[ \[POST\] /customers ](https://www.zoho.com/subscriptions/api/v1/#Customers_Create_a_customer) | `display_name`<br/>`salutation`<br/>`first_name`<br/>`last_name`<br/>`email`<br/>`company_name`<br/>`phone`<br/>`mobile`<br/>`website`<br/>`twitter`<br/>`facebook`<br/>`billing_address`<br/>`shipping_address`<br/>`currency_code`<br/>`notes`<br/>`payment_terms`<br/>`payment_terms_label`<br/>`ach_supported`<br/>`custom_fields`<br/>`default_templates` | *Creating a new customer*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_Create_a_customer)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#creating-customer) |
`deleteCustomers(array)`<br/> \[DELETE\] /customers?customer_ids={customer_ids}  | `customer_ids` | *Bulk deleting customers*<br/>**PlaceHolders to replace** : <br/> `customer_ids`<br/>`customer_ids` should be passed as a param. Make sure that the customer_ids are seperated by ,(comma)<br/>*Eg: customer_ids=112072000001700227,11207200001700228*<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#deleting-customer) |
`deactivateCustomer(array)`<br/>[ \[POST\] /customers/{customer_id}/markasinactive ](https://www.zoho.com/subscriptions/api/v1/#Customers_Mark_as_inactive) | `customer_id` | *Marking a particular customer as inactive*<br/>**Placeholders to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Customers_Mark_as_inactive)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#make-customer-inactive) |
`enableCustomerPaymentReminder(array)`<br/> \[POST\] /customers/{customer_id}/paymentreminder/enable  | `customer_id` | *Enabling payment reminder for a particular customer*<br/>**Placeholders to replace** : <br/> `customer_id` |
`deleteCustomerAddress(array)`<br/> \[DELETE\] /customers/{customer_id}/address/{address_id}  | `customer_id`<br/>`address_id` | *Delete an existing customer's address.*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/> `address_id` |
`deleteCustomerPaypalAccount(array)`<br/> \[DELETE\] /customers/{customer_id}/paypalaccounts/{paypal_id}  | `customer_id`<br/>`paypal_id` | *To delete a particular PayPal account of a particular customer*<br/>**PlaceHolders to replace** : <br/> `customer_id`<br/> `paypal_id` |
`deleteProduct(array)`<br/>[ \[DELETE\] /products/{product_id} ](https://www.zoho.com/subscriptions/api/v1/#Products_Delete_a_product) | `product_id` | *Delete an existing product.*<br/>**PlaceHolder to replace** : <br/> `product_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_Delete_a_product)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/product.html#delete-product) |
`updateProduct(array)`<br/>[ \[PUT\] /products/{product_id} ](https://www.zoho.com/subscriptions/api/v1/#Products_Update_a_product) | `product_id`<br/>`name`<br/>`description`<br/>`email_ids`<br/>`redirect_url` | *Updating the details of a particular product*<br/>**PlaceHolder to replace** : <br/> `product_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_Update_a_product)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/product.html#edit-product) |
`addProduct(array)`<br/>[ \[POST\] /products ](https://www.zoho.com/subscriptions/api/v1/#Products_Create_a_product) | `name`<br/>`description`<br/>`email_ids`<br/>`redirect_url` | *Creating a new product*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_Create_a_product)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/product.html#create-product) |
`getProduct(array)`<br/>[ \[GET\] /products/{product_id}?showchild={showchild} ](https://www.zoho.com/subscriptions/api/v1/#Products_Retrieve_a_product) | `product_id`<br/>`showchild` \[default: `true`\] | *Retreiving details of a product*<br/>**Placeholders to be replaced** : <br/> `product_id`<br/>**Allowed parameters and its allowed values** :<br/> 1)`show_child` : true  \|  false<br/>If show_child paramter is provided, all the plans, add-ons, couopons created under the product will be retreived.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_Retrieve_a_product)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/product.html) |
`activateProduct(array)`<br/>[ \[POST\] /products/{product_id}/markasactive ](https://www.zoho.com/subscriptions/api/v1/#Products_Mark_as_active) | `product_id` | *Marking a particular product as active*<br/>**Placeholders to replace** : <br/> `product_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_Mark_as_active)<br/>[HELP DOC](http://zoho.com/subscriptions/help/product.html) |
`getProducts(array)`<br/>[ \[GET\] /products?filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Products_List_of_all_products) | `filter_by` \[default: `ProductStatus.All`\] | *List of all Products*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : ProductStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  search)<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_List_of_all_products)<br/>[HELP DOC](http://zoho.com/subscriptions/help/product.html) |
`deactivateProduct(array)`<br/>[ \[POST\] /products/{product_id}/markasinactive ](https://www.zoho.com/subscriptions/api/v1/#Products_Mark_as_inactive) | `product_id` | *Marking a particular product as inactive*<br/>**Placeholders to replace** : <br/> `product_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Products_Mark_as_inactive)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/product.html#make-product-inactive) |
`deleteSalesPerson(array)`<br/> \[DELETE\] /salespersons/{salesperson_id}  | `salesperson_id` | *Delete an existing salesperson*<br/>**PlaceHolders to be replaced :**<br/> `salesperson_id` |
`deleteSalesPersons(array)`<br/> \[DELETE\] /salespersons?salesperson_ids={salesperson_ids}  | `salesperson_ids` | *Bulk delete multiple sales persons*<br/>**PlaceHolders to be replaced : **<br/> `salesperson_ids`<br/>`salesperson_ids` should be replaced by sales person ids seperated by commas(,) |
`getSalesPersons()`<br/> \[GET\] /salespersons  | \[none\] | *List details of all sales person* |
`deleteCreditnoteRefund(array)`<br/> \[DELETE\] /creditnotes/{creditnote_id}/refunds/{refund_id}  | `creditnote_id`<br/>`refund_id` | *Delete an existing credit note refund*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/> `refund_id` |
`deleteCreditnote(array)`<br/>[ \[DELETE\] /creditnotes/{creditnote_id} ](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Delete_a_credit_note) | `creditnote_id` | *Delete an existing credit note*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Delete_a_credit_note) |
`deleteCreditnoteComment(array)`<br/> \[DELETE\] /creditnotes/{creditnote_id}/comments/{comment_id}  | `creditnote_id`<br/>`comment_id` | *Delete a comment for a credit note*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/> `comment_id` |
`getRefundCreditnote(array)`<br/>[ \[GET\] /creditnotes/refunds/{refund_id} ](https://www.zoho.com/subscriptions/api/v1/#retrieve-refund-details) | `refund_id` | *Details of an existing refund*<br/>**Placeholders to replace** : <br/> `refund_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#retrieve-refund-details) |
`addCreditnoteRefunds(array)`<br/> \[POST\] /creditnotes/{creditnote_id}/refunds  | `creditnote_id`<br/>`amount`<br/>`description` | *Refund an existing credit note*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/trans-creditnote.html#refund) |
`deleteCreditnoteInvoice(array)`<br/> \[DELETE\] /creditnotes/{creditnote_id}/invoices/{creditnote_invoice_id}  | `creditnote_id`<br/>`creditnote_invoice_id` | *Delete the credits applied to invoices*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/> `creditnote_invoice_id` |
`addCreditnoteInvoices(array)`<br/> \[POST\] /creditnotes/{creditnote_id}/invoices  | `creditnote_id`<br/>`invoices` | *Apply credits from credit note to invoices*<br/>**PlaceHolders to be replaced :**<br/> `creditnote_id` |
`addInvoiceEmail(array)`<br/> \[POST\] /invoices/{creditnote_id}/email  | `creditnote_id`<br/>`to_mail_ids`<br/>`cc_mail_ids`<br/>`subject`<br/>`body` | *Email a particular credit note*<br/>**Placeholders to replace** : <br/> `creditnote_id` |
`openVoidCreditnote(array)`<br/>[ \[POST\] /creditnotes/{creditnote_id}/converttoopen ](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Open_a_voided_credit_note) | `creditnote_id` | *Convert a voided credit note to open*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Open_a_voided_credit_note) |
`voidCreditnote(array)`<br/>[ \[POST\] /creditnotes/{creditnote_id}/void ](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Void_a_credit_note) | `creditnote_id` | *Void an existing credit note for a particular customer*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Void_a_credit_note) |
`getCreditnote(array)`<br/>[ \[GET\] /creditnotes/{creditnotes_id} ](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Retreive_a_credit_note) | `creditnotes_id` | *Retrieve an existing credit note*<br/>**PlaceHolder to replace** : <br/> `creditnote_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Retreive_a_credit_note) |
`addCreditnoteCustomFields(array)`<br/> \[POST\] /creditnotes/{creditnote_id}/customfields  | `creditnote_id`<br/>`custom_fields` | *Updating custom fields for a credit note*<br/>*You can update custom fields only if they are configured*<br/>**Placeholders to replace** : <br/> `creditnote_id` |
`addCreditnote(array)`<br/>[ \[POST\] /creditnotes ](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Create_a_credit_note) | `customer_id`<br/>`contact_persons`<br/>`creditnote_number`<br/>`ignore_auto_number_generation`<br/>`reference_number`<br/>`date`<br/>`exchange_rate`<br/>`creditnote_items`<br/>`custom_fields`<br/>`notes`<br/>`terms`<br/>`template_id` | *Creating a Credit note for particular customer*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Credit-Notes_Create_a_credit_note)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/trans-creditnote.html#creditnote) |
`deleteCreditnotes(array)`<br/> \[DELETE\] /creditnotes?creditnote_ids={creditnote_ids}  | `creditnote_ids` | *Delete an existing credit note refund*<br/>**PlaceHolder to replace** : <br/> `creditnote_ids`<br/>`creditnote_ids` should be replaced by credit note ids seperated by commas(,) |
`getProductPlans(array)`<br/>[ \[GET\] /plans?product_id={product_id}&filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Plans_List_of_all_plans_of_a_product) | `product_id`<br/>`filter_by` \[default: `PlanStatus.All`\] | *Listing all the plans for a specific product*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : PlanStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  search)<br/> 2)`product_id` : Product ID of a product. Allows to list all plans under the product.<br/> 3)`search_text` : Any text value. Allows to search plans matching the text provided.<br/>**PlaceHolders to replace** : <br/> `product_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_List_of_all_plans_of_a_product)<br/>[HELP DOC](http://zoho.com/subscriptions/help/plan.html) |
`updatePlan(array)`<br/>[ \[PUT\] /plans/{plan_code} ](https://www.zoho.com/subscriptions/api/v1/#Plans_Update_a_plan) | `plan_code`<br/>`name`<br/>`recurring_price`<br/>`interval`<br/>`interval_unit`<br/>`billing_cycles`<br/>`trial_period`<br/>`setup_fee`<br/>`addons`<br/>`product_id`<br/>`account_id`<br/>`tax_id`<br/>`description` | *Updating the details of a particular plan*<br/>**PlaceHolder to replace** : <br/> `plan_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_Update_a_plan)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/plan.html#edit-plan) |
`addPlan(array)`<br/>[ \[POST\] /plans ](https://www.zoho.com/subscriptions/api/v1/#Plans_Create_a_plan) | `name`<br/>`plan_code`<br/>`product_id`<br/>`description`<br/>`interval`<br/>`interval_unit`<br/>`billing_cycles`<br/>`setup_price`<br/>`trial_period`<br/>`recurring_price`<br/>`account_id`<br/>`tax_id` | *Creating a new plan*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_Create_a_plan)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/plan.html#create-plan) |
`deactivatePlan(array)`<br/>[ \[POST\] /plans/{plan_code}/markasinactive ](https://www.zoho.com/subscriptions/api/v1/#Plans_Mark_as_inactive) | `plan_code` | *Marking a plan as inactive*<br/>**Place Holders to replace** : <br/> ` plan_code `<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_Mark_as_inactive)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/plan.html#make-plan-inactive) |
`activatePlan(array)`<br/>[ \[POST\] /plans/{plan_code}/markasactive ](https://www.zoho.com/subscriptions/api/v1/#Plans_Mark_as_active) | `plan_code` | *Marking a plan as active*<br/>**Place Holders to replace** : <br/> ` plan_code `<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_Mark_as_active)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/plan.html#make-plan-inactive) |
`getPlan(array)`<br/>[ \[GET\] /plans/{plan_code} ](https://www.zoho.com/subscriptions/api/v1/#Plans_Retrieve_a_plan) | `plan_code` | *Retreiving details of a particular plan*<br/>**PlaceHolder to replace** : <br/> `plan_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_Retrieve_a_plan)<br/>[HELP DOC](http://zoho.com/subscriptions/help/plan.html) |
`deletePlan(array)`<br/>[ \[DELETE\] /plans/{plan_code} ](https://www.zoho.com/subscriptions/api/v1/#Plans_Delete_a_plan) | `plan_code` | *Delete an existing plan. A plan can only be deleted if it has no transactions associated with it.*<br/>**PlaceHolder to replace** : <br/> `plan_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_Delete_a_plan)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/plan.html#delete-plan) |
`getPlans(array)`<br/>[ \[GET\] /plans?filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Plans_List_all_plans) | `filter_by` \[default: `PlanStatus.All`\] | *Listing all the plans*<br/> <br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : PlanStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  search)<br/> 2)`product_id` : Product ID of a product. Allows to list all plans under the product.<br/> 3)`search_text` : Any text value. Allows to search plans matching the text provided.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Plans_List_all_plans)<br/>[HELP DOC](http://zoho.com/subscriptions/help/plan.html) |
`addSubscriptionNotes(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/notes ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_a_note) | `subscription_id`<br/>`description` | *Notes related to a particular subscription can be added by any user at any time*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_a_note)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`reactivateSubscription(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/reactivate ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Reactivate_subscription) | `subscription_id` | *Reactivating a subscription*<br/>*Only a subscription which is in **"non-renewing"** status can be reactivated*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Reactivate_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`deleteSubscriptionNote(array)`<br/>[ \[DELETE\] /subscriptions/{subscription_id}/notes/{note_id} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Delete_a_note) | `subscription_id`<br/>`note_id` | *Delete a specific note associated to a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/> `note_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Delete_a_note) |
`addSubscription(array)`<br/>[ \[POST\] /subscriptions ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Create_a_subscription) | `customer_id`<br/>`plan`<br/>`addons`<br/>`coupon_code`<br/>`payment_terms`<br/>`payment_terms_label`<br/>`starts_at`<br/>`exchange_rate`<br/>`salesperson_name`<br/>`reference_id`<br/>`custom_fields`<br/>`auto_collect`<br/>`card`<br/>`payment_gateways` | *Creating an online subscription for an already existing customer*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Create_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`cancelSubscriptions(array)`<br/> \[POST\] /subscriptions/bulkcancel?subscription_ids={subscription_ids}  | `subscription_ids` | *Bulk cancelling multiple subscriptions*<br/>**You can only cancel 25 subscriptions at a time**<br/>**PlaceHolder to replace** : <br/> `subscription_ids`<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionLineItem(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/lineitems/{plan_code} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_Edit_description_for_a_plan_in_line_items_list) | `subscription_id`<br/>`plan_code`<br/>`description` | *Add/Edit description to a particular plan in the line items list*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/> `plan_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_Edit_description_for_a_plan_in_line_items_list)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`deleteSubscriptionCard(array)`<br/>[ \[DELETE\] /subscriptions/{subscription_id}/card ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Remove_Card) | `subscription_id` | *Delete a card associated with the subscription. Once removed, the subscription will become an offline subscription.*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Remove_Card) |
`updateSubscription(array)`<br/>[ \[PUT\] /subscriptions/{subscription_id} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_a_subscription) | `subscription_id` | *Updating the details of a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionBankAccount(array)`<br/> \[POST\] /subscriptions/{subscription_id}/bankaccount  | `subscription_id`<br/>`auto_collect`<br/>`account_id` | *Associate an existing bank account/Update to an existing bank account with a subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`getSubscriptions(array)`<br/>[ \[GET\] /subscriptions?filter_by={filter_by}&customer_id={customer_id} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_List_all_subscriptions) | `filter_by` \[default: `SubscriptionStatus.All`\]<br/>`customer_id` | *Listing all the subscriptions*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : `SubscriptionStatus.(All  \|  IN_PROGRESS  \|  TRIAL  \|  FUTURE  \|  LIVE  \|  UNPAID  \|  PAST_DUE  \|  NON_RENEWING  \|  CANCELLED  \|  CANCELLED_FROM_DUNNING  \|  EXPIRED  \|  CREATION_FAILED  \|  TRIAL_EXPIRED  \|  CANCELLED_THIS_MONTH  \|  CANCELLED_LAST_MONTH  \|  ACTIVE)`<br/> `SubscriptionMode.(ONLINE  \|  OFFLINE)`<br/> 2)`customer_id` : Customer ID of a customer. Lists all invoices of a customer.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_List_all_subscriptions)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`setSubscriptionOnline(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/autocollect ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Change_to_Online_Offline_mode) | `subscription_id`<br/>`auto_collect` \[default: `true`\] | *Change a particular subscription to online mode*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Change_to_Online_Offline_mode)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`getSubscription(array)`<br/>[ \[GET\] /subscriptions/{subscription_id} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Retrieve_a_subscription) | `subscription_id` | *Getting the details about a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Retrieve_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionOnetimeAddon(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/buyonetimeaddon ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Buy_one-time_addon) | `subscription_id`<br/>`addons`<br/>`exchange_rate`<br/>`coupon_code` | *Include a one-time addon to a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Buy_one-time_addon)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addOfflineSubscription(array)`<br/>[ \[POST\] /subscriptions ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Create_a_subscription) | `customer_id`<br/>`plan`<br/>`addons`<br/>`coupon_code`<br/>`starts_at`<br/>`exchange_rate`<br/>`payment_terms`<br/>`payment_terms_label`<br/>`salesperson_name`<br/>`reference_id`<br/>`custom_fields`<br/>`auto_collect` \[default: `false`\]<br/>`payment_gateways` | *Creating an offline subscription for an already existing customer*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Create_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionCoupon(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/coupons/{coupon_code} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Associate_a_coupon) | `subscription_id`<br/>`coupon_code` | *Associating a coupon to a paricular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/> `coupon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Associate_a_coupon)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`deleteSubscription(array)`<br/>[ \[DELETE\] /subscriptions/{subscription_id} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Delete_a_subscription) | `subscription_id` | *Deleting an existing subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Delete_a_subscription)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/subscriptions.html#deleting-subscription) |
`getSubscriptionScheduledChanges(array)`<br/>[ \[GET\] /subscriptions/{subscription_id}/scheduledchanges ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_View_Scheduled_Changes) | `subscription_id` | *Retrieving the scheduled changes of a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_View_Scheduled_Changes)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionCard(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/card ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Card) | `subscription_id`<br/>`card_id`<br/>`auto_collect` | *Associate/Update card with an existing card for a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Card)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`getSubscriptionRecentActivities(array)`<br/>[ \[GET\] /subscriptions/{subscription_id}/recentactivities ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Subscription_Activities) | `subscription_id` | *Retrieving all activities of a particular subscription*<br/>**PlaceHolder to replace** : `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Subscription_Activities)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`getSubscriptionNotes(array)`<br/> \[GET\] /subscriptions/{subscription_id}/notes  | `subscription_id` | *Retrieving notes of a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`deleteSubscriptionScheduledChanges(array)`<br/> \[DELETE\] /subscriptions/{subscription_id}/scheduledchanges  | `subscription_id` | *Dropping the scheduled changes of a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id` |
`addSubscriptionCustomFields(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/customfields ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Custom_Fields) | `subscription_id`<br/>`custom_fields` | *Update custome fields for a particular subscription*<br/>**PlaceHolder to replace** : `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Custom_Fields)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionNewBankAccount(array)`<br/> \[POST\] /subscriptions/{subscription_id}/bankaccount  | `subscription_id`<br/>`bank_account`<br/>`auto_collect` | *Associate/Update bank account with a new bank account for a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionsCompute(array)`<br/> \[POST\] /subscriptions/compute  | `subscription_id`<br/>`plan`<br/>`addons`<br/>`coupon_code`<br/>`starts_at`<br/>`exchange_rate`<br/>`payment_terms`<br/>`payment_terms_label`<br/>`salesperson_name`<br/>`reference_id`<br/>`custom_fields`<br/>`auto_collect`<br/>`payment_gateways` | *Preview amount of the subscription and invoice. This can be called while both at time of creating a subscription/updating a subscription.*<br/>*For compute during update, you will have to pass the subscription_id node in the JSON body*<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/subscriptions.html) |
`setSubscriptionOffline(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/autocollect ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Change_to_Online_Offline_mode) | `subscription_id`<br/>`auto_collect` \[default: `false`\] | *Change a particular subscription to offline mode*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Change_to_Online_Offline_mode)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`updateSubscriptionCard(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/card ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Card) | `subscription_id`<br/>`card`<br/>`auto_collect` | *Associate/Update card with a new card for a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Card)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionOnetimeCharge(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/charge ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_Charge) | `subscription_id`<br/>`amount`<br/>`description` | *Charge a one-time amount for a subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_Charge)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addNewCustomerSubscription(array)`<br/>[ \[POST\] /subscriptions ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Create_a_subscription) | `customer`<br/>`card`<br/>`starts_at`<br/>`exchange_rate`<br/>`plan`<br/>`addons`<br/>`custom_fields`<br/>`payment_terms`<br/>`payment_terms_label`<br/>`coupon_code`<br/>`auto_collect`<br/>`salesperson_name`<br/>`reference_id`<br/>`payment_gateways` | *Creating a subscription for a new customer*<br/>This works as a **quick-create**<br/>Customer while creating the subscription<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Create_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`cancelSubscriptionNow(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/cancel?cancel_at_end={cancel_at_end} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Cancel_a_subscription) | `subscription_id`<br/>`cancel_at_end` \[default: `false`\] | *Cancelling the subscription immediately*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Cancel_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionPaypalAccount(array)`<br/> \[POST\] /subscriptions/{subscription_id}/paypalaccount  | `subscription_id`<br/>`paypal_id` | *Associate/Update PayPal account with an existing PayPal account for a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`postponeSubscription(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/postpone ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Postpone_renewal) | `subscription_id`<br/>`renewal_at` | *Renewal date refers to the billing date of the subsequent term.*<br/>*You can postpone date of renewal of the subscription by specifying an appropriate date on which the customer should be billed. No prorated charges will be applied. Billing date for the subscription will be replaced by the date which you provide*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Postpone_renewal)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`deleteSubscriptionBankAccount(array)`<br/> \[DELETE\] /subscriptions/{subscription_id}/bankaccount  | `subscription_id` | *Delete a bank account associated with the subscription. Once removed, the subscription will become an offline subscription.*<br/>**PlaceHolder to replace** : <br/> `subscription_id` |
`addSubscriptionContactPersons(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/contactpersons ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_contact_person) | `subscription_id`<br/>`contactpersons` | *Associate an existing contact person with a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_contact_person)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionReference(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/reference ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Reference) | `subscription_id`<br/>`reference_id` | *Update reference id to easily identify and keep track of your subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Reference)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`getCustomersSubscriptions(array)`<br/>[ \[GET\] /subscriptions?filter_by={filter_by}&customer_id={customer_id} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_List_all_subscriptions) | `filter_by` \[default: `SubscriptionStatus.All`\]<br/>`customer_id` | *Listing all the subscriptions*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : `SubscriptionStatus.(All  \|  IN_PROGRESS  \|  TRIAL  \|  FUTURE  \|  LIVE  \|  UNPAID  \|  PAST_DUE  \|  NON_RENEWING  \|  CANCELLED  \|  CANCELLED_FROM_DUNNING  \|  EXPIRED  \|  CREATION_FAILED  \|  TRIAL_EXPIRED  \|  CANCELLED_THIS_MONTH  \|  CANCELLED_LAST_MONTH  \|  ACTIVE)`<br/> `SubscriptionMode.(ONLINE  \|  OFFLINE)`<br/> 2)`customer_id` : Customer ID of a customer. Lists all invoices of a customer.<br/> <br/>**PlaceHolder to be placed** :<br/> <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_List_all_subscriptions)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionAddonLineItem(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/lineitems/{addon_code} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_Edit_description_for_a_addon_in_line_items_list) | `subscription_id`<br/>`addon_code`<br/>`description` | *Add/Edit description to a particular add-on in the line items list*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/> `addon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Add_Edit_description_for_a_addon_in_line_items_list)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`deleteSubscriptionCoupons(array)`<br/>[ \[DELETE\] /subscriptions/{subscription_id}/coupons ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Remove_a_coupon) | `subscription_id` | *To remove coupon associated with a subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Remove_a_coupon) |
`cancelSubscription(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/cancel?cancel_at_end={cancel_at_end} ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Cancel_a_subscription) | `subscription_id`<br/>`cancel_at_end` \[default: `true`\] | *Cancelling the subscription at the end of term of subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Cancel_a_subscription)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`addSubscriptionSalesPerson(array)`<br/>[ \[POST\] /subscriptions/{subscription_id}/salesperson ](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Sales_Person) | `subscription_id`<br/>`salesperson_name` | *Update sales person associated with a particular subscription*<br/>**PlaceHolder to replace** : <br/> `subscription_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Subscriptions_Update_Sales_Person)<br/>[HELP DOC](http://zoho.com/subscriptions/help/subscription.html) |
`getCustomerCard(array)`<br/>[ \[GET\] /customers/{customer_id}/cards/{card_id} ](https://www.zoho.com/subscriptions/api/v1/#Cards_Retrieve_a_credit_card_information) | `customer_id`<br/>`card_id` | *Retrieving details of a particular card for a particular customer*<br/>**Placeholders to replace** : <br/> `customer_id`<br/> `card_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Cards_Retrieve_a_credit_card_information)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html) |
`deleteCustomerCard(array)`<br/>[ \[DELETE\] /customers/{customer_id}/cards/{card_id} ](https://www.zoho.com/subscriptions/api/v1/#Cards_Delete_a_credit_card) | `customer_id`<br/>`card_id` | *To delete a particular credit card for a customer*<br/>**PlaceHolders to replace** : <br/> `customer_id`<br/> `card_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Cards_Delete_a_credit_card) |
`addCustomerCards(array)`<br/>[ \[POST\] /customers/{customer_id}/cards ](https://www.zoho.com/subscriptions/api/v1/#Cards_Create_a_new_credit_card) | `customer_id`<br/>`card_number`<br/>`expiry_month`<br/>`expiry_year`<br/>`cvv_number`<br/>`first_name`<br/>`last_name`<br/>`street`<br/>`city`<br/>`state`<br/>`country`<br/>`zip`<br/>`payment_gateway` | *Creating a new card for an existing customer*<br/>**PlaceHolder to replace** : `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Cards_Create_a_new_credit_card) |
`getCustomerCards(array)`<br/>[ \[GET\] /customers/{customer_id}/cards ](https://www.zoho.com/subscriptions/api/v1/#Cards_List_all_Active_Credit_Cards_of_a_Customer) | `customer_id` | *Retrieving details of all cards for a particular customer*<br/>**Placeholders to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Cards_List_all_Active_Credit_Cards_of_a_Customer)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html) |
`updateCustomerCard(array)`<br/>[ \[PUT\] /customers/{customer_id}/cards/{card_id} ](https://www.zoho.com/subscriptions/api/v1/#Cards_Update_a_credit_card) | `customer_id`<br/>`card_id`<br/>`card_number`<br/>`expiry_month`<br/>`expiry_year`<br/>`cvv_number`<br/>`first_name`<br/>`last_name`<br/>`street`<br/>`city`<br/>`state`<br/>`country`<br/>`zip`<br/>`payment_gateway` | *Editing the existing Credit card information for a customer*<br/>**PlaceHolders to be replaced** : <br/> `customer_id`<br/> `card_id`<br/> <br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Cards_Update_a_credit_card) |
`activateCoupon(array)`<br/>[ \[POST\] /coupons/{coupon_code}/markasactive ](https://www.zoho.com/subscriptions/api/v1/#Coupons_Mark_as_active) | `coupon_code` | *Marking a coupon as active*<br/>**Place Holders to replace** : <br/> ` coupon_code `<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_Mark_as_active)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/coupon.html#make-coupon-inactive) |
`deleteCoupon(array)`<br/>[ \[DELETE\] /coupons/{coupon_code} ](https://www.zoho.com/subscriptions/api/v1/#Coupons_Delete_a_coupon) | `coupon_code` | *Delete an existing coupon.*<br/>**PlaceHolders to replace** : <br/> `coupon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_Delete_a_coupon)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/coupon.html#delete-coupon) |
`updateCoupon(array)`<br/>[ \[PUT\] /coupons/{coupon_code} ](https://www.zoho.com/subscriptions/api/v1/#Coupons_Update_a_coupon) | `coupon_code`<br/>`name`<br/>`description`<br/>`max_redemption`<br/>`expiry_at` | *Updating the details of a particular coupon*<br/>**PlaceHolder to replace** : <br/> `coupon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_Update_a_coupon)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/coupon.html#edit-coupon) |
`deactivateCoupon(array)`<br/>[ \[POST\] /coupons/{coupon_code}/markasinactive ](https://www.zoho.com/subscriptions/api/v1/#Coupons_Mark_as_inactive) | `coupon_code` | *Marking a coupon as inactive*<br/>**Place Holders to replace** : <br/> ` coupon_code `<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_Mark_as_inactive)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/coupon.html#make-coupon-inactive) |
`addCoupon(array)`<br/>[ \[POST\] /coupons ](https://www.zoho.com/subscriptions/api/v1/#Coupons_Create_an_coupon) | `coupon_code`<br/>`name`<br/>`description`<br/>`type`<br/>`discount_by`<br/>`discount_value`<br/>`product_id`<br/>`max_redemption`<br/>`expiry_at`<br/>`apply_to_plans`<br/>`plans`<br/>`apply_to_addons`<br/>`addons` | *Creating a new coupon*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_Create_an_coupon)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/coupon.html#create-coupon) |
`getCoupons(array)`<br/>[ \[GET\] /coupons?filter_by={filter_by}&product_id={product_id} ](https://www.zoho.com/subscriptions/api/v1/#Coupons_List_all_coupons) | `filter_by` \[default: `CouponStatus.All`\]<br/>`product_id` | *Retrieving details of all coupons*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : CouponStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  EXPIRED),search<br/> 2)`product_id` : Product ID of a product. Allows to list all coupons under the product.<br/> 3)`search_text` : Any text value. Allows to search coupons matching the text provided<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_List_all_coupons)<br/>[HELP DOC](http://zoho.com/subscriptions/help/coupon.html) |
`getCoupon(array)`<br/>[ \[GET\] /coupons/{coupon_code} ](https://www.zoho.com/subscriptions/api/v1/#Coupons_Retrieve_a_coupon) | `coupon_code` | *Retrieving details of a particular coupon*<br/>**PlaceHolder to replace** : `coupon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Coupons_Retrieve_a_coupon)<br/>[HELP DOC](http://zoho.com/subscriptions/help/coupon.html) |
`get()`<br/> \[GET\] /  | \[none\] | Lists all resources API endpoint of Zoho Subscriptions |
`getEvent(array)`<br/>[ \[GET\] /events/{event_id} ](https://www.zoho.com/subscriptions/api/v1/#Events_Retrieve_an_event) | `event_id` | *Retrieving details of an existing event*<br/>**Placeholders to replace** : <br/> `event_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Events_Retrieve_an_event) |
`getEvents(array)`<br/>[ \[GET\] /events?filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Events_List_of_events) | `filter_by` \[default: `EventTime.All`\] | *Retrieving list of all events*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : `EventTime.(All  \|  LastMonth  \|  LastWeek  \|  Today  \|  ThisWeek  \|  ThisMonth  \|  CustomDate)`<br/> `EventType.(All  \|  subscription_created  \|  subscription_upgraded  \|  subscription_downgraded  \|  subscription_renewed  \|  subscription_cancelled  \|  subscription_expiring  \|  subscription_expired  \|  onetimeaddon_purchased  \|  subscription_activation  \|  subscription_reactivated  \|  invoice_notification  \|  payment_thankyou  \|  payment_declined  \|  payment_refunded  \|  trial_expiring  \|  subscription_cancelling  \|  card_expired  \|  card_expiring  \|  subscription_ahead  \|  subscription_deleted  \|  creditnote_added  \|  creditnote_updated  \|  creditnote_deleted  \|  card_deleted  \|  billing_date_changed)`<br/> `InvoiceDate.(ThisMonth  \|  PreviousMonth)`<br/> 2)`event_start_date` : Custom start date in YYYY-MM-DD format.<br/> 3)`event_end_date` : Custom end date in YYYY-MM-DD format.<br/> 4)`sort_column` : `event_time  \|  event_id  \|  notified_time`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Events_List_of_events) |
`addPayment(array)`<br/>[ \[POST\] /payments ](https://www.zoho.com/subscriptions/api/v1/#Payments_Create_a_payment) | `customer_id`<br/>`amount`<br/>`date`<br/>`payment_mode`<br/>`description`<br/>`reference_number`<br/>`invoices`<br/>`exchange_rate`<br/>`bank_charges`<br/>`tax_account_id`<br/>`account_id`<br/>`custom_fields` | *Recording a new offline payment for a customer*<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Payments_Create_a_payment)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/trans-payments.html#record-offline-payment) |
`getPayment(array)`<br/>[ \[GET\] /payments/{payment_id} ](https://www.zoho.com/subscriptions/api/v1/#Payments_Retrieve_a_payment) | `payment_id` | *Retrieve details of a particular payment*<br/>**Placeholders to replace** : <br/> `payment_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Payments_Retrieve_a_payment) |
`addPaymentRefunds(array)`<br/> \[POST\] /payments/{payment_id}/refunds  | `payment_id`<br/>`amount`<br/>`description` | *A new credit note is created for the amount to be refund. Refund is then made for the credit note.*<br/>**Placeholders to replace** : <br/> `payment_id`<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/trans-payments.html#refund-payment) |
`deletePayment(array)`<br/>[ \[DELETE\] /payments/{payment_id} ](https://www.zoho.com/subscriptions/api/v1/#Payments_Delete_a_payment) | `payment_id` | *Delete an existing payment.*<br/>**Placeholders to replace** : <br/> `payment_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Payments_Delete_a_payment)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/trans-payments.html#delete-payment) |
`addProductCustomFields(array)`<br/> \[POST\] /products/{product_id}/customfields  | `product_id`<br/>`custom_fields` | *Updating custom fields for a payment*<br/>*You can update custom fields only if they are configured*<br/>**Placeholders to replace** : <br/> `payment_id` |
`updatePayment(array)`<br/>[ \[PUT\] /payments/{payment_id} ](https://www.zoho.com/subscriptions/api/v1/#Payments_Update_a_payment) | `payment_id`<br/>`customer_id`<br/>`amount`<br/>`date`<br/>`payment_mode`<br/>`description`<br/>`reference_number`<br/>`invoices`<br/>`exchange_rate`<br/>`bank_charges`<br/>`tax_account_id`<br/>`account_id`<br/>`custom_fields` | *Update an existing new payment*<br/>**Placeholders to replace** : <br/> `payment_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Payments_Update_a_payment) |
`getWebhook(array)`<br/> \[GET\] /webhooks/{webhook_id}  | `webhook_id` | *Retrieving details of a particular webhooks that has been triggered*<br/>**PlaceHolders to replace** : <br/> `webhook_id` |
`getWebhooks()`<br/> \[GET\] /webhooks  | \[none\] | *Retrieving details of all webhooks triggered*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : `WebhookInitiatedTime.(All  \|  LastMonth  \|  LastWeek  \|  Today  \|  ThisWeek  \|  ThisMonth  \|  CustomDate)`<br/> 2)`status_filter` : all  \|  success  \|  failure<br/> 3)`sort_column` : last_updated_time  \|  webhook_id<br/> 4)`webhook_initiated_start_date` : Webhook Custom initiated start date. Needed if CustomDate option is chosen for filter_by param.<br/> 5)`webhook_initiated_end_date` : Webhook Custom initiated end date. Needed if CustomDate option is chosen for filter_by param. |
`updateCustomerContactPerson(array)`<br/>[ \[PUT\] /customers/{customer_id}/contactpersons/{contactperson_id} ](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Update_a_contact_person) | `customer_id`<br/>`contactperson_id`<br/>`salutation`<br/>`first_name`<br/>`last_name`<br/>`email`<br/>`phone`<br/>`mobile`<br/>`fax`<br/>`twitter`<br/>`designation`<br/>`department` | *Updating a particular contact person for a particular customer*<br/>**Placeholders to replace** : <br/> `customer_id`<br/> `contactperson_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Update_a_contact_person)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#edit-delete-contact-person) |
`addCustomerContactPersons(array)`<br/>[ \[POST\] /customers/{customer_id}/contactpersons ](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Create_a_contact_person) | `customer_id`<br/>`salutation`<br/>`first_name`<br/>`last_name`<br/>`email`<br/>`phone`<br/>`mobile`<br/>`fax`<br/>`twitter`<br/>`designation`<br/>`department` | *Creating a contact person for an existing customer*<br/>**Placeholders to replace** : <br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Create_a_contact_person)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#create-contact-person) |
`getCustomerContactPersons(array)`<br/>[ \[GET\] /customers/{customer_id}/contactpersons ](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_List_of_all_contact_persons) | `customer_id` | *List of all contact persons for a particular customer*<br/>**Placeholders to replace** :<br/> `customer_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_List_of_all_contact_persons)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html) |
`addCustomerPrimaryContactPerson(array)`<br/> \[POST\] /customers/{customer_id}/contactpersons/{contactperson_id}/primary  | `customer_id`<br/>`contactperson_id`<br/>`salutation`<br/>`first_name`<br/>`last_name`<br/>`email`<br/>`phone`<br/>`mobile`<br/>`fax`<br/>`twitter`<br/>`facebook` | *Mark a contact person as primary contact for a customer*<br/>**Placeholders to replace** : <br/> `customer_id`<br/> `contactperson_id` |
`deleteCustomerContactPerson(array)`<br/>[ \[DELETE\] /customers/{customer_id}/contactpersons/{contactperson_id} ](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Delete_a_contact_person) | `customer_id`<br/>`contactperson_id` | *Delete an existing contact person.*<br/>**Placeholders to replace** : <br/> `customer_id`<br/> `contactperson_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Delete_a_contact_person)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html#edit-delete-contact-person) |
`getCustomerContactPerson(array)`<br/>[ \[GET\] /customers/{customer_id}/contactpersons/{contactperson_id} ](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Retrieve_a_contact_person) | `customer_id`<br/>`contactperson_id` | *Retrieving details of a particular contact person for a particular customer*<br/>**Placeholders to replace** : <br/> `customer_id`<br/> `contactperson_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Contact-Persons_Retrieve_a_contact_person)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html) |
`deleteCustomerBankAccount(array)`<br/> \[DELETE\] /customers/{customer_id}/bankaccounts/{account_id}  | `customer_id`<br/>`account_id` | *To delete a particular Bank account of a particular customer*<br/>**PlaceHolders to replace** :<br/> `customer_id`<br/> `account_id` |
`updateCustomerBankAccount(array)`<br/> \[PUT\] /customers/{customer_id}/bankaccounts/{account_id}  | `customer_id`<br/>`account_id`<br/>`account_number`<br/>`routing_number`<br/>`account_type`<br/>`bank_name`<br/>`first_name`<br/>`last_name`<br/>`accept_license`<br/>`authorization_type`<br/>`payment_gateway` | *Editing the existing Bank Account information for a particular customer*<br/>**PlaceHolders to replace** : <br/> `customer_id` <br/> `account_id`<br/> |
`addCustomerBankAccounts(array)`<br/> \[POST\] /customers/{customer_id}/bankaccounts  | `customer_id`<br/>`account_number`<br/>`account_type`<br/>`routing_number`<br/>`bank_name`<br/>`first_name`<br/>`last_name`<br/>`accept_license`<br/>`authorization_type`<br/>`payment_gateway` | *Creating a new bank account for a particular customer*<br/>**PlaceHolder to replace** : <br/> `customer_id`<br/> |
`getCustomerBankAccount(array)`<br/>[ \[GET\] /customers/{customer_id}/bankaccounts/{account_id} ](https://www.zoho.com/subscriptions/api/v1/#Bank-Accounts_Retrieve_a_bank_account_information) | `customer_id`<br/>`account_id` | *Retrieving details of a particular bank account for a particular customer*<br/>**Placeholders to replace** : <br/> `customer_id` <br/> `account_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Bank-Accounts_Retrieve_a_bank_account_information)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/customer.html) |
`activateAddon(array)`<br/>[ \[POST\] /addons/{addon_code}/markasactive ](https://www.zoho.com/subscriptions/api/v1/#Addons_Mark_as_active) | `addon_code` | *Marking an addon as active*<br/>**Place Holders to replace** : <br/> ` addon_code `<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Mark_as_active)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#make-addon-inactive) |
`addAddon(array)`<br/>[ \[POST\] /addons ](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_package_type) | `name`<br/>`addon_code`<br/>`description`<br/>`applicable_to_all_plans`<br/>`plans`<br/>`type`<br/>`unit_name`<br/>`pricing_scheme` \[default: `package`\]<br/>`price_brackets`<br/>`interval_unit`<br/>`product_id`<br/>`account_id`<br/>`tax_id` | *Creating a new addon of* **package** pricing scheme.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_package_type)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#create-addon)<br/>To know more about [Pricing Scheme](https://www.zoho.com/subscriptions/help/addon.html#pricing-schemes) |
`getAddon(array)`<br/>[ \[GET\] /addons/{addon_code} ](https://www.zoho.com/subscriptions/api/v1/#Addons_Retrieve_an_addon) | `addon_code` | *Getting the Details of a particular add-on*<br/>**PlaceHolder to replace** :<br/> `addon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Retrieve_an_addon)<br/>[HELP DOC](http://zoho.com/subscriptions/help/addon.html) |
`getAddons(array)`<br/>[ \[GET\] /addons?filter_by={filter_by}&product_id={product_id}&plan_code={plan_code} ](https://www.zoho.com/subscriptions/api/v1/#Addons_List_all_addons) | `filter_by` \[default: `AddonStatus.All`\]<br/>`product_id`<br/>`plan_code` | *Listing all the add-ons*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : AddonStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  ONETIME  \|  RECURRING), search<br/> 2)`product_id` : Product ID of a product. Allows to list all plans under the product.<br/> 3)`plan_code` : Plan code. Filters add-ons associated to the provided plan code.<br/> 4)`search_text` : Any text value. Allows to search add-ons matching the text provided<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_List_all_addons)<br/>[HELP DOC](http://zoho.com/subscriptions/help/addon.html) |
`getProductAddons(array)`<br/> \[GET\] /addons?product_id={product_id}&filter_by={filter_by}&plan_code={plan_code}  | `product_id`<br/>`filter_by` \[default: `AddonStatus.All`\]<br/>`plan_code` | *Listing all the add-ons of a particular product*<br/>**PlaceHolders to replace**: `product_id`<br/>**Allowed filter_by values**<br/> 1)`filter_by` : AddonStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  ONETIME  \|  RECURRING), search<br/> 2)`product_id` : Product ID of a product. Allows to list all plans under the product.<br/> 3)`plan_code` : Plan code. Filters add-ons associated to the provided plan code.<br/> 4)`search_text` : Any text value. Allows to search add-ons matching the text provided<br/>[HELP DOC](http://zoho.com/subscriptions/help/addon.html) |
`addTireAddon(array)`<br/>[ \[POST\] /addons ](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_tier_type) | `name`<br/>`addon_code`<br/>`description`<br/>`applicable_to_all_plans`<br/>`plans`<br/>`type`<br/>`pricing_scheme` \[default: `tire`\]<br/>`unit_name`<br/>`price_brackets`<br/>`interval_unit`<br/>`product_id`<br/>`account_id`<br/>`tax_id` | *Creating a new addon of* **tier** pricing scheme.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_tier_type)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#create-addon)<br/>To know more about [Pricing Scheme](https://www.zoho.com/subscriptions/help/addon.html#pricing-schemes) |
`addUnitAddon(array)`<br/>[ \[POST\] /addons ](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_unit_type) | `name`<br/>`addon_code`<br/>`description`<br/>`applicable_to_all_plans`<br/>`plans`<br/>`type`<br/>`pricing_scheme` \[default: `unit`\]<br/>`unit_name`<br/>`price_brackets`<br/>`interval_unit`<br/>`product_id`<br/>`account_id`<br/>`tax_id` | *Creating a new addon of* **unit** pricing scheme.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_unit_type)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#create-addon)<br/>To know more about [Pricing Scheme](https://www.zoho.com/subscriptions/help/addon.html#pricing-schemes) |
`updateAddon(array)`<br/>[ \[PUT\] /addons/{addon_code} ](https://www.zoho.com/subscriptions/api/v1/#Addons_Update_an_addon) | `addon_code`<br/>`name`<br/>`unit_name`<br/>`pricing_scheme`<br/>`price_brackets`<br/>`type`<br/>`interval_unit`<br/>`applicable_to_all_plans`<br/>`plans`<br/>`product_id`<br/>`account_id`<br/>`description`<br/>`tax_id` | *Updating the details of a particular addon*<br/>**PlaceHolder to replace** : <br/> `addon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Update_an_addon)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#edit-addon) |
`getPlanAddons(array)`<br/> \[GET\] /addons?plan_code={plan_code}&filter_by={filter_by}  | `plan_code`<br/>`filter_by` \[default: `AddonStatus.All`\] | *Listing all the add-ons associated to a particular plan*<br/>**PlaceHolders to replace**: <br/> `plan_code`<br/>**Allowed filter_by values**<br/> 1)`filter_by` : AddonStatus.(All  \|  ACTIVE  \|  INACTIVE  \|  ONETIME  \|  RECURRING), search<br/> 2)`product_id` : Product ID of a product. Allows to list all plans under the product.<br/> 3)`plan_code` : Plan code. Filters add-ons associated to the provided plan code.<br/> 4)`search_text` : Any text value. Allows to search add-ons matching the text provided<br/>[HELP DOC](http://zoho.com/subscriptions/help/addon.html) |
`addVolumeAddon(array)`<br/>[ \[POST\] /addons ](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_volume_type) | `name`<br/>`addon_code`<br/>`description`<br/>`applicable_to_all_plans`<br/>`plans`<br/>`type`<br/>`pricing_scheme` \[default: `volume`\]<br/>`unit_name`<br/>`price_brackets`<br/>`interval_unit`<br/>`product_id`<br/>`account_id`<br/>`tax_id` | *Creating a new addon of* **volume** pricing scheme.<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Create_an_addon_of_volume_type)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#create-addon)<br/>To know more about [Pricing Scheme](https://www.zoho.com/subscriptions/help/addon.html#pricing-schemes) |
`deleteAddon(array)`<br/>[ \[DELETE\] /addons/{addon_code} ](https://www.zoho.com/subscriptions/api/v1/#Addons_Delete_an_addon) | `addon_code` | *Deleting a particular addon*<br/>**PlaceHolder to replace** : <br/> <br/> `addon_code`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Delete_an_addon)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#delete-addon) |
`deactivateAddon(array)`<br/>[ \[POST\] /addons/{addon_code}/markasinactive ](https://www.zoho.com/subscriptions/api/v1/#Addons_Mark_as_inactive) | `addon_code` | *Marking an addon as inactive*<br/>**Place Holders to replace** : <br/> ` addon_code `<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Addons_Mark_as_inactive)<br/>[HELP DOC](https://www.zoho.com/subscriptions/help/addon.html#make-addon-inactive) |
`addInvoiceCollect(array)`<br/>[ \[POST\] /invoices/{invoice_id}/collect ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Collect_charge_via_credit_card) | `invoice_id`<br/>`card_id` | *Charge a customer for an invoice with an existing card*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Collect_charge_via_credit_card) |
`updateInvoiceAddress(array)`<br/>[ \[PUT\] /invoices/{invoice_id}/address ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Update_address) | `invoice_id`<br/>`billing_address`<br/>`shipping_address` | *Update shipping and billing address of an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Update_address) |
`getInvoice(array)`<br/>[ \[GET\] /invoices/{invoice_id} ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Retrieve_an_invoice) | `invoice_id` | *Retrieve details of an existing invoice*<br/>**Placeholders to replace** : `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Retrieve_an_invoice) |
`downloadInvoiceAsPdf(array)`<br/> \[GET\] /invoices/{invoice_id}?accept={accept}  | `invoice_id`<br/>`accept` \[default: `pdf`\] | *Download a particular invoice as a pdf file*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`setInvoicesAsSent(array)`<br/> \[POST\] /invoices/sent?invoice_ids={invoice_ids}  | `invoice_ids` | *Bulk making invoices as Sent*<br/>**Placeholders to replace** : <br/> `invoice_ids` |
`getInvoices(array)`<br/>[ \[GET\] /invoices?filter_by={filter_by} ](https://www.zoho.com/subscriptions/api/v1/#Invoices_List_all_invoices) | `filter_by` \[default: `Status.All`\] | *List of all invoices*<br/>**Allowed parameters and its allowed values** :<br/> 1)`filter_by` : `Status.(All  \|  Sent  \|  Draft  \|  OverDue  \|  Paid  \|  Void  \|  Unpaid  \|  PartiallyPaid  \|  Viewed)`<br/> `ACHPaymentInitiated`<br/> `InvoiceDate.(ThisMonth  \|  PreviousMonth)`<br/> 2)`customer_id` : Customer ID of a customer. Lists all invoices of a customer.<br/> 3)`subscription_id` : Subscription ID of a subscription. Lists all invoices of a subscription.<br/> <br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_List_all_invoices) |
`addInvoiceSalesPerson(array)`<br/>[ \[POST\] /invoices/{invoice_id}/salesperson ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Email_an_invoice) | `invoice_id`<br/>`salesperson_name` | *Update sales person for a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Email_an_invoice) |
`addInvoiceComments(array)`<br/> \[POST\] /invoices/{invoice_id}/comments  | `invoice_id`<br/>`description` | *Add comments to an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`enableInvoicePaymentReminder(array)`<br/> \[POST\] /invoices/{invoice_id}/paymentreminder/enable  | `invoice_id` | *Enabling payment reminder for a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`setInvoiceAsSent(array)`<br/> \[POST\] /invoices/{invoice_id}/sent  | `invoice_id` | *Making a draft invoice as Sent*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`openInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/convertoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) |
`getInvoiceRecentActivities(array)`<br/> \[GET\] /invoices/{invoice_id}/recentactivities  | `invoice_id` | *Retrieving recent activities of a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`emailInvoice(array)`<br/> \[POST\] /invoices/{invoice_id}/email  | `invoice_id`<br/>`to_mail_ids`<br/>`cc_mail_ids`<br/>`subject`<br/>`body` | *Email a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`deleteInvoiceComment(array)`<br/> \[DELETE\] /invoices/{invoice_id}/comments/{comment_id}  | `invoice_id`<br/>`comment_id` | *Deleting a particular comment of an invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/> `comment_id` |
`addInvoiceCustomFields(array)`<br/>[ \[POST\] /invoices/{invoice_id}/customfields ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Update_Custom_Fields) | `invoice_id`<br/>`custom_fields` | *Updating custom fields for an invoice*<br/>*You can update custom fields only if they are configured*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Update_Custom_Fields) |
`disableInvoicePaymentReminder(array)`<br/> \[POST\] /invoices/{invoice_id}/paymentreminder/disable  | `invoice_id` | *Stop all payment reminder for a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`getBankAccountPendingInvoices(array)`<br/> \[GET\] /bankaccounts/{account_id}/pendinginvoices  | `account_id` | *Retrieving ACH pending invoices of a particular bank account*<br/>**Placeholders to replace** : <br/> `account_id` |
`getInvoiceComments(array)`<br/> \[GET\] /invoices/{invoice_id}/comments  | `invoice_id` | *Retrieving comments of a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`writeoffInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/writeoff ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Write_off) | `invoice_id` | *Write off a particularinvoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Write_off) |
`cancelInvoiceWriteoff(array)`<br/>[ \[POST\] /invoices/{invoice_id}/cancelwriteoff ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Cancel_Write_off) | `invoice_id` | *Cancel write off for a particular invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Cancel_Write_off) |
`deleteInvoiceCreditsApplied(array)`<br/> \[DELETE\] /invoices/{invoice_id}/creditsapplied/{creditnotes_invoice_id}  | `invoice_id`<br/>`creditnotes_invoice_id` | *Deleting an existing credit applied to the invoice.*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/> `creditnotes_invoice_id` |
`deleteInvoice(array)`<br/> \[DELETE\] /invoices/{invoice_id}  | `invoice_id` | *Deleting an existing invoice.*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[HELP DOC](https://www.zoho.com/subscriptions/kb/invoices/delete-an-invoice.html) |
`addBankAccountCharge(array)`<br/>[ \[POST\] /invoices/{invoice_id}/collect ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Collect_charge_via_bank_account) | `invoice_id`<br/>`account_id` | *Charge a customer for an invoice with an existing bank account*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Collect_charge_via_bank_account) |
`setInvoicePaymentDate(array)`<br/> \[POST\] /invoices/{invoice_id}/paymentdate  | `invoice_id`<br/>`payment_expected_date`<br/>`stop_reminder_until_payment_expected_date` | *Update expected payment date fop the invoice. Reminders won't be sent till the date specified*<br/>**Placeholders to replace** : <br/> `invoice_id` |
`voidInvoice(array)`<br/>[ \[POST\] /invoices/{invoice_id}/void ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_void) | `invoice_id` | *Making an invoice as void*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_void) |
`addInvoiceCredits(array)`<br/> \[POST\] /invoices/{invoice_id}/credits  | `invoice_id`<br/>`apply_creditnotes` | *Use the customer's open credits to the invoice*<br/>**PlaceHolders to be replaced :**<br/> `invoice_id`<br/> |
`addInvoiceLineItems(array)`<br/> \[POST\] /invoices/{invoice_id}/lineitems  | `invoice_id`<br/>`invoice_items` | *Add items to a pending invoice*<br/>**Placeholders to replace** : <br/> `invoice_id`<br/>[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Add_items_to_a_pending_invoice) |
`getPricebooks()`<br/> \[GET\] /pricebooks  | \[none\] | *Retreiving list of all pricebooks* |
`deleteOrganization(array)`<br/> \[DELETE\] /organizations/{organization_id}  | `organization_id` | *Deleting a particular Organization*<br/>**PlaceHolders to be replaced :**<br/> `organization_id` |
`getOrganizations()`<br/> \[GET\] /organizations  | \[none\] | *Retrieving Details of all Organizations* |