- Introduction
- OAuth
- HTTP Methods
- Response
- Errors
- Pagination
- Organizations
- Contacts
- Contact Persons
- Item Groups
- Items
- Composite Items
- Item Adjustments
- Transfer Orders
- Sales Orders
- Packages
- Shipment Orders
- Invoices
- Overview
- Create an invoice
- List invoices
- Update an invoice
- Get an invoice
- Delete an invoice
- Mark an invoice as sent
- Void an invoice
- Mark as draft
- Email an invoice
- Get invoice email content
- Email invoices
- Get payment reminder mail content
- Bulk export Invoices
- Bulk print invoices
- Disable payment reminder
- Enable payment reminder
- Write off invoice
- Cancel write off
- Update billing address
- Update shipping address
- List invoice templates
- Update invoice template
- List invoice payments
- List credits applied
- Apply credits
- Delete a payment
- Delete applied credit
- Add attachment to an invoice
- Update attachment preference
- Get an invoice attachment
- Delete an attachment
- Add comment
- List invoice comments & history
- Update comment
- Delete a comment
- Retainer Invoices
- Overview
- Create a retainer invoice
- List a retainer invoices
- update a retainer invoice
- Get a retainer invoice
- Delete a retainer invoice
- Mark a retainer invoice as sent
- Update retainer invoice template
- Void a retainer invoice
- Mark as draft
- Submit a retainer invoice for approval
- Approve a retainer invoice.
- Email a retainer invoice
- Get retainer invoice email content
- Update billing address
- List retainer invoice templates
- Add attachment to a retainer invoice
- Get a retainer invoice attachment
- Delete an attachment
- Add comment
- List retainer invoice comments & history
- Update comment
- Delete a comment
- Customer Payments
- Sales Returns
- Credit Notes
- Overview
- Create a credit note
- List all Credit Notes
- Update a credit note
- Get a credit note
- Delete a credit note
- Email a credit note
- Get email content
- Void a Credit Note
- Convert Credit Note to Draft
- Convert credit note to Open
- Submit a credit note for approval
- Approve a credit note
- Email history
- Update billing address
- Update Shipping address
- List the credit note templates
- Update a credit note template
- Apply credits to invoices
- List invoices credited
- Delete credits applied to an invoice
- Add a comment
- List credit note comments & history
- Delete a Comment
- List credit note refunds
- Refund credit note
- List refunds of a credit note
- Update credit note refund
- Get credit note refund
- Delete credit note refund
- Purchase Orders
- Purchase Receives
- Bills
- Vendor Credits
- Overview
- Create a vendor credit
- List vendor credits
- Update vendor credit
- Get vendor credit
- Delete vendor credit
- Convert to open
- Void vendor credit
- Submit a Vendor credit for approval
- Approve a Vendor credit
- Apply credits to a bill
- List bills credited
- Delete bills credited
- Refund a vendor credit
- List refunds of a vendor credit
- Update vendor credit refund
- Get vendor credit refund
- Delete vendor credit refund
- List vendor credit refunds
- Add a comment
- List vendor credit comments & history
- Delete a comment
- Warehouse Settings
- Price Lists
- Taxes
Organizations - Zakya API
An Organisation represents a company or an institution running a business.
Attribute
- organization_idstring
ID of the organisation generated by the server
- namestring
Name of the Organisation
- contact_namestring
Name of the contact person of the organisation
- emailstring
email ID of the contact person of the organisation
- is_default_orgboolean
- plan_typedouble
Type of the plan subscribed
- tax_group_enabledboolean
- zi_migration_statusdouble
- plan_namestring
Name of the subscribed plan
- plan_periodstring
Duration/Cycle of the plan cycle
- language_codestring
Language for use
- fiscal_year_start_monthdouble
Starting month of teh financial year
- account_created_datestring
Date of creation of the account
- account_created_date_formattedstring
- time_zonestring
Time Zone of the Organisation's country
- is_org_activeboolean
- currency_idstring
ID of the organisation curreency
- currency_codestring
Code of the organisation's base currency
- currency_symbolstring
Symbol used to denote currency of a country
- currency_formatstring
Format of the organisation's currency
- price_precisiondouble
Precision of the number of places of decimal in price
- gst_registartion_typestring
Type of GST registration
- gst_nostring
GST number of the organisation
- business_typestring
Type of business
- is_orgDeletion_allowedboolean
To check if deletion of the organisation is allowed
[
{
"organization_id": "10229182",
"name": "Zillium Inc",
"contact_name": "John Smith",
"email": "johndavid@zilliuminc.com",
"is_default_org": false,
"plan_type": 130,
"tax_group_enabled": true,
"zi_migration_status": 0,
"plan_name": "Trial",
"plan_period": "Monthly",
"language_code": "en",
"fiscal_year_start_month": 0,
"account_created_date": "2012-02-15",
"account_created_date_formatted": "15 Feb 2012",
"time_zone": "PST",
"is_org_active": true,
"currency_id": "982000000000190",
"currency_code": "USD",
"currency_symbol": "$",
"currency_format": "###,##0.00",
"price_precision": 2,
"gst_registartion_type": "Regular",
"gst_no": "22AAAAA0000A1Z5",
"business_type": "Apparel, Footwear & Accessories",
"is_orgDeletion_allowed": false
}
]
List organizations
Get the list of organizations.
OAuth Scope : Zakya.organizations.READ
curl --request GET \
--url 'https://api.zakya.com/v1/organizations?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/v1/organizations?organization_id=10234695"
type: GET
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/v1/organizations?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.zakya.com",
"port": null,
"path": "/v1/organizations?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/v1/organizations?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/v1/organizations?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "success",
"organizations": [
{
"organization_id": "10229182",
"name": "Zillium Inc",
"contact_name": "John Smith",
"email": "johndavid@zilliuminc.com",
"is_default_org": false,
"plan_type": 130,
"tax_group_enabled": true,
"zi_migration_status": 0,
"plan_name": "Trial",
"plan_period": "Monthly",
"language_code": "en",
"fiscal_year_start_month": 0,
"account_created_date": "2012-02-15",
"account_created_date_formatted": "15 Feb 2012",
"time_zone": "PST",
"is_org_active": true,
"currency_id": "982000000000190",
"currency_code": "USD",
"currency_symbol": "$",
"currency_format": "###,##0.00",
"price_precision": 2,
"gst_registartion_type": "Regular",
"gst_no": "22AAAAA0000A1Z5",
"business_type": "Apparel, Footwear & Accessories",
"is_orgDeletion_allowed": false
},
{...},
{...}
]
}
Get an organization
Get the details of an organization.
OAuth Scope : Zakya.organizations.READ
curl --request GET \
--url 'https://api.zakya.com/pos/v1/organizations/10229182?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://api.zakya.com/pos/v1/organizations/10229182?organization_id=10234695"
type: GET
headers: headers_data
connection:
]
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.zakya.com/pos/v1/organizations/10229182?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const http = require("https");
const options = {
"method": "GET",
"hostname": "api.zakya.com",
"port": null,
"path": "/pos/v1/organizations/10229182?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://api.zakya.com/pos/v1/organizations/10229182?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("api.zakya.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/pos/v1/organizations/10229182?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
{
"code": 0,
"message": "success",
"organization": {
"organization_id": "10229182",
"name": "Zillium Inc",
"is_default_org": false,
"account_created_date": "2012-02-15",
"time_zone": "PST",
"language_code": "en",
"date_format": "dd MMM yyyy",
"field_separator": " ",
"fiscal_year_start_month": 0,
"contact_name": "John Smith",
"industry_type": "Services",
"industry_size": " ",
"company_id_label": "Company ID",
"company_id_value": " ",
"tax_id_label": "Tax ID",
"tax_id_value": " ",
"currency_id": "982000000000190",
"currency_code": "USD",
"currency_symbol": "$",
"currency_format": "###,##0.00",
"price_precision": 2,
"org_address": " ",
"remit_to_address": " ",
"phone": " ",
"fax": " ",
"website": " ",
"email": "johndavid@zilliuminc.com",
"is_org_active": true,
"address": [
{
"street_address1": " ",
"street_address2": " ",
"city": " ",
"state": " ",
"country": "U.S.A",
"zip": "U.S.A"
}
],
"custom_fields": [
{
"index": 1,
"value": " ",
"label": " "
}
],
"gst_registartion_type": "Regular",
"gst_no": "22AAAAA0000A1Z5",
"business_type": "Apparel, Footwear & Accessories",
"is_orgDeletion_allowed": false
}
}