Skip to main content
Showing IndiaShowing UAEShowing United Kingdom

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.

6 min readYou need: Tenant administratorBefore you start: the right business unit chosen in the header
Video coming soon: API Access in 90 seconds

Where to find it​

Configuration › Security › API Access

Only 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.

ColumnWhat it shows
NameThe name you gave the key.
KeyThe first few characters of the key. The full key is never shown again after you copy it.
AccessWhat the key can do, as one chip per functionality and action.
UsersUp to two users who can use the key, then "+N more". Hover to see the full list with emails.
StatusActive, Revoked or Expired.
Last usedWhen the key last made a call, or Never.
CreatedWhen the key was made.

The row actions are Edit, Usage, Regenerate and Revoke.

Create an API key​

About 2 minutes
  1. Open Configuration › Security › API Access and click Create API key.
  2. Enter a Key name, for example "ERP integration".
  3. Under Functionalities, tick what the key may do.
  4. Under Users who can use this key, add at least one user.
  5. 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
FieldRequiredWhat to enter
Key nameYesA name you will recognise, such as the system that uses it.
FunctionalitiesYesTick 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 keyYesThe people whose sign-in your system uses. See below.
Allowed IP addressesNoLeave 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 dateNoThe 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.

  1. Type part of a name, email or department in the search box. Nothing is suggested until you type.
  2. Pick a user with the mouse, or with the arrow keys and Enter. They appear as a capsule.
  3. 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:

HeaderValue
AuthorizationBearer <accessToken from step 2>
x-api-keyThe 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 pathNeedsWhat it does
GET /api/ext/itemItem: ReadLists items. Optional page, limit (up to 100, default 20) and search.
GET /api/ext/item/:idItem: ReadGets one item by its ID.
POST /api/ext/itemItem: WriteCreates 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

FieldWhat to send
itemCodeYour item code, up to 35 characters. Unique in the business unit.
nameThe item's name. Unique in the business unit.
typeGoods or Services.
purchasePriceCost price per unit. A number or a decimal string, not negative. 0 is allowed.

Optional fields

FieldWhat to send
sellingPriceSelling price per unit. Default 0.
uomStock unit code, such as nos or kgs, or one of your own units.
salesUom and salesUomFactorThe 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 subCategoryNames of one of your item categories and its sub-category. An unknown name is refused, not created.
taxRateA percentage, such as 18 for 18%. It must be one of the business unit's tax rates. Leave it out for none.
salesDescriptionText printed on sales documents.
purchaseDescriptionText printed on purchase documents.
notesInternal notes.

Prices may have up to 4 decimal places.

India

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 pathNeedsWhat it does
GET /api/ext/customerCustomer: ReadLists 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/:idCustomer: ReadGets one customer by its _id. A customer of another business unit answers 404.
POST /api/ext/customerCustomer: WriteCreates 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

FieldWhat to send
nameThe customer's name, up to 100 characters.
typeBusiness or Individual.
contactThe main contact: name (required), plus an email or a phone.
paymentTermThe 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

FieldWhat to send
customerCodeYour 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.
taxTreatmentThe tax treatment by name, such as Regular or Unregistered.
legalName and tradeNameRequired for a Business. Looked up from the tax number when possible. Up to 100 characters each.
taxNumberThe tax registration number. Unique in the business unit. Required for a registered Business.
panA second tax identifier. (India: Required for a registered Business in India.)
billingAddressRequired for an Individual and for an unregistered Business. Copied from the business unit when left out.
shippingAddressA 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 pathNeedsWhat it does
GET /api/ext/supplierSupplier: ReadLists 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/:idSupplier: ReadGets one supplier by its _id. A supplier of another business unit answers 404.
POST /api/ext/supplierSupplier: WriteCreates 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

FieldWhat to send
nameThe supplier's name, up to 41 characters.
tradeNameThe trade name, up to 100 characters.

Optional fields

FieldWhat to send
supplierCodeYour own code, up to 35 characters, unique in the business unit. Leave it out when the business unit numbers suppliers automatically.
typeGoods or Services.
legalNameRequired for a tax-registered supplier. Looked up from the tax number when possible.
taxTreatmentThe tax treatment by name, such as Regular or Unregistered. Anything other than Unregistered makes legalName required.
taxNumberThe tax registration number. Unique in the business unit.
panA second tax identifier. (India: In India it is worked out from the tax number when left out.)
isMsmetrue when the supplier is a registered micro, small or medium enterprise.
contactname (required), plus an email or a phone.
paymentTermThe name of one of the business unit's payment terms.
billingAddressCopied 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 pathNeedsWhat it does
GET /api/ext/sales-invoiceSales invoice: ReadLists 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/:idSales invoice: ReadGets one invoice by its _id.
POST /api/ext/sales-invoiceSales invoice: WriteCreates 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

FieldWhat to send
invoiceDateThe invoice date, as an ISO date such as 2026-11-17.
customerCodeThe customerCode of a customer in the business unit.
itemsThe lines, from 1 to 200. See below.

Each line needs:

Line fieldWhat to send
itemCodeThe itemCode of an item. The name, tax classification code, unit and tax rate come from the item.
qtyA quantity above zero, as a string such as "2". Up to 3 decimals. The item's unit may allow fewer.
unitPriceA 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

FieldWhat to send
invoiceNumberYour own number, up to 35 characters, unique in the business unit. Leave it out when the business unit numbers invoices automatically.
dueDateAn ISO date. Leave it out and it is worked out from the payment term. When you send both, they must agree.
paymentTermThe name of a payment term, such as Net 30. Leave it out to use the customer's own.
billingAddressLeave 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.
shippingAddressA second address.
customReferenceYour own reference, such as a purchase order number.
termsAndConditionsText printed on the invoice.
statusDraft (the default) or Open.
dispatchedtrue 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.

India

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​

CodeWhat it meansWhat to do
401The token is missing, wrong or has run out.Get a new token (step 2).
401The 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.
403The user is not on this key's users.Add them under Users who can use this key.
403The user is not on any key.Ask your administrator to add them to an API key.
403The 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.
403The call came from an IP address the key does not allow.Add the IP address to the key, or call from an allowed address.
403The 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.
400A field is missing or wrong, or the Idempotency-Key header is missing.Read errorData.details. Each entry names the field and the problem.
404No 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.
409An item with the same code or name already exists.Use a different itemCode or name.
409A customer, supplier or invoice with the same code, number or tax number already exists.Use a different value, or read the existing record.
429Too 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": "…"
}
}
errorCodeStatusWhen
VALIDATION_ERROR400A field is missing, wrong or not allowed, or the Idempotency-Key is missing or too long.
NOT_FOUND404The record does not exist in the key's business unit.
DUPLICATE_CUSTOMER409The customer code or tax number is already used in the business unit.
DUPLICATE_SUPPLIER409The supplier code or tax number is already used in the business unit.
DUPLICATE_INVOICE409The invoice number is already used in the business unit.
CONFLICT409A sales invoice call with the same Idempotency-Key is still being processed. Wait and retry.
SCOPE_DENIED403The key does not allow this functionality or action.
PERMISSION_DENIED403The user's role does not allow it.
KEY_USER_NOT_ALLOWED403The user is not on the key.
IP_NOT_ALLOWED403The call came from an IP address the key does not allow.
RATE_LIMITED429Too 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.