E-Way Bills
An e-Way Bill (EWB) is an electronic document generated on the GST portal for the movement of goods within or across states in India. e-Way Bills are required for transactions whose consignment value crosses the threshold defined by the GSTN. The e-Way Bills module in Zoho Inventory lets you generate, update, cancel, extend, and print EWBs for invoices, credit notes, delivery challans, and other supported transactions in the India edition.
Attribute
invoice, creditnote, deliverychallan.ewaybill_number.draft, generated, cancelled, expired, excluded.general and gold.supply, export, job_work, sktd, recipient_not_known, for_own_use, exhibition_or_fairs, line_sales, others.sub_supply_type is others. Max-length [20].road, rail, air, ship.yyyy-mm-dd.regular and over_dimensional_cargo.road, rail, air, ship.create, update, multi_vehicle.due_to_break_down, due_to_transhipment, first_time, others.{
"ewaybill_id": "460000000123456",
"entity_id": "460000000098765",
"entity_type": "invoice",
"entity_number": "INV-00045",
"entity_date_formatted": "15 Jan 2025",
"entity_status": "sent",
"supplier_gstin": "29ABCDE1234F1Z5",
"customer_name": "Zylker Trading Co.",
"customer_gstin": "27FGHIJ5678K1Z2",
"ewaybill_number": "123456789012",
"eway_bill_number": "123456789012",
"ewaybill_date": "2025-01-15 10:30:00",
"ewaybill_start_date": "2025-01-15",
"ewaybill_start_date_formatted": "15 Jan 2025",
"ewaybill_expiry_date": "2025-01-16 10:30:00",
"ewaybill_status": "generated",
"ewaybill_status_formatted": "Generated",
"ewaybill_type": "general",
"validity_days": 1,
"can_allow_print_ewaybill": true,
"can_allow_cancel_ewaybill": true,
"cancel_reason": "duplicate",
"cancel_reason_formatted": "Duplicate",
"cancel_remarks": "Duplicate entry",
"cancel_remarks_formatted": "Duplicate entry",
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5",
"sub_supply_type": "supply",
"sub_supply_type_desc": "Sample movement",
"distance": 350,
"transportation_mode": "road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_type_formatted": "National",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"vehicle_gross_weight": 12.5,
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"place_of_dispatch": "29",
"place_of_delivery": "27",
"ship_to_state_code": "27",
"dispatch_from_address_id": "460000000678901",
"ship_to_address_id": "460000000678902",
"entity_total": 50000,
"is_vehicle_details_push_failed": false,
"vehicle_details": [
{
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "create",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"remarks": "Initial dispatch",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"vehicle_gross_weight": 12.5,
"group_number": "1"
}
],
"multivehicle_group_details": [
{
"group_id": "460000000456789",
"group_name": "Group 1",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"to_place": "Mumbai",
"to_state": "27",
"to_state_formatted": "Maharashtra",
"remarks": "Split shipment",
"group_number": "1",
"group_number_formatted": "Group 1",
"total_quantity": 5000,
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"operation_type": "multi_vehicle",
"unit_id": "460000000999111",
"unit": "kg",
"uqc": "KGS",
"vehicle_details": [
{
"vehicle_id": "460000000345678",
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "multi_vehicle",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "due_to_transhipment",
"remarks": "Mid-route swap",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"quantity": 1000,
"group_number": "1",
"group_number_formatted": "Group 1",
"is_cancelled": false,
"multivehicle_group_id": "460000000456789"
}
]
}
]
}
Create an e-Way Bill
Create an e-Way Bill for a transaction such as an invoice, credit note, or delivery challan. The transaction is identified by entity_id and entity_type. Set action to save_generate to generate the e-Way Bill on the GST portal in the same call. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
invoice, creditnote, deliverychallan.action is manually_generated. Max-length [15].yyyy-mm-dd.road, rail, air, ship.regular, bill_to_ship_to, bill_from_dispatch_from, combination_of_2_and_3.supply, export, job_work, sktd, recipient_not_known, for_own_use, exhibition_or_fairs, line_sales, others.sub_supply_type is others. Max-length [20].yyyy-mm-dd.regular and over_dimensional_cargo. Max-length [100].save, save_generate, manually_generated.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/ewaybills?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/ewaybills?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/ewaybills?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/ewaybills?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/ewaybills?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/ewaybills?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"entity_id": "460000000098765",
"entity_type": "invoice",
"branch_id": "460000001012345",
"location_id": "460000001123456",
"ewaybill_number": "123456789012",
"ewaybill_date": "2025-01-15",
"transporter_id": "460000000234567",
"transportation_mode": "road",
"transaction_type": "regular",
"dispatch_from_address_id": "460000000678901",
"ship_to_address_id": "460000000678902",
"sub_supply_type": "supply",
"sub_supply_type_desc": "Sample movement",
"vehicle_number": "KA01AB1234",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"ship_to_state_code": "27",
"distance": 350,
"validity_days": 1,
"vehicle_type": "regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"vehicle_gross_weight": 12.5,
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"action": "save_generate"
}
{
"code": 0,
"message": "The e-Way Bill details have been saved.",
"ewaybill": {
"ewaybill_id": "460000000123456",
"entity_id": "460000000098765",
"entity_type": "invoice",
"entity_number": "INV-00045",
"entity_date_formatted": "15 Jan 2025",
"entity_status": "sent",
"supplier_gstin": "29ABCDE1234F1Z5",
"customer_name": "Zylker Trading Co.",
"customer_gstin": "27FGHIJ5678K1Z2",
"ewaybill_number": "123456789012",
"eway_bill_number": "123456789012",
"ewaybill_date": "2025-01-15 10:30:00",
"ewaybill_start_date": "2025-01-15",
"ewaybill_start_date_formatted": "15 Jan 2025",
"ewaybill_expiry_date": "2025-01-16 10:30:00",
"ewaybill_status": "generated",
"ewaybill_status_formatted": "Generated",
"ewaybill_type": "general",
"validity_days": 1,
"can_allow_print_ewaybill": true,
"can_allow_cancel_ewaybill": true,
"cancel_reason": "duplicate",
"cancel_reason_formatted": "Duplicate",
"cancel_remarks": "Duplicate entry",
"cancel_remarks_formatted": "Duplicate entry",
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5",
"sub_supply_type": "supply",
"sub_supply_type_desc": "Sample movement",
"distance": 350,
"transportation_mode": "road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_type_formatted": "National",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"vehicle_gross_weight": 12.5,
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"place_of_dispatch": "29",
"place_of_delivery": "27",
"ship_to_state_code": "27",
"dispatch_from_address_id": "460000000678901",
"ship_to_address_id": "460000000678902",
"entity_total": 50000,
"is_vehicle_details_push_failed": false,
"vehicle_details": [
{
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "create",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"remarks": "Initial dispatch",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"vehicle_gross_weight": 12.5,
"group_number": "1"
}
],
"multivehicle_group_details": [
{
"group_id": "460000000456789",
"group_name": "Group 1",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"to_place": "Mumbai",
"to_state": "27",
"to_state_formatted": "Maharashtra",
"remarks": "Split shipment",
"group_number": "1",
"group_number_formatted": "Group 1",
"total_quantity": 5000,
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"operation_type": "multi_vehicle",
"unit_id": "460000000999111",
"unit": "kg",
"uqc": "KGS",
"vehicle_details": [
{
"vehicle_id": "460000000345678",
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "multi_vehicle",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "due_to_transhipment",
"remarks": "Mid-route swap",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"quantity": 1000,
"group_number": "1",
"group_number_formatted": "Group 1",
"is_cancelled": false,
"multivehicle_group_id": "460000000456789"
}
]
}
]
}
}
List e-Way Bills
Get the list of e-Way Bills generated for the organization. Filter by transaction type, status, date range, branch, or specific entity IDs. Available only in the India edition.
OAuth Scope : ZohoInventory.reports.READ
Query Parameters
invoice, creditnote, deliverychallan.draft, generated, cancelled, expired, excluded.TransactionDate.ThisMonth, TransactionDate.ThisQuarter, TransactionDate.ThisYear, TransactionDate.PreviousMonth, TransactionDate.PreviousQuarter, TransactionDate.PreviousYear, TransactionDate.CustomDate.entity_date, expires_in, ewaybill_date, created_time.A (ascending) and D (descending).yyyy-mm-dd.yyyy-mm-dd.ewaybill.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills?organization_id=10234695&entity_type=invoice"
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/ewaybills?organization_id=10234695&entity_type=invoice")
.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/ewaybills?organization_id=10234695&entity_type=invoice', 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/ewaybills?organization_id=10234695&entity_type=invoice", 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/ewaybills?organization_id=10234695&entity_type=invoice",
"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/ewaybills?organization_id=10234695&entity_type=invoice' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"ewaybills": [
{
"ewaybill_id": "460000000123456",
"entity_id": "460000000098765",
"entity_type": "invoice",
"ewaybill_type": "general",
"entity_number": "INV-00045",
"entity_date": "2025-01-15",
"customer_name": "Zylker Trading Co.",
"customer_gstin": "27FGHIJ5678K1Z2",
"total": 50000,
"ewaybill_number": "123456789012",
"ewaybill_status": "generated",
"ewaybill_status_formatted": "Generated",
"ewaybill_date": "2025-01-15",
"expires_in": "2025-01-16",
"is_expired": false
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 10,
"has_more_page": false,
"report_name": "e-Way Bills",
"applied_filter": "TransactionDate.ThisMonth",
"sort_column": "ewaybill_date",
"sort_order": "D"
}
}
Update an e-Way Bill
Update the details of an existing e-Way Bill. Use the action query parameter to control whether the changes are saved as a draft, generated on the GST portal, or marked as manually generated. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
Path Parameters
Query Parameters
save, save_generate, manually_generated.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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"entity_id": "460000000098765",
"entity_type": "invoice",
"branch_id": "460000001012345",
"location_id": "460000001123456",
"ewaybill_number": "123456789012",
"ewaybill_date": "2025-01-15",
"transporter_id": "460000000234567",
"transportation_mode": "road",
"transaction_type": "regular",
"dispatch_from_address_id": "460000000678901",
"ship_to_address_id": "460000000678902",
"sub_supply_type": "supply",
"sub_supply_type_desc": "Sample movement",
"vehicle_number": "KA01AB1234",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"ship_to_state_code": "27",
"distance": 350,
"validity_days": 1,
"vehicle_type": "regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"vehicle_gross_weight": 12.5,
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"action": "save_generate"
}
{
"code": 0,
"message": "The e-Way Bill details have been saved.",
"ewaybill": {
"ewaybill_id": "460000000123456",
"entity_id": "460000000098765",
"entity_type": "invoice",
"entity_number": "INV-00045",
"entity_date_formatted": "15 Jan 2025",
"entity_status": "sent",
"supplier_gstin": "29ABCDE1234F1Z5",
"customer_name": "Zylker Trading Co.",
"customer_gstin": "27FGHIJ5678K1Z2",
"ewaybill_number": "123456789012",
"eway_bill_number": "123456789012",
"ewaybill_date": "2025-01-15 10:30:00",
"ewaybill_start_date": "2025-01-15",
"ewaybill_start_date_formatted": "15 Jan 2025",
"ewaybill_expiry_date": "2025-01-16 10:30:00",
"ewaybill_status": "generated",
"ewaybill_status_formatted": "Generated",
"ewaybill_type": "general",
"validity_days": 1,
"can_allow_print_ewaybill": true,
"can_allow_cancel_ewaybill": true,
"cancel_reason": "duplicate",
"cancel_reason_formatted": "Duplicate",
"cancel_remarks": "Duplicate entry",
"cancel_remarks_formatted": "Duplicate entry",
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5",
"sub_supply_type": "supply",
"sub_supply_type_desc": "Sample movement",
"distance": 350,
"transportation_mode": "road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_type_formatted": "National",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"vehicle_gross_weight": 12.5,
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"place_of_dispatch": "29",
"place_of_delivery": "27",
"ship_to_state_code": "27",
"dispatch_from_address_id": "460000000678901",
"ship_to_address_id": "460000000678902",
"entity_total": 50000,
"is_vehicle_details_push_failed": false,
"vehicle_details": [
{
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "create",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"remarks": "Initial dispatch",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"vehicle_gross_weight": 12.5,
"group_number": "1"
}
],
"multivehicle_group_details": [
{
"group_id": "460000000456789",
"group_name": "Group 1",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"to_place": "Mumbai",
"to_state": "27",
"to_state_formatted": "Maharashtra",
"remarks": "Split shipment",
"group_number": "1",
"group_number_formatted": "Group 1",
"total_quantity": 5000,
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"operation_type": "multi_vehicle",
"unit_id": "460000000999111",
"unit": "kg",
"uqc": "KGS",
"vehicle_details": [
{
"vehicle_id": "460000000345678",
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "multi_vehicle",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "due_to_transhipment",
"remarks": "Mid-route swap",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"quantity": 1000,
"group_number": "1",
"group_number_formatted": "Group 1",
"is_cancelled": false,
"multivehicle_group_id": "460000000456789"
}
]
}
]
}
}
Retrieve an e-Way Bill
Get the details of an e-Way Bill, including transporter, vehicle, dispatch, and shipping information. Available only in the India edition.
OAuth Scope : ZohoInventory.invoices.READ
Path Parameters
Query Parameters
true to retrieve the printable representation of the e-Way Bill. Allowed values true and false.html.simple and detailed.true to combine the e-Way Bill with the source document in the printable output. Allowed values true and false.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"ewaybill": {
"ewaybill_id": "460000000123456",
"entity_id": "460000000098765",
"entity_type": "invoice",
"entity_number": "INV-00045",
"entity_date_formatted": "15 Jan 2025",
"entity_status": "sent",
"supplier_gstin": "29ABCDE1234F1Z5",
"customer_name": "Zylker Trading Co.",
"customer_gstin": "27FGHIJ5678K1Z2",
"ewaybill_number": "123456789012",
"eway_bill_number": "123456789012",
"ewaybill_date": "2025-01-15 10:30:00",
"ewaybill_start_date": "2025-01-15",
"ewaybill_start_date_formatted": "15 Jan 2025",
"ewaybill_expiry_date": "2025-01-16 10:30:00",
"ewaybill_status": "generated",
"ewaybill_status_formatted": "Generated",
"ewaybill_type": "general",
"validity_days": 1,
"can_allow_print_ewaybill": true,
"can_allow_cancel_ewaybill": true,
"cancel_reason": "duplicate",
"cancel_reason_formatted": "Duplicate",
"cancel_remarks": "Duplicate entry",
"cancel_remarks_formatted": "Duplicate entry",
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5",
"sub_supply_type": "supply",
"sub_supply_type_desc": "Sample movement",
"distance": 350,
"transportation_mode": "road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_type_formatted": "National",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"vehicle_gross_weight": 12.5,
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"place_of_dispatch": "29",
"place_of_delivery": "27",
"ship_to_state_code": "27",
"dispatch_from_address_id": "460000000678901",
"ship_to_address_id": "460000000678902",
"entity_total": 50000,
"is_vehicle_details_push_failed": false,
"vehicle_details": [
{
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "create",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"remarks": "Initial dispatch",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"vehicle_gross_weight": 12.5,
"group_number": "1"
}
],
"multivehicle_group_details": [
{
"group_id": "460000000456789",
"group_name": "Group 1",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"to_place": "Mumbai",
"to_state": "27",
"to_state_formatted": "Maharashtra",
"remarks": "Split shipment",
"group_number": "1",
"group_number_formatted": "Group 1",
"total_quantity": 5000,
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"operation_type": "multi_vehicle",
"unit_id": "460000000999111",
"unit": "kg",
"uqc": "KGS",
"vehicle_details": [
{
"vehicle_id": "460000000345678",
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "multi_vehicle",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "due_to_transhipment",
"remarks": "Mid-route swap",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"quantity": 1000,
"group_number": "1",
"group_number_formatted": "Group 1",
"is_cancelled": false,
"multivehicle_group_id": "460000000456789"
}
]
}
]
}
}
Delete an e-Way Bill
Delete an e-Way Bill from the organization. Generated e-Way Bills cannot be deleted; cancel them on the GST portal first. Available only in the India edition.
OAuth Scope : ZohoInventory.estimates.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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?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/ewaybills/460000000123456?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The e-Way Bill has been deleted."
}
Cancel an e-Way Bill
Cancel a generated e-Way Bill on the GST portal. The e-Way Bill can be cancelled within 24 hours of generation, provided it has not been verified during transit. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
duplicate, order_cancelled, data_entry_mistake, others.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/ewaybills/460000000123456/cancel?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/ewaybills/460000000123456/cancel?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/ewaybills/460000000123456/cancel?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/ewaybills/460000000123456/cancel?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/ewaybills/460000000123456/cancel?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/ewaybills/460000000123456/cancel?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"reason": "duplicate",
"remarks": "Duplicate entry"
}
{
"code": 0,
"message": "The e-Way Bill has been cancelled."
}
Sync an e-Way Bill
Pull the latest status of an e-Way Bill from the GST portal and update it in Zoho Inventory. Available only in the India edition.
OAuth Scope : ZohoInventory.reports.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/ewaybills/460000000123456/sync?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/ewaybills/460000000123456/sync?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/ewaybills/460000000123456/sync?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/ewaybills/460000000123456/sync?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/ewaybills/460000000123456/sync?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/ewaybills/460000000123456/sync?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The e-Way Bill has been synced successfully."
}
Exclude e-Way Bills
Mark a set of transactions as not requiring an e-Way Bill so they are excluded from the e-Way Bills list. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Query Parameters
invoice, creditnote, deliverychallan.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/exclude?organization_id=10234695&entity_ids=460000000098765,460000000098766&entity_type=invoice"
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/ewaybills/exclude?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice")
.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/ewaybills/exclude?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice', 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/ewaybills/exclude?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice", 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/ewaybills/exclude?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice",
"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/ewaybills/exclude?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The selected transactions have been excluded from e-Way Bill generation."
}
Restore e-Way Bills
Move previously excluded transactions back into the list of transactions that require an e-Way Bill. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Query Parameters
invoice, creditnote, deliverychallan.headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/restore?organization_id=10234695&entity_ids=460000000098765,460000000098766&entity_type=invoice"
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/ewaybills/restore?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice")
.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/ewaybills/restore?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice', 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/ewaybills/restore?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice", 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/ewaybills/restore?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice",
"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/ewaybills/restore?organization_id=10234695&entity_ids=460000000098765%2C460000000098766&entity_type=invoice' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The selected transactions have been restored for e-Way Bill generation."
}
Add a vehicle to an e-Way Bill
Update the vehicle details of an e-Way Bill on the GST portal during transit (for example, when the vehicle is changed at a transhipment point). Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
regular and over_dimensional_cargo. Max-length [100].road, rail, air, ship.due_to_break_down, due_to_transhipment, first_time, others.yyyy-mm-dd.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/ewaybills/460000000123456/vehicles?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/ewaybills/460000000123456/vehicles?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/ewaybills/460000000123456/vehicles?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/ewaybills/460000000123456/vehicles?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/ewaybills/460000000123456/vehicles?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/ewaybills/460000000123456/vehicles?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"vehicle_id": "460000000345678",
"vehicle_number": "KA01AB1234",
"vehicle_type": "regular",
"transportation_mode": "road",
"from_place": "Bengaluru",
"from_state": "29",
"reason": "first_time",
"remarks": "Initial dispatch",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15"
}
{
"code": 0,
"message": "The vehicle details have been added to the e-Way Bill.",
"vehicle_details": {
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "create",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"remarks": "Initial dispatch",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"vehicle_gross_weight": 12.5,
"group_number": "1"
}
}
Update a vehicle in an e-Way Bill
Update an existing vehicle entry in an e-Way Bill. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
Path Parameters
Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/460000000123456/vehicles/460000000345678?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/ewaybills/460000000123456/vehicles/460000000345678?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/ewaybills/460000000123456/vehicles/460000000345678?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/ewaybills/460000000123456/vehicles/460000000345678?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/ewaybills/460000000123456/vehicles/460000000345678?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/ewaybills/460000000123456/vehicles/460000000345678?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"vehicle_id": "460000000345678",
"vehicle_number": "KA01AB1234",
"vehicle_type": "regular",
"transportation_mode": "road",
"from_place": "Bengaluru",
"from_state": "29",
"reason": "first_time",
"remarks": "Initial dispatch",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15"
}
{
"code": 0,
"message": "The vehicle details have been updated.",
"vehicle_details": {
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "create",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"remarks": "Initial dispatch",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"vehicle_permit_type": "national",
"vehicle_permit_number": "PMT-998877",
"vehicle_model_year": 2022,
"vehicle_reg_place": "Bengaluru",
"insurer": "Acme Insurance Ltd.",
"insurance_policy_number": "POL-123456789",
"vehicle_gross_weight": 12.5,
"group_number": "1"
}
}
Extend the validity of an e-Way Bill
Extend the validity of an e-Way Bill on the GST portal when goods cannot be transported within the original validity period. The extension can be requested between 8 hours before and 8 hours after the e-Way Bill expires. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
Arguments
in_transit and in_movement.regular and over_dimensional_cargo.yyyy-mm-dd.natural_calamity, law_and_order, transhipment, accident, others.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/ewaybills/460000000123456/extendvalidity?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/ewaybills/460000000123456/extendvalidity?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/ewaybills/460000000123456/extendvalidity?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/ewaybills/460000000123456/extendvalidity?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/ewaybills/460000000123456/extendvalidity?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/ewaybills/460000000123456/extendvalidity?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"current_place": "Pune",
"current_state": "27",
"current_pincode": "411001",
"consignment_mode": "in_movement",
"vehicle_type": "regular",
"vehicle_number": "KA01AB1234",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"remaining_distance": 200,
"address_line_1": "12, MG Road",
"address_line_2": "Near Central Park",
"address_line_3": "Pune",
"extend_reason": "transhipment",
"extend_remarks": "Vehicle breakdown"
}
{
"code": 0,
"message": "The e-Way Bill validity has been extended."
}
Initiate a multi-vehicle movement
Initiate a multi-vehicle movement for an e-Way Bill when the consignment is split across multiple vehicles between two consignment points. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
due_to_break_down, due_to_transhipment, first_time, others.road, rail, air, ship.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/ewaybills/460000000123456/multivehicle/initiate?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/ewaybills/460000000123456/multivehicle/initiate?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/ewaybills/460000000123456/multivehicle/initiate?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/ewaybills/460000000123456/multivehicle/initiate?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/ewaybills/460000000123456/multivehicle/initiate?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/ewaybills/460000000123456/multivehicle/initiate?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"reason": "due_to_transhipment",
"remarks": "Split shipment for transhipment",
"from_place": "Bengaluru",
"from_state": "29",
"to_place": "Mumbai",
"to_state": "27",
"transportation_mode": "road",
"total_quantity": 5000,
"unit_id": "460000000999111"
}
{
"code": 0,
"message": "The multi-vehicle movement has been initiated.",
"multivehicle_group_details": [
{
"group_id": "460000000456789",
"group_name": "Group 1",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"to_place": "Mumbai",
"to_state": "27",
"to_state_formatted": "Maharashtra",
"remarks": "Split shipment",
"group_number": "1",
"group_number_formatted": "Group 1",
"total_quantity": 5000,
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"operation_type": "multi_vehicle",
"unit_id": "460000000999111",
"unit": "kg",
"uqc": "KGS",
"vehicle_details": [
{
"vehicle_id": "460000000345678",
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "multi_vehicle",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "due_to_transhipment",
"remarks": "Mid-route swap",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"quantity": 1000,
"group_number": "1",
"group_number_formatted": "Group 1",
"is_cancelled": false,
"multivehicle_group_id": "460000000456789"
}
]
},
{...},
{...}
]
}
Add vehicles to a multi-vehicle movement
Add up to five vehicles to an existing multi-vehicle movement group of an e-Way Bill. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
yyyy-mm-dd.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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
[
{
"vehicle_number": "KA01AB1234",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"quantity": 1000
}
]
{
"code": 0,
"message": "The vehicles have been added to the multi-vehicle movement.",
"vehicle_response_details": [
{
"vehicle_id": "460000000345678",
"status": "success",
"message": "Vehicle added."
},
{...},
{...}
]
}
Change a vehicle in a multi-vehicle movement
Replace an existing vehicle entry in a multi-vehicle movement group of an e-Way Bill. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
due_to_break_down, due_to_transhipment, first_time, others.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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles/460000000567890?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles/460000000567890?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles/460000000567890?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles/460000000567890?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles/460000000567890?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/ewaybills/460000000123456/multivehicle/460000000456789/vehicles/460000000567890?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"transporter_document_number": "LR-12345",
"vehicle_number": "KA01AB1234",
"reason": "due_to_break_down",
"remarks": "Replacement vehicle",
"from_place": "Pune",
"from_state": "27"
}
{
"code": 0,
"message": "The vehicle in the multi-vehicle movement has been updated.",
"multivehicle_group_details": [
{
"group_id": "460000000456789",
"group_name": "Group 1",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "first_time",
"to_place": "Mumbai",
"to_state": "27",
"to_state_formatted": "Maharashtra",
"remarks": "Split shipment",
"group_number": "1",
"group_number_formatted": "Group 1",
"total_quantity": 5000,
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"operation_type": "multi_vehicle",
"unit_id": "460000000999111",
"unit": "kg",
"uqc": "KGS",
"vehicle_details": [
{
"vehicle_id": "460000000345678",
"transportation_mode": "road",
"transportation_mode_formatted": "Road",
"transporter_document_number": "LR-12345",
"transporter_document_date": "2025-01-15",
"vehicle_number": "KA01AB1234",
"updated_time": "2025-01-15 10:35:00",
"operation_type": "multi_vehicle",
"from_place": "Bengaluru",
"from_state": "29",
"from_state_formatted": "Karnataka",
"reason": "due_to_transhipment",
"remarks": "Mid-route swap",
"vehicle_type": "regular",
"vehicle_type_formatted": "Regular",
"quantity": 1000,
"group_number": "1",
"group_number_formatted": "Group 1",
"is_cancelled": false,
"multivehicle_group_id": "460000000456789"
}
]
},
{...},
{...}
]
}
Create a transporter
Create a transporter that can be associated with e-Way Bills generated for the organization. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5"
}
{
"code": 0,
"message": "The transporter has been added.",
"transporter": {
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5"
}
}
List transporters
Get the list of transporters configured for the organization. Available only in the India edition.
OAuth Scope : ZohoInventory.invoices.READ
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?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/ewaybills/transporters?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"transporters": [
{
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5"
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 10,
"has_more_page": false,
"report_name": "e-Way Bills",
"applied_filter": "TransactionDate.ThisMonth",
"sort_column": "ewaybill_date",
"sort_order": "D"
}
}
Update a transporter
Update the details of an existing transporter. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
Path Parameters
Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/transporters/460000000234567?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/ewaybills/transporters/460000000234567?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/ewaybills/transporters/460000000234567?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/ewaybills/transporters/460000000234567?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/ewaybills/transporters/460000000234567?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/ewaybills/transporters/460000000234567?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5"
}
{
"code": 0,
"message": "The transporter details have been updated.",
"transporter": {
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5"
}
}
Update the transporter of an e-Way Bill
Update the transporter associated with an e-Way Bill. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
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/ewaybills/460000000123456/transporters/460000000234567?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/inventory/v1/ewaybills/460000000123456/transporters/460000000234567?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/inventory/v1/ewaybills/460000000123456/transporters/460000000234567?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("PUT", "/inventory/v1/ewaybills/460000000123456/transporters/460000000234567?organization_id=10234695", headers=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/ewaybills/460000000123456/transporters/460000000234567?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 PUT \
--url 'https://www.zohoapis.com/inventory/v1/ewaybills/460000000123456/transporters/460000000234567?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The transporter has been updated for the e-Way Bill.",
"transporter": {
"transporter_id": "460000000234567",
"transporter_name": "Speedy Logistics",
"transporter_license": "TL-998877",
"transporter_registration_id": "12AAAAA0000A1Z5"
}
}
Create a dispatch-from address
Add a new dispatch-from address to be used while generating e-Way Bills. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Arguments
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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"attention": "Warehouse Manager",
"company_name": "Zylker Inc.",
"address": "12, MG Road",
"street2": "Indiranagar",
"city": "Bengaluru",
"state": "Karnataka",
"state_code": "29",
"zip": "560001",
"country": "India",
"country_code": "IN",
"phone": "+91 80 12345678",
"fax": "+91 80 12345679"
}
{
"code": 0,
"message": "The dispatch-from address has been added.",
"address": {
"address_id": "460000000678901",
"attention": "Warehouse Manager",
"company_name": "Zylker Inc.",
"address": "12, MG Road",
"street2": "Indiranagar",
"city": "Bengaluru",
"state": "Karnataka",
"state_code": "29",
"zip": "560001",
"country": "India",
"country_code": "IN",
"phone": "+91 80 12345678",
"fax": "+91 80 12345679"
}
}
List dispatch-from addresses
Get the list of addresses from which goods can be dispatched while generating e-Way Bills. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.READ
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?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/ewaybills/address/dispatchfrom?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"addresses": [
{
"address_id": "460000000678901",
"attention": "Warehouse Manager",
"company_name": "Zylker Inc.",
"address": "12, MG Road",
"street2": "Indiranagar",
"city": "Bengaluru",
"state": "Karnataka",
"state_code": "29",
"zip": "560001",
"country": "India",
"country_code": "IN",
"phone": "+91 80 12345678",
"fax": "+91 80 12345679"
},
{...},
{...}
]
}
Delete a dispatch-from address
Delete a dispatch-from address from the list of addresses available for e-Way Bill generation. Available only in the India edition.
OAuth Scope : ZohoInventory.estimates.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/ewaybills/address/dispatchfrom/460000000678901?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/ewaybills/address/dispatchfrom/460000000678901?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/ewaybills/address/dispatchfrom/460000000678901?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/ewaybills/address/dispatchfrom/460000000678901?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/ewaybills/address/dispatchfrom/460000000678901?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/ewaybills/address/dispatchfrom/460000000678901?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The dispatch-from address has been deleted."
}
Update e-Way Bill settings
Update the GST portal credentials used for generating e-Way Bills. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
Arguments
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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"ewaybill_username": "gstapi_user",
"ewaybill_password": "StrongP@ssw0rd"
}
{
"code": 0,
"message": "The e-Way Bill credentials have been updated.",
"ewaybill_settings": {
"ewaybill_username": "gstapi_user",
"tax_reg_no": "29ABCDE1234F1Z5",
"is_active": true,
"is_ewaybill_enabled": true,
"ewb_preference": {
"ewb_types": [
{
"ewb_type": "general",
"threshold": 50000,
"is_enabled": true
}
]
}
}
}
Get e-Way Bill settings
Get the e-Way Bill settings configured for the organization, including the credentials registered with the GST portal and the activation status. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.READ
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?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/settings/ewaybills?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"ewaybill_settings": {
"ewaybill_username": "gstapi_user",
"tax_reg_no": "29ABCDE1234F1Z5",
"is_active": true,
"is_ewaybill_enabled": true,
"ewb_preference": {
"ewb_types": [
{
"ewb_type": "general",
"threshold": 50000,
"is_enabled": true
}
]
}
}
}
Enable e-Way Bills
Enable the e-Way Bills tab for the organization. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/settings/ewaybills/enable?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/settings/ewaybills/enable?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/settings/ewaybills/enable?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/settings/ewaybills/enable?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/settings/ewaybills/enable?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/settings/ewaybills/enable?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The e-Way Bills module has been enabled successfully."
}
Disable e-Way Bills
Disable the e-Way Bills tab for the organization. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/settings/ewaybills/disable?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/settings/ewaybills/disable?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/settings/ewaybills/disable?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/settings/ewaybills/disable?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/settings/ewaybills/disable?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/settings/ewaybills/disable?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The e-Way Bills module has been disabled successfully."
}
Deactivate e-Way Bill credentials
Deactivate the GST portal credentials registered for e-Way Bill generation. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.CREATE
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/settings/ewaybills/deactivate?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/settings/ewaybills/deactivate?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/settings/ewaybills/deactivate?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/settings/ewaybills/deactivate?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/settings/ewaybills/deactivate?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/settings/ewaybills/deactivate?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The e-Way Bill integration has been deactivated successfully.",
"ewaybill_settings": {
"ewaybill_username": "gstapi_user",
"tax_reg_no": "29ABCDE1234F1Z5",
"is_active": true,
"is_ewaybill_enabled": true,
"ewb_preference": {
"ewb_types": [
{
"ewb_type": "general",
"threshold": 50000,
"is_enabled": true
}
]
}
}
}
Update e-Way Bill credentials
Update the GST portal credentials for the specified tax settings. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.UPDATE
Path Parameters
Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/inventory/v1/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"ewaybill_username": "gstapi_user",
"ewaybill_password": "StrongP@ssw0rd"
}
{
"code": 0,
"message": "The e-Way Bill credentials have been updated.",
"ewaybill_settings": {
"ewaybill_username": "gstapi_user",
"tax_reg_no": "29ABCDE1234F1Z5",
"is_active": true,
"is_ewaybill_enabled": true,
"ewb_preference": {
"ewb_types": [
{
"ewb_type": "general",
"threshold": 50000,
"is_enabled": true
}
]
}
}
}
Get e-Way Bill credentials
Get the GST portal credentials registered for the specified tax settings. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?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/settings/460000000789012/ewaybills?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"ewaybill_settings": {
"ewaybill_username": "gstapi_user",
"tax_reg_no": "29ABCDE1234F1Z5",
"is_active": true,
"is_ewaybill_enabled": true,
"ewb_preference": {
"ewb_types": [
{
"ewb_type": "general",
"threshold": 50000,
"is_enabled": true
}
]
}
}
}
Deactivate e-Way Bill credentials for tax settings
Deactivate the GST portal credentials registered under the specified tax settings record. Available only in the India edition.
OAuth Scope : ZohoInventory.settings.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/settings/460000000789012/ewaybills/deactivate?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/settings/460000000789012/ewaybills/deactivate?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/settings/460000000789012/ewaybills/deactivate?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/settings/460000000789012/ewaybills/deactivate?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/settings/460000000789012/ewaybills/deactivate?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/settings/460000000789012/ewaybills/deactivate?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The e-Way Bill integration has been deactivated successfully.",
"ewaybill_settings": {
"ewaybill_username": "gstapi_user",
"tax_reg_no": "29ABCDE1234F1Z5",
"is_active": true,
"is_ewaybill_enabled": true,
"ewb_preference": {
"ewb_types": [
{
"ewb_type": "general",
"threshold": 50000,
"is_enabled": true
}
]
}
}
}