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.
Attribute
-1 for the root category. Note: This value is a set of numeric characters.true and false.intra, inter.-1 for the root category. Note: This value is a set of numeric characters.true and false.-1 for the root category. Note: This value is a set of numeric characters.true and false.{
"category_id": "460000000038080",
"name": "Gadgets",
"description": "Electronic gadgets and accessories",
"url": "gadgets",
"parent_category_id": "-1",
"parent_category_name": "ROOT",
"visibility": true,
"show_in_menu": true,
"seo_title": "Gadgets",
"seo_keyword": "gadgets, electronics",
"seo_description": "Shop gadgets and electronics",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530",
"category_tax_preferences": [
{
"tax_specification": "intra",
"tax_id": "982000000037049"
}
],
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
],
"ancestors": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530"
}
],
"children": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+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 : ERP.categories.CREATE
Arguments
-1 for the root category. Note: This value is a set of numeric characters.true and false.intra, inter.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.in/erp/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.in/erp/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.in/erp/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.in")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/erp/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.in",
"port": null,
"path": "/erp/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.in/erp/v3/categories?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Gadgets",
"url": "gadgets",
"description": "Electronic gadgets and accessories",
"parent_category_id": "-1",
"sibling_order": 1,
"visibility": true,
"show_in_menu": true,
"category_tax_preferences": [
{
"tax_specification": "intra",
"tax_id": "982000000037049"
}
],
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
]
}
{
"code": 0,
"message": "Category added successfully",
"category": {
"category_id": "460000000038080",
"name": "Gadgets",
"description": "Electronic gadgets and accessories",
"url": "gadgets",
"parent_category_id": "-1",
"parent_category_name": "ROOT",
"visibility": true,
"show_in_menu": true,
"seo_title": "Gadgets",
"seo_keyword": "gadgets, electronics",
"seo_description": "Shop gadgets and electronics",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530",
"category_tax_preferences": [
{
"tax_specification": "intra",
"tax_id": "982000000037049"
}
],
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
],
"ancestors": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530"
}
],
"children": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+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 categories with pagination, filters, and search. Results are returned as a hierarchical list unless filtered by purchase group.
OAuth Scope : ERP.categories.READ
Query Parameters
-1 for the root category.yyyy-MM-dd'T'HH:mm:ssZ.Type.All, Type.ShowInMenu, Type.ActiveItems. Default value is Type.All.name_startswith, name_contains, name_in, 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.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.in/erp/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.in/erp/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.in/erp/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.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/erp/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.in",
"port": null,
"path": "/erp/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.in/erp/v3/categories?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"categories": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"description": "Electronic gadgets and accessories",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"ondc_category_type": "",
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
],
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530"
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 5000,
"has_more_page": false,
"report_name": "zos.dashboard.categories",
"applied_filter": "Type.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 details of an existing category.
OAuth Scope : ERP.categories.UPDATE
Path Parameters
Query Parameters
true, applies applicable category updates to all items under the 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.in/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?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.in")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("PUT", "/erp/v3/categories/460000000038080?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.in",
"port": null,
"path": "/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Gadgets",
"url": "gadgets",
"description": "Electronic gadgets and accessories",
"parent_category_id": "-1",
"sibling_order": 1,
"visibility": true,
"show_in_menu": true,
"category_tax_preferences": [
{
"tax_specification": "intra",
"tax_id": "982000000037049"
}
],
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
]
}
{
"code": 0,
"message": "Category details updated successfully",
"category": {
"category_id": "460000000038080",
"name": "Gadgets",
"description": "Electronic gadgets and accessories",
"url": "gadgets",
"parent_category_id": "-1",
"parent_category_name": "ROOT",
"visibility": true,
"show_in_menu": true,
"seo_title": "Gadgets",
"seo_keyword": "gadgets, electronics",
"seo_description": "Shop gadgets and electronics",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530",
"category_tax_preferences": [
{
"tax_specification": "intra",
"tax_id": "982000000037049"
}
],
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
],
"ancestors": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530"
}
],
"children": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+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
Details of an existing category, including ancestors and children.
OAuth Scope : ERP.categories.READ
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?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.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/erp/v3/categories/460000000038080?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.in",
"port": null,
"path": "/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"category": {
"category_id": "460000000038080",
"name": "Gadgets",
"description": "Electronic gadgets and accessories",
"url": "gadgets",
"parent_category_id": "-1",
"parent_category_name": "ROOT",
"visibility": true,
"show_in_menu": true,
"seo_title": "Gadgets",
"seo_keyword": "gadgets, electronics",
"seo_description": "Shop gadgets and electronics",
"sibling_order": 1,
"depth": 0,
"has_active_items": true,
"ondc_category_type": "",
"is_deprecated_ondc_category": false,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530",
"category_tax_preferences": [
{
"tax_specification": "intra",
"tax_id": "982000000037049"
}
],
"custom_fields": [
{
"index": 1,
"value": "Premium"
}
],
"ancestors": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+0530"
}
],
"children": [
{
"category_id": "460000000038080",
"name": "Gadgets",
"url": "gadgets",
"parent_category_id": "-1",
"visibility": true,
"show_in_menu": true,
"created_time": "2025-07-18T09:24:08+0530",
"last_modified_time": "2025-07-18T09:24:09+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 an existing category.
OAuth Scope : ERP.categories.DELETE
Path Parameters
Query Parameters
true, deletes sub-categories of the specified category as well.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?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.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/erp/v3/categories/460000000038080?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.in",
"port": null,
"path": "/erp/v3/categories/460000000038080?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.in/erp/v3/categories/460000000038080?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Category deleted successfully."
}