- Introduction
- OAuth
- HTTP Methods
- Response
- Errors
- Pagination
- Organizations
- Contacts
- Contact Persons
- Item Groups
- Items
- Composite Items
- Item Adjustments
- Transfer Orders
- Sales Orders
- Packages
- Shipment Orders
- Invoices
- Overview
- Create an invoice
- List invoices
- Update an invoice
- Get an invoice
- Delete an invoice
- Mark an invoice as sent
- Void an invoice
- Mark as draft
- Email an invoice
- Get invoice email content
- Email invoices
- Get payment reminder mail content
- Bulk export Invoices
- Bulk print invoices
- Disable payment reminder
- Enable payment reminder
- Write off invoice
- Cancel write off
- Update billing address
- Update shipping address
- List invoice templates
- Update invoice template
- List invoice payments
- List credits applied
- Apply credits
- Delete a payment
- Delete applied credit
- Add attachment to an invoice
- Update attachment preference
- Get an invoice attachment
- Delete an attachment
- Add comment
- List invoice comments & history
- Update comment
- Delete a comment
- Retainer Invoices
- Overview
- Create a retainer invoice
- List a retainer invoices
- update a retainer invoice
- Get a retainer invoice
- Delete a retainer invoice
- Mark a retainer invoice as sent
- Update retainer invoice template
- Void a retainer invoice
- Mark as draft
- Submit a retainer invoice for approval
- Approve a retainer invoice.
- Email a retainer invoice
- Get retainer invoice email content
- Update billing address
- List retainer invoice templates
- Add attachment to a retainer invoice
- Get a retainer invoice attachment
- Delete an attachment
- Add comment
- List retainer invoice comments & history
- Update comment
- Delete a comment
- Customer Payments
- Sales Returns
- Credit Notes
- Overview
- Create a credit note
- List all Credit Notes
- Update a credit note
- Get a credit note
- Delete a credit note
- Email a credit note
- Get email content
- Void a Credit Note
- Convert Credit Note to Draft
- Convert credit note to Open
- Submit a credit note for approval
- Approve a credit note
- Email history
- Update billing address
- Update Shipping address
- List the credit note templates
- Update a credit note template
- Apply credits to invoices
- List invoices credited
- Delete credits applied to an invoice
- Add a comment
- List credit note comments & history
- Delete a Comment
- List credit note refunds
- Refund credit note
- List refunds of a credit note
- Update credit note refund
- Get credit note refund
- Delete credit note refund
- Purchase Orders
- Purchase Receives
- Bills
- Vendor Credits
- Overview
- Create a vendor credit
- List vendor credits
- Update vendor credit
- Get vendor credit
- Delete vendor credit
- Convert to open
- Void vendor credit
- Submit a Vendor credit for approval
- Approve a Vendor credit
- Apply credits to a bill
- List bills credited
- Delete bills credited
- Refund a vendor credit
- List refunds of a vendor credit
- Update vendor credit refund
- Get vendor credit refund
- Delete vendor credit refund
- List vendor credit refunds
- Add a comment
- List vendor credit comments & history
- Delete a comment
- Warehouse Settings
- Price Lists
- Taxes
Item Groups
Item Group are the products that you sell or services that you render to various clients and can be purchased from various vendors in a business. Create and manage the item groups your business deals with and also create price lists for specific item and clients.
Create an Item Group
A new Item Group can a be created. While creating items, user can attach image for product group by passing form-data parameter image i.e., -F image=bag_s.jpg.
OAuth Scope : ZakyaAPI.items.CREATE
Arguments
- group_namestring(Required)
Name of the Item Group.
- brandstring
Brand of the Item Group.
- manufacturerstring
Manufacturer of Item Group.
- unitstring(Required)
Unit of measurement of the Item Group.
- descriptionstring
Description of the Item Group.
- tax_idlong
Unique ID generated by the server for the tax associated with the item. This is used a unique identifier.
- attribute_name1string
Name of the attribute present in the Item Group.
- itemsarray
The items present in the Item Group.
Show Sub-Attributes
- namestring(Required)
Name of the Item.
- ratedouble(Required)
Sales price of the Item.
- purchase_ratedouble(Required)
Purchase price of the Item.
- reorder_leveldouble
Reorder level of the item.
- initial_stockdouble
The opening stock of the item.
- initial_stock_ratedouble
The opening stock value of the item.
- vendor_idlong
Unique ID generated by the server for the Vendor. This is used as an identifier.
- skustring
The Stock Keeeping Unit (SKU) of an item. This is unique for every item in the Inventory.
- upclong
The 12 digit Unique Product Code (UPC) of the item.
- eanlong
Unique EAN value for the Item.
- isbnstring
Unique ISBN value for the Item.
- part_numberstring
Part Number of the Item.
- attribute_option_name1long
Name of the attribute's option.
- attributesarray
All the attributes present in the Item Group. Each attribute will have its own option.
Show Sub-Attributes
- idlong
Unique ID generated by the server for the attribute. This is used as an identifier.
- namestring
Name of the Item.
- optionsarray
The options present for each attribute.
Show Sub-Attributes
- idlong
Unique ID generated by the server for the attribute. This is used as an identifier.
- namestring
Name of the Item.
curl --request POST \
--url 'https://api.zakya.com/inventory/v1/itemgroups?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups?organization_id=10234695"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection:
]
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://api.zakya.com/inventory/v1/itemgroups?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 http = require("https");
const options = {
"method": "POST",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups?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();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://api.zakya.com/inventory/v1/itemgroups?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("api.zakya.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/inventory/v1/itemgroups?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"group_name": "Bags",
"brand": "Brand",
"manufacturer": "Bagstore",
"unit": "qty",
"description": "description",
"tax_id": 4815000000044043,
"attribute_name1": "Small",
"items": [
{
"name": "Bags-small",
"rate": 6,
"purchase_rate": 6,
"reorder_level": 5,
"initial_stock": 50,
"initial_stock_rate": 500,
"vendor_id": 4815000000044080,
"sku": "SK1234",
"upc": 111111111111,
"ean": 111111111112,
"isbn": 111111111113,
"part_number": 111111111114,
"attribute_option_name1": "Small"
}
],
"attributes": [
{
"id": 4815000000044112,
"name": "Bags-small",
"options": [
{
"id": 4815000000044112,
"name": "Bags-small"
}
]
}
]
}
{
"code": 0,
"message": "The Item Group has been created.",
"group_id": 4815000000044220,
"group_name": "Bags",
"documents": [
"string"
],
"brand": "Brand",
"manufacturer": "Bagstore",
"unit": "qty",
"description": "description",
"is_taxable": true,
"tax_id": 4815000000044043,
"tax_name": "Sales",
"tax_percentage": 12,
"tax_type": "Service Tax",
"attribute_id1": 4815000000044112,
"attribute_name1": "Small",
"status": "active",
"source": "string",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg",
"items": {
"item_id": 4815000000044208,
"name": "Bags-small",
"status": "active",
"rate": 6,
"purchase_rate": 6,
"reorder_level": 5,
"initial_stock": 50,
"initial_stock_rate": 500,
"vendor_id": 4815000000044080,
"vendor_name": "Molly",
"stock_on_hand": 50,
"sku": "SK1234",
"upc": 111111111111,
"ean": 111111111112,
"isbn": 111111111113,
"part_number": 111111111114,
"attribute_option_id1": 4815000000044214,
"attribute_option_name1": "Small",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg",
"actual_available_stock": 2,
"available_stock": 2
},
"attributes": {
"id": 4815000000044112,
"name": "Bags-small",
"options": {
"id": 4815000000044112,
"name": "Bags-small"
}
}
}
List all Item Groups
Lists all the Item Groups that are present in the Zakya organization.
OAuth Scope : ZakyaAPI.items.READ
curl --request GET \
--url 'https://api.zakya.com/inventory/v1/itemgroups?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups?organization_id=10234695"
type: GET
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/inventory/v1/itemgroups?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups?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();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/inventory/v1/itemgroups?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("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/inventory/v1/itemgroups?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "success",
"itemgroups": [
{
"group_id": 4815000000044220,
"group_name": "Bags",
"brand": "Brand",
"manufacturer": "Bagstore",
"unit": "qty",
"description": "description",
"is_taxable": true,
"tax_id": 4815000000044043,
"tax_name": "Sales",
"tax_percentage": 12,
"tax_type": "Service Tax",
"tax_exemption_id": null,
"attribute_id1": 4815000000044112,
"attribute_name1": "Small",
"status": "active",
"source": "string",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg",
"items": {
"item_id": 4815000000044208,
"name": "Bags-small",
"status": "active",
"rate": 6,
"purchase_rate": 6,
"reorder_level": 5,
"initial_stock": 50,
"initial_stock_rate": 500,
"vendor_id": 4815000000044080,
"vendor_name": "Molly",
"stock_on_hand": 50,
"sku": "SK1234",
"upc": 111111111111,
"ean": 111111111112,
"isbn": 111111111113,
"part_number": 111111111114,
"attribute_option_id1": 4815000000044214,
"attribute_option_name1": "Small",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg",
"available_stock": 2,
"actual_available_stock": 2
},
"created_time": "2013-01-24",
"last_modified_time": "2013-01-24"
},
{...},
{...}
]
}
Update an Item Group
Updates the details of an existing Item Group.
OAuth Scope : ZakyaAPI.items.UPDATE
Arguments
- group_namestring(Required)
Name of the Item Group.
- brandstring
Brand of the Item Group.
- manufacturerstring
Manufacturer of Item Group.
- unitstring(Required)
Unit of measurement of the Item Group.
- descriptionstring
Description of the Item Group.
- tax_idlong
Unique ID generated by the server for the tax associated with the item. This is used a unique identifier.
- attribute_name1string
Name of the attribute present in the Item Group.
- namestring(Required)
Name of the Item.
- ratedouble(Required)
Sales price of the Item.
- purchase_ratedouble(Required)
Purchase price of the Item.
- skustring(Required)
The Stock Keeeping Unit (SKU) of an item. This is unique for every item in the Inventory.
curl --request PUT \
--url 'https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695"
type: PUT
headers: headers_data
content-type: application/json
parameters: parameters_data
connection:
]
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://api.zakya.com/inventory/v1/itemgroups/?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 http = require("https");
const options = {
"method": "PUT",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups/?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();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://api.zakya.com/inventory/v1/itemgroups/?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("api.zakya.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("PUT", "/inventory/v1/itemgroups/?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"group_name": "Bags",
"brand": "Brand",
"manufacturer": "Bagstore",
"unit": "qty",
"description": "description",
"tax_id": 4815000000044043,
"attribute_name1": "Small",
"name": "Bags-small",
"rate": 6,
"purchase_rate": 6,
"sku": "SK1234"
}
{
"code": 0,
"message": "The Item Group details have been updated.",
"group_id": 4815000000044220,
"group_name": "Bags",
"brand": "Brand",
"manufacturer": "Bagstore",
"unit": "qty",
"description": "description",
"is_taxable": true,
"tax_id": 4815000000044043,
"tax_name": "Sales",
"tax_percentage": 12,
"tax_type": "Service Tax",
"attribute_id1": 4815000000044112,
"attribute_name1": "Small",
"status": "active",
"source": "string",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg"
}
Retrieve an Item Group
Fetches the details for an existing Item Group.
OAuth Scope : ZakyaAPI.items.READ
curl --request GET \
--url 'https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695"
type: GET
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups/?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();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/inventory/v1/itemgroups/?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("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/inventory/v1/itemgroups/?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "success",
"group_id": 4815000000044220,
"group_name": "Bags",
"brand": "Brand",
"manufacturer": "Bagstore",
"unit": "qty",
"description": "description",
"is_taxable": true,
"tax_id": 4815000000044043,
"tax_name": "Sales",
"tax_percentage": 12,
"tax_type": "Service Tax",
"attribute_id1": 4815000000044112,
"attribute_name1": "Small",
"status": "active",
"source": "string",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg",
"items": {
"item_id": 4815000000044208,
"name": "Bags-small",
"status": "active",
"rate": 6,
"purchase_rate": 6,
"reorder_level": 5,
"initial_stock": 50,
"initial_stock_rate": 500,
"vendor_id": 4815000000044080,
"vendor_name": "Molly",
"stock_on_hand": 50,
"sku": "SK1234",
"upc": 111111111111,
"ean": 111111111112,
"isbn": 111111111113,
"part_number": 111111111114,
"attribute_option_id1": 4815000000044214,
"attribute_option_name1": "Small",
"image_id": 2077500000000002000,
"image_name": "bag_s.jpg",
"image_type": "jpg"
},
"attributes": {
"id": 4815000000044112,
"name": "Bags-small",
"options": {
"id": 4815000000044112,
"name": "Bags-small"
}
},
"options": {
"id": 4815000000044112,
"name": "Bags-small"
}
}
Delete an Item Group
Deletes an existing Item Group from Zakya.
OAuth Scope : ZakyaAPI.items.DELETE
curl --request DELETE \
--url 'https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695"
type: DELETE
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/inventory/v1/itemgroups/?organization_id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups/?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();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/inventory/v1/itemgroups/?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("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/inventory/v1/itemgroups/?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "Whooooosh! The item group and all its items have been deleted."
}
Mark as Active
Marks an Item group as Active.
OAuth Scope : ZakyaAPI.items.CREATE
curl --request POST \
--url 'https://api.zakya.com/inventory/v1/itemgroups//active?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups//active?organization_id=10234695"
type: POST
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/inventory/v1/itemgroups//active?organization_id=10234695")
.post(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "POST",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups//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();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/inventory/v1/itemgroups//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("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("POST", "/inventory/v1/itemgroups//active?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "Back to business! The item group and all its items have been marked as active."
}
Mark as Inactive
Marks as Item Group as Inactive.
OAuth Scope : ZakyaAPI.items.CREATE
curl --request POST \
--url 'https://api.zakya.com/inventory/v1/itemgroups//inactive?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/inventory/v1/itemgroups//inactive?organization_id=10234695"
type: POST
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/inventory/v1/itemgroups//inactive?organization_id=10234695")
.post(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "POST",
"hostname": "api.zakya.com",
"port": null,
"path": "/inventory/v1/itemgroups//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();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/inventory/v1/itemgroups//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("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("POST", "/inventory/v1/itemgroups//inactive?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "The item group and all its items have been marked as inactive."
}