Composite Items
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
A form or version of an composite item that differs in some respect from other forms of the same or from a standard. You can create your composite items by associating multiple items and their respective quantities.
Attribute
true for composite itemsAlways inventoryOnly images with gif,png,jpeg,jpg,bmp extensions are allowedtrue if the item is taxable, else false assembly, kit.Only images with gif,png,jpeg,jpg,bmp extensions are allowedtrue for composite items intra or inter{
"composite_item_id": 504366000000053250,
"name": "Combo of Apple IPhone and Smartwatch",
"unit": "units",
"tax_id": 504366000000053100,
"description": "Just a sample description",
"tax_name": "VAT",
"tax_percentage": 13,
"tax_type": "tax",
"purchase_account_id": 504366000000034000,
"purchase_account_name": "Cost of Goods Sold",
"account_id": 504366000000000400,
"account_name": "sales",
"inventory_account_id": 504366000000034000,
"inventory_account_name": "Inventory Asset",
"status": "active",
"source": "user",
"is_combo_product": true,
"item_type": "inventory",
"rate": 85000,
"pricebook_rate": 85000,
"purchase_rate": 30000,
"reorder_level": 1,
"initial_stock": 2,
"initial_stock_rate": 30000,
"vendor_id": 504366000000053250,
"vendor_name": "Mr. vendor combo",
"stock_on_hand": 2,
"asset_value": 0,
"available_stock": 2,
"actual_available_stock": 2,
"sku": "SKUIS",
"upc": 746325287436,
"ean": 5789414385764,
"isbn": 368302334,
"part_number": "JHFKE7GK7",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"image_type": "jpg",
"is_taxable": true,
"product_type": "goods",
"purchase_description": "Composite item purchase description",
"category_id": 504366000000053500,
"category_name": "Hardware",
"combo_type": "assembly",
"brand": "Acme Corp",
"manufacturer": "Acme Manufacturing",
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"mapped_items": [
{
"line_item_id": 504366000000053250,
"item_id": 4815000000044208,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"rate": 85000,
"purchase_rate": 30000,
"sku": "SKUIS",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"image_type": "jpg",
"unit": "units",
"is_combo_product": true,
"description": "Just a sample description",
"quantity": 1,
"stock_on_hand": 2,
"available_stock": 2,
"actual_available_stock": 2
}
],
"item_tax_preferences": [
{
"tax_id": 504366000000053100,
"tax_specification": "intra"
}
],
"hsn_or_sac": 85423100,
"created_time": "2013-08-05",
"last_modified_time": "string"
}
Creating a Composite Item
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
A new composite item can be created after creating items that we want to associcate with composite item. User can attach image for composite item by calling Different API 'https://www.zohoapis.com/inventory/v1/compositeitems/{composite_item_id}/image', passing form-data parameter image i.e. -F image=bag_s.jpg
OAuth Scope : ZohoInventory.compositeitems.CREATE
Arguments
true for composite itemsAlways inventorytrue if the item is taxable, else false kg, g, lb, oz.cm, in. intra or interassembly, kit.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/compositeitems?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/compositeitems?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/compositeitems?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/compositeitems?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/compositeitems?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/compositeitems?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"name": "Combo of Apple IPhone and Smartwatch",
"mapped_items": [
{
"quantity": 1,
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1
}
],
"description": "Just a sample description",
"is_combo_product": true,
"vendor_id": 504366000000053250,
"purchase_rate": 30000,
"purchase_description": "Composite item purchase description",
"initial_stock": 2,
"initial_stock_rate": 30000,
"tax_id": 504366000000053100,
"sku": "SKUIS",
"isbn": 368302334,
"ean": 5789414385764,
"part_number": "JHFKE7GK7",
"reorder_level": 1,
"unit": "units",
"upc": 746325287436,
"item_type": "inventory",
"rate": 85000,
"label_rate": 90000,
"is_taxable": true,
"tax_exemption_id": 504366000000053600,
"brand": "Acme Corp",
"manufacturer": "Acme Manufacturing",
"alias_name": "Combo Phone+Watch",
"category_id": 504366000000053500,
"can_be_sold": true,
"can_be_purchased": true,
"is_returnable": true,
"minimum_order_quantity": 1,
"maximum_order_quantity": 100,
"track_serial_number": false,
"track_batch_number": false,
"package_details": {
"length": 10,
"width": 5,
"height": 3,
"weight": 0.5,
"weight_unit": "kg",
"dimension_unit": "cm"
},
"tags": [
{
"tag_id": 504366000000053700,
"tag_option_id": 504366000000053700
}
],
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"account_id": 504366000000000400,
"purchase_account_id": 504366000000034000,
"inventory_account_id": 504366000000034000,
"item_tax_preferences": [
{
"tax_id": 504366000000053100,
"tax_specification": "intra"
}
],
"hsn_or_sac": 85423100,
"product_type": "goods",
"combo_type": "assembly"
}
{
"code": 0,
"message": "The item has been added.",
"composite_item": {
"composite_item_id": 504366000000053250,
"name": "Combo of Apple IPhone and Smartwatch",
"unit": "units",
"tax_id": 504366000000053100,
"description": "Just a sample description",
"tax_name": "VAT",
"tax_percentage": 13,
"tax_type": "tax",
"purchase_account_id": 504366000000034000,
"purchase_account_name": "Cost of Goods Sold",
"account_id": 504366000000000400,
"account_name": "sales",
"inventory_account_id": 504366000000034000,
"inventory_account_name": "Inventory Asset",
"status": "active",
"source": "user",
"is_combo_product": true,
"item_type": "inventory",
"rate": 85000,
"pricebook_rate": 85000,
"purchase_rate": 30000,
"reorder_level": 1,
"initial_stock": 2,
"initial_stock_rate": 30000,
"vendor_id": 504366000000053250,
"vendor_name": "Mr. vendor combo",
"stock_on_hand": 2,
"asset_value": 0,
"available_stock": 2,
"actual_available_stock": 2,
"sku": "SKUIS",
"upc": 746325287436,
"ean": 5789414385764,
"isbn": 368302334,
"part_number": "JHFKE7GK7",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"image_type": "jpg",
"is_taxable": true,
"product_type": "goods",
"purchase_description": "Composite item purchase description",
"category_id": 504366000000053500,
"category_name": "Hardware",
"combo_type": "assembly",
"brand": "Acme Corp",
"manufacturer": "Acme Manufacturing",
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"mapped_items": [
{
"line_item_id": 504366000000053250,
"item_id": 4815000000044208,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"rate": 85000,
"purchase_rate": 30000,
"sku": "SKUIS",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"image_type": "jpg",
"unit": "units",
"is_combo_product": true,
"description": "Just a sample description",
"quantity": 1,
"stock_on_hand": 2,
"available_stock": 2,
"actual_available_stock": 2
}
],
"item_tax_preferences": [
{
"tax_id": 504366000000053100,
"tax_specification": "intra"
}
],
"hsn_or_sac": 85423100,
"created_time": "2013-08-05",
"last_modified_time": "string"
}
}
List All Composite Items
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 of all composite items.
OAuth Scope : ZohoInventory.compositeitems.READ
Query Parameters
name,sku,rate,tax_name,purchase_rate,created_time,last_modified_time,reorder_levelStatus.All,Status.Active,Status.Inactive,Status.Lowstock,Status.Unmapped,Source.Crm,ComboType.Assembly,ComboType.Kitall, active, inactive.assembly, kit.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/compositeitems?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/compositeitems?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/compositeitems?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/compositeitems?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/compositeitems?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/compositeitems?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"composite_items": [
{
"composite_item_id": 504366000000053250,
"name": "Combo of Apple IPhone and Smartwatch",
"status": "active",
"source": "user",
"description": "Just a sample description",
"rate": 85000,
"tax_id": 504366000000053100,
"tax_name": "VAT",
"tax_percentage": 13,
"purchase_description": "Composite item purchase description",
"purchase_rate": 30000,
"is_combo_product": true,
"item_type": "inventory",
"product_type": "goods",
"is_taxable": true,
"stock_on_hand": 2,
"available_stock": 2,
"actual_available_stock": 2,
"sku": "SKUIS",
"upc": 746325287436,
"ean": 5789414385764,
"isbn": 368302334,
"part_number": "JHFKE7GK7",
"reorder_level": 1,
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"image_type": "jpg",
"unit": "units",
"category_id": 504366000000053500,
"category_name": "Hardware",
"combo_type": "assembly",
"brand": "Acme Corp",
"manufacturer": "Acme Manufacturing",
"purchase_account_id": 504366000000034000,
"purchase_account_name": "Cost of Goods Sold",
"account_id": 504366000000000400,
"account_name": "sales",
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string"
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 10,
"has_more_page": true,
"report_name": "Composite Items",
"applied_filter": "Status.All",
"sort_column": "name",
"sort_order": "A"
}
}
Updating a composite item
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
Updating details of an existing composite item.
OAuth Scope : ZohoInventory.compositeitems.UPDATE
Arguments
true for composite itemsAlways inventoryOnly images with gif,png,jpeg,jpg,bmp extensions are allowedtrue for composite items intra or interassembly, kit.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/inventory/v1/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"composite_item_id": 504366000000053250,
"name": "Combo of Apple IPhone and Smartwatch",
"unit": "units",
"tax_id": 504366000000053100,
"description": "Just a sample description",
"tax_name": "VAT",
"tax_percentage": 13,
"tax_type": "tax",
"purchase_account_id": 504366000000034000,
"purchase_account_name": "Cost of Goods Sold",
"account_id": 504366000000000400,
"account_name": "sales",
"inventory_account_id": 504366000000034000,
"inventory_account_name": "Inventory Asset",
"status": "active",
"source": "user",
"is_combo_product": true,
"item_type": "inventory",
"rate": 85000,
"pricebook_rate": 85000,
"purchase_rate": 30000,
"reorder_level": 1,
"initial_stock": 2,
"initial_stock_rate": 30000,
"vendor_id": 504366000000053250,
"vendor_name": "Mr. vendor combo",
"stock_on_hand": 2,
"asset_value": 0,
"available_stock": 2,
"actual_available_stock": 2,
"sku": "SKUIS",
"upc": 746325287436,
"ean": 5789414385764,
"isbn": 368302334,
"part_number": "JHFKE7GK7",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"mapped_items": [
{
"line_item_id": 504366000000053250,
"item_id": 4815000000044208,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"rate": 85000,
"purchase_rate": 30000,
"sku": "SKUIS",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"image_type": "jpg",
"unit": "units",
"is_combo_product": true,
"description": "Just a sample description",
"quantity": 1,
"stock_on_hand": 2,
"available_stock": 2,
"actual_available_stock": 2
}
],
"item_tax_preferences": [
{
"tax_id": 504366000000053100,
"tax_specification": "intra"
}
],
"hsn_or_sac": 85423100,
"product_type": "goods",
"combo_type": "assembly"
}
{
"code": 0,
"message": "Item details have been saved.",
"composite_item": {
"composite_item_id": 504366000000053250,
"name": "Combo of Apple IPhone and Smartwatch",
"unit": "units",
"tax_id": 504366000000053100,
"description": "Just a sample description",
"tax_name": "VAT",
"tax_percentage": 13,
"tax_type": "tax",
"purchase_account_id": 504366000000034000,
"purchase_account_name": "Cost of Goods Sold",
"account_id": 504366000000000400,
"account_name": "sales",
"inventory_account_id": 504366000000034000,
"inventory_account_name": "Inventory Asset",
"status": "active",
"source": "user",
"is_combo_product": true,
"item_type": "inventory",
"rate": 85000,
"pricebook_rate": 85000,
"purchase_rate": 30000,
"reorder_level": 1,
"initial_stock": 2,
"initial_stock_rate": 30000,
"vendor_id": 504366000000053250,
"vendor_name": "Mr. vendor combo",
"stock_on_hand": 2,
"asset_value": 0,
"available_stock": 2,
"actual_available_stock": 2,
"sku": "SKUIS",
"upc": 746325287436,
"ean": 5789414385764,
"isbn": 368302334,
"part_number": "JHFKE7GK7",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"image_type": "jpg",
"is_taxable": true,
"product_type": "goods",
"purchase_description": "Composite item purchase description",
"category_id": 504366000000053500,
"category_name": "Hardware",
"combo_type": "assembly",
"brand": "Acme Corp",
"manufacturer": "Acme Manufacturing",
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"mapped_items": [
{
"line_item_id": 504366000000053250,
"item_id": 4815000000044208,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"rate": 85000,
"purchase_rate": 30000,
"sku": "SKUIS",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"image_type": "jpg",
"unit": "units",
"is_combo_product": true,
"description": "Just a sample description",
"quantity": 1,
"stock_on_hand": 2,
"available_stock": 2,
"actual_available_stock": 2
}
],
"item_tax_preferences": [
{
"tax_id": 504366000000053100,
"tax_specification": "intra"
}
],
"hsn_or_sac": 85423100,
"created_time": "2013-08-05",
"last_modified_time": "string"
}
}
Retrieving a Composite Item
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
Retrieving details of an existing compostie item.
OAuth Scope : ZohoInventory.compositeitems.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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"composite_item_id": 504366000000053250,
"name": "Combo of Apple IPhone and Smartwatch",
"status": "active",
"source": "user",
"unit": "units",
"tax_id": 504366000000053100,
"description": "Just a sample description",
"tax_name": "VAT",
"tax_percentage": 13,
"tax_type": "tax",
"purchase_account_id": 504366000000034000,
"purchase_account_name": "Cost of Goods Sold",
"account_id": 504366000000000400,
"account_name": "sales",
"inventory_account_id": 504366000000034000,
"inventory_account_name": "Inventory Asset",
"is_combo_product": true,
"item_type": "inventory",
"rate": 85000,
"pricebook_rate": 85000,
"purchase_rate": 30000,
"reorder_level": 1,
"initial_stock": 2,
"initial_stock_rate": 30000,
"vendor_id": 504366000000053250,
"vendor_name": "Mr. vendor combo",
"stock_on_hand": 2,
"asset_value": 0,
"available_stock": 2,
"actual_available_stock": 2,
"sku": "SKUIS",
"upc": 746325287436,
"ean": 5789414385764,
"isbn": 368302334,
"part_number": "JHFKE7GK7",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"mapped_items": [
{
"line_item_id": 504366000000053250,
"item_id": 4815000000044208,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"rate": 85000,
"purchase_rate": 30000,
"sku": "SKUIS",
"image_id": 8408722000000019000,
"image_name": "img1.jpg",
"purchase_description": "Composite item purchase description",
"image_type": "jpg",
"unit": "units",
"is_combo_product": true,
"description": "Just a sample description",
"quantity": 1,
"stock_on_hand": 2,
"available_stock": 2,
"actual_available_stock": 2
}
],
"is_taxable": true,
"product_type": "goods",
"image_type": "jpg",
"category_id": 504366000000053500,
"category_name": "Hardware",
"combo_type": "assembly",
"brand": "Acme Corp",
"manufacturer": "Acme Manufacturing",
"alias_name": "Combo Phone+Watch",
"assembly_type": "stock",
"label_rate": 90000,
"sales_rate": 85000,
"can_be_sold": true,
"can_be_purchased": true,
"track_inventory": true,
"is_returnable": true,
"tax_exemption_id": 504366000000053600,
"tax_exemption_code": "GST_FREE",
"minimum_order_quantity": 1,
"maximum_order_quantity": 100,
"committed_stock": 0,
"available_for_sale_stock": 2,
"track_serial_number": false,
"track_batch_number": false,
"is_linked_with_zohocrm": false,
"package_details": {
"length": 10,
"width": 5,
"height": 3,
"weight": 0.5,
"weight_unit": "kg",
"dimension_unit": "cm"
},
"tags": [
{
"tag_id": 504366000000053700,
"tag_option_id": 504366000000053700,
"tag_option_name": "Region A"
}
],
"item_tax_preferences": [
{
"tax_id": 504366000000053100,
"tax_specification": "intra"
}
],
"hsn_or_sac": 85423100,
"created_time": "2013-08-05",
"last_modified_time": "string"
}
Deleting a Composite Item
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
Deleting an existing Composite Item.
OAuth Scope : ZohoInventory.compositeitems.DELETE
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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?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/compositeitems/504366000000053250?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The item has been deleted."
}
Mark as Active
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
Changing status of an existing composite item to active.
OAuth Scope : ZohoInventory.compositeitems.CREATE
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/compositeitems/504366000000053250/active?organization_id=10234695"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/active?organization_id=10234695")
.post(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/active?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("POST", "/inventory/v1/compositeitems/504366000000053250/active?organization_id=10234695", headers=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/compositeitems/504366000000053250/active?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 POST \
--url 'https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/active?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Re-activation complete! The item is back in business!"
}
Mark as Inactive
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
Changing status of an existing composite item to inactive.
OAuth Scope : ZohoInventory.compositeitems.CREATE
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/compositeitems/504366000000053250/inactive?organization_id=10234695"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/inactive?organization_id=10234695")
.post(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/inactive?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("POST", "/inventory/v1/compositeitems/504366000000053250/inactive?organization_id=10234695", headers=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/compositeitems/504366000000053250/inactive?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 POST \
--url 'https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/inactive?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The item has been marked as inactive."
}
Upload Composite Item Images
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
Uploads an image for a composite item. Accepted image formats: gif, png, jpeg, jpg, bmp, webp. Maximum file size is 7 MB.
OAuth Scope : ZohoInventory.compositeitems.CREATE
Arguments
Path Parameters
Query Parameters
parameters_data = Map();
parameters_data.put("field1", "value1")
parameters_data.put("field2", "value2")
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/image?organization_id=10234695"
type: POST
headers: headers_data
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001");
RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n");
Request request = new Request.Builder()
.url("https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/image?organization_id=10234695")
.post(body)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.build();
Response response = client.newCall(request).execute();
const form = new FormData();
form.append("field1", "value1");
form.append("field2", "value2");
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
}
};
options.body = form;
fetch('https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/image?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 = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "multipart/form-data; boundary=---011000010111000001101001"
}
conn.request("POST", "/inventory/v1/compositeitems/504366000000053250/image?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/compositeitems/504366000000053250/image?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "multipart/form-data; boundary=---011000010111000001101001"
}
};
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("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field1\"\r\n\r\nvalue1\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"field2\"\r\n\r\nvalue2\r\n-----011000010111000001101001--\r\n");
req.end();
curl --request POST \
--url 'https://www.zohoapis.com/inventory/v1/compositeitems/504366000000053250/image?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: multipart/form-data' \
--form field1=value1 \
--form field2=value2
{
"image": "string"
}
{
"code": 0,
"message": "The composite item image has been uploaded."
}
Delete Composite Item Image
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 the images associated with a composite item.
OAuth Scope : ZohoInventory.compositeitems.DELETE
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/compositeitems/504366000000053250/image?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/compositeitems/504366000000053250/image?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/compositeitems/504366000000053250/image?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/compositeitems/504366000000053250/image?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/compositeitems/504366000000053250/image?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/compositeitems/504366000000053250/image?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The composite item image has been deleted."
}
Create Assemblies
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
Assemblies is the technique of putting together different components in desired quantities to produce a single commodity. These components could be goods, services and other non-inventory items of your choice.
OAuth Scope : ZohoInventory.compositeitems.CREATE
Arguments
draft, confirmed, bundled.item_id,name,description,quantity_consumed,unit,account_id,location_id.Query Parameters
true, the reference number provided in the request body is used as-is.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/bundles?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/bundles?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/bundles?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/bundles?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/bundles?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/bundles?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"reference_number": "REF-B-00005",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "draft",
"warehouse_id": "460000000038080",
"location_id": "460000000038080",
"line_items": [
{
"item_id": 4815000000044208,
"name": "Combo of Apple IPhone and Smartwatch",
"sku": "SK123",
"description": "Just a sample description",
"quantity_consumed": 1,
"total_quantity_consumed": 2,
"unit": "units",
"rate": 85000,
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"warehouse_id": "460000000038080",
"item_order": 1
}
],
"is_completed": true,
"custom_fields": [
{
"customfield_id": 504366000000053400,
"label": "VAT ID",
"value": "GBGD078"
}
]
}
{
"code": 0,
"message": "Assembly has been created.",
"bundle_id": 504366000000053250,
"reference_number": "REF-B-00005",
"transaction_number": "WO-00001",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "pending",
"total": 85000,
"warehouse_id": "460000000038080",
"warehouse_name": "Main Warehouse",
"is_completed": true,
"line_items": [
{
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"description": "Just a sample description",
"quantity_consumed": 1,
"unit": "units",
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"rate": 85000
}
],
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string"
}
Assemblies History
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 of all Assemblies of a given composite item.
OAuth Scope : ZohoInventory.compositeitems.READ
Query Parameters
WorkOrderDate.All, WorkOrderDate.Today, WorkOrderDate.ThisWeek, WorkOrderDate.ThisMonth, WorkOrderDate.ThisQuarter, WorkOrderDate.ThisYear, Status.All, Status.Pending, Status.Built, Status.Confirmed.date, total, created_time, last_modified_time, reference_number.A for ascending, D for descending.draft, confirmed, bundled.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/bundles?organization_id=10234695&composite_item_id=504366000000053250"
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/bundles?organization_id=10234695&composite_item_id=504366000000053250")
.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/bundles?organization_id=10234695&composite_item_id=504366000000053250', 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/bundles?organization_id=10234695&composite_item_id=504366000000053250", 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/bundles?organization_id=10234695&composite_item_id=504366000000053250",
"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/bundles?organization_id=10234695&composite_item_id=504366000000053250' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"bundles": [
{
"bundle_id": 504366000000053250,
"reference_number": "REF-B-00005",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "pending",
"total": 85000,
"transaction_number": "WO-00001",
"warehouse_id": "460000000038080",
"warehouse_name": "Main Warehouse",
"location_id": "460000000038080",
"location_name": "Head Office",
"line_items": [
{
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"description": "Just a sample description",
"quantity_consumed": 1,
"unit": "units",
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"rate": 85000
}
],
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string",
"created_by_id": 504366000000040000
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 10,
"has_more_page": true,
"report_name": "Composite Items",
"applied_filter": "Status.All",
"sort_column": "name",
"sort_order": "A"
}
}
Update an Assembly
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 the details of an existing assembly.
OAuth Scope : ZohoInventory.compositeitems.UPDATE
Path Parameters
Query Parameters
true, the reference number provided in the request body is used as-is.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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"reference_number": "REF-B-00005",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "draft",
"warehouse_id": "460000000038080",
"location_id": "460000000038080",
"line_items": [
{
"item_id": 4815000000044208,
"name": "Combo of Apple IPhone and Smartwatch",
"sku": "SK123",
"description": "Just a sample description",
"quantity_consumed": 1,
"total_quantity_consumed": 2,
"unit": "units",
"rate": 85000,
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"warehouse_id": "460000000038080",
"item_order": 1
}
],
"is_completed": true,
"custom_fields": [
{
"customfield_id": 504366000000053400,
"label": "VAT ID",
"value": "GBGD078"
}
]
}
{
"code": 0,
"message": "Assembly has been updated.",
"bundle": {
"bundle_id": 504366000000053250,
"reference_number": "REF-B-00005",
"transaction_number": "WO-00001",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "pending",
"total": 85000,
"warehouse_id": "460000000038080",
"warehouse_name": "Main Warehouse",
"location_id": "460000000038080",
"location_name": "Head Office",
"project_id": 504366000000070000,
"project_name": "Assembly Project",
"line_items": [
{
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"description": "Just a sample description",
"quantity_consumed": 1,
"unit": "units",
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"rate": 85000
}
],
"is_completed": true,
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string",
"created_by_id": 504366000000040000
}
}
Retrieve Assemblies
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 for an existing Assemblies.
OAuth Scope : ZohoInventory.compositeitems.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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"bundle": {
"bundle_id": 504366000000053250,
"reference_number": "REF-B-00005",
"transaction_number": "WO-00001",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "pending",
"total": 85000,
"warehouse_id": "460000000038080",
"warehouse_name": "Main Warehouse",
"location_id": "460000000038080",
"location_name": "Head Office",
"project_id": 504366000000070000,
"project_name": "Assembly Project",
"line_items": [
{
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"description": "Just a sample description",
"quantity_consumed": 1,
"unit": "units",
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"rate": 85000
}
],
"is_completed": true,
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string",
"created_by_id": 504366000000040000
}
}
Delete Assemblies
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 Assemblies from Zoho Inventory.
OAuth Scope : ZohoInventory.compositeitems.DELETE
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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?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/bundles/504366000000053250?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Assembly has been deleted."
}
Mark Assembly as Assembled
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
Marks an existing assembly as built, indicating that the composite item has been assembled from its components.
OAuth Scope : ZohoInventory.compositeitems.CREATE
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/bundles/504366000000053250/bundled?organization_id=10234695"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/inventory/v1/bundles/504366000000053250/bundled?organization_id=10234695")
.post(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/inventory/v1/bundles/504366000000053250/bundled?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("POST", "/inventory/v1/bundles/504366000000053250/bundled?organization_id=10234695", headers=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/bundles/504366000000053250/bundled?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 POST \
--url 'https://www.zohoapis.com/inventory/v1/bundles/504366000000053250/bundled?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The assembly has been marked as built.",
"bundle": {
"bundle_id": 504366000000053250,
"reference_number": "REF-B-00005",
"transaction_number": "WO-00001",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "built",
"total": 85000,
"warehouse_id": "460000000038080",
"warehouse_name": "Main Warehouse",
"location_id": "460000000038080",
"location_name": "Head Office",
"line_items": [
{
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"description": "Just a sample description",
"quantity_consumed": 1,
"unit": "units",
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"rate": 85000
}
],
"is_completed": true,
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string"
}
}
Mark Assembly as Confirmed
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
Marks an existing assembly as confirmed.
OAuth Scope : ZohoInventory.compositeitems.CREATE
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/bundles/504366000000053250/confirmed?organization_id=10234695"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/inventory/v1/bundles/504366000000053250/confirmed?organization_id=10234695")
.post(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/inventory/v1/bundles/504366000000053250/confirmed?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("POST", "/inventory/v1/bundles/504366000000053250/confirmed?organization_id=10234695", headers=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/bundles/504366000000053250/confirmed?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 POST \
--url 'https://www.zohoapis.com/inventory/v1/bundles/504366000000053250/confirmed?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The assembly has been marked as confirmed.",
"bundle": {
"bundle_id": 504366000000053250,
"reference_number": "REF-B-00005",
"transaction_number": "WO-00001",
"date": "2017-01-05",
"description": "Just a sample description",
"composite_item_id": 504366000000053250,
"composite_item_name": "Combo of Apple IPhone and Smartwatch",
"composite_item_sku": "SKUIS",
"quantity_to_bundle": 1,
"status": "confirmed",
"total": 85000,
"warehouse_id": "460000000038080",
"warehouse_name": "Main Warehouse",
"location_id": "460000000038080",
"location_name": "Head Office",
"line_items": [
{
"item_id": 4815000000044208,
"line_item_id": 504366000000053250,
"item_order": 1,
"name": "Combo of Apple IPhone and Smartwatch",
"description": "Just a sample description",
"quantity_consumed": 1,
"unit": "units",
"account_id": 504366000000000400,
"account_name": "sales",
"location_id": "460000000038080",
"location_name": "Head Office",
"rate": 85000
}
],
"is_completed": true,
"custom_fields": [
{
"customfield_id": 504366000000053400,
"value": "GBGD078",
"label": "VAT ID"
}
],
"created_time": "2013-08-05",
"last_modified_time": "string"
}
}