Categories
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Categories are hierarchical groupings used to organize items in your organization.
Attribute
-1 for a root-level category.-1 for a root-level category.-1 for a root-level category.{
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Electronic gadgets and accessories",
"url": "electronics",
"parent_category_id": "-1",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics",
"seo_description": "Shop electronics and accessories",
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000001234"
}
],
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530",
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"custom_fields": [
{
"index": 1,
"value": "Priority"
}
],
"ancestors": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"children": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"products": {}
}
Create a category
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Create a new category.
OAuth Scope : ZohoBooks.categories.CREATE
Arguments
-1 for a root-level category.Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v3/categories?organization_id=10234695"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v3/categories?organization_id=10234695")
.post(body)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.com/books/v3/categories?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/books/v3/categories?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v3/categories?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request POST \
--url 'https://www.zohoapis.com/books/v3/categories?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Electronics",
"url": "electronics",
"description": "Electronic gadgets and accessories",
"sibling_order": 1,
"parent_category_id": "-1",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000001234"
}
],
"custom_fields": [
{
"index": 1,
"value": "Priority"
}
]
}
{
"code": 0,
"message": "Category created successfully.",
"category": {
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Electronic gadgets and accessories",
"url": "electronics",
"parent_category_id": "-1",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics",
"seo_description": "Shop electronics and accessories",
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000001234"
}
],
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530",
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"custom_fields": [
{
"index": 1,
"value": "Priority"
}
],
"ancestors": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"children": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"products": {...}
}
}
List categories
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
List all categories with filters and pagination. Results are returned in hierarchical order when not filtered by specific category IDs.
OAuth Scope : ZohoBooks.categories.READ
Query Parameters
-1 for root-level categories.parent_category_id. Default value is true.yyyy-MM-ddTHH:mm:ssZ.name_startswith, name_contains, name_in, and name_not_in.created_time_less_than, created_time_less_equals, created_time_greater_than, and created_time_greater_equals. Format: yyyy-MM-ddTHH:mm:ssZ.All, ShowInMenu, and ActiveItems.sibling_order.A and D. Default value is A.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v3/categories?organization_id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v3/categories?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v3/categories?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/books/v3/categories?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v3/categories?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.com/books/v3/categories?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"categories": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Electronic gadgets and accessories",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530",
"ondc_category_type": "",
"ondc_category_type_formatted": "",
"is_deprecated_ondc_category": false
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 5000,
"has_more_page": false,
"report_name": "Categories",
"applied_filter": "All",
"sort_column": "sibling_order",
"sort_order": "A"
}
}
Update a category
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Update an existing category.
OAuth Scope : ZohoBooks.categories.UPDATE
Path Parameters
Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695"
type: PUT
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695")
.put(body)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("PUT", "/books/v3/categories/4815000000044001?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v3/categories/4815000000044001?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request PUT \
--url 'https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Electronics",
"url": "electronics",
"description": "Electronic gadgets and accessories",
"sibling_order": 1,
"parent_category_id": "-1",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000001234"
}
],
"custom_fields": [
{
"index": 1,
"value": "Priority"
}
]
}
{
"code": 0,
"message": "Category updated successfully.",
"category": {
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Electronic gadgets and accessories",
"url": "electronics",
"parent_category_id": "-1",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics",
"seo_description": "Shop electronics and accessories",
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000001234"
}
],
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530",
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"custom_fields": [
{
"index": 1,
"value": "Priority"
}
],
"ancestors": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"children": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"products": {...}
}
}
Get a category
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Retrieve details of a category, including ancestors and children.
OAuth Scope : ZohoBooks.categories.READ
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/books/v3/categories/4815000000044001?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v3/categories/4815000000044001?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"category": {
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Electronic gadgets and accessories",
"url": "electronics",
"parent_category_id": "-1",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics",
"seo_description": "Shop electronics and accessories",
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000001234"
}
],
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530",
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"custom_fields": [
{
"index": 1,
"value": "Priority"
}
],
"ancestors": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"children": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"url": "electronics",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2019-12-12T00:00:00+0530",
"last_modified_time": "2019-12-12T00:00:00+0530"
}
],
"products": {...}
}
}
Delete a category
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Delete a category. Optionally delete its subcategories.
OAuth Scope : ZohoBooks.categories.DELETE
Path Parameters
Query Parameters
true and false.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/books/v3/categories/4815000000044001?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v3/categories/4815000000044001?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.com/books/v3/categories/4815000000044001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Category deleted successfully."
}