API Access
API Access lets your own system, such as another ERP or a web shop, read and add data in Bizconnekt. Here a tenant administrator creates API keys, chooses what each key can do and who can use it, and finds the steps to make the first call.
Video coming soon: API Access in 90 secondsWhere to find it
Configuration › Security › API AccessOnly tenant administrators see this entry. Keys belong to the business unit chosen in the header. A key only works with that business unit's data.
What the list shows
Each key is one row.
| Column | What it shows |
|---|---|
| Name | The name you gave the key. |
| Key | The first few characters of the key. The full key is never shown again after you copy it. |
| Access | What the key can do, as one chip per functionality and action. |
| Users | Up to two users who can use the key, then "+N more". Hover to see the full list with emails. |
| Status | Active, Revoked or Expired. |
| Last used | When the key last made a call, or Never. |
| Created | When the key was made. |
The row actions are Edit, Usage, Regenerate and Revoke.
Create an API key
- Open Configuration › Security › API Access and click Create API key.
- Enter a Key name, for example "ERP integration".
- Under Functionalities, tick what the key may do.
- Under Users who can use this key, add at least one user.
- Click Save. Copy the key, then click I have copied the key.
Done. The key is shown once in 'Your new API key'.
The key form
Fields in this section
| Field | Required | What to enter |
|---|---|---|
| Key name | Yes | A name you will recognise, such as the system that uses it. |
| Functionalities | Yes | Tick Read or Write for each functionality. Write includes Read. You can tick Item, Customer, Supplier and Sales invoice. The others show Coming soon. |
| Users who can use this key | Yes | The people whose sign-in your system uses. See below. |
| Allowed IP addresses | No | Leave empty to accept calls from any IP address. To restrict the key, click Add IP address and enter an IP address or a CIDR range, with an optional label. |
| Expiry date | No | The key stops working after this date. |
| Key is active | — | Clear it to switch the key off without revoking it. |
Users who can use this key
Only the users you add here can get an access token or make calls with this key. Everyone else is refused.
- Type part of a name, email or department in the search box. Nothing is suggested until you type.
- Pick a user with the mouse, or with the arrow keys and Enter. They appear as a capsule.
- To remove someone, click the cross on their capsule.
Only users who are active and assigned to the key's business unit are offered. When you edit a key, the form names any saved user who no longer qualifies. Saving removes them from the key.
Copy the key
After you save, Your new API key shows the full key once. Click Copy and store it somewhere safe, such as your system's settings. It will not be shown again. If you lose it, regenerate the key.
Make your first call
Click How to use your API at the top of the page. The guide has the same steps as this section, with the right address for your account and copy buttons.
The base URL
Every call goes to the Bizconnekt API address shown as Base URL in the guide. Click Copy base URL. It is not the address of the admin portal or the Bizconnekt app. The examples below write it as https://<your API base URL>.
Step 1: Limit the key to your server's IP address (optional)
With no IP addresses on the key, calls are accepted from any address. To restrict it, edit the key and add the IP address your system calls from. Calls from any other address are then refused.
Step 2: Get an access token
Send the email and password of a user who is on the key. Do not send the API key in this call.
curl -X POST "https://<your API base URL>/api/ext/auth/token" \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","password":"YOUR_PASSWORD"}'
The answer holds the token. It lasts 1 hour (3600 seconds). After that, ask for a new one.
{
"code": 200,
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…",
"tokenType": "Bearer",
"expiresIn": 3600,
"expiresAt": "2026-11-13T11:00:00.000Z"
}
}
Only users added to the key can get a token.
Step 3: Send the token and the key
Every data call needs two headers:
| Header | Value |
|---|---|
Authorization | Bearer <accessToken from step 2> |
x-api-key | The full API key you copied when you created it |
Calls can do only what both allow: the key's Functionalities and the user's role.
Items
Items, customers, suppliers and sales invoices can be used through the API. Each call works on the records of the key's business unit.
| Method and path | Needs | What it does |
|---|---|---|
GET /api/ext/item | Item: Read | Lists items. Optional page, limit (up to 100, default 20) and search. |
GET /api/ext/item/:id | Item: Read | Gets one item by its ID. |
POST /api/ext/item | Item: Write | Creates a new item. |
Create an item
curl -X POST "https://<your API base URL>/api/ext/item" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"itemCode":"SKU-1001","name":"Widget Pro","type":"Goods","purchasePrice":"100.00"}'
The business unit and company come from your API key. Never send them in the body.
Required fields
| Field | What to send |
|---|---|
itemCode | Your item code, up to 35 characters. Unique in the business unit. |
name | The item's name. Unique in the business unit. |
type | Goods or Services. |
purchasePrice | Cost price per unit. A number or a decimal string, not negative. 0 is allowed. |
Optional fields
| Field | What to send |
|---|---|
sellingPrice | Selling price per unit. Default 0. |
uom | Stock unit code, such as nos or kgs, or one of your own units. |
salesUom and salesUomFactor | The unit the item is sold in, when it differs from uom, and how many stock units are in one. For example box and 24 when 1 box holds 24 nos. |
category and subCategory | Names of one of your item categories and its sub-category. An unknown name is refused, not created. |
taxRate | A percentage, such as 18 for 18%. It must be one of the business unit's tax rates. Leave it out for none. |
salesDescription | Text printed on sales documents. |
purchaseDescription | Text printed on purchase documents. |
notes | Internal notes. |
Prices may have up to 4 decimal places.
You can also send a tax classification code: hsnCode for Goods or sacCode for Services. It must match a code exactly. Whether it is required depends on the business unit's HSN setting.
For what each item field means in Bizconnekt, see Items.
Customers
Customers work like items: list, read one, and create. Each call works on the customers of the key's business unit.
| Method and path | Needs | What it does |
|---|---|---|
GET /api/ext/customer | Customer: Read | Lists customers. Optional page, limit (up to 100, default 20), search, sortBy (updatedAt, createdAt, customerName or customerId) and order (ASC or DESC, default DESC). search matches the name, legal name, trade name, customer code and tax number. |
GET /api/ext/customer/:id | Customer: Read | Gets one customer by its _id. A customer of another business unit answers 404. |
POST /api/ext/customer | Customer: Write | Creates a customer. Answers 201 with the customer. |
Create a customer
curl -X POST "https://<your API base URL>/api/ext/customer" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Acme Corporation","type":"Business","taxTreatment":"Unregistered","legalName":"Acme Corporation Private Limited","tradeName":"Acme","contact":{"name":"Asha Rao","email":"asha@acme.test"},"paymentTerm":"Net 30"}'
This example sends taxTreatment as Unregistered. A business with no tax treatment defaults to Regular, and Regular needs a taxNumber.
Required fields
| Field | What to send |
|---|---|
name | The customer's name, up to 100 characters. |
type | Business or Individual. |
contact | The main contact: name (required), plus an email or a phone. |
paymentTerm | The name of one of the business unit's payment terms, such as Net 30. An unknown term is refused and the answer lists the allowed ones. |
Optional fields
| Field | What to send |
|---|---|
customerCode | Your own code, up to 35 characters, unique in the business unit. Leave it out when the business unit numbers customers automatically. When it does not, leaving it out is refused. |
taxTreatment | The tax treatment by name, such as Regular or Unregistered. |
legalName and tradeName | Required for a Business. Looked up from the tax number when possible. Up to 100 characters each. |
taxNumber | The tax registration number. Unique in the business unit. Required for a registered Business. |
pan | A second tax identifier. (India: Required for a registered Business in India.) |
billingAddress | Required for an Individual and for an unregistered Business. Copied from the business unit when left out. |
shippingAddress | A second address. |
An address holds addressName, line1, line2, city, state, country and pincode, all optional. Send the state as its full name. An unknown state is refused.
The base currency is added for you. Do not send tenantId, businessUnitId, currency, opening balance, bank details, status or any other field not listed here. The call is refused with a 400.
The answer holds the customer: _id, customerCode, name, type, status, contact, email, phone, taxTreatment, taxNumber, pan, legalName, tradeName, paymentTerm, both addresses, createdAt and updatedAt. A value that is not set is null. Use customerCode as customerCode when you create a sales invoice.
Suppliers
| Method and path | Needs | What it does |
|---|---|---|
GET /api/ext/supplier | Supplier: Read | Lists suppliers. Optional page, limit (up to 100, default 20), search, sortBy (updatedAt, createdAt, supplierName or supplierId) and order. search matches the name, supplier code and tax number. |
GET /api/ext/supplier/:id | Supplier: Read | Gets one supplier by its _id. A supplier of another business unit answers 404. |
POST /api/ext/supplier | Supplier: Write | Creates a supplier. Answers 201 with the supplier. |
The supplier list does not always know the total. count is exact on the last (short) page and null on a full page. Keep asking for the next page until you get fewer rows than limit.
Create a supplier
curl -X POST "https://<your API base URL>/api/ext/supplier" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Bharat Steels","tradeName":"Bharat Steels"}'
Required fields
| Field | What to send |
|---|---|
name | The supplier's name, up to 41 characters. |
tradeName | The trade name, up to 100 characters. |
Optional fields
| Field | What to send |
|---|---|
supplierCode | Your own code, up to 35 characters, unique in the business unit. Leave it out when the business unit numbers suppliers automatically. |
type | Goods or Services. |
legalName | Required for a tax-registered supplier. Looked up from the tax number when possible. |
taxTreatment | The tax treatment by name, such as Regular or Unregistered. Anything other than Unregistered makes legalName required. |
taxNumber | The tax registration number. Unique in the business unit. |
pan | A second tax identifier. (India: In India it is worked out from the tax number when left out.) |
isMsme | true when the supplier is a registered micro, small or medium enterprise. |
contact | name (required), plus an email or a phone. |
paymentTerm | The name of one of the business unit's payment terms. |
billingAddress | Copied from the business unit when left out. Same fields as a customer address. |
Do not send any other field. It is refused with a 400.
When a supplier approval workflow applies, the supplier is created with status set to In Review. Otherwise it is Active.
Sales invoices
| Method and path | Needs | What it does |
|---|---|---|
GET /api/ext/sales-invoice | Sales invoice: Read | Lists invoices. Optional page, limit (up to 100, default 20), search, status, sortBy (updatedAt, createdAt, invoiceDate or dueDate) and order. search matches the invoice number, your reference, the customer name and item names. status is one of Draft, Open, Unpaid, Partial Paid, Paid, Void or Cancelled. Any other value is a 400. |
GET /api/ext/sales-invoice/:id | Sales invoice: Read | Gets one invoice by its _id. |
POST /api/ext/sales-invoice | Sales invoice: Write | Creates an invoice. Needs an Idempotency-Key header. Answers 201 with the invoice. |
A user whose role limits them to their own records sees only the invoices they created, in the list and by ID. An invoice created by a colleague answers 404.
Create a sales invoice
The customer and the items must already exist. Create them first, in Bizconnekt or through the customer and item calls above. The invoice refers to them by code.
curl -X POST "https://<your API base URL>/api/ext/sales-invoice" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: A_UNIQUE_VALUE_PER_INVOICE" \
-H "Content-Type: application/json" \
-d '{"invoiceDate":"2026-11-17","customerCode":"CUS-1001","items":[{"itemCode":"ITM-1001","qty":"2","unitPrice":"1250.50"}]}'
The Idempotency-Key header is required. Choose a unique value for each invoice, up to 128 characters, such as a UUID. If your call times out, send it again with the same key. If the first call succeeded, a retry with the same key within 24 hours returns that invoice and creates no second one. A call that failed can be retried with the same key. A retry while the first call is still running is a 409 (CONFLICT): wait a moment and retry. A call with no key, or a key that is too long, is a 400.
Required fields
| Field | What to send |
|---|---|
invoiceDate | The invoice date, as an ISO date such as 2026-11-17. |
customerCode | The customerCode of a customer in the business unit. |
items | The lines, from 1 to 200. See below. |
Each line needs:
| Line field | What to send |
|---|---|
itemCode | The itemCode of an item. The name, tax classification code, unit and tax rate come from the item. |
qty | A quantity above zero, as a string such as "2". Up to 3 decimals. The item's unit may allow fewer. |
unitPrice | A price of zero or more, as a string such as "1250.50". Up to 4 decimals. |
A line can also have discountPercent, a whole percent from 0 to 100 ("5" means 5%), and uom, to use a unit other than the item's own.
Optional fields
| Field | What to send |
|---|---|
invoiceNumber | Your own number, up to 35 characters, unique in the business unit. Leave it out when the business unit numbers invoices automatically. |
dueDate | An ISO date. Leave it out and it is worked out from the payment term. When you send both, they must agree. |
paymentTerm | The name of a payment term, such as Net 30. Leave it out to use the customer's own. |
billingAddress | Leave it out to use the customer's default address. An address you send is kept as sent. The state is a name, and it decides the place of supply. |
shippingAddress | A second address. |
customReference | Your own reference, such as a purchase order number. |
termsAndConditions | Text printed on the invoice. |
status | Draft (the default) or Open. |
dispatched | true to dispatch the goods now. Default false. |
Draft and Open. A Draft is saved and posts nothing. An Open invoice is submitted. The approval workflow decides what happens next, and an invoice that needs no approval is posted to the ledger. Stock moves only when dispatched is true on an Open invoice that posts, with no approval pending. dispatched is ignored on a Draft.
Do not send amounts. The totals, line amounts, tax rates, tax amounts, tax split, round-off and currency are worked out for you. Sending grandTotal or any other field not listed here is a 400.
In India the tax is split into CGST and SGST within the business unit's state and IGST across states, using the state of the billing address.
The user whose token you use must have a department in the business unit. If they have none, the call is a 400 that says so. Ask an administrator to assign one.
The answer holds the invoice: _id, invoiceNumber, invoiceDate, dueDate, status, approvalStatus, customer (code and name), both addresses, paymentTerm, currency, lines, subtotal, taxTotal, taxComponents, roundOff, grandTotal, customReference, createdAt and updatedAt. Money is a string, such as "2950.00". On each line, discountRate and taxRate are fractions, so 0.05 means 5%.
If a call fails
| Code | What it means | What to do |
|---|---|---|
| 401 | The token is missing, wrong or has run out. | Get a new token (step 2). |
| 401 | The API key is missing or wrong, or the email or password is wrong. | Check the key and the sign-in details. Regenerate the key if it is lost. |
| 403 | The user is not on this key's users. | Add them under Users who can use this key. |
| 403 | The user is not on any key. | Ask your administrator to add them to an API key. |
| 403 | The user is not assigned to the key's business unit, or is not part of this organisation. | Assign the user to the business unit, or use another user. |
| 403 | The call came from an IP address the key does not allow. | Add the IP address to the key, or call from an allowed address. |
| 403 | The key's functionalities or the user's role do not allow this. | Tick the functionality on the key, or give the user a role that allows it. |
| 400 | A field is missing or wrong, or the Idempotency-Key header is missing. | Read errorData.details. Each entry names the field and the problem. |
| 404 | No record with that ID in the key's business unit, or an invoice created by someone else for a user limited to their own records. | Check the ID. |
| 409 | An item with the same code or name already exists. | Use a different itemCode or name. |
| 409 | A customer, supplier or invoice with the same code, number or tax number already exists. | Use a different value, or read the existing record. |
| 429 | Too many requests. | Wait a moment and try again. |
Every error body has the same shape. errorData.errorCode names the problem, errorData.details lists field problems on a 400, and errorData.requestId identifies the call when you contact support.
{
"code": 400,
"message": "…",
"errorData": {
"errorCode": "VALIDATION_ERROR",
"details": [{ "field": "paymentTerm", "message": "paymentTerm is required." }],
"requestId": "…"
}
}
errorCode | Status | When |
|---|---|---|
VALIDATION_ERROR | 400 | A field is missing, wrong or not allowed, or the Idempotency-Key is missing or too long. |
NOT_FOUND | 404 | The record does not exist in the key's business unit. |
DUPLICATE_CUSTOMER | 409 | The customer code or tax number is already used in the business unit. |
DUPLICATE_SUPPLIER | 409 | The supplier code or tax number is already used in the business unit. |
DUPLICATE_INVOICE | 409 | The invoice number is already used in the business unit. |
CONFLICT | 409 | A sales invoice call with the same Idempotency-Key is still being processed. Wait and retry. |
SCOPE_DENIED | 403 | The key does not allow this functionality or action. |
PERMISSION_DENIED | 403 | The user's role does not allow it. |
KEY_USER_NOT_ALLOWED | 403 | The user is not on the key. |
IP_NOT_ALLOWED | 403 | The call came from an IP address the key does not allow. |
RATE_LIMITED | 429 | Too many requests. |
Manage your keys
- Edit changes the name, functionalities, users, IP addresses, expiry date or the active switch. The key itself stays the same.
- Usage shows how many calls the key made in the Last 24 hours, the Last 7 days and All time, and its Top endpoints.
- Regenerate asks Regenerate this API key? and makes a new key. The current key stops working immediately, so update your system with the new one. The new key is shown once.
- Revoke asks Revoke this API key? and stops the key for good. This cannot be undone.
Revoke a key when the system that uses it is retired or the key may have leaked.
On mobile
There is no API Access screen on the phone. Manage keys in the admin portal in a web browser. The Android app is on Google Play. The iPhone app is coming soon to the App Store. Same on iPhone and Android.
Who can open it
Tenant administrators only. Other users do not see the menu entry.
Problems and fixes
Save stays greyed out
Save stays disabled until at least one user is added under Users who can use this key. The key also needs a Key name and at least one ticked functionality.
"No active users are assigned to this business unit."
Only active users assigned to the key's business unit can be picked. Assign a user to the business unit in Manage users, then try again.
The key was lost
It cannot be shown again. Click Regenerate to make a new key, then update your system.
A key has no actions
Some keys are made by Bizconnekt for its own use, such as for platform billing. They are shown for your information and cannot be changed here.