- 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
Introduction
Zakya API allows you to perform all the operations that you do with our web client.
Zakya API is built using REST principles which ensures predictable URLs that makes writing applications easy. This API follows HTTP rules, enabling a wide range of HTTP clients which can be used to interact with the API.
Every resource is exposed as a URL. The URL of each resource can be obtained by accessing the API Root Endpoint.
https://api.zakya.com/
Organization ID
In Zakya, your business is termed as an organization. If you have multiple businesses, you simply set each of those up as an individual organization. Each organization is an independent Zakya Organization with it’s own organization ID, base currency, time zone, language, contacts, reports, etc.
The parameter organization_id along with the organization ID should be sent in with every API request to identify the organization.
The organization_id
can be obtained from the GET /organizations
API’s JSON response. Alternatively, it can be obtained from the Manage Organizations page in the admin console:
Login to the Zakya admin console. Click the drop down with organization’s name as the label and click Manage Organizations.
$ curl https://api.zakya.com/v1/organizations
{
"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
},
{...},
{...}
]
}
Multiple Data Centers
Zakya is hosted at multiple data centers, and therefore available on different domains.
There are 2 different domains for Zakya's APIs, and you will have to use the one that is applicable to you.
Data Center | Domain | Base API URI |
---|---|---|
United States | .com | https://api.zakya.com |
India | .in | https://api.zakya.in |
The APIs on this page are for organizations in Zakya that are hosted on the .com domain. If your organization is on a different domain, then you must replace .com with the appropriate domain for API endpoints on this page before using them.
Note
- To find out which domain you're accessing Zakya from, visit the Zakya web app and check its URL. If the URL contains app.zakya.com, then you're accessing it from the .com domain. If the URL contains app.zakya.in, you're accessing it from the .in domain.
For example, here's how you would modify the domain in an API endpoint for the .in domain:
API endpoint for the .com domain, as available on this page:
https://api.zakya.com/inventory/v1/invoices
API endpoint after replacing the .com domain with .in:
https://api.zakya.in/inventory/v1/invoices
API Call Limit
API calls are limited to provide better quality of service and availability to all the users. The limits on total requests per day are listed below for each plan:
- Free/Trial Plan - 1500 API requests/day
- Standard Plan- 2500 requests/day
A threshold of 100 API requests per minute applies for all the APIs