imlolman/zohobooks

由 https://github.com/imlolman/php-sdk-generator-from-postman-sdk 生成的不官方 ZohoBooks PHP SDK

0.0.8 2024-05-20 10:44 UTC

This package is auto-updated.

Last update: 2024-09-21 17:41:42 UTC


README

这是一个使用我创建的 https://github.com/imlolman/php-sdk-generator-from-postman-sdk 工具,通过 ZohoBooks API 的 Postman 集合生成的 PHP SDK。然后修改以与 ZohoBooks API 一起使用。此 SDK 不是由 ZohoBooks 官方支持的。

安装

composer require imlolman/zohobooks

使用方法

1: 我们需要代码来获取访问和刷新令牌。我们可以通过在浏览器中访问以下 URL 并授权 zohoBooks 来获取代码,你将获得代码作为回报:https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id={{{{ CLIENT ID HERE }}}}&scope=ZohoBooks.fullaccess.all&redirect_uri={{{{ YOUR REDIRECT URI HERE }}}}&prompt=consent&access_type=offline

2: 访问 URL 后,您将获得一个授权代码,您可以使用它通过向以下 URL 发送 POST 请求来获取访问和刷新令牌:https://accounts.zoho.com/oauth/v2/token?client_id={{{{ CLIENT ID HERE }}}}&grant_type=authorization_code&client_secret={{{{ CLIENT SECRET HERE }}}}&redirect_uri={{{{ REDIRECT URI }}}}&code={{{{ AUTHORIZATION CODE FROM ABOVE REQUEST }}}}

3: 获取令牌后,使用以下代码

<?php
require_once __DIR__ . '/vendor/autoload.php';

use ZohoBooks\ZohoBooks; // For SDK initialization
use ZohoBooks\SDK\Contacts; // For Contacts API
use ZohoBooks\SDK\Invoices; // For Invoices API
// You can use any other API from the list of APIs in the SDK

// Retrive the config from .env file, database, or you can pass the config array directly
$config = [
  "CLIENT_ID" => "", // Your client id from Zoho Developer Console
  "CLIENT_SECRET" => "", // Your client secret from Zoho Developer Console
  "REDIRECT_URI" => "", // Your redirect uri from Zoho Developer Console
  "ACCESS_TOKEN" => "", // Your access token to be genetated using OAuth2
  "REFRESH_TOKEN" => "", // Your refresh token to be genetated using OAuth2
  "ORGANIZATION_ID" => "", // Your organization id from ZohoBooks
  "ACCESS_TOKEN_EXPIRY" => "", // Your access token to be genetated using OAuth2
  "ZOHO_BOOKS_DOMAIN" => "www.zohoapis.com", // Your ZohoBooks domain (default: www.zohoapis.com), can bewww.zohoapis.in,www.zohoapis.eu, etc.
]

// Initialize the SDK
$newConfig = ZohoBooks::init($config)->getConfig();

// If the access token is expired, it will automatically refresh the token
if ($newConfig['ACCESS_TOKEN_EXPIRY'] != $config['ACCESS_TOKEN_EXPIRY']) {
    // save it to the same location you have saved the config so that it can be used in the next request
}

// You can use any API from the list of APIs in the SDK
$contacts = new Contacts();
$contacts->list_contacts();

$invoices = new Invoices();
$invoices->list_invoices();

$contacts->create_a_contact([
  'contact_name' => 'John Doe',
  'company_name' => 'John Doe Company',
  'website' => 'https://johndoe.com',
  'billing_address' => [
    'address' => '123 Main St',
    'city' => 'New York',
    'state' => 'NY',
    'zip' => '10001',
    'country' => 'US',
  ],
  'shipping_address' => [
    'address' => '123 Main St',
    'city' => 'New York',
    'state' => 'NY',
    'zip' => '10001',
    'country' => 'US',
  ]
])

// For more information about the parameters, please refer to the official documentation at https://www.zoho.com/books/api/v3/

目录

销售订单

创建一个销售订单

参数

  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->create_a_sales_order($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出销售订单

参数

  • 不需要参数。

示例

$salesorders = new SalesOrders();
$salesorders->list_sales_orders();

更新一个销售订单

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_a_sales_order($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个销售订单

参数

  • $salesorderid

示例

$salesorders = new SalesOrders();
$salesorders->get_a_sales_order($salesorderid);

删除一个销售订单

参数

  • $salesorderid

示例

$salesorders = new SalesOrders();
$salesorders->delete_a_sales_order($salesorderid);

标记销售订单为打开

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->mark_a_sales_order_as_open($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记销售订单为作废

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->mark_a_sales_order_as_void($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新销售订单子状态

参数

  • $salesorderid
  • $statuscode
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_a_sales_order_sub_status($salesorderid, $statuscode, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送销售订单电子邮件

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->email_a_sales_order($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取销售订单电子邮件内容

参数

  • $salesorderid

示例

$salesorders = new SalesOrders();
$salesorders->get_sales_order_email_content($salesorderid);

提交销售订单以供批准

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->submit_a_sales_order_for_approval($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准销售订单

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->approve_a_sales_order($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批量导出销售订单

参数

  • 不需要参数。

示例

$salesorders = new SalesOrders();
$salesorders->bulk_export_sales_orders();

批量打印销售订单

参数

  • 不需要参数。

示例

$salesorders = new SalesOrders();
$salesorders->bulk_print_sales_orders();

更新账单地址

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_billing_address($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新发货地址

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_shipping_address($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出销售订单模板

参数

  • 不需要参数。

示例

$salesorders = new SalesOrders();
$salesorders->list_sales_order_templates();

更新销售订单模板

参数

  • $salesorderid
  • $templateid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_sales_order_template($salesorderid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

向销售订单添加附件

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->add_attachment_to_a_sales_order($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新附件偏好

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_attachment_preference($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取销售订单附件

参数

  • $salesorderid

示例

$salesorders = new SalesOrders();
$salesorders->get_a_sales_order_attachment($salesorderid);

删除附件

参数

  • $salesorderid

示例

$salesorders = new SalesOrders();
$salesorders->delete_an_attachment($salesorderid);

添加评论

参数

  • $salesorderid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->add_comment($salesorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出销售订单评论和历史记录

参数

  • $salesorderid

示例

$salesorders = new SalesOrders();
$salesorders->list_sales_order_comments_and_history($salesorderid);

更新评论

参数

  • $salesorderid
  • $commentid
  • $data = []

示例

$salesorders = new SalesOrders();
$salesorders->update_comment($salesorderid, $commentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除评论

参数

  • $salesorderid
  • $commentid

示例

$salesorders = new SalesOrders();
$salesorders->delete_a_comment($salesorderid, $commentid);

组织

创建组织

参数

  • $data = []

示例

$organizations = new Organizations();
$organizations->create_an_organization($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取组织详情

参数

  • 不需要参数。

示例

$organizations = new Organizations();
$organizations->get_organization_details();

删除组织

参数

  • 不需要参数。

示例

$organizations = new Organizations();
$organizations->delete_an_organization();

获取组织

参数

  • $organizationid

示例

$organizations = new Organizations();
$organizations->get_organization($organizationid);

更新组织

参数

  • $organizationid
  • $data = []

示例

$organizations = new Organizations();
$organizations->update_organization($organizationid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

银行规则

创建规则

参数

  • $data = []

示例

$bankrules = new BankRules();
$bankrules->create_a_rule($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取规则列表

参数

  • 不需要参数。

示例

$bankrules = new BankRules();
$bankrules->get_rules_list();

更新规则

参数

  • $ruleid
  • $data = []

示例

$bankrules = new BankRules();
$bankrules->update_a_rule($ruleid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取规则

参数

  • $ruleid

示例

$bankrules = new BankRules();
$bankrules->get_a_rule($ruleid);

删除规则

参数

  • $ruleid

示例

$bankrules = new BankRules();
$bankrules->delete_a_rule($ruleid);

银行账户

创建银行账户

参数

  • $data = []

示例

$bankaccounts = new BankAccounts();
$bankaccounts->create_a_bank_account($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

查看账户列表

参数

  • 不需要参数。

示例

$bankaccounts = new BankAccounts();
$bankaccounts->list_view_of_accounts();

更新银行账户

参数

  • $accountid
  • $data = []

示例

$bankaccounts = new BankAccounts();
$bankaccounts->update_bank_account($accountid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取账户详情

参数

  • $accountid

示例

$bankaccounts = new BankAccounts();
$bankaccounts->get_account_details($accountid);

删除账户

参数

  • $accountid

示例

$bankaccounts = new BankAccounts();
$bankaccounts->delete_an_account($accountid);

停用账户

参数

  • $accountid
  • $data = []

示例

$bankaccounts = new BankAccounts();
$bankaccounts->deactivate_account($accountid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

激活账户

参数

  • $accountid
  • $data = []

示例

$bankaccounts = new BankAccounts();
$bankaccounts->activate_account($accountid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

导入银行信用卡对账单

参数

  • $data = []

示例

$bankaccounts = new BankAccounts();
$bankaccounts->import_a_bank_credit_card_statement($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取最后导入的对账单

参数

  • $accountid

示例

$bankaccounts = new BankAccounts();
$bankaccounts->get_last_imported_statement($accountid);

删除最后导入的对账单

参数

  • $accountid
  • $statementid

示例

$bankaccounts = new BankAccounts();
$bankaccounts->delete_last_imported_statement($accountid, $statementid);

项目

创建项目

参数

  • $data = []

示例

$projects = new Projects();
$projects->create_a_project($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出项目

参数

  • 不需要参数。

示例

$projects = new Projects();
$projects->list_projects();

更新项目

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->update_project($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取项目

参数

  • $projectid

示例

$projects = new Projects();
$projects->get_a_project($projectid);

删除项目

参数

  • $projectid

示例

$projects = new Projects();
$projects->delete_project($projectid);

激活项目

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->activate_project($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

停用项目

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->inactivate_a_project($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

克隆项目

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->clone_project($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

分配用户

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->assign_users($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出用户

参数

  • $projectid

示例

$projects = new Projects();
$projects->list_users($projectid);

邀请用户

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->invite_user($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新用户

参数

  • $projectid
  • $userid
  • $data = []

示例

$projects = new Projects();
$projects->update_user($projectid, $userid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取用户

参数

  • $projectid
  • $userid

示例

$projects = new Projects();
$projects->get_a_user($projectid, $userid);

删除用户

参数

  • $projectid
  • $userid

示例

$projects = new Projects();
$projects->delete_user($projectid, $userid);

发表评论

参数

  • $projectid
  • $data = []

示例

$projects = new Projects();
$projects->post_comment($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出评论

参数

  • $projectid

示例

$projects = new Projects();
$projects->list_comments($projectid);

删除评论

参数

  • $projectid
  • $commentid

示例

$projects = new Projects();
$projects->delete_comment($projectid, $commentid);

列出发票

参数

  • $projectid

示例

$projects = new Projects();
$projects->list_invoices($projectid);

周期性账单

创建周期性账单

参数

  • $data = []

示例

$recurringbills = new RecurringBills();
$recurringbills->create_a_recurring_bill($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出周期性账单

参数

  • 不需要参数。

示例

$recurringbills = new RecurringBills();
$recurringbills->list_recurring_bills();

更新周期性账单

参数

  • $recurringbillid
  • $data = []

示例

$recurringbills = new RecurringBills();
$recurringbills->update_a_recurring_bill($recurringbillid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取周期性账单

参数

  • $recurringbillid

示例

$recurringbills = new RecurringBills();
$recurringbills->get_a_recurring_bill($recurringbillid);

删除周期性账单

参数

  • $recurringbillid

示例

$recurringbills = new RecurringBills();
$recurringbills->delete_a_recurring_bill($recurringbillid);

停止周期性账单

参数

  • $recurringbillid
  • $data = []

示例

$recurringbills = new RecurringBills();
$recurringbills->stop_a_recurring_bill($recurringbillid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

恢复周期性账单

参数

  • $recurringbillid
  • $data = []

示例

$recurringbills = new RecurringBills();
$recurringbills->resume_a_recurring_bill($recurringbillid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出周期性账单历史记录

参数

  • $recurringbillid

示例

$recurringbills = new RecurringBills();
$recurringbills->list_recurring_bill_history($recurringbillid);

自定义模块

创建自定义模块

参数

  • $modulename
  • $data = []

示例

$custommodules = new CustomModules();
$custommodules->create_custom_modules($modulename, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批量更新自定义模块

参数

  • $modulename
  • $data = []

示例

$custommodules = new CustomModules();
$custommodules->bulk_update_custom_module($modulename, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取自定义模块的记录列表

参数

  • $modulename

示例

$custommodules = new CustomModules();
$custommodules->get_record_list_of_a_custom_module($modulename);

删除自定义模块

参数

  • $modulename

示例

$custommodules = new CustomModules();
$custommodules->delete_custom_modules($modulename);

更新自定义模块

参数

  • $modulename
  • $moduleid
  • $data = []

示例

$custommodules = new CustomModules();
$custommodules->update_custom_module($modulename, $moduleid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取单个记录详情

参数

  • $modulename
  • $moduleid

示例

$custommodules = new CustomModules();
$custommodules->get_individual_record_details($modulename, $moduleid);

删除单个记录

参数

  • $modulename
  • $moduleid

示例

$custommodules = new CustomModules();
$custommodules->delete_individual_records($modulename, $moduleid);

周期性费用

创建周期性费用

参数

  • $data = []

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->create_a_recurring_expense($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出周期性费用

参数

  • 不需要参数。

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->list_recurring_expenses();

更新周期性费用

参数

  • $recurringexpenseid
  • $data = []

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->update_a_recurring_expense($recurringexpenseid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取周期性费用

参数

  • $recurringexpenseid

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->get_a_recurring_expense($recurringexpenseid);

删除周期性费用

参数

  • $recurringexpenseid

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->delete_a_recurring_expense($recurringexpenseid);

停止周期性费用

参数

  • $recurringexpenseid
  • $data = []

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->stop_a_recurring_expense($recurringexpenseid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

恢复周期性费用

参数

  • $recurringexpenseid
  • $data = []

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->resume_a_recurring_expense($recurringexpenseid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出创建的子费用

参数

  • $recurringexpenseid

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->list_child_expenses_created($recurringexpenseid);

列出周期性费用历史记录

参数

  • $recurringexpenseid

示例

$recurringexpenses = new RecurringExpenses();
$recurringexpenses->list_recurring_expense_history($recurringexpenseid);

发票

创建发票

参数

  • $data = []

示例

$invoices = new Invoices();
$invoices->create_an_invoice($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出发票

参数

  • 不需要参数。

示例

$invoices = new Invoices();
$invoices->list_invoices();

更新发票

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->update_an_invoice($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取发票

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->get_an_invoice($invoiceid);

删除发票

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->delete_an_invoice($invoiceid);

标记发票为已发送

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->mark_an_invoice_as_sent($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

作废发票

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->void_an_invoice($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记为草稿

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->mark_as_draft($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送发票电子邮件

参数

  • $data = []

示例

$invoices = new Invoices();
$invoices->email_invoices($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交发票以审批

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->submit_an_invoice_for_approval($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准发票

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->approve_an_invoice($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送发票电子邮件

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->email_an_invoice($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取发票电子邮件内容

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->get_invoice_email_content($invoiceid);

提醒客户

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->remind_customer($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取付款提醒邮件内容

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->get_payment_reminder_mail_content($invoiceid);

批量发票提醒

参数

  • $data = []

示例

$invoices = new Invoices();
$invoices->bulk_invoice_reminder($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批量导出发票

参数

  • 不需要参数。

示例

$invoices = new Invoices();
$invoices->bulk_export_invoices();

批量打印发票

参数

  • 不需要参数。

示例

$invoices = new Invoices();
$invoices->bulk_print_invoices();

禁用付款提醒

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->disable_payment_reminder($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

启用付款提醒

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->enable_payment_reminder($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

冲销发票

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->write_off_invoice($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

取消冲销

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->cancel_write_off($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新账单地址

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->update_billing_address($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新发货地址

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->update_shipping_address($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出发票模板

参数

  • 不需要参数。

示例

$invoices = new Invoices();
$invoices->list_invoice_templates();

更新发票模板

参数

  • $invoiceid
  • $templateid
  • $data = []

示例

$invoices = new Invoices();
$invoices->update_invoice_template($invoiceid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出发票付款

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->list_invoice_payments($invoiceid);

列出已应用的信用额度

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->list_credits_applied($invoiceid);

应用信用额度

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->apply_credits($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除付款

参数

  • $invoiceid
  • $invoicepaymentid

示例

$invoices = new Invoices();
$invoices->delete_a_payment($invoiceid, $invoicepaymentid);

删除已应用的信用额度

参数

  • $invoiceid
  • $creditnotesinvoiceid

示例

$invoices = new Invoices();
$invoices->delete_applied_credit($invoiceid, $creditnotesinvoiceid);

将附件添加到发票

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->add_attachment_to_an_invoice($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新附件偏好

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->update_attachment_preference($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取发票附件

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->get_an_invoice_attachment($invoiceid);

删除附件

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->delete_an_attachment($invoiceid);

删除费用收据

参数

  • $expenseid

示例

$invoices = new Invoices();
$invoices->delete_the_expense_receipt($expenseid);

添加评论

参数

  • $invoiceid
  • $data = []

示例

$invoices = new Invoices();
$invoices->add_comment($invoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出发票评论和历史记录

参数

  • $invoiceid

示例

$invoices = new Invoices();
$invoices->list_invoice_comments_and_history($invoiceid);

更新评论

参数

  • $invoiceid
  • $commentid
  • $data = []

示例

$invoices = new Invoices();
$invoices->update_comment($invoiceid, $commentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除评论

参数

  • $invoiceid
  • $commentid

示例

$invoices = new Invoices();
$invoices->delete_a_comment($invoiceid, $commentid);

联系人

创建联系人

参数

  • $data = []

示例

$contacts = new Contacts();
$contacts->create_a_contact($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出联系人

参数

  • 不需要参数。

示例

$contacts = new Contacts();
$contacts->list_contacts();

更新联系人

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->update_a_contact($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取联系人

参数

  • $contactid

示例

$contacts = new Contacts();
$contacts->get_contact($contactid);

删除联系人

参数

  • $contactid

示例

$contacts = new Contacts();
$contacts->delete_a_contact($contactid);

标记为活动状态

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->mark_as_active($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记为非活动状态

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->mark_as_inactive($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

启用门户访问

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->enable_portal_access($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

启用支付提醒

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->enable_payment_reminders($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

禁用支付提醒

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->disable_payment_reminders($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送电子邮件报表

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->email_statement($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取报表邮件内容

参数

  • $contactid

示例

$contacts = new Contacts();
$contacts->get_statement_mail_content($contactid);

发送联系人的电子邮件

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->email_contact($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出评论

参数

  • $contactid

示例

$contacts = new Contacts();
$contacts->list_comments($contactid);

添加附加地址

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->add_additional_address($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取联系人地址

参数

  • $contactid

示例

$contacts = new Contacts();
$contacts->get_contact_addresses($contactid);

编辑附加地址

参数

  • $contactid
  • $addressid
  • $data = []

示例

$contacts = new Contacts();
$contacts->edit_additional_address($contactid, $addressid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除附加地址

参数

  • $contactid
  • $addressid

示例

$contacts = new Contacts();
$contacts->delete_additional_address($contactid, $addressid);

列出退款

参数

  • $contactid

示例

$contacts = new Contacts();
$contacts->list_refunds($contactid);

跟踪1099报表

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->track_1099($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

取消跟踪1099报表

参数

  • $contactid
  • $data = []

示例

$contacts = new Contacts();
$contacts->untrack_1099($contactid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

供应商信用额度

创建供应商信用额度

参数

  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->create_a_vendor_credit($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出供应商信用额度

参数

  • 不需要参数。

示例

$vendorcredits = new VendorCredits();
$vendorcredits->list_vendor_credits();

更新供应商信用额度

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->update_vendor_credit($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取供应商信用额度

参数

  • $vendorcreditid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->get_vendor_credit($vendorcreditid);

删除供应商信用额度

参数

  • $vendorcreditid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->delete_vendor_credit($vendorcreditid);

转换为开放状态

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->convert_to_open($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

作废供应商信用额度

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->void_vendor_credit($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交供应商信用额度以供批准

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->submit_a_vendor_credit_for_approval($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准供应商信用额度

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->approve_a_vendor_credit($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将信用应用于账单

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->apply_credits_to_a_bill($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出已冲销的账单

参数

  • $vendorcreditid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->list_bills_credited($vendorcreditid);

删除已冲销的账单

参数

  • $vendorcreditid
  • $vendorcreditbillid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->delete_bills_credited($vendorcreditid, $vendorcreditbillid);

退款供应商信用额度

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->refund_a_vendor_credit($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出供应商信用额度退款

参数

  • $vendorcreditid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->list_refunds_of_a_vendor_credit($vendorcreditid);

更新供应商信用额度退款

参数

  • $vendorcreditid
  • $vendorcreditrefundid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->update_vendor_credit_refund($vendorcreditid, $vendorcreditrefundid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取供应商信用额度退款

参数

  • $vendorcreditid
  • $vendorcreditrefundid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->get_vendor_credit_refund($vendorcreditid, $vendorcreditrefundid);

删除供应商信用额度退款

参数

  • $vendorcreditid
  • $vendorcreditrefundid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->delete_vendor_credit_refund($vendorcreditid, $vendorcreditrefundid);

列出供应商信用额度退款列表

参数

  • 不需要参数。

示例

$vendorcredits = new VendorCredits();
$vendorcredits->list_vendor_credit_refunds();

添加评论

参数

  • $vendorcreditid
  • $data = []

示例

$vendorcredits = new VendorCredits();
$vendorcredits->add_a_comment($vendorcreditid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出供应商信用额度评论和历史记录

参数

  • $vendorcreditid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->list_vendor_credit_comments_and_history($vendorcreditid);

删除评论

参数

  • $vendorcreditid
  • $commentid

示例

$vendorcredits = new VendorCredits();
$vendorcredits->delete_a_comment($vendorcreditid, $commentid);

周期性发票

创建周期性发票

参数

  • $data = []

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->create_a_recurring_invoice($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出所有周期性发票

参数

  • 不需要参数。

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->list_all_recurring_invoice();

更新周期性发票

参数

  • $recurringinvoiceid
  • $data = []

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->update_recurring_invoice($recurringinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取周期性发票

参数

  • $recurringinvoiceid

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->get_a_recurring_invoice($recurringinvoiceid);

删除周期性发票

参数

  • $recurringinvoiceid

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->delete_a_recurring_invoice($recurringinvoiceid);

停止周期性发票

参数

  • $recurringinvoiceid
  • $data = []

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->stop_a_recurring_invoice($recurringinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

恢复周期性发票

参数

  • $recurringinvoiceid
  • $data = []

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->resume_a_recurring_invoice($recurringinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新定期发票模板

参数

  • $recurringinvoiceid
  • $templateid
  • $data = []

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->update_recurring_invoice_template($recurringinvoiceid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出定期发票历史

参数

  • $recurringinvoiceid

示例

$recurringinvoices = new RecurringInvoices();
$recurringinvoices->list_recurring_invoice_history($recurringinvoiceid);

支出

创建支出

参数

  • $data = []

示例

$expenses = new Expenses();
$expenses->create_an_expense($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出支出

参数

  • 不需要参数。

示例

$expenses = new Expenses();
$expenses->list_expenses();

更新支出

参数

  • $expenseid
  • $data = []

示例

$expenses = new Expenses();
$expenses->update_an_expense($expenseid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取支出

参数

  • $expenseid

示例

$expenses = new Expenses();
$expenses->get_an_expense($expenseid);

删除支出

参数

  • $expenseid

示例

$expenses = new Expenses();
$expenses->delete_an_expense($expenseid);

列出支出历史和评论

参数

  • $expenseid

示例

$expenses = new Expenses();
$expenses->list_expense_history_and_comments($expenseid);

创建员工

参数

  • $data = []

示例

$expenses = new Expenses();
$expenses->create_an_employee($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出员工

参数

  • 不需要参数。

示例

$expenses = new Expenses();
$expenses->list_employees();

获取员工

参数

  • $employeeid

示例

$expenses = new Expenses();
$expenses->get_an_employee($employeeid);

删除员工

参数

  • $employeeid

示例

$expenses = new Expenses();
$expenses->delete_an_employee($employeeid);

将收据添加到支出

参数

  • $expenseid
  • $data = []

示例

$expenses = new Expenses();
$expenses->add_receipt_to_an_expense($expenseid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取支出收据

参数

  • $expenseid

示例

$expenses = new Expenses();
$expenses->get_an_expense_receipt($expenseid);

删除收据

参数

  • $expenseid

示例

$expenses = new Expenses();
$expenses->delete_a_receipt($expenseid);

货币

创建货币

参数

  • $data = []

示例

$currency = new Currency();
$currency->create_a_currency($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出货币

参数

  • 不需要参数。

示例

$currency = new Currency();
$currency->list_currencies();

更新货币

参数

  • $currencyid
  • $data = []

示例

$currency = new Currency();
$currency->update_a_currency($currencyid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取货币

参数

  • $currencyid

示例

$currency = new Currency();
$currency->get_a_currency($currencyid);

删除货币

参数

  • $currencyid

示例

$currency = new Currency();
$currency->delete_a_currency($currencyid);

创建汇率

参数

  • $currencyid
  • $data = []

示例

$currency = new Currency();
$currency->create_an_exchange_rate($currencyid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出汇率

参数

  • $currencyid

示例

$currency = new Currency();
$currency->list_exchange_rates($currencyid);

更新汇率

参数

  • $currencyid
  • $exchangerateid
  • $data = []

示例

$currency = new Currency();
$currency->update_an_exchange_rate($currencyid, $exchangerateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取汇率

参数

  • $currencyid
  • $exchangerateid

示例

$currency = new Currency();
$currency->get_an_exchange_rate($currencyid, $exchangerateid);

删除汇率

参数

  • $currencyid
  • $exchangerateid

示例

$currency = new Currency();
$currency->delete_an_exchage_rate($currencyid, $exchangerateid);

期初余额

创建期初余额

参数

  • $data = []

示例

$openingbalances = new OpeningBalances();
$openingbalances->create_opening_balance($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新期初余额

参数

  • $data = []

示例

$openingbalances = new OpeningBalances();
$openingbalances->update_opening_balance($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取期初余额

参数

  • 不需要参数。

示例

$openingbalances = new OpeningBalances();
$openingbalances->get_opening_balance();

删除期初余额

参数

  • 不需要参数。

示例

$openingbalances = new OpeningBalances();
$openingbalances->delete_opening_balance();

基础货币调整

创建基础货币调整

参数

  • $data = []

示例

$basecurrencyadjustment = new BaseCurrencyAdjustment();
$basecurrencyadjustment->create_a_base_currency_adjustment($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出基础货币调整

参数

  • 不需要参数。

示例

$basecurrencyadjustment = new BaseCurrencyAdjustment();
$basecurrencyadjustment->list_base_currency_adjustment();

获取基础货币调整

参数

  • $basecurrencyadjustmentid

示例

$basecurrencyadjustment = new BaseCurrencyAdjustment();
$basecurrencyadjustment->get_a_base_currency_adjustment($basecurrencyadjustmentid);

删除基础货币调整

参数

  • $basecurrencyadjustmentid

示例

$basecurrencyadjustment = new BaseCurrencyAdjustment();
$basecurrencyadjustment->delete_a_base_currency_adjustment($basecurrencyadjustmentid);

列出基础货币调整的账户详情

参数

  • 不需要参数。

示例

$basecurrencyadjustment = new BaseCurrencyAdjustment();
$basecurrencyadjustment->list_account_details_for_base_currency_adjustment();

预估

创建预估

参数

  • $data = []

示例

$estimates = new Estimates();
$estimates->create_an_estimate($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出预估

参数

  • 不需要参数。

示例

$estimates = new Estimates();
$estimates->list_estimates();

更新预估

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->update_an_estimate($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取预估

参数

  • $estimateid

示例

$estimates = new Estimates();
$estimates->get_an_estimate($estimateid);

删除预估

参数

  • $estimateid

示例

$estimates = new Estimates();
$estimates->delete_an_estimate($estimateid);

标记预估为已发送

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->mark_an_estimate_as_sent($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记预估为接受

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->mark_an_estimate_as_accepted($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记预估为拒绝

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->mark_an_estimate_as_declined($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交预估以供批准

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->submit_an_estimate_for_approval($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准预估

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->approve_an_estimate($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送预估电子邮件

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->email_an_estimate($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取预估电子邮件内容

参数

  • $estimateid

示例

$estimates = new Estimates();
$estimates->get_estimate_email_content($estimateid);

发送多个预估电子邮件

参数

  • $data = []

示例

$estimates = new Estimates();
$estimates->email_multiple_estimates($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批量导出预估

参数

  • 不需要参数。

示例

$estimates = new Estimates();
$estimates->bulk_export_estimates();

批量打印预估

参数

  • 不需要参数。

示例

$estimates = new Estimates();
$estimates->bulk_print_estimates();

更新账单地址

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->update_billing_address($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新发货地址

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->update_shipping_address($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出预估模板

参数

  • 不需要参数。

示例

$estimates = new Estimates();
$estimates->list_estimate_template();

更新估算模板

参数

  • $estimateid
  • $templateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->update_estimate_template($estimateid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

添加评论

参数

  • $estimateid
  • $data = []

示例

$estimates = new Estimates();
$estimates->add_comments($estimateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出估算评论和历史

参数

  • $estimateid

示例

$estimates = new Estimates();
$estimates->list_estimate_comments_and_history($estimateid);

更新评论

参数

  • $estimateid
  • $commentid
  • $data = []

示例

$estimates = new Estimates();
$estimates->update_comment($estimateid, $commentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除评论

参数

  • $estimateid
  • $commentid

示例

$estimates = new Estimates();
$estimates->delete_a_comment($estimateid, $commentid);

税费

创建税费

参数

  • $data = []

示例

$taxes = new Taxes();
$taxes->create_a_tax($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出税费

参数

  • 不需要参数。

示例

$taxes = new Taxes();
$taxes->list_taxes();

更新税费

参数

  • $taxid
  • $data = []

示例

$taxes = new Taxes();
$taxes->update_a_tax($taxid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取税费

参数

  • $taxid

示例

$taxes = new Taxes();
$taxes->get_a_tax($taxid);

删除税费

参数

  • $taxid

示例

$taxes = new Taxes();
$taxes->delete_a_tax($taxid);

更新税费组

参数

  • $taxgroupid
  • $data = []

示例

$taxes = new Taxes();
$taxes->update_a_tax_group($taxgroupid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取税费组

参数

  • $taxgroupid

示例

$taxes = new Taxes();
$taxes->get_a_tax_group($taxgroupid);

删除税费组

参数

  • $taxgroupid

示例

$taxes = new Taxes();
$taxes->delete_a_tax_group($taxgroupid);

创建税费组

参数

  • $data = []

示例

$taxes = new Taxes();
$taxes->create_a_tax_group($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

仅限美国和加拿大版创建税费授权

参数

  • $data = []

示例

$taxes = new Taxes();
$taxes->create_a_tax_authority__us_and_ca_edition_only_($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

仅限美国版列出税费授权

参数

  • 不需要参数。

示例

$taxes = new Taxes();
$taxes->list_tax_authorities__us_edition_only_();

仅限美国和加拿大版更新税费授权

参数

  • $taxauthorityid
  • $data = []

示例

$taxes = new Taxes();
$taxes->update_a_tax_authority__us_and_ca_edition_only_($taxauthorityid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

仅限美国和加拿大版获取税费授权

参数

  • $taxauthorityid

示例

$taxes = new Taxes();
$taxes->get_a_tax_authority__us_and_ca_edition_only_($taxauthorityid);

仅限美国和加拿大版删除税费授权

参数

  • $taxauthorityid

示例

$taxes = new Taxes();
$taxes->delete_a_tax_authority__us_and_ca_edition_only_($taxauthorityid);

仅限美国版创建税费豁免

参数

  • $data = []

示例

$taxes = new Taxes();
$taxes->create_a_tax_exemption__us_edition_only_($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

仅限美国版列出税费豁免

参数

  • 不需要参数。

示例

$taxes = new Taxes();
$taxes->list_tax_exemptions__us_edition_only_();

仅限美国版更新税费豁免

参数

  • $taxexemptionid
  • $data = []

示例

$taxes = new Taxes();
$taxes->update_a_tax_exemption__us_edition_only_($taxexemptionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

仅限美国版获取税费豁免

参数

  • $taxexemptionid

示例

$taxes = new Taxes();
$taxes->get_a_tax_exemption__us_edition_only_($taxexemptionid);

仅限美国版删除税费豁免

参数

  • $taxexemptionid

示例

$taxes = new Taxes();
$taxes->delete_a_tax_exemption__us_edition_only_($taxexemptionid);

日记

创建日记

参数

  • $data = []

示例

$journals = new Journals();
$journals->create_a_journal($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取日记列表

参数

  • 不需要参数。

示例

$journals = new Journals();
$journals->get_journal_list();

更新日记

参数

  • $journalid
  • $data = []

示例

$journals = new Journals();
$journals->update_a_journal($journalid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取日记

参数

  • $journalid

示例

$journals = new Journals();
$journals->get_journal($journalid);

删除日记

参数

  • $journalid

示例

$journals = new Journals();
$journals->delete_a_journal($journalid);

标记日记为已发布

参数

  • $journalid
  • $data = []

示例

$journals = new Journals();
$journals->mark_a_journal_as_published($journalid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

向日记添加附件

参数

  • $journalid
  • $data = []

示例

$journals = new Journals();
$journals->add_attachment_to_a_journal($journalid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

添加评论

参数

  • $jounralid
  • $data = []

示例

$journals = new Journals();
$journals->add_comment($jounralid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除评论

参数

  • $jounralid
  • $commentid

示例

$journals = new Journals();
$journals->delete_a_comment($jounralid, $commentid);

账单

创建账单

参数

  • $data = []

示例

$bills = new Bills();
$bills->create_a_bill($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出账单

参数

  • 不需要参数。

示例

$bills = new Bills();
$bills->list_bills();

更新账单

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->update_a_bill($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取账单

参数

  • $billid

示例

$bills = new Bills();
$bills->get_a_bill($billid);

删除账单

参数

  • $billid

示例

$bills = new Bills();
$bills->delete_a_bill($billid);

作废账单

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->void_a_bill($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记账单为开启状态

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->mark_a_bill_as_open($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交账单进行审批

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->submit_a_bill_for_approval($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准账单

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->approve_a_bill($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新账单地址

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->update_billing_address($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出账单支付

参数

  • $billid

示例

$bills = new Bills();
$bills->list_bill_payments($billid);

应用信用额度

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->apply_credits($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除付款

参数

  • $billid
  • $billpaymentid

示例

$bills = new Bills();
$bills->delete_a_payment($billid, $billpaymentid);

向账单添加附件

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->add_attachment_to_a_bill($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取账单附件

参数

  • $billid

示例

$bills = new Bills();
$bills->get_a_bill_attachment($billid);

删除附件

参数

  • $billid

示例

$bills = new Bills();
$bills->delete_an_attachment($billid);

添加评论

参数

  • $billid
  • $data = []

示例

$bills = new Bills();
$bills->add_comment($billid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出账单评论和历史

参数

  • $billid

示例

$bills = new Bills();
$bills->list_bill_comments_and_history($billid);

删除评论

参数

  • $billid
  • $commentid

示例

$bills = new Bills();
$bills->delete_a_comment($billid, $commentid);

时间条目

记录时间条目

参数

  • $data = []

示例

$timeentries = new TimeEntries();
$timeentries->log_time_entries($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出时间条目

参数

  • 不需要参数。

示例

$timeentries = new TimeEntries();
$timeentries->list_time_entries();

删除时间条目

参数

  • 不需要参数。

示例

$timeentries = new TimeEntries();
$timeentries->delete_time_entries();

更新时间条目

参数

  • $timeentryid
  • $data = []

示例

$timeentries = new TimeEntries();
$timeentries->update_time_entry($timeentryid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取时间条目

参数

  • $timeentryid

示例

$timeentries = new TimeEntries();
$timeentries->get_a_time_entry($timeentryid);

删除时间条目

参数

  • $timeentryid

示例

$timeentries = new TimeEntries();
$timeentries->delete_time_entry($timeentryid);

开始计时器

参数

  • $timeentryid
  • $data = []

示例

$timeentries = new TimeEntries();
$timeentries->start_timer($timeentryid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

停止计时器

参数

  • $data = []

示例

$timeentries = new TimeEntries();
$timeentries->stop_timer($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取计时器

参数

  • 不需要参数。

示例

$timeentries = new TimeEntries();
$timeentries->get_timer();

会计科目表

创建账户

参数

  • $data = []

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->create_an_account($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

账户列表图

参数

  • 不需要参数。

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->list_chart_of_accounts();

更新一个账户

参数

  • $accountid
  • $data = []

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->update_an_account($accountid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个账户

参数

  • $accountid

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->get_an_account($accountid);

删除账户

参数

  • $accountid

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->delete_an_account($accountid);

标记一个账户为活跃

参数

  • $accountid
  • $data = []

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->mark_an_account_as_active($accountid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记一个账户为非活跃

参数

  • $accountid
  • $data = []

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->mark_an_account_as_inactive($accountid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

一个账户的交易列表

参数

  • 不需要参数。

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->list_of_transactions_for_an_account();

删除一个交易

参数

  • $transactionid

示例

$chartofaccounts = new ChartOfAccounts();
$chartofaccounts->delete_a_transaction($transactionid);

任务

添加一个任务

参数

  • $projectid
  • $data = []

示例

$tasks = new Tasks();
$tasks->add_a_task($projectid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出任务

参数

  • $projectid

示例

$tasks = new Tasks();
$tasks->list_tasks($projectid);

更新一个任务

参数

  • $projectid
  • $taskid
  • $data = []

示例

$tasks = new Tasks();
$tasks->update_a_task($projectid, $taskid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个任务

参数

  • $projectid
  • $taskid

示例

$tasks = new Tasks();
$tasks->get_a_task($projectid, $taskid);

删除任务

参数

  • $projectid
  • $taskid

示例

$tasks = new Tasks();
$tasks->delete_task($projectid, $taskid);

客户付款

创建一个付款

参数

  • $data = []

示例

$customerpayments = new CustomerPayments();
$customerpayments->create_a_payment($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出客户付款

参数

  • 不需要参数。

示例

$customerpayments = new CustomerPayments();
$customerpayments->list_customer_payments();

更新一个付款

参数

  • $paymentid
  • $data = []

示例

$customerpayments = new CustomerPayments();
$customerpayments->update_a_payment($paymentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

检索一个付款

参数

  • $paymentid

示例

$customerpayments = new CustomerPayments();
$customerpayments->retrieve_a_payment($paymentid);

删除付款

参数

  • $paymentid

示例

$customerpayments = new CustomerPayments();
$customerpayments->delete_a_payment($paymentid);

退款过量的客户付款

参数

  • $customerpaymentid
  • $data = []

示例

$customerpayments = new CustomerPayments();
$customerpayments->refund_an_excess_customer_payment($customerpaymentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出客户付款的退款

参数

  • $customerpaymentid

示例

$customerpayments = new CustomerPayments();
$customerpayments->list_refunds_of_a_customer_payment($customerpaymentid);

更新一个退款

参数

  • $customerpaymentid
  • $refundid
  • $data = []

示例

$customerpayments = new CustomerPayments();
$customerpayments->update_a_refund($customerpaymentid, $refundid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

退款详情

参数

  • $customerpaymentid
  • $refundid

示例

$customerpayments = new CustomerPayments();
$customerpayments->details_of_a_refund($customerpaymentid, $refundid);

删除一个退款

参数

  • $customerpaymentid
  • $refundid

示例

$customerpayments = new CustomerPayments();
$customerpayments->delete_a_refund($customerpaymentid, $refundid);

保留发票

创建一个保留发票

参数

  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->create_a_retainerinvoice($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出保留发票

参数

  • 不需要参数。

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->list_a_retainer_invoices();

更新保留发票

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->update_a_retainerinvoice($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个保留发票

参数

  • $retainerinvoiceid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->get_a_retainer_invoice($retainerinvoiceid);

删除一个保留发票

参数

  • $retainerinvoiceid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->delete_a_retainer_invoice($retainerinvoiceid);

标记保留发票为已发送

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->mark_a_retainer_invoice_as_sent($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新保留发票模板

参数

  • $retainerinvoiceid
  • $templateid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->update_retainer_invoice_template($retainerinvoiceid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

作废保留发票

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->void_a_retainer_invoice($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记为草稿

参数

  • $reatinerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->mark_as_draft($reatinerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交保留发票以供批准

参数

  • $reatinerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->submit_a_retainer_invoice_for_approval($reatinerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准保留发票

参数

  • $reatinerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->approve_a_retainer_invoice($reatinerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送保留发票电子邮件

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->email_a_retainer_invoice($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取保留发票电子邮件内容

参数

  • $retainerinvoiceid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->get_retainer_invoice_email_content($retainerinvoiceid);

更新账单地址

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->update_billing_address($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出保留发票模板

参数

  • 不需要参数。

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->list_retainer_invoice_templates();

向保留发票添加附件

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->add_attachment_to_a_retainer_invoice($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个保留发票附件

参数

  • $retainerinvoiceid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->get_a_retainer_invoice_attachment($retainerinvoiceid);

删除附件

参数

  • $retainerinvoiceid
  • $documentid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->delete_an_attachment($retainerinvoiceid, $documentid);

添加评论

参数

  • $retainerinvoiceid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->add_comment($retainerinvoiceid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出保留发票的评论和历史记录

参数

  • $retainerinvoiceid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->list_retainer_invoice_comments_and_history($retainerinvoiceid);

更新评论

参数

  • $retainerinvoiceid
  • $commentid
  • $data = []

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->update_comment($retainerinvoiceid, $commentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除评论

参数

  • $retainerinvoiceid
  • $commentid

示例

$retainerinvoices = new RetainerInvoices();
$retainerinvoices->delete_a_comment($retainerinvoiceid, $commentid);

用户

创建一个用户

参数

  • $data = []

示例

$users = new Users();
$users->create_a_user($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出用户

参数

  • 不需要参数。

示例

$users = new Users();
$users->list_users();

更新一个用户

参数

  • $userid
  • $data = []

示例

$users = new Users();
$users->update_a_user($userid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取用户

参数

  • $userid

示例

$users = new Users();
$users->get_a_user($userid);

删除一个用户

参数

  • $userid

示例

$users = new Users();
$users->delete_a_user($userid);

获取当前用户

参数

  • 不需要参数。

示例

$users = new Users();
$users->get_current_user();

邀请一个用户

参数

  • $userid
  • $data = []

示例

$users = new Users();
$users->invite_a_user($userid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记用户为活跃

参数

  • $userid
  • $data = []

示例

$users = new Users();
$users->mark_user_as_active($userid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记用户为非活跃

参数

  • $userid
  • $data = []

示例

$users = new Users();
$users->mark_user_as_inactive($userid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

信用凭证

创建一个信用凭证

参数

  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->create_a_credit_note($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出所有信用凭证

参数

  • 不需要参数。

示例

$creditnotes = new CreditNotes();
$creditnotes->list_all_credit_notes();

更新一个信用凭证

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->update_a_credit_note($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个信用凭证

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->get_a_credit_note($creditnoteid);

删除一个信用凭证

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->delete_a_credit_note($creditnoteid);

发送信用凭证电子邮件

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->email_a_credit_note($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取电子邮件内容

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->get_email_content($creditnoteid);

作废信用凭证

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->void_a_credit_note($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将信用凭证转换为草稿

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->convert_credit_note_to_draft($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

转换为开放状态

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->convert_to_open($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交信用凭证以供审批

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->submit_a_credit_note_for_approval($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准信用凭证

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->approve_a_credit_note($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

电子邮件历史记录

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->email_history($creditnoteid);

更新账单地址

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->update_billing_address($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新发货地址

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->update_shipping_address($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出信用凭证模板

参数

  • 不需要参数。

示例

$creditnotes = new CreditNotes();
$creditnotes->list_credit_note_template();

更新信用凭证模板

参数

  • $creditnoteid
  • $templateid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->update_a_credit_note_template($creditnoteid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将信用应用于发票

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->credit_to_an_invoice($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出已冲销的发票

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->list_invoices_credited($creditnoteid);

删除已冲销的发票

参数

  • $creditnoteid
  • $creditnoteinvoiceid

示例

$creditnotes = new CreditNotes();
$creditnotes->delete_invoices_credited($creditnoteid, $creditnoteinvoiceid);

添加评论

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->add_a_comment($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出信用凭证评论和历史记录

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->list_credit_note_comments_and_history($creditnoteid);

删除评论

参数

  • $creditnoteid
  • $commentid

示例

$creditnotes = new CreditNotes();
$creditnotes->delete_a_comment($creditnoteid, $commentid);

列出信用凭证退款

参数

  • 不需要参数。

示例

$creditnotes = new CreditNotes();
$creditnotes->list_credit_note_refunds();

退款信用凭证

参数

  • $creditnoteid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->refund_credit_note($creditnoteid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出信用凭证退款记录

参数

  • $creditnoteid

示例

$creditnotes = new CreditNotes();
$creditnotes->list_refunds_of_a_credit_note($creditnoteid);

更新信用凭证退款

参数

  • $creditnoteid
  • $creditnoterefundid
  • $data = []

示例

$creditnotes = new CreditNotes();
$creditnotes->update_credit_note_refund($creditnoteid, $creditnoterefundid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取信用凭证退款

参数

  • $creditnoteid
  • $creditnoterefundid

示例

$creditnotes = new CreditNotes();
$creditnotes->get_credit_note_refund($creditnoteid, $creditnoterefundid);

删除信用凭证退款

参数

  • $creditnoteid
  • $creditnoterefundid

示例

$creditnotes = new CreditNotes();
$creditnotes->delete_credit_note_refund($creditnoteid, $creditnoterefundid);

项目

创建一个项目

参数

  • $data = []

示例

$items = new Items();
$items->create_an_item($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出项目

参数

  • 不需要参数。

示例

$items = new Items();
$items->list_items();

更新一个项目

参数

  • $itemid
  • $data = []

示例

$items = new Items();
$items->update_an_item($itemid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个项目

参数

  • $itemid

示例

$items = new Items();
$items->get_an_item($itemid);

删除一个项目

参数

  • $itemid

示例

$items = new Items();
$items->delete_an_item($itemid);

标记为活动状态

参数

  • $itemid
  • $data = []

示例

$items = new Items();
$items->mark_as_active($itemid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记为非活动状态

参数

  • $itemid
  • $data = []

示例

$items = new Items();
$items->mark_as_inactive($itemid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

采购订单

创建一个采购订单

参数

  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->create_a_purchase_order($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出采购订单

参数

  • 不需要参数。

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->list_purchase_orders();

更新一个采购订单

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->update_a_purchase_order($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取一个采购订单

参数

  • $purchaseorderid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->get_a_purchase_order($purchaseorderid);

删除采购订单

参数

  • $purchaseorderid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->delete_purchase_order($purchaseorderid);

标记采购订单为已开放

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->mark_a_purchase_order_as_open($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

标记为已开票

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->mark_as_billed($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

取消采购订单

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->cancel_a_purchase_order($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

提交采购订单以供审批

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->submit_a_purchase_order_for_approval($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

批准采购订单

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->approve_a_purchase_order($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

发送采购订单电子邮件

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->email_a_purchase_order($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取采购订单电子邮件内容

参数

  • $purchaseorderid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->get_purchase_order_email_content($purchaseorderid);

更新账单地址

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->update_billing_address($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出采购订单模板

参数

  • 不需要参数。

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->list_purchase_order_templates();

更新采购订单模板

参数

  • $purchaseorderid
  • $templateid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->update_purchase_order_template($purchaseorderid, $templateid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

向采购订单添加附件

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->add_attachment_to_a_purchase_order($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新附件偏好

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->update_attachment_preference($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取采购订单附件

参数

  • $purchaseorderid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->get_a_purchase_order_attachment($purchaseorderid);

删除附件

参数

  • $purchaseorderid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->delete_an_attachment($purchaseorderid);

添加评论

参数

  • $purchaseorderid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->add_comment($purchaseorderid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

列出采购订单评论和历史记录

参数

  • $purchaseorderid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->list_purchase_order_comments_and_history($purchaseorderid);

更新评论

参数

  • $purchaseorderid
  • $commentid
  • $data = []

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->update_comment($purchaseorderid, $commentid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除评论

参数

  • $purchaseorderid
  • $commentid

示例

$purchaseorders = new PurchaseOrders();
$purchaseorders->delete_a_comment($purchaseorderid, $commentid);

银行交易

为账户创建一个交易

参数

  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->create_a_transaction_for_an_account($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取交易列表

参数

  • 不需要参数。

示例

$banktransactions = new BankTransactions();
$banktransactions->get_transactions_list();

更新一个交易

参数

  • $banktransactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->update_a_transaction($banktransactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取交易

参数

  • $banktransactionid

示例

$banktransactions = new BankTransactions();
$banktransactions->get_transaction($banktransactionid);

删除一个交易

参数

  • $banktransactionid

示例

$banktransactions = new BankTransactions();
$banktransactions->delete_a_transaction($banktransactionid);

匹配一个交易

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->match_a_transaction($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

获取匹配的交易

参数

  • $transactionid

示例

$banktransactions = new BankTransactions();
$banktransactions->get_matching_transactions($transactionid);

取消匹配的交易

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->unmatch_a_matched_transaction($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

排除一个交易

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->exclude_a_transaction($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

恢复一个交易

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->restore_a_transaction($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

对未分类的交易进行分类

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_an_uncategorized_transaction($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将交易分类为费用

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_as_expense($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

取消对已分类交易的分类

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->uncategorize_a_categorized_transaction($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

对供应商付款进行分类

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_a_vendor_payment($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将交易分类为客户付款

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_as_customer_payment($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将交易分类为信用凭证退款

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_as_credit_note_refunds($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

将交易分类为供应商信用退款

参数

  • $transactionid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_as_vendor_credit_refunds($transactionid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

分类为顾客支付退款

参数

  • $statementlineid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_as_customer_payment_refund($statementlineid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

分类为供应商支付退款

参数

  • $statementlineid
  • $data = []

示例

$banktransactions = new BankTransactions();
$banktransactions->categorize_as_vendor_payment_refund($statementlineid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

联系人

创建联系人

参数

  • $data = []

示例

$contactpersons = new ContactPersons();
$contactpersons->create_a_contact_person($data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

更新联系人

参数

  • $contactpersonid
  • $data = []

示例

$contactpersons = new ContactPersons();
$contactpersons->update_a_contact_person($contactpersonid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/

删除联系人

参数

  • $contactpersonid

示例

$contactpersons = new ContactPersons();
$contactpersons->delete_a_contact_person($contactpersonid);

列出联系人

参数

  • $contactid

示例

$contactpersons = new ContactPersons();
$contactpersons->list_contact_persons($contactid);

获取联系人

参数

  • $contactid
  • $contactpersonid

示例

$contactpersons = new ContactPersons();
$contactpersons->get_a_contact_person($contactid, $contactpersonid);

标记为主要联系人

参数

  • $contactpersonid
  • $data = []

示例

$contactpersons = new ContactPersons();
$contactpersons->mark_as_primary_contact_person($contactpersonid, $data);
// Array Keys for $data can be found in Official documentation here: https://www.zoho.com/books/api/v3/