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 Zoho Inventory. Create and manage categories, nested subcategories, visibility, and related metadata.
Attribute
inter and intra.{
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Consumer electronics and accessories",
"url": "electronics",
"parent_category_id": "4815000000044000",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics,gadgets",
"seo_description": "Browse electronics and gadgets",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530",
"ondc_category_type": "Electronics",
"is_deprecated_ondc_category": false,
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000044043"
}
],
"custom_fields": [
{
"index": 1,
"customfield_id": "4815000000044500",
"label": "Department",
"api_name": "cf_department",
"value": "Retail",
"value_formatted": "Retail"
}
],
"ancestors": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
}
],
"children": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45: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
Creates a new category.
OAuth Scope : ZohoInventory.items.CREATE
Arguments
inter and intra.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/inventory/v1/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/inventory/v1/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/inventory/v1/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", "/inventory/v1/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": "/inventory/v1/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/inventory/v1/categories?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Electronics",
"description": "Consumer electronics and accessories",
"sibling_order": 1,
"parent_category_id": "4815000000044000",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"url": "electronics",
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000044043"
}
],
"custom_fields": [
{
"index": 1,
"customfield_id": "4815000000044500",
"label": "Department",
"api_name": "cf_department",
"value": "Retail",
"value_formatted": "Retail"
}
]
}
{
"code": 0,
"message": "Category added successfully",
"category": {
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Consumer electronics and accessories",
"url": "electronics",
"parent_category_id": "4815000000044000",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics,gadgets",
"seo_description": "Browse electronics and gadgets",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530",
"ondc_category_type": "Electronics",
"is_deprecated_ondc_category": false,
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000044043"
}
],
"custom_fields": [
{
"index": 1,
"customfield_id": "4815000000044500",
"label": "Department",
"api_name": "cf_department",
"value": "Retail",
"value_formatted": "Retail"
}
],
"ancestors": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
}
],
"children": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
}
],
"products": [
{...}
]
}
}
List all 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
Lists all categories in the organization. Supports filtering by parent, name, status filters, and pagination.
OAuth Scope : ZohoInventory.items.READ
Query Parameters
parent_category_id. Default value is true.All, ShowInMenu, ActiveItems.created_time_less_than, created_time_less_equals, created_time_greater_than, and created_time_greater_equals. Format: yyyy-MM-ddTHH:mm:ssZ.yyyy-mm-ddThh:mm:ss+/-hhmm.sibling_order.A (ascending), D (descending). Default value is A.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/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/inventory/v1/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/inventory/v1/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", "/inventory/v1/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": "/inventory/v1/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/inventory/v1/categories?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"categories": [
{
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Consumer electronics and accessories",
"url": "electronics",
"parent_category_id": "4815000000044000",
"sibling_order": 1,
"visibility": true,
"show_in_menu": true,
"depth": 0,
"has_active_items": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
},
{...},
{...}
],
"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
Updates an existing category.
OAuth Scope : ZohoInventory.items.UPDATE
Path Parameters
Query Parameters
true, updates POS preferences of all items associated with this category.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/inventory/v1/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/inventory/v1/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/inventory/v1/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", "/inventory/v1/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": "/inventory/v1/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/inventory/v1/categories/4815000000044001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Electronics",
"description": "Consumer electronics and accessories",
"sibling_order": 1,
"parent_category_id": "4815000000044000",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"url": "electronics",
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000044043"
}
],
"custom_fields": [
{
"index": 1,
"customfield_id": "4815000000044500",
"label": "Department",
"api_name": "cf_department",
"value": "Retail",
"value_formatted": "Retail"
}
]
}
{
"code": 0,
"message": "Category updated successfully",
"category": {
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Consumer electronics and accessories",
"url": "electronics",
"parent_category_id": "4815000000044000",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics,gadgets",
"seo_description": "Browse electronics and gadgets",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530",
"ondc_category_type": "Electronics",
"is_deprecated_ondc_category": false,
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000044043"
}
],
"custom_fields": [
{
"index": 1,
"customfield_id": "4815000000044500",
"label": "Department",
"api_name": "cf_department",
"value": "Retail",
"value_formatted": "Retail"
}
],
"ancestors": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
}
],
"children": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
}
],
"products": [
{...}
]
}
}
Retrieve 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
Fetches the details of an existing category, including ancestors, children, and related metadata.
OAuth Scope : ZohoInventory.items.READ
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/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/inventory/v1/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/inventory/v1/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", "/inventory/v1/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": "/inventory/v1/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/inventory/v1/categories/4815000000044001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"category": {
"category_id": "4815000000044001",
"name": "Electronics",
"description": "Consumer electronics and accessories",
"url": "electronics",
"parent_category_id": "4815000000044000",
"parent_category_name": "Root",
"visibility": true,
"show_in_menu": true,
"seo_title": "Electronics",
"seo_keyword": "electronics,gadgets",
"seo_description": "Browse electronics and gadgets",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530",
"ondc_category_type": "Electronics",
"is_deprecated_ondc_category": false,
"category_tax_preferences": [
{
"tax_specification": "inter",
"tax_id": "4815000000044043"
}
],
"custom_fields": [
{
"index": 1,
"customfield_id": "4815000000044500",
"label": "Department",
"api_name": "cf_department",
"value": "Retail",
"value_formatted": "Retail"
}
],
"ancestors": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45:00+0530"
}
],
"children": [
{
"category_id": "4815000000044002",
"name": "Accessories",
"url": "accessories",
"parent_category_id": "4815000000044001",
"visibility": true,
"show_in_menu": true,
"created_time": "2024-01-15T10:30:00+0530",
"last_modified_time": "2024-06-20T14:45: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
Deletes an existing category from Zoho Inventory.
OAuth Scope : ZohoInventory.items.DELETE
Path Parameters
Query Parameters
true, also deletes subcategories under this category.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/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/inventory/v1/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/inventory/v1/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", "/inventory/v1/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": "/inventory/v1/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/inventory/v1/categories/4815000000044001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Category deleted successfully."
}