તમારી વેબસાઇટને તમારા Tally સાથે જોડો
તમારા નક્કી કરેલા ભાવ સાથે માલ યાદી બતાવો, ગ્રાહકોની નોંધણી કરો અને એવા ઓર્ડર લો જે સીધા Tally માં જાય — એક સરળ JSON API થી.
Teloora Website API v1.0
Connect your own website or app to your Teloora (Tally) data: show your catalogue with your locked rates, register customers and place orders that flow into Tally. Available with the Website add-on (API Only or Full Setup).
https://tallysaasapi.teloora.com/api/v1Download Postman collection Import it in Postman, run “Sign in” first — the token is saved for every other request.
Getting started
1. In Teloora, open Users → Add User and create a user of type Website. Give it an email and a strong password. Assign its catalogue (categories / products, with addition % / discount %). Set the delivery charge in Store design › Delivery.
2. On your website's SERVER, call POST /api/v1/ext/auth/login with that email and password. You get a token.
3. Send the token on every other call in the header: Authorization: Bearer <token>.
4. Keep the email, password and token on your server only — never put them in browser JavaScript or a mobile app bundle.
Authentication & token expiry
Only a Website user can sign in to this API. Admin, staff, sales, accountant and customer-portal logins are refused with 403 WEBSITE_USER_ONLY.
The token is valid for the time in expires_in (default 24h). When any call answers 401, sign in again and retry that call once.
Signing in again ends the previous session of the same user, so use ONE website user per website / server.
Changing the user's password, setting the user Inactive, removing the Website add-on or an expired licence stops the token immediately.
Response format
Every answer is JSON with HTTP 200. The real result is in the body: status (200 = OK, otherwise an error code), show (true when msg is meant for a person - always true on errors), msg (a readable message), data (the payload), and on some errors a code.
Always check body.status, not only the HTTP status.
{
"status": 200,
"show": false,
"msg": "success",
"data": {}
}Error codes
| Status | Code | Meaning |
|---|---|---|
| 400 | The request body is not valid JSON. | |
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. | |
| 403 | WEBSITE_USER_ONLY | The login is not a Website user. |
| 403 | WEBSITE_ADDON_REQUIRED | The Website add-on is not active on this licence. |
| 403 | LICENSE_EXPIRED | The licence has expired. Renew it to continue. |
| 404 | The record does not exist in YOUR company (records of other companies are never visible). | |
| 422 | A field is missing or invalid. msg says which one. | |
| 429 | RATE_LIMITED | Too many requests. Wait retry_after seconds (also in the Retry-After header). |
| 500 | Something went wrong on our side. Retry later; contact support if it continues. | |
| 404 | API_OFF | The platform has turned the developer API off (Super Admin › Website Settings › Developer API). Calls answer this until it is turned on again. |
Limits, paging & sync
Rate limit: 600 requests per minute per caller IP (per website user). A store server should pass each shopper's IP in X-Forwarded-For so every shopper has their own limit. Sign-in: 10 attempts per 15 minutes per email + IP.
Lists are paged: ?page=1&per_page=20 (per_page max 100). The answer has data.data (rows) and data.meta { total, page, per_page } (order / invoice lists also give meta.grand_total). Defaults: categories 10, products / customers / locations 20, orders / invoices 10.
Incremental sync: add ?last_update=1 (changed today) or ?last_update=2026-10-01T00:00:00Z to get only rows changed since then.
Sorting: ?sort=<column>&order=asc|desc. Unknown columns fall back to the default order.
Money, rate and quantity columns stored as decimals (gst_rate, total, quantity, ...) come back as strings with decimals ("18.00") - parse them as numbers. Rows carry more fields than the samples show; ignore the ones you do not need.
Security
Your token can only ever see and change YOUR company's data. Ids of other companies answer 404.
Prices, taxes and totals of orders are always calculated by Teloora from your locked rates — rates you send are not trusted.
Every API call is logged (user, IP, endpoint, time, result) and visible to Teloora support.
Online store (customers sign in)
0. First set up your mail server in Teloora › Settings › Email (SMTP). Forgot-password codes, order mails and delivery updates go to your customers FROM YOUR OWN address through it; without it no store mail is sent (the password is stored encrypted).
1. Sign-up: POST /ext/customers with a password and an e-mail. A new customer lands in your website customer group; an existing customer (same mobile) just gets the password.
2. Sign-in: POST /ext/customers/login → the customer. Keep its id in your own signed session; GET /ext/customers/{id} gives the details.
3. Forgot password: POST /ext/customers/forgot-password, then /reset-password with the 6-digit code.
4. Profile: PUT /ext/customers/{id} (add password + current_password to change the password).
5. Cart total on your side: rate from GET /ext/products (priced from the item's MRP) × qty, GST per line from gst_rate, plus the delivery charge for the chosen payment type from GET /ext/website/design → design.delivery (see that endpoint), total rounded — the order API prices it the same way. Online: open Razorpay Checkout with your public key for that total, then send payment { payment_id } with the order.
6. Order: POST /ext/sales-invoices with voucher_details.shop = { customer_id, name, mobile, ship_to }. You and the customer get a e-mail.
7. My orders: GET /ext/sales-invoices?shop_customer_id= — each carries shop_stage, cancel_reason (when cancelled) and tracking (courier, AWB). Each order has pdf_url (invoice PDF).
Sign in
https://tallysaasapi.teloora.com/api/v1/ext/auth/loginSign in with the Website user's email and password and get a token for all other calls. One website user per add-on: a company has one login per add-on it holds (Website, API). A login beyond that is refused on every /ext call with 403, code WEBSITE_USER_LIMIT, until the extra user is deleted or another add-on is bought.
No token needed.
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
email | string | Yes | The Website user's login email. |
password | string | Yes | Its password. |
Request example
{
"email": "shop@example.com"
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/auth/login" \
-H "Content-Type: application/json" \
-d '{"email":"shop@example.com"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/auth/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"email": "shop@example.com"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Login successful.",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": 42,
"name": "My Shop Website",
"email": "shop@example.com",
"role": "customer",
"role_slug": "customer",
"company_id": 1,
"permissions": [
"customers.create",
"customers.edit",
"customers.view",
"products.view",
"sales-orders.create",
"sales-orders.view"
],
"is_salesman": false,
"sales_person_id": null,
"is_customer_user": true,
"customer_id": 17,
"website_user": {
"customer_id": 17,
"cash_extra_pct": 0,
"online_extra_pct": 2
},
"license": {
"valid_until": "2027-08-10T00:00:00.000Z",
"status": "active",
"days_left": 300,
"expired": false,
"renew_due": false,
"max_companies": null,
"max_users": 10,
"companies_used": 1,
"companies_remaining": null,
"users_used": 10,
"users_remaining": 0
},
"default_company_id": null
},
"expires_in": "24h"
}
}Response fields (31)
| Field | Type | Meaning |
|---|---|---|
token | string | |
user | object | |
user.id | number | Record id — use it in /{id} calls. |
user.name | string | Name, exactly as in Tally / Teloora. |
user.email | string | Email. |
user.role | string | |
user.role_slug | string | |
user.company_id | number | The company (books) this record belongs to. |
user.permissions | array | |
user.is_salesman | boolean | |
user.sales_person_id | null | |
user.is_customer_user | boolean | |
user.customer_id | number | Customer id. |
user.website_user | object | |
user.website_user.customer_id | number | Customer id. |
user.website_user.cash_extra_pct | number | Retired — always 0. The delivery charge is set per payment type instead (GET /ext/website/design → design.delivery). |
user.website_user.online_extra_pct | number | Retired — always 0. The delivery charge is set per payment type instead (GET /ext/website/design → design.delivery). |
user.license | object | |
user.license.valid_until | string | |
user.license.status | string | Active | Inactive (records) or the voucher status. |
user.license.days_left | number | |
user.license.expired | boolean | |
user.license.renew_due | boolean | |
user.license.max_companies | null | |
user.license.max_users | number | |
user.license.companies_used | number | |
user.license.companies_remaining | null | |
user.license.users_used | number | |
user.license.users_remaining | number | |
user.default_company_id | null | |
expires_in | string |
Errors
| Status | Meaning / example |
|---|---|
| 401 |
{
"status": 401,
"show": true,
"msg": "Invalid email or password."
} |
| 403 |
{
"status": 403,
"show": true,
"msg": "Only a website user can use the API.",
"code": "WEBSITE_USER_ONLY"
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Please enter a valid email address."
} |
| 429 |
{
"status": 429,
"show": true,
"msg": "Too many sign-in attempts. Please try again later.",
"code": "RATE_LIMITED",
"retry_after": 840
} |
Who am I (from the token)
https://tallysaasapi.teloora.com/api/v1/ext/auth/meThe same user block a sign-in answers (name, permissions, website pricing %, licence), read fresh for the token you send. No password, no new session — the token stays valid. Call it to pick up a change made in Teloora instead of signing in again. 401 = the token has ended: sign in again.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/auth/me" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/auth/me', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"user": {
"id": 42,
"name": "My Shop Website",
"email": "shop@example.com",
"role": "customer",
"role_slug": "customer",
"company_id": 1,
"permissions": [
"customers.create",
"customers.edit",
"customers.view",
"products.view",
"sales-orders.create",
"sales-orders.view"
],
"is_salesman": false,
"sales_person_id": null,
"is_customer_user": true,
"customer_id": 17,
"website_user": {
"customer_id": 17,
"cash_extra_pct": 0,
"online_extra_pct": 2
},
"license": {
"valid_until": "2027-08-10T00:00:00.000Z",
"status": "active",
"days_left": 300,
"expired": false,
"renew_due": false,
"max_companies": null,
"max_users": 10,
"companies_used": 1,
"companies_remaining": null,
"users_used": 10,
"users_remaining": 0
},
"default_company_id": null
}
}
}Response fields (29)
| Field | Type | Meaning |
|---|---|---|
user | object | |
user.id | number | Record id — use it in /{id} calls. |
user.name | string | Name, exactly as in Tally / Teloora. |
user.email | string | Email. |
user.role | string | |
user.role_slug | string | |
user.company_id | number | The company (books) this record belongs to. |
user.permissions | array | |
user.is_salesman | boolean | |
user.sales_person_id | null | |
user.is_customer_user | boolean | |
user.customer_id | number | Customer id. |
user.website_user | object | |
user.website_user.customer_id | number | Customer id. |
user.website_user.cash_extra_pct | number | Retired — always 0. The delivery charge is set per payment type instead (GET /ext/website/design → design.delivery). |
user.website_user.online_extra_pct | number | Retired — always 0. The delivery charge is set per payment type instead (GET /ext/website/design → design.delivery). |
user.license | object | |
user.license.valid_until | string | |
user.license.status | string | Active | Inactive (records) or the voucher status. |
user.license.days_left | number | |
user.license.expired | boolean | |
user.license.renew_due | boolean | |
user.license.max_companies | null | |
user.license.max_users | number | |
user.license.companies_used | number | |
user.license.companies_remaining | null | |
user.license.users_used | number | |
user.license.users_remaining | number | |
user.default_company_id | null |
Errors
| Status | Meaning / example |
|---|---|
| 401 |
{
"status": 401,
"show": true,
"msg": "Your session has ended. Please log in again."
} |
| 403 |
{
"status": 403,
"show": true,
"msg": "Only a website user can use the API.",
"code": "WEBSITE_USER_ONLY"
} |
List categories
https://tallysaasapi.teloora.com/api/v1/ext/categoriesStock categories assigned to this Website user's catalogue, with image_url (null when none) and show_on_top for your menu. Brand-wise store (catalog.mode = brand): the list is the BRANDS; add with_categories=1 and each brand also carries stock_categories: [{ name, parent, products }] — its stock categories, n levels (parent = parent category name), only those with products and narrowed to the products picked for that brand. Use them for a brand drop-down menu; filter with /ext/products?category=<brand>&stock_category=<name>. Need the other list too (brands on a category store, categories on a brand store)? Add kind=brand or kind=category. Home page with both (how the Teloora store does it): show the OTHER list on top (category-wise store: kind=brand first, then its categories; brand-wise store: kind=category first, then its brands); the two tiles beside the banner come from that top list (show_on_top ones first, else its first two) and are left out of the list under it; a tile of the other list opens /ext/products?brand=<name> (category store) or ?stock_category=<name> (brand store). products = how many products THIS login really gets from GET /ext/products in that category / brand (its catalog scope, and its out-of-stock / ₹0 switches), so a card count always matches the list.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
search | string | No | Filter by name. |
page | integer | No | Default 1. |
per_page | integer | No | Default 10, max 100. |
with_categories | integer | No | 1 = (brand-wise store) each brand also returns stock_categories [{ name, parent, products }], n levels. Optional; default off. |
kind | string | No | brand | category. Optional; default = the store's own catalog.mode (unchanged when left out). Example: GET /ext/categories?kind=brand&per_page=500&sort=position. kind=brand returns the BRANDS (Tally stock groups) even on a category-wise store; kind=category returns the STOCK CATEGORIES even on a brand-wise store. Same row shape and counts. Use it to show both "Shop by category" and "Shop by brand" on a home page; filter products with /ext/products?brand=<name> (category store) or ?stock_category=<name> (brand store). |
sort | string | No | position (default) = the order set with ▲▼ in Teloora, or name. |
order | string | No | asc (default) | desc. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/categories" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/categories', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": 47367,
"name": "Mens Sports",
"parent_id": null,
"parent": null,
"show_on_top": true,
"sort_order": 1,
"image_url": "https://api.example.com/uploads/stock-categories/1/sc47367_1792913205865_7ffd0375934489010f278e5e.png",
"banner_url": "https://api.example.com/uploads/stock-categories/1/scb47367_1792913130212_daebae1c79714f54e15e8b0a.png",
"banner_mobile_url": "https://api.example.com/uploads/stock-categories/1/scb47367_1792913186054_20bdfc771de86cda6eb98810.jpg",
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"products": 241,
"updated_at": "2026-10-28T08:05:58.270Z",
"stock_categories": [
{
"name": "Mens Sports",
"parent": null,
"products": 204
},
{
"name": "Running",
"parent": "Mens Sports",
"products": 60
}
]
},
{
"id": 47365,
"name": "Men's Formal",
"parent_id": null,
"parent": null,
"show_on_top": true,
"sort_order": 2,
"image_url": "https://api.example.com/uploads/stock-categories/1/sc47365_1792912971939_db21434379ba7c835d786c46.png",
"banner_url": "https://api.example.com/uploads/stock-categories/1/scb47365_1792912848226_efb4be824da5a3e535e773cc.png",
"banner_mobile_url": "https://api.example.com/uploads/stock-categories/1/scb47365_1792912971001_8cdd629874bdfe29c0976f36.jpg",
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"products": 89,
"updated_at": "2026-10-28T08:05:58.270Z"
}
],
"meta": {
"total": 10,
"page": 1,
"per_page": 10
}
}
}Response fields (17)
| Field | Type | Meaning |
|---|---|---|
data[].id | number | Record id — use it in /{id} calls. |
data[].name | string | Name, exactly as in Tally / Teloora. |
data[].parent_id | null | |
data[].parent | null | |
data[].show_on_top | boolean | |
data[].sort_order | number | |
data[].image_url | string | Default image URL (null when none). |
data[].banner_url | string | Category DESKTOP banner for the top of the store category page (recommended 1600x400, 4:1; JPG/PNG/WEBP, max 2 MB; null when none). Website only — never sent to Tally. |
data[].banner_mobile_url | string | Category MOBILE banner (recommended 800x600, 4:3; JPG/PNG/WEBP, max 2 MB; null when none — use banner_url). Website only — never sent to Tally. |
data[].seo_title | null | Website SEO title for the page (max 70; null = build your own from the name). Website only — never sent to Tally. |
data[].seo_description | null | Website SEO meta description (max 170; null when not set). Website only — never sent to Tally. |
data[].seo_keywords | null | Website SEO keywords, comma separated (max 255; null when not set). Website only — never sent to Tally. |
data[].products | number | |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 429 | Too many requests. Wait retry_after seconds (also in the Retry-After header). |
List products
https://tallysaasapi.teloora.com/api/v1/ext/productsProducts of this Website user's catalogue at its locked, adjusted rates (use rate). image_url is the product's DEFAULT image (null when it has none); images lists every image, the default first, each { id, url, is_default } - exactly one has is_default true. Decimal columns are strings. Out-of-stock (closing stock <= 0) and zero-price items are left out unless the website user's Assigned Catalog switches allow them (see /ext/website/design catalog). sold_qty = pieces sold of the item: its Tally stock going out (the item page Outward, all dates), plus Teloora sales invoices not yet in Tally; never below 0. Show it ("25 sold") only when the store design has showSoldQty true; hide stars and the rate form when the design has showRating false (GET /ext/website/design). Each product has attributes: [{ id, name, values: [{ id, value }] }], empty when it has none. Use attr to filter by value. Each product also has variants: [{ id, sku, barcode, price, on_hand, available, status, values, label, image_url }], empty when it has none, and variant_summary { total, allotted, unallotted, needs_fix } when it has any. image_url on a variant is the full URL of its own photo, null when it has none: show it as the main photo when the shopper chooses that variant, otherwise show the product's images. on_hand and available go up when a credit note returns goods to the variant.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
search | string | No | Name / code, max 191 chars. Max length 191. |
status | string | No | Active | Inactive. One of: Active | Inactive. |
page | integer | No | Default 1. Min 1. Default 1. |
per_page | integer | No | Default 20, max 100. Min 1. Max 1000. Default 20. |
sort | string | No | e.g. name, rate, updated_at. Max length 40. |
order | string | No | asc | desc. One of: asc | desc. |
last_update | string | No | 1 or an ISO date — only changed rows. |
cond | string | No | Numeric filters field:op:value (eq|gt|lt|gte|lte), joined with ; e.g. stock:gt:0 Max length 500. |
size | string | No | Max length 60. |
attr | string | No | Attribute value ids, comma separated (1,2). Values of one attribute match with OR, different attributes with AND. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/products" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/products', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": "26",
"name": "(ACT) A-1260 BLACK 6X10",
"sku": null,
"unit": "pair",
"hsn_code": "64059000",
"gst_rate": "5.00",
"gst_inclusive": true,
"rate": 649,
"list_rate": 649,
"discount_pct": 0,
"tier_group": null,
"qty_tiers": [],
"sales_price": 649,
"mrp": "649.00",
"closing_stock": "110.000",
"sizes": [],
"opening_stock": "277.00",
"opening_batches": [],
"status": "Active",
"description": null,
"category_id": "2",
"category": "ACTION",
"stock_category": "SCHOOL SHOES",
"category_image_url": "https://api.example.com/uploads/stock-categories/1/sc44252_1792670971248_27b181640b6e7dff79bc4397.jpg",
"category_show_on_top": true,
"image_url": "https://api.example.com/uploads/products/1/p26_1793262360939_b00ba84e2206a780e37f1834.png",
"pdf_image_url": null,
"images": [
{
"id": "577",
"url": "https://api.example.com/uploads/products/1/p26_1793262360939_b00ba84e2206a780e37f1834.png",
"is_default": true
}
],
"custom_fields": {},
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"rating": {
"avg": 0,
"count": 0
},
"sold_qty": 0,
"in_tally": true,
"created_at": "2026-08-31T08:14:38.486Z",
"updated_at": "2026-10-19T05:32:55.384Z",
"attributes": [
{
"id": 1,
"name": "Color",
"values": [
{
"id": 2,
"value": "Red"
}
]
}
],
"variants": [
{
"id": 1,
"sku": "RED-42",
"barcode": null,
"price": 799,
"on_hand": 5,
"available": 5,
"tally_batch": null,
"status": "Active",
"values": [
{
"id": 2,
"value": "Red",
"attribute_id": 1,
"attribute": "Color"
}
],
"label": "Red",
"image_url": "https://api.example.com/uploads/products/1/red.jpg"
}
]
},
{
"id": "27",
"name": "(ACT) A-1260 BLK 11X01",
"sku": null,
"unit": "pair",
"hsn_code": "64059000",
"gst_rate": "5.00",
"gst_inclusive": true,
"rate": 549,
"list_rate": 549,
"discount_pct": 0,
"tier_group": null,
"qty_tiers": [],
"sales_price": 549,
"mrp": "549.00",
"closing_stock": "16.000",
"sizes": [
{
"size": "1",
"qty": 1097
},
{
"size": "11X1",
"qty": -8
},
{
"size": "12",
"qty": -2
},
{
"size": "13",
"qty": -5
},
{
"size": "CLAIM",
"qty": 2
}
],
"opening_stock": "695.00",
"opening_batches": [],
"status": "Active",
"description": null,
"category_id": "2",
"category": "ACTION",
"stock_category": "SCHOOL SHOES",
"category_image_url": "https://api.example.com/uploads/stock-categories/1/sc44252_1792670971248_27b181640b6e7dff79bc4397.jpg",
"category_show_on_top": true,
"image_url": "https://api.example.com/uploads/products/1/p27_1791273141731_d2b938f050a4f41da86d3844.jpg",
"pdf_image_url": null,
"images": [
{
"id": "12",
"url": "https://api.example.com/uploads/products/1/p27_1791273141731_d2b938f050a4f41da86d3844.jpg",
"is_default": true
}
],
"custom_fields": {},
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"rating": {
"avg": 0,
"count": 0
},
"sold_qty": 0,
"in_tally": true,
"created_at": "2026-08-31T08:14:38.486Z",
"updated_at": "2026-10-19T05:32:55.384Z"
}
],
"meta": {
"total": 122,
"page": 1,
"per_page": 2
}
}
}Response fields (43)
| Field | Type | Meaning |
|---|---|---|
data[].id | string | Record id — use it in /{id} calls. |
data[].name | string | Name, exactly as in Tally / Teloora. |
data[].sku | null | Item code. |
data[].unit | string | Unit of measure (Nos, Pair, Kgs …). |
data[].hsn_code | string | HSN / SAC code (null when the item has none). |
data[].gst_rate | string | GST % (string, 2 decimals). |
data[].gst_inclusive | boolean | true = the selling price INCLUDES GST (GST is backed out of it); false = GST is added on top. Default true. Website / order maths only — never sent to Tally; editable for Tally items. |
data[].rate | number | YOUR price for this item — the online store prices from the item MRP (sales price only when it has no MRP), with the category addition % and discount % of your Assigned Catalog. Order at this rate. |
data[].list_rate | number | The price before the category discount: MRP (or sales price when no MRP) + the category addition %. Show it struck through when rate is lower. |
data[].discount_pct | number | The category discount % taken off list_rate (0 = none). |
data[].tier_group | null | |
data[].qty_tiers | array | |
data[].sales_price | number | List selling price. |
data[].mrp | string | Maximum retail price (null when not set). |
data[].closing_stock | string | Stock in hand now. |
data[].sizes | array | Stock per size NOW (Tally batches used as sizes): [{size, qty}]. Empty when the item has no sizes. A minus qty = sold more than received in that size. |
data[].opening_stock | string | Opening quantity (a Tally item: Tally's closing). |
data[].opening_batches | array | Size-wise opening sent for a Teloora-created item (not yet in Tally): [{size, qty}]. |
data[].status | string | Active | Inactive (records) or the voucher status. |
data[].description | null | Free text. |
data[].category_id | string | Group id. |
data[].category | string | Stock group. |
data[].stock_category | string | Stock category. |
data[].category_image_url | string | Picture of the item's category (null when none). |
data[].category_show_on_top | boolean | Category pinned on top of the catalogue. |
data[].image_url | string | Default image URL (null when none). |
data[].images | array | All images, default first: [{id, url, is_default}]. |
data[].images[].id | string | Record id — use it in /{id} calls. |
data[].images[].url | string | |
data[].images[].is_default | boolean | |
data[].custom_fields | object | Your own extra fields (object). |
data[].seo_title | null | Website SEO title for the page (max 70; null = build your own from the name). Website only — never sent to Tally. |
data[].seo_description | null | Website SEO meta description (max 170; null when not set). Website only — never sent to Tally. |
data[].seo_keywords | null | Website SEO keywords, comma separated (max 255; null when not set). Website only — never sent to Tally. |
data[].rating | object | |
data[].rating.avg | number | |
data[].rating.count | number | |
data[].in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
data[].created_at | string | When it was created (ISO, UTC). |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
Cases
An item kept in sizes
sizes lists the stock per size now (Tally batches). Filter with ?size=42 for items that have stock in size 42; sort=sizes orders by how many sizes.
{
"query": "size=42&per_page=1"
}{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": "3259",
"name": "LIB-9906-02T 6x12 BLK",
"sku": null,
"unit": "pair",
"hsn_code": "640219",
"gst_rate": "5.00",
"gst_inclusive": true,
"sales_price": "1299.00",
"mrp": "1299.00",
"closing_stock": "364.000",
"sizes": [
{
"size": "6",
"qty": -75
},
{
"size": "7",
"qty": -56
},
{
"size": "8",
"qty": 3
},
{
"size": "9",
"qty": 121
},
{
"size": "10",
"qty": 153
},
{
"size": "11",
"qty": 117
},
{
"size": "12",
"qty": 37
},
{
"size": "Claim",
"qty": 39
}
],
"opening_stock": "658.00",
"opening_batches": [],
"status": "Active",
"description": null,
"category_id": "1",
"category": "LIBERTY-SCHOOL",
"stock_category": "SCHOOL SHOES",
"category_image_url": "https://api.example.com/uploads/stock-categories/1/sc44252_1792670971248_27b181640b6e7dff79bc4397.jpg",
"category_show_on_top": true,
"image_url": "https://api.example.com/uploads/products/1/p3259_1792303912672_7901c27c3846345c3b5702c8.jpg",
"pdf_image_url": null,
"images": [
{
"id": "284",
"url": "https://api.example.com/uploads/products/1/p3259_1792303912672_7901c27c3846345c3b5702c8.jpg",
"is_default": true
}
],
"custom_fields": {},
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"rating": {
"avg": 0,
"count": 0
},
"sold_qty": 0,
"in_tally": true,
"created_at": "2026-08-31T08:14:38.486Z",
"updated_at": "2026-10-19T05:32:55.384Z"
}
],
"meta": {
"total": 968,
"page": 1,
"per_page": 1
}
}
}Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 422 |
{
"status": 422,
"show": true,
"msg": "Invalid condition filter (use field:op:value)."
} |
| 429 | Too many requests. Wait retry_after seconds (also in the Retry-After header). |
Attributes for store filters
https://tallysaasapi.teloora.com/api/v1/ext/attributesActive attributes with only the values that live products use. Use it to build store filters; pass the value ids to GET /products as attr.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/attributes" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/attributes', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": 1,
"name": "Color",
"values": [
{
"id": 2,
"value": "Red"
}
]
}
]
}
}Store design & details
https://tallysaasapi.teloora.com/api/v1/ext/website/designThe online store design set in Teloora (Users › website user › Store design), your company name / contact, and which payment methods are on. email_ready = Settings › Email (SMTP) is set up (store mails go from it). payments.online is true when Settings › Payment integration (Razorpay) is switched on; payments.razorpay_key_id is its PUBLIC key for Razorpay Checkout (the secret never leaves Teloora); payments.razorpay_mode says which key pair is active: test | live (Settings › Integrations › Razorpay). For a signed checkout create a Razorpay order first with POST /ext/website/payments/razorpay-order. Cash on delivery is always on. catalog = the website user's Assigned Catalog switches: catalog.outOfStock false means products with closing stock <= 0 are left out of /ext/products; catalog.zeroPrice false means products with a 0 / empty price are left out (true = they are returned, rate 0 = price on request); catalog.mode = category (default) or brand — Brand wise: GET /ext/categories returns the BRANDS (Tally stock groups) of the catalog in the same shape, filter /ext/products by brand with ?category=<brand name>, and prices / wholesale (tier_group) follow the brand; add ?with_categories=1 to GET /ext/categories and each brand also carries stock_categories: [{ name, parent, products }] — its stock categories (n levels, parent = the parent category name, only those with products, narrowed to the products picked for the brand); filter one with /ext/products?category=<brand>&stock_category=<name>. reviews = { avg, count } of the store's VISIBLE customer reviews (count 0 = show no rating badge); the full list is GET /ext/reviews. design.delivery = the delivery charge: { enabled (false = always free), type: "fixed" | "variable", split (true = a different charge for online-paid orders; false = online pays the COD charge), fixed: charge_cod, charge_online (when split), free_above (optional: free on orders of this value or more); variable: ranges [{ from, to (null = "& above"), cod, online (when split) }] — the range is picked by the order value after discounts + coupon, before GST; ledger_name, note }. 0 = free. Older stores may still send { rule, charge }. payments.phonepe is true when Settings › Integrations › PhonePe is switched on (a second online option; payments.phonepe_mode = test | live) — start it with POST /ext/website/payments/phonepe-order. design.maintenance = { on, title, message, until, contact } (Store design › Maintenance): when on is true show ONLY a maintenance page (title / message, a countdown to until = IST date-time YYYY-MM-DDTHH:mm, "" = none; contact = show WhatsApp / call / email buttons) and do not take orders; absent or on false = the normal store. design.showSoldQty (boolean, off unless true) = show the sold quantity (product sold_qty) on cards and the product page; design.showRating (boolean, on unless false) = show product star ratings and the rate-this-product form. store.currency is the company's currency code and store.country_code its 2-letter country code (null when the country is not known): use them for the product price currency and store address you give to search engines. design.cod_advance = the COD advance rule (Store design › Delivery › COD advance): { enabled, type: "percent" | "fixed", value, min_order?, note? }. When enabled and an online gateway is on (payments.online or payments.phonepe), a cash-on-delivery order pays advance = percent of the order total (or the fixed amount, never more than the total) online first, only when the total is min_order or more; the balance is paid on delivery. Work it out the same way at checkout and send that advance as the payment amount.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/website/design" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/website/design', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"design": {
"maintenance": {
"on": false,
"title": "",
"message": "",
"until": "",
"contact": true
},
"colors": {
"primary": "#1F2A6B"
},
"sections": [
{
"id": "hero",
"on": true
}
],
"cod_advance": {
"enabled": true,
"type": "percent",
"value": 20,
"min_order": 1000,
"note": "Advance confirms your order"
}
},
"store": {
"name": "My Shop",
"mobile": "9800000000",
"currency": "INR",
"country_code": "IN"
},
"payments": {
"cash": true,
"online": true,
"cash_extra_pct": 0,
"online_extra_pct": 2,
"razorpay_key_id": "rzp_live_xxxxxxxx",
"razorpay_mode": "live",
"phonepe": true,
"phonepe_mode": "live"
},
"catalog": {
"outOfStock": false,
"zeroPrice": false
},
"reviews": {
"avg": 4.5,
"count": 12
}
}
}Response fields (24)
| Field | Type | Meaning |
|---|---|---|
design | object | |
design.colors | object | |
design.colors.primary | string | |
design.sections | array | |
design.sections[].id | string | Record id — use it in /{id} calls. |
design.sections[].on | boolean | |
store | object | |
store.name | string | Name, exactly as in Tally / Teloora. |
store.mobile | string | 10-digit mobile. |
payments | object | |
payments.cash | boolean | |
payments.online | boolean | |
payments.cash_extra_pct | number | Retired — always 0. The delivery charge is set per payment type instead (GET /ext/website/design → design.delivery). |
payments.online_extra_pct | number | Retired — always 0. The delivery charge is set per payment type instead (GET /ext/website/design → design.delivery). |
payments.razorpay_key_id | string | |
payments.razorpay_mode | string | |
payments.phonepe | boolean | |
payments.phonepe_mode | string | |
catalog | object | |
catalog.outOfStock | boolean | |
catalog.zeroPrice | boolean | |
reviews | object | |
reviews.avg | number | |
reviews.count | number |
Start an online payment (Razorpay order)
https://tallysaasapi.teloora.com/api/v1/ext/website/payments/razorpay-orderCreates a Razorpay Order on the company's ACTIVE keys (Test or Live, set in Teloora › Settings › Integrations › Razorpay) for the checkout total. Open Razorpay Checkout with key = key_id and order_id = order_id; on success send payment { payment_id, order_id, signature } (razorpay_payment_id / razorpay_order_id / razorpay_signature) with POST /ext/sales-invoices (payment_mode online). The order API checks the signature with the secret and that the paid amount matches the order total. 422 when online payment is off or not set up. Limited to 60 per hour per device. Send items too: stock is checked before the payment starts (422 "Not enough stock …" = do not send the shopper to pay).
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
amount | number | Yes | The checkout total in rupees (same total as the order). COD advance: on a cash-on-delivery order with a COD advance (design.cod_advance), send only the advance amount. |
receipt | string | No | Your own reference (letters, digits, _ -; up to 40). |
items | array | No | Optional, recommended: the cart lines [{ product_id, quantity, batches? [{ batch, qty }] }] — same as the order. Stock is checked BEFORE the payment starts (pending orders waiting for approval count as taken); not enough → 422 "Not enough stock for …" and no payment is started, so nobody pays for pieces that are gone. The order checks stock again. |
Request example
{
"amount": 1249.5,
"receipt": "cart-8812",
"items": [
{
"product_id": 101,
"quantity": 2,
"batches": [
{
"batch": "8",
"qty": 2
}
]
}
]
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/website/payments/razorpay-order" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"amount":1249.5,"receipt":"cart-8812","items":[{"product_id":101,"quantity":2,"batches":[{"batch":"8","qty":2}]}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/website/payments/razorpay-order', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"amount": 1249.5,
"receipt": "cart-8812",
"items": [
{
"product_id": 101,
"quantity": 2,
"batches": [
{
"batch": "8",
"qty": 2
}
]
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Payment started.",
"data": {
"order_id": "order_PqR8sT1uVw2xYz",
"amount": 124950,
"currency": "INR",
"key_id": "rzp_live_xxxxxxxx",
"mode": "live"
}
}Response fields (5)
| Field | Type | Meaning |
|---|---|---|
order_id | string | |
amount | number | |
currency | string | |
key_id | string | |
mode | string |
Errors
| Status | Meaning / example |
|---|---|
| 422 |
{
"status": 422,
"show": true,
"msg": "Online payment is not switched on for this store."
} |
| 429 |
{
"status": 429,
"show": true,
"msg": "Too many payment attempts. Please try again later."
} |
Start an online payment (PhonePe)
https://tallysaasapi.teloora.com/api/v1/ext/website/payments/phonepe-orderStarts a PhonePe Standard Checkout payment on the company's ACTIVE PhonePe keys (Test or Live, Teloora › Settings › Integrations › PhonePe) for the checkout total. Send the shopper to redirect_url; PhonePe sends them back to your redirect_url with ?mo=<merchant_order_id>. Then place the order with POST /ext/sales-invoices (payment_mode online) and payment { gateway: "phonepe", payment_id: merchant_order_id }. The order API asks PhonePe for the status and accepts only a COMPLETED payment for the same total (a pending / failed payment is refused with a clear message). Keep the cart on your side while the shopper is at PhonePe. 422 when PhonePe is off or not set up. Limited to 60 per hour per device. Send items too: stock is checked before the payment starts (422 "Not enough stock …" = do not send the shopper to pay).
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
amount | number | Yes | The checkout total in rupees (same total as the order). COD advance: on a cash-on-delivery order with a COD advance (design.cod_advance), send only the advance amount. |
redirect_url | string | Yes | Your page PhonePe sends the shopper back to (http/https). ?mo=<merchant_order_id> is added. |
phone | string | No | Shopper mobile (10 digits) to prefill PhonePe. |
items | array | No | Optional, recommended: the cart lines [{ product_id, quantity, batches? [{ batch, qty }] }] — same as the order. Stock is checked BEFORE the payment starts (pending orders waiting for approval count as taken); not enough → 422 "Not enough stock for …" and no payment is started, so nobody pays for pieces that are gone. The order checks stock again. |
Request example
{
"amount": 1249.5,
"redirect_url": "https://shop.example.com/checkout/phonepe",
"phone": "9800000000",
"items": [
{
"product_id": 101,
"quantity": 2,
"batches": [
{
"batch": "8",
"qty": 2
}
]
}
]
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/website/payments/phonepe-order" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"amount":1249.5,"redirect_url":"https://shop.example.com/checkout/phonepe","phone":"9800000000","items":[{"product_id":101,"quantity":2,"batches":[{"batch":"8","qty":2}]}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/website/payments/phonepe-order', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"amount": 1249.5,
"redirect_url": "https://shop.example.com/checkout/phonepe",
"phone": "9800000000",
"items": [
{
"product_id": 101,
"quantity": 2,
"batches": [
{
"batch": "8",
"qty": 2
}
]
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Payment started.",
"data": {
"merchant_order_id": "TLP12-9-m2x8k1-a1b2c3",
"phonepe_order_id": "OMO2410231215",
"redirect_url": "https://mercury.phonepe.com/transact/...",
"mode": "live"
}
}Response fields (4)
| Field | Type | Meaning |
|---|---|---|
merchant_order_id | string | |
phonepe_order_id | string | |
redirect_url | string | |
mode | string |
Errors
| Status | Meaning / example |
|---|---|
| 422 |
{
"status": 422,
"show": true,
"msg": "PhonePe is not switched on for this store."
} |
| 429 |
{
"status": 429,
"show": true,
"msg": "Too many payment attempts. Please try again later."
} |
Blog posts
https://tallysaasapi.teloora.com/api/v1/ext/blogPublished posts of the store blog (written in Teloora: Website Users › Blog), newest first by default. List fields only - no body; get one post with /ext/blog/{slug}. Drafts and posts with a future publish date are never returned. meta.total = 0 means the store has no blog yet (hide the Blog link). meta.tags lists every tag of the live posts with its post count (for a tag filter).
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
page | integer | No | Default 1. |
per_page | integer | No | Default 12, max 100. |
search | string | No | Filter by title / summary / tag. |
tag | string | No | Only posts with this tag. |
sort | string | No | newest (default), oldest or title (A-Z). |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/blog" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/blog', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": "a1b2c3d4e5f6",
"slug": "how-to-pick-the-right-school-shoe-size",
"title": "How to pick the right school shoe size",
"excerpt": "Measure in the evening, leave a thumb width at the toe ...",
"cover": "https://api.example.com/uploads/store/1/17/blog-cover-ab12.jpg",
"tags": [
"school",
"sizing"
],
"published_at": "2026-10-19T09:00:00.000Z",
"updated_at": "2026-10-19T09:00:00.000Z",
"images_count": 2
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 12,
"last_page": 1,
"tags": [
{
"tag": "school",
"count": 1
},
{
"tag": "sizing",
"count": 1
}
]
}
}
}Response fields (16)
| Field | Type | Meaning |
|---|---|---|
data[].id | string | Record id — use it in /{id} calls. |
data[].slug | string | |
data[].title | string | |
data[].excerpt | string | |
data[].cover | string | |
data[].tags | array | |
data[].published_at | string | |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
data[].images_count | number | |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
meta.last_page | number | |
meta.tags | array | |
meta.tags[].tag | string | |
meta.tags[].count | number |
One blog post
https://tallysaasapi.teloora.com/api/v1/ext/blog/{slug}One published post by its slug, with body_html (already sanitized by Teloora: headings, lists, links, images, quotes, tables, safe inline styles such as text-align / colour / font-size, and YouTube / Vimeo embeds only), the picture gallery (images[]) and SEO fields. Also returns related[] (up to 4 other posts, most shared tags first), recent[] (up to 5 latest other posts) and tags_all[] for a sidebar. 404 when the slug is unknown, a draft or not yet due.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/blog/{slug}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/blog/{slug}', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"id": "a1b2c3d4e5f6",
"slug": "how-to-pick-the-right-school-shoe-size",
"title": "How to pick the right school shoe size",
"excerpt": "Measure in the evening, leave a thumb width at the toe ...",
"cover": "https://api.example.com/uploads/store/1/17/blog-cover-ab12.jpg",
"tags": [
"school",
"sizing"
],
"published_at": "2026-10-19T09:00:00.000Z",
"updated_at": "2026-10-19T09:00:00.000Z",
"body_html": "<p>Children grow fast ...</p><h2>Measure in the evening</h2><p>...</p>",
"seo_title": "School shoe size guide",
"seo_desc": "A quick guide to picking the right school shoe size.",
"created_at": "2026-10-18T10:00:00.000Z",
"images": [
"https://api.example.com/uploads/store/1/17/blog-gal-cd34.jpg"
],
"images_count": 1,
"related": [
{
"id": "f6e5d4c3b2a1",
"slug": "caring-for-leather-shoes",
"title": "Caring for leather shoes",
"excerpt": "Polish weekly ...",
"cover": null,
"images_count": 0,
"tags": [
"care"
],
"published_at": "2026-10-12T09:00:00.000Z",
"updated_at": "2026-10-12T09:00:00.000Z"
}
],
"recent": [
{
"id": "f6e5d4c3b2a1",
"slug": "caring-for-leather-shoes",
"title": "Caring for leather shoes",
"excerpt": "Polish weekly ...",
"cover": null,
"images_count": 0,
"tags": [
"care"
],
"published_at": "2026-10-12T09:00:00.000Z",
"updated_at": "2026-10-12T09:00:00.000Z"
}
],
"tags_all": [
{
"tag": "school",
"count": 1
},
{
"tag": "care",
"count": 1
}
]
}
}Response fields (37)
| Field | Type | Meaning |
|---|---|---|
id | string | Record id — use it in /{id} calls. |
slug | string | |
title | string | |
excerpt | string | |
cover | string | |
tags | array | |
published_at | string | |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
body_html | string | |
seo_title | string | Website SEO title for the page (max 70; null = build your own from the name). Website only — never sent to Tally. |
seo_desc | string | |
created_at | string | When it was created (ISO, UTC). |
images | array | All images, default first: [{id, url, is_default}]. |
images_count | number | |
related | array | |
related[].id | string | Record id — use it in /{id} calls. |
related[].slug | string | |
related[].title | string | |
related[].excerpt | string | |
related[].cover | null | |
related[].images_count | number | |
related[].tags | array | |
related[].published_at | string | |
related[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
recent | array | |
recent[].id | string | Record id — use it in /{id} calls. |
recent[].slug | string | |
recent[].title | string | |
recent[].excerpt | string | |
recent[].cover | null | |
recent[].images_count | number | |
recent[].tags | array | |
recent[].published_at | string | |
recent[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
tags_all | array | |
tags_all[].tag | string | |
tags_all[].count | number |
Place an order
https://tallysaasapi.teloora.com/api/v1/ext/sales-invoicesCreate a sales order for this Website user's own customer. Rates are re-calculated by Teloora from the locked catalogue rate (the item's MRP with your category addition % / discount %); the delivery charge is added as its own ledger line by the store's delivery rule for the payment_mode. The order goes into the approval queue, then to Tally. When the customer paid online, send the Razorpay result in payment — it is checked with Razorpay and shown on the invoice. Stock: lines are checked against closing stock less the pieces held by orders waiting for approval. Two orders for the last pieces at the same time are handled one after the other — the second gets 422 "Not enough stock for … only N available". A coupon whose limit is used up meanwhile is refused the same way. A line of a product with variants must send variant_id (from the product's variants). The variant's own price and stock apply, and the line comes back with variant_id and variant_label. COD advance: when the store asks for one (GET /ext/website/design → design.cod_advance, and an online gateway is on), a payment_mode "cash" order must carry the advance payment in payment (Razorpay / PhonePe, for the advance amount — not the order total). Teloora works the advance out itself from the order total; without the payment → 422 "Pay the COD advance of ₹… online first — the rest (₹…) is paid on delivery."; a payment of a different amount → 422. A payment on a cash order when no advance is due → 422. The saved order carries voucher_details.cod_advance { type, value, min_order, total, advance, balance, gateway, payment_id, verified, paid_at } (balance = to collect on delivery) and a line in notes; online_payment shows the advance payment, and refunds work on it as on an online order. voucher_details.cod_advance cannot be sent by the client — it is ignored. Wallet points (Referral & Wallet): send voucher_details.wallet = { points } with voucher_details.shop.customer_id — the server checks the store limits and balance (check first with POST /ext/wallet/check), takes the ₹ value off before GST after the coupon, debits the points at once and saves voucher_details.wallet = { points, amount, point_value, lines }. Not enough points → 422.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
customer_id | integer | Yes | Always replaced by the Website user's own customer. |
location_id | integer | No | Location id from GET /ext/locations. Optional; default = the company's main location. |
sales_person_id | integer | No | Sales person id (optional; null = none). |
invoice_no | string | No | Max length 60. |
ledger_name | string | No | Max length 120. |
price_level | string | No | Max length 120. |
voucher_type | string | No | Max length 150. |
ref_type | string | No | One of: On Account | New Ref | Agst Ref. |
ref_name | string | No | Max length 100. |
invoice_date | any | Yes | YYYY-MM-DD. |
due_date | any | No | Not before invoice_date. |
notes | string | No | Max 2000 chars. Max length 2000. |
voucher_details | object | No | Optional object saved with the order. Online store keys: shop = {customer_id (the shopper), name, mobile, email, ship_to {name, mobile, address, city, state, pincode; optional house, building, street, area — the address in parts, address = all four joined}, payment_mode, placed_at} (the order then shows shop_stage / tracking and is found with shop_customer_id); coupon = {code} (checked again, see POST /ext/coupons/check). Any other keys are stored as given. |
ledgers | array | No | Each item: { ledger_name*: string, amount*: number, dr_cr: string } (* = required). |
status | string | No | One of: pending_tally | sent_to_tally | created | failed. Default "pending_tally". |
payment_mode | string | No | cash | online — picks the delivery charge for that payment type (COD / online paid). online + payment = paid online. One of: cash | online. cash + payment = cash on delivery with a COD advance paid online. |
payment | any | No | With payment_mode "online" (the full total), or with payment_mode "cash" when the store asks a COD advance (the advance only). Send just the 3 Razorpay checkout values below — amount, status, method, payer, UPI id, card and bank reference are read by Teloora from Razorpay itself. PhonePe: send { gateway: "phonepe", payment_id: <merchant_order_id from /ext/website/payments/phonepe-order> } — only a COMPLETED PhonePe payment for the same total is accepted. Required with payment_mode "online": an online order without a payment is refused (422). Razorpay needs payment_id + order_id + signature; a payment the gateway says is not paid, or of a different amount, is refused. If the gateway does not answer, the order is kept and the payment stored "not verified". |
save_as_draft | boolean | No | true = save as a draft (not sent for approval / Tally). Default false. |
items | array | Yes | At least 1 line: { product_id*, quantity* (>0, 3 decimals), batches?, unit?, description? }. rate is ignored — the server price applies. batches (order by size) = [{ batch*: size name from the item `sizes`, qty*: number }] — the qtys must add up to quantity; each size is checked to exist and to have the stock. Leave batches out for an item without sizes. |
items[].variant_id | integer | No | Required for a product with variants. |
Request example
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "56",
"quantity": 1,
"rate": 1099,
"gst_rate": 5
}
]
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"customer_id":3382,"invoice_date":"2026-10-29","payment_mode":"cash","items":[{"product_id":"56","quantity":1,"rate":1099,"gst_rate":5}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "56",
"quantity": 1,
"rate": 1099,
"gst_rate": 5
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 422,
"show": true,
"msg": "One of the products is not in your assigned catalog."
}Cases
Order by size (batches)
For an item kept in sizes (its `sizes` in GET /ext/products), split the line into batches: [{batch, qty}]. batch = the size name, qty = how many of that size; the qtys must add up to the line quantity. The rate is always the server price.
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "3354",
"quantity": 3,
"rate": 0,
"batches": [
{
"batch": "8",
"qty": 1
},
{
"batch": "10",
"qty": 2
}
]
}
]
}{
"status": 200,
"show": false,
"msg": "Invoice created.",
"data": {
"id": "12010",
"type": "sales",
"invoice_no": "TLR/26-27/0005",
"tally_voucher_no": null,
"invoice_date": "2026-10-28T18:30:00.000Z",
"due_date": null,
"customer_id": "3382",
"supplier_id": null,
"supplier_bill_no": null,
"location_id": null,
"status": "pending_tally",
"approval_status": "approved",
"rejected_reason": null,
"payment_mode": "cash",
"online_payment": null,
"subtotal": "1797.00",
"discount": "0.00",
"taxable": "1711.43",
"cgst": "42.78",
"sgst": "42.78",
"igst": "0.00",
"tax_amount": "85.57",
"round_off": "0.00",
"total": "1897.00",
"notes": null,
"voucher_details": {
"pricing": {
"lines": [
{
"rate": 599,
"list_rate": 599,
"product_id": 3354,
"tier_group": null,
"sales_price": 599,
"addition_pct": 0,
"discount_pct": 0,
"mode_extra_pct": 0
}
],
"payment_mode": "cash",
"mode_extra_pct": 0
},
"delivery": {
"rule": "variable",
"amount": 100,
"pieces": 3,
"reason": "Delivery charge (orders ₹0 – ₹2,000)",
"ledger_name": "FREIGHT CHARGES (GST)",
"order_value": 1711.43
}
},
"items": [
{
"product_id": "3354",
"description": "(LIB) GOLF 6X10 BLACK",
"hsn": "640219",
"quantity": "3.00",
"unit": "pair",
"rate": "599.00",
"discount_pct": "0.00",
"taxable": "1711.43",
"gst_rate": "5.00",
"gst_amount": "85.57",
"amount": "1797.00",
"tax_inclusive": true,
"godown": null,
"batches": [
{
"batch": "8",
"qty": 1,
"godown": null,
"rate": 599
},
{
"batch": "10",
"qty": 2,
"godown": null,
"rate": 599
}
]
}
],
"in_tally": false,
"created_at": "2026-10-29T09:30:56.200Z",
"updated_at": "2026-10-29T09:30:56.200Z",
"pdf_url": "/api/v1/ext/sales-invoices/12010/pdf"
}
}Refused: sizes do not add up to the line quantity
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "3354",
"quantity": 5,
"rate": 0,
"batches": [
{
"batch": "8",
"qty": 1
},
{
"batch": "10",
"qty": 2
}
]
}
]
}{
"status": 422,
"show": true,
"msg": "Line quantity (5) must equal the total of its batches (3)."
}Refused: a size the item does not have
The message lists the sizes the item has.
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "3354",
"quantity": 1,
"rate": 0,
"batches": [
{
"batch": "NO-SUCH-SIZE",
"qty": 1
}
]
}
]
}{
"status": 422,
"show": true,
"msg": "Batch \"NO-SUCH-SIZE\" does not exist for \"(LIB) GOLF 6X10 BLACK\". Its batches are: 6, 7, 8, 9, 10, 11, Primary Batch."
}Refused: more than that size has in stock
Stock is checked per size.
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "3354",
"quantity": 9,
"rate": 0,
"batches": [
{
"batch": "8",
"qty": 9
}
]
}
]
}{
"status": 422,
"show": true,
"msg": "Not enough stock in batch \"8\" of \"(LIB) GOLF 6X10 BLACK\" — only 8 available, you asked for 9."
}Refused: not enough stock
Stock is checked for the item and, when lines carry batches, for each size.
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": [
{
"product_id": "56",
"quantity": 999999,
"rate": 1099,
"gst_rate": 5
}
]
}{
"status": 422,
"show": true,
"msg": "One of the products is not in your assigned catalog."
}Refused: no lines
{
"customer_id": 3382,
"invoice_date": "2026-10-29",
"payment_mode": "cash",
"items": []
}{
"status": 422,
"show": true,
"msg": "At least one line item is required."
}Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 422 |
{
"status": 422,
"show": true,
"msg": "At least one line item is required."
} |
| 429 | Too many requests. Wait retry_after seconds (also in the Retry-After header). |
| 422 |
{
"status": 422,
"show": true,
"msg": "This payment (pay_Q1w2E3r4T5y6U7) is already recorded on invoice WEB/0042."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "The payment signature does not match — this payment cannot be accepted."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Not enough stock in batch \"7\" of \"SPORT SHOE 7X10 BLK\" — only 3 available, you asked for 5."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Batch \"11\" does not exist for \"SPORT SHOE 7X10 BLK\". Its batches are: 7, 8, 9, 10."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Line quantity (6) must equal the total of its batches (5)."
} |
| 422 | A field is missing or invalid. msg says which one. |
My orders
https://tallysaasapi.teloora.com/api/v1/ext/sales-invoicesOrders placed by this Website user's own customer. Website orders also carry shop_stage (placed / confirmed / packed / shipped / delivered / cancelled), cancel_reason (why a cancelled order was cancelled — the store's note or rejection reason; null when none was given) and tracking (courier, AWB, link). voucher_details.cod_advance (only on a COD order with an advance): { advance, balance, type, value, total, gateway, payment_id, verified, paid_at } — advance paid online at checkout, balance to pay on delivery.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
search | string | No | Max length 191. |
status | string | No | One of: pending_tally | sent_to_tally | created | failed. |
approval | string | No | draft | pending | approved | rejected | all. One of: draft | pending | approved | rejected | all. |
page | integer | No | Default 1. Min 1. Default 1. |
per_page | integer | No | Default 10, max 100. Min 1. Max 1000. Default 10. |
customer_id | integer | No | Only orders of this customer id. |
shop_customer_id | integer | No | Online store: only the orders this customer placed (My orders). |
website | boolean | No | true / 1 = website (online store) orders only; false / 0 = no filter. |
salesman | string | No | Max length 255. |
supplier_id | integer | No | Supplier id (purchase side; not used on sales orders). |
date_from | date | No | ISO date. |
date_to | date | No | ISO date. |
last_update | string | No | 1 or an ISO date. |
mine | string | No | One of: 1. |
sort | string | No | Max length 32. |
order | string | No | One of: asc | desc. |
party | string | No | Max length 255. |
mode | string | No | One of: gross | net. |
ledger_group | string | No | Max length 255. |
ledger_group_basis | string | No | One of: party. |
voucher_type | string | No | Max length 255. |
tally | string | No | One of: in | pending. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": "5183",
"type": "sales",
"invoice_no": "WEB/26-27/0002",
"tally_voucher_no": null,
"invoice_date": "2026-10-27T18:30:00.000Z",
"due_date": null,
"customer_id": "3382",
"customer": "Webiste",
"supplier_id": null,
"supplier": null,
"supplier_bill_no": null,
"location_id": null,
"location": null,
"status": "failed",
"approval_status": "approved",
"rejected_reason": null,
"payment_mode": "cash",
"subtotal": "439.50",
"discount": "43.95",
"taxable": "376.71",
"cgst": "9.42",
"sgst": "9.42",
"igst": "0.00",
"tax_amount": "18.84",
"round_off": "0.45",
"total": "496.00",
"notes": "Website order by Ram Achary (8144687558)\nShip to: Ram Achary, 8144687558, Churihari pada whirlpool service center, Bhawanipatna kalahandi, Bhawanipatna, Bhawanipatna kalahandi WHIRLPOOL SERVICE CENTRE, Bhawanipatna, Odisha 766001\nCoupon SDS10: − ₹43.95 (before GST).",
"voucher_details": {
"shop": {
"name": "Ram Achary",
"email": "saisampath2515@gmail.com",
"mobile": "8144687558",
"ship_to": {
"area": "Bhawanipatna kalahandi WHIRLPOOL SERVICE CENTRE",
"city": "Bhawanipatna",
"name": "Ram Achary",
"house": "Churihari pada whirlpool service center",
"state": "Odisha",
"mobile": "8144687558",
"street": "Bhawanipatna",
"address": "Churihari pada whirlpool service center, Bhawanipatna kalahandi, Bhawanipatna, Bhawanipatna kalahandi WHIRLPOOL SERVICE CENTRE",
"pincode": "766001",
"building": "Bhawanipatna kalahandi"
},
"tracking": {
"at": "2026-10-29T08:18:19.669Z",
"by": 3,
"awb": "CX467634139IN",
"url": "https://www.indiapost.gov.in/#trackandtrace",
"note": null,
"status": "delivered",
"courier": "INDIA POST",
"history": [
{
"at": "2026-10-28T08:29:02.456Z",
"by": 3,
"status": "packed"
},
{
"at": "2026-10-28T14:33:19.311Z",
"by": 3,
"status": "shipped"
},
{
"at": "2026-10-29T08:18:19.669Z",
"by": 3,
"status": "delivered"
}
]
},
"placed_at": "2026-10-28T07:53:37.311Z",
"customer_id": 3400,
"payment_mode": "cash"
},
"coupon": {
"code": "SDS10",
"type": "percent",
"lines": [
{
"share": 43.95,
"product_id": 4047
}
],
"title": null,
"value": 10,
"amount": 43.95,
"max_discount": null
},
"pricing": {
"lines": [
{
"rate": 439.5,
"list_rate": 439.5,
"product_id": 4047,
"tier_group": null,
"sales_price": 439.5,
"addition_pct": 0,
"discount_pct": 0,
"mode_extra_pct": 0
}
],
"payment_mode": "cash",
"mode_extra_pct": 0
},
"delivery": {
"rule": "variable",
"amount": 100,
"pieces": 1,
"reason": "Delivery charge (orders ₹0 – ₹2,000)",
"ledger_name": "FREIGHT CHARGES (GST)",
"order_value": 376.71
}
},
"in_tally": false,
"created_at": "2026-10-28T07:53:37.504Z",
"updated_at": "2026-10-29T08:19:44.205Z",
"shop_stage": "delivered",
"cancel_reason": null,
"tracking": {
"status": "delivered",
"courier": "INDIA POST",
"awb": "CX467634139IN",
"url": "https://www.indiapost.gov.in/#trackandtrace",
"note": null,
"at": "2026-10-29T08:18:19.669Z",
"history": [
{
"status": "packed",
"at": "2026-10-28T08:29:02.456Z"
},
{
"status": "shipped",
"at": "2026-10-28T14:33:19.311Z"
},
{
"status": "delivered",
"at": "2026-10-29T08:18:19.669Z"
}
]
},
"pdf_url": "/api/v1/ext/sales-invoices/5183/pdf"
},
{
"id": "5109",
"type": "sales",
"invoice_no": "INV-2026-4339",
"tally_voucher_no": null,
"invoice_date": "2026-10-25T18:30:00.000Z",
"due_date": null,
"customer_id": "3382",
"customer": "Webiste",
"supplier_id": null,
"supplier": null,
"supplier_bill_no": null,
"location_id": null,
"location": null,
"status": "failed",
"approval_status": "approved",
"rejected_reason": null,
"payment_mode": "online",
"subtotal": "249.00",
"discount": "24.90",
"taxable": "213.43",
"cgst": "5.33",
"sgst": "5.33",
"igst": "0.00",
"tax_amount": "10.67",
"round_off": "-0.10",
"total": "224.00",
"notes": "Website order by ybj (9427509237)\nShip to: YOGESH, 9427509237, 3 ASHWAMEGH WARE HOUSE, AHMEDABAD, Gujarat 382210\nCoupon SDS10: − ₹24.90 (before GST).",
"voucher_details": {
"shop": {
"name": "ybj",
"email": "mryogi261176@gmail.com",
"mobile": "9427509237",
"ship_to": {
"city": "AHMEDABAD",
"name": "YOGESH",
"state": "Gujarat",
"mobile": "9427509237",
"address": "3 ASHWAMEGH WARE HOUSE",
"pincode": "382210"
},
"tracking": {
"at": "2026-10-26T06:46:32.261Z",
"by": 3,
"awb": "CX077306888IN",
"url": "https://www.indiapost.gov.in/#trackandtrace",
"note": null,
"status": "delivered",
"courier": "INDIA POST",
"history": [
{
"at": "2026-10-26T06:41:24.075Z",
"by": 3,
"status": "packed"
},
{
"at": "2026-10-26T06:45:12.121Z",
"by": 3,
"status": "shipped"
},
{
"at": "2026-10-26T06:46:32.261Z",
"by": 3,
"status": "delivered"
}
]
},
"placed_at": "2026-10-26T06:36:43.400Z",
"customer_id": 3397,
"payment_mode": "online"
},
"coupon": {
"code": "SDS10",
"type": "percent",
"lines": [
{
"share": 24.9,
"product_id": 2326
}
],
"title": null,
"value": 10,
"amount": 24.9,
"max_discount": null
},
"pricing": {
"lines": [
{
"rate": 249,
"list_rate": 249,
"product_id": 2326,
"tier_group": null,
"sales_price": 249,
"addition_pct": 0,
"discount_pct": 0,
"mode_extra_pct": 0
}
],
"payment_mode": "online",
"mode_extra_pct": 0
},
"delivery": {
"rule": "variable",
"amount": 0,
"pieces": 1,
"reason": "Free delivery",
"ledger_name": "Delivery Charges",
"order_value": 213.43
}
},
"in_tally": false,
"created_at": "2026-10-26T06:36:44.535Z",
"updated_at": "2026-10-29T06:19:31.006Z",
"shop_stage": "delivered",
"cancel_reason": null,
"tracking": {
"status": "delivered",
"courier": "INDIA POST",
"awb": "CX077306888IN",
"url": "https://www.indiapost.gov.in/#trackandtrace",
"note": null,
"at": "2026-10-26T06:46:32.261Z",
"history": [
{
"status": "packed",
"at": "2026-10-26T06:41:24.075Z"
},
{
"status": "shipped",
"at": "2026-10-26T06:45:12.121Z"
},
{
"status": "delivered",
"at": "2026-10-26T06:46:32.261Z"
}
]
},
"pdf_url": "/api/v1/ext/sales-invoices/5109/pdf"
}
],
"meta": {
"total": 2,
"page": 1,
"per_page": 2,
"grand_total": 720,
"pending_total": 720,
"in_tally_total": 0
}
}
}Response fields (111)
| Field | Type | Meaning |
|---|---|---|
data[].id | string | Record id — use it in /{id} calls. |
data[].type | string | |
data[].invoice_no | string | Invoice / voucher number. |
data[].tally_voucher_no | null | |
data[].invoice_date | string | Voucher date (YYYY-MM-DD). |
data[].due_date | null | Payment due date. |
data[].customer_id | string | Customer id. |
data[].customer | string | |
data[].supplier_id | null | Supplier id. |
data[].supplier | null | |
data[].supplier_bill_no | null | |
data[].location_id | null | Location id. |
data[].location | null | Location name. |
data[].status | string | Active | Inactive (records) or the voucher status. |
data[].approval_status | string | draft | pending | approved | rejected. |
data[].rejected_reason | null | |
data[].payment_mode | string | |
data[].subtotal | string | Total before discount and tax. |
data[].discount | string | Total discount. |
data[].taxable | string | Taxable value. |
data[].cgst | string | |
data[].sgst | string | |
data[].igst | string | |
data[].tax_amount | string | |
data[].round_off | string | Round-off. |
data[].total | string | Grand total. |
data[].notes | string | |
data[].voucher_details | object | |
data[].voucher_details.shop | object | |
data[].voucher_details.shop.name | string | Name, exactly as in Tally / Teloora. |
data[].voucher_details.shop.email | string | Email. |
data[].voucher_details.shop.mobile | string | 10-digit mobile. |
data[].voucher_details.shop.ship_to | object | |
data[].voucher_details.shop.ship_to.area | string | |
data[].voucher_details.shop.ship_to.city | string | City. |
data[].voucher_details.shop.ship_to.name | string | Name, exactly as in Tally / Teloora. |
data[].voucher_details.shop.ship_to.house | string | |
data[].voucher_details.shop.ship_to.state | string | State (name). |
data[].voucher_details.shop.ship_to.mobile | string | 10-digit mobile. |
data[].voucher_details.shop.ship_to.street | string | |
data[].voucher_details.shop.ship_to.address | string | |
data[].voucher_details.shop.ship_to.pincode | string | PIN code. |
data[].voucher_details.shop.ship_to.building | string | |
data[].voucher_details.shop.tracking | object | |
data[].voucher_details.shop.tracking.at | string | |
data[].voucher_details.shop.tracking.by | number | |
data[].voucher_details.shop.tracking.awb | string | |
data[].voucher_details.shop.tracking.url | string | |
data[].voucher_details.shop.tracking.note | null | |
data[].voucher_details.shop.tracking.status | string | Active | Inactive (records) or the voucher status. |
data[].voucher_details.shop.tracking.courier | string | |
data[].voucher_details.shop.tracking.history | array | |
data[].voucher_details.shop.tracking.history[].at | string | |
data[].voucher_details.shop.tracking.history[].by | number | |
data[].voucher_details.shop.tracking.history[].status | string | Active | Inactive (records) or the voucher status. |
data[].voucher_details.shop.placed_at | string | |
data[].voucher_details.shop.customer_id | number | Customer id. |
data[].voucher_details.shop.payment_mode | string | |
data[].voucher_details.coupon | object | |
data[].voucher_details.coupon.code | string | |
data[].voucher_details.coupon.type | string | |
data[].voucher_details.coupon.lines | array | |
data[].voucher_details.coupon.lines[].share | number | |
data[].voucher_details.coupon.lines[].product_id | number | |
data[].voucher_details.coupon.title | null | |
data[].voucher_details.coupon.value | number | |
data[].voucher_details.coupon.amount | number | |
data[].voucher_details.coupon.max_discount | null | |
data[].voucher_details.pricing | object | |
data[].voucher_details.pricing.lines | array | |
data[].voucher_details.pricing.lines[].rate | number | YOUR price for this item — the online store prices from the item MRP (sales price only when it has no MRP), with the category addition % and discount % of your Assigned Catalog. Order at this rate. |
data[].voucher_details.pricing.lines[].list_rate | number | The price before the category discount: MRP (or sales price when no MRP) + the category addition %. Show it struck through when rate is lower. |
data[].voucher_details.pricing.lines[].product_id | number | |
data[].voucher_details.pricing.lines[].tier_group | null | |
data[].voucher_details.pricing.lines[].sales_price | number | List selling price. |
data[].voucher_details.pricing.lines[].addition_pct | number | |
data[].voucher_details.pricing.lines[].discount_pct | number | The category discount % taken off list_rate (0 = none). |
data[].voucher_details.pricing.lines[].mode_extra_pct | number | Retired — always 0 on new orders (older orders may show the % they were priced with). |
data[].voucher_details.pricing.payment_mode | string | |
data[].voucher_details.pricing.mode_extra_pct | number | Retired — always 0 on new orders (older orders may show the % they were priced with). |
data[].voucher_details.delivery | object | |
data[].voucher_details.delivery.rule | string | |
data[].voucher_details.delivery.amount | number | |
data[].voucher_details.delivery.pieces | number | |
data[].voucher_details.delivery.reason | string | |
data[].voucher_details.delivery.ledger_name | string | |
data[].voucher_details.delivery.order_value | number | |
data[].items | undefined | Lines: product, quantity, rate, GST, amount; batches = per-size split. |
data[].in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
data[].created_at | string | When it was created (ISO, UTC). |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
data[].shop_stage | string | |
data[].cancel_reason | null | |
data[].tracking | object | |
data[].tracking.status | string | Active | Inactive (records) or the voucher status. |
data[].tracking.courier | string | |
data[].tracking.awb | string | |
data[].tracking.url | string | |
data[].tracking.note | null | |
data[].tracking.at | string | |
data[].tracking.history | array | |
data[].tracking.history[].status | string | Active | Inactive (records) or the voucher status. |
data[].tracking.history[].at | string | |
data[].pdf_url | string | |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
meta.grand_total | number | |
meta.pending_total | number | |
meta.in_tally_total | number | |
voucher_details.cod_advance | object | COD advance paid online at checkout: { advance, balance, type, value, total, gateway, payment_id, verified, paid_at }. Absent = no advance. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 422 | A field is missing or invalid. msg says which one. |
| 429 | Too many requests. Wait retry_after seconds (also in the Retry-After header). |
Order details
https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices/{id}One of this Website user's own orders, with its lines. online_payment (orders paid online) also carries refunded_amount, refundable and refunds [{ amount, status: pending | processed | failed, reason, at }] — refunds the store made through the same gateway (Razorpay / PhonePe), e.g. when it cancelled the order. voucher_details.cod_advance (only on a COD order with an advance): { advance, balance, type, value, total, gateway, payment_id, verified, paid_at } — advance paid online at checkout, balance to pay on delivery. narration: the invoice's description/narration (Tally narration or Teloora notes), '' when none. einvoice (null when the bill has no IRN): { irn, ack_no, ack_date, signed_qr (IRP signed QR text — render as a QR image), status, source: tally | teloora }. eway_bill (null when none): { ewb_no, ewb_date, valid_until, valid_until_text, generated_text, mode, distance_km, vehicle_no, vehicle_type, transporter_name, transporter_id, doc_no, doc_date, from_* / to_* (name, place, state, pincode, gstin), supply_type, sub_type, transaction_type, doc_type, cewb_no, source }. Each line in items may carry description (the lines typed under the item on the invoice). The PDF (pdf_url) prints the e-Invoice QR on top and the e-Way Bill as page 2.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices/{id}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices/{id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"id": "4439",
"type": "sales",
"invoice_no": "INV-2026-3743",
"tally_voucher_no": null,
"invoice_date": "2026-10-22T18:30:00.000Z",
"due_date": null,
"customer_id": "3347",
"customer": "QA Website",
"supplier_id": null,
"supplier": null,
"supplier_bill_no": null,
"location_id": null,
"location": null,
"status": "pending_tally",
"approval_status": "approved",
"rejected_reason": null,
"payment_mode": "cash",
"online_payment": null,
"subtotal": "589.00",
"discount": "0.00",
"taxable": "555.66",
"cgst": "16.67",
"sgst": "16.67",
"igst": "0.00",
"tax_amount": "33.34",
"round_off": "0.00",
"total": "589.00",
"notes": null,
"voucher_details": {
"pricing": {
"lines": [
{
"rate": 589,
"list_rate": 589,
"product_id": 31,
"tier_group": null,
"sales_price": 589,
"addition_pct": 0,
"discount_pct": 0,
"mode_extra_pct": 0
}
],
"payment_mode": "cash",
"mode_extra_pct": 0
},
"cod_advance": {
"type": "percent",
"value": 20,
"min_order": 1000,
"total": 12441,
"advance": 2488.2,
"balance": 9952.8,
"gateway": "razorpay",
"payment_id": "pay_XXXXXXXXXXXXXX",
"verified": true,
"paid_at": "2026-11-18T06:10:00.000Z"
}
},
"items": [
{
"product_id": "31",
"product_name": "(ACT) A-1260 WHT 2X5",
"description": "(ACT) A-1260 WHT 2X5",
"hsn": "64059000",
"quantity": "1.00",
"unit": "pair",
"rate": "589.00",
"discount_pct": "0.00",
"taxable": "555.66",
"gst_rate": "6.00",
"gst_amount": "33.34",
"amount": "589.00",
"tax_inclusive": true,
"godown": null,
"batches": []
}
],
"in_tally": false,
"created_at": "2026-10-23T06:30:14.498Z",
"updated_at": "2026-10-23T06:30:14.498Z",
"pdf_url": "/api/v1/ext/sales-invoices/4439/pdf",
"price_breakdown": {
"item_total": 589,
"addition": 0,
"category_discount": 0,
"coupon": null,
"payment_extra": null,
"taxable": 555.66,
"gst": 33.34,
"delivery": null,
"round_off": 0,
"total": 589
},
"narration": "Delivered at godown 2",
"einvoice": {
"irn": "6a7a1b…af119b",
"ack_no": "162626723722903",
"ack_date": "2026-11-23",
"signed_qr": "eyJhbGciOi…",
"status": "",
"source": "tally"
},
"eway_bill": {
"ewb_no": "682223827389",
"ewb_date": "2026-11-23",
"valid_until": "2026-11-24",
"valid_until_text": "24-Nov-26 11:59 PM",
"mode": "1 - Road",
"distance_km": 28,
"vehicle_no": "GJ01TE8604",
"transporter_name": "",
"source": "tally"
}
}
}Response fields (73)
| Field | Type | Meaning |
|---|---|---|
id | string | Record id — use it in /{id} calls. |
type | string | |
invoice_no | string | Invoice / voucher number. |
tally_voucher_no | null | |
invoice_date | string | Voucher date (YYYY-MM-DD). |
due_date | null | Payment due date. |
customer_id | string | Customer id. |
customer | string | |
supplier_id | null | Supplier id. |
supplier | null | |
supplier_bill_no | null | |
location_id | null | Location id. |
location | null | Location name. |
status | string | Active | Inactive (records) or the voucher status. |
approval_status | string | draft | pending | approved | rejected. |
rejected_reason | null | |
payment_mode | string | |
online_payment | null | |
subtotal | string | Total before discount and tax. |
discount | string | Total discount. |
taxable | string | Taxable value. |
cgst | string | |
sgst | string | |
igst | string | |
tax_amount | string | |
round_off | string | Round-off. |
total | string | Grand total. |
notes | null | |
voucher_details | object | |
voucher_details.pricing | object | |
voucher_details.pricing.lines | array | |
voucher_details.pricing.lines[].rate | number | YOUR price for this item — the online store prices from the item MRP (sales price only when it has no MRP), with the category addition % and discount % of your Assigned Catalog. Order at this rate. |
voucher_details.pricing.lines[].list_rate | number | The price before the category discount: MRP (or sales price when no MRP) + the category addition %. Show it struck through when rate is lower. |
voucher_details.pricing.lines[].product_id | number | |
voucher_details.pricing.lines[].tier_group | null | |
voucher_details.pricing.lines[].sales_price | number | List selling price. |
voucher_details.pricing.lines[].addition_pct | number | |
voucher_details.pricing.lines[].discount_pct | number | The category discount % taken off list_rate (0 = none). |
voucher_details.pricing.lines[].mode_extra_pct | number | Retired — always 0 on new orders (older orders may show the % they were priced with). |
voucher_details.pricing.payment_mode | string | |
voucher_details.pricing.mode_extra_pct | number | Retired — always 0 on new orders (older orders may show the % they were priced with). |
items | array | Lines: product, quantity, rate, GST, amount; batches = per-size split. |
items[].product_id | string | |
items[].product_name | string | |
items[].description | string | Free text. |
items[].hsn | string | |
items[].quantity | string | |
items[].unit | string | Unit of measure (Nos, Pair, Kgs …). |
items[].rate | string | YOUR price for this item — the online store prices from the item MRP (sales price only when it has no MRP), with the category addition % and discount % of your Assigned Catalog. Order at this rate. |
items[].discount_pct | string | The category discount % taken off list_rate (0 = none). |
items[].taxable | string | Taxable value. |
items[].gst_rate | string | GST % (string, 2 decimals). |
items[].gst_amount | string | |
items[].amount | string | |
items[].tax_inclusive | boolean | |
items[].godown | null | |
items[].batches | array | Per-size split of a line: [{batch, qty, godown, rate}]. |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
pdf_url | string | |
price_breakdown | object | |
price_breakdown.item_total | number | |
price_breakdown.addition | number | |
price_breakdown.category_discount | number | |
price_breakdown.coupon | null | |
price_breakdown.payment_extra | null | |
price_breakdown.taxable | number | Taxable value. |
price_breakdown.gst | number | |
price_breakdown.delivery | null | |
price_breakdown.round_off | number | Round-off. |
price_breakdown.total | number | Grand total. |
voucher_details.cod_advance | object | COD advance paid online at checkout: { advance, balance, type, value, total, gateway, payment_id, verified, paid_at }. Absent = no advance. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 404 |
{
"status": 404,
"show": true,
"msg": "Invoice not found."
} |
Order invoice PDF
https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices/{id}/pdfThe invoice PDF of one of your orders (same printout as Teloora). Every order carries its link in pdf_url. Answers application/pdf; an order that is not yours gives 404.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices/{id}/pdf" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/sales-invoices/{id}/pdf', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"note": "application/pdf file"
}Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
List customers
https://tallysaasapi.teloora.com/api/v1/ext/customersCustomers (parties) of your company — e.g. to match a website shopper to a Tally party.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
search | string | No | Name / mobile / email / GSTIN. Max length 191. |
status | string | No | Active | Inactive | Blocked. One of: Active | Inactive | Blocked. |
page | integer | No | Default 1. Min 1. Default 1. |
per_page | integer | No | Default 20, max 100. Min 1. Max 1000. Default 20. |
sort | string | No | Max length 40. |
order | string | No | One of: asc | desc. |
last_update | string | No | 1 or an ISO date. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": "3403",
"name": "rajesh jain",
"mobile": "9712983035",
"alternate_mobile": null,
"email": "rajeshahudr1@gmail.com",
"gst_number": null,
"pan_number": null,
"gst_registration_type": null,
"billing_address": null,
"shipping_address": null,
"city": null,
"state": null,
"pincode": null,
"country": "India",
"location_id": "1",
"location": "Main Location",
"customer_group_id": "82",
"customer_group": "Website",
"opening_balance": "0.00",
"opening_balance_type": "Cr",
"credit_limit": "0.00",
"credit_days": null,
"closing_balance": "0.00",
"last_sold_date": null,
"status": "Active",
"custom_fields": {},
"in_tally": false,
"created_at": "2026-10-29T09:15:29.361Z",
"updated_at": "2026-10-29T09:15:29.361Z"
},
{
"id": "3402",
"name": "ZZ TEST 10290650 AUTO CUSTOMER",
"mobile": "9000000003",
"alternate_mobile": null,
"email": null,
"gst_number": null,
"pan_number": null,
"gst_registration_type": null,
"billing_address": null,
"shipping_address": null,
"city": null,
"state": null,
"pincode": null,
"country": "India",
"location_id": "1",
"location": "Main Location",
"customer_group_id": null,
"customer_group": null,
"opening_balance": "0.00",
"opening_balance_type": "Cr",
"credit_limit": "0.00",
"credit_days": null,
"closing_balance": "0.00",
"last_sold_date": "2023-02-01T18:30:00.000Z",
"status": "Active",
"custom_fields": {},
"in_tally": true,
"created_at": "2026-10-29T08:20:20.307Z",
"updated_at": "2026-10-29T08:21:18.297Z"
}
],
"meta": {
"total": 411,
"page": 1,
"per_page": 2
}
}
}Response fields (32)
| Field | Type | Meaning |
|---|---|---|
data[].id | string | Record id — use it in /{id} calls. |
data[].name | string | Name, exactly as in Tally / Teloora. |
data[].mobile | string | 10-digit mobile. |
data[].alternate_mobile | null | |
data[].email | string | Email. |
data[].gst_number | null | GSTIN (15 chars). |
data[].pan_number | null | PAN (10 chars). |
data[].gst_registration_type | null | |
data[].billing_address | null | Billing address. |
data[].shipping_address | null | Shipping address. |
data[].city | null | City. |
data[].state | null | State (name). |
data[].pincode | null | PIN code. |
data[].country | string | Country. |
data[].location_id | string | Location id. |
data[].location | string | Location name. |
data[].customer_group_id | string | Customer group id. |
data[].customer_group | string | Customer group. |
data[].opening_balance | string | Opening balance. |
data[].opening_balance_type | string | Dr | Cr. |
data[].credit_limit | string | Credit limit. |
data[].credit_days | null | Credit period in days (null = no terms). |
data[].closing_balance | string | Balance now. |
data[].last_sold_date | null | |
data[].status | string | Active | Inactive (records) or the voucher status. |
data[].custom_fields | object | Your own extra fields (object). |
data[].in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
data[].created_at | string | When it was created (ISO, UTC). |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 429 | Too many requests. Wait retry_after seconds (also in the Retry-After header). |
Customer details
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}One customer of your company. For a customer from Tally the answer also carries tally_locked_fields (filled by Tally — read-only) and tally_fillable_fields (empty — can be filled with Update customer).
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"id": "3403",
"name": "rajesh jain",
"mobile": "9712983035",
"alternate_mobile": null,
"email": "rajeshahudr1@gmail.com",
"gst_number": null,
"pan_number": null,
"gst_registration_type": null,
"billing_address": null,
"shipping_address": null,
"city": null,
"state": null,
"pincode": null,
"country": "India",
"location_id": "1",
"location": "Main Location",
"customer_group_id": "82",
"customer_group": "Website",
"opening_balance": "0.00",
"opening_balance_type": "Cr",
"credit_limit": "0.00",
"credit_days": null,
"closing_balance": "0.00",
"last_sold_date": null,
"status": "Active",
"custom_fields": {},
"in_tally": false,
"created_at": "2026-10-29T09:15:29.361Z",
"updated_at": "2026-10-29T09:15:29.361Z"
}
}Response fields (29)
| Field | Type | Meaning |
|---|---|---|
id | string | Record id — use it in /{id} calls. |
name | string | Name, exactly as in Tally / Teloora. |
mobile | string | 10-digit mobile. |
alternate_mobile | null | |
email | string | Email. |
gst_number | null | GSTIN (15 chars). |
pan_number | null | PAN (10 chars). |
gst_registration_type | null | |
billing_address | null | Billing address. |
shipping_address | null | Shipping address. |
city | null | City. |
state | null | State (name). |
pincode | null | PIN code. |
country | string | Country. |
location_id | string | Location id. |
location | string | Location name. |
customer_group_id | string | Customer group id. |
customer_group | string | Customer group. |
opening_balance | string | Opening balance. |
opening_balance_type | string | Dr | Cr. |
credit_limit | string | Credit limit. |
credit_days | null | Credit period in days (null = no terms). |
closing_balance | string | Balance now. |
last_sold_date | null | |
status | string | Active | Inactive (records) or the voucher status. |
custom_fields | object | Your own extra fields (object). |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 404 |
{
"status": 404,
"show": true,
"msg": "Customer not found."
} |
Create customer
https://tallysaasapi.teloora.com/api/v1/ext/customersRegister a new customer (it goes into the customer group ticked “Use for website”). With `password`, the customer can also sign in to your online store.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Max 191 chars. Min length 1. Max length 191. |
mobile | string | No | 10-digit Indian mobile. Max length 30. |
alternate_mobile | string | No | Max length 30. |
email | string | No | Valid email. Max length 191. A valid email. |
gst_number | string | No | 15-char GSTIN. |
pan_number | string | No | 10-char PAN. |
location_id | integer | No | From GET /ext/locations. |
sales_person_id | integer | No | Sales person id (optional; null = none). |
customer_group_id | integer | No | Customer group id (optional; null = none). |
opening_balance | number | No | Min 0. Max 9999999999. Up to 2 decimals. Default 0. |
credit_limit | number | No | Min 0. Max 9999999999. Up to 2 decimals. Default 0. |
credit_days | integer | No | Min 0. Max 3650. |
status | string | No | One of: Active | Inactive | Blocked. Default "Active". |
billing_address | string | No | Max 2000 chars. Max length 2000. |
shipping_address | string | No | Max 2000 chars. Max length 2000. |
is_tally_ledger | boolean | No | Default true. |
ledger_group | string | No | Max length 191. |
opening_balance_type | string | No | One of: Cr | Dr. Default "Cr". |
country | string | No | Max length 64. |
state | string | No | Indian state name. Max length 100. |
city | string | No | Max length 120. |
pincode | string | No | 6 digits. |
gst_registration_type | string | No | One of: Unknown | Composition | Unregistered/Consumer | Government Entity / TDS | Regular - SEZ | Regular - Deemed Exporter | Regular - Exports (EOU) | e-Commerce Operator | Input Service Distributor | Embassy/UN Body | Non-Resident Taxpayer | Regular. Max length 40. |
notes | string | No | Max length 2000. |
internal_remarks | string | No | Max length 2000. |
custom_fields | object | No | Your own extra fields: an object of key → value (optional). |
is_favourite | boolean | No | Mark as favourite (true / false). Default false. |
referral_code | string | No | A friend's referral code (Referral & Wallet). Read it from the share link (?ref=CODE). An unknown or own code is ignored — it never stops the signup. When the store gives a signup reward it is credited at once. |
Request example
{
"name": "Sharma Traders",
"mobile": "9876543210",
"gst_number": "24ABQFS9803E1ZX",
"pan_number": "ABQFS9803E",
"state": "Gujarat",
"city": "Ahmedabad"
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"name":"Sharma Traders","mobile":"9876543210","gst_number":"24ABQFS9803E1ZX","pan_number":"ABQFS9803E","state":"Gujarat","city":"Ahmedabad"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Sharma Traders",
"mobile": "9876543210",
"gst_number": "24ABQFS9803E1ZX",
"pan_number": "ABQFS9803E",
"state": "Gujarat",
"city": "Ahmedabad"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 422,
"show": true,
"msg": "Mobile 9876543210 is already used by customer \"Test Customer\".",
"field": "mobile"
}Cases
Refused: PAN does not match the GSTIN
{
"name": "Sharma Traders",
"mobile": "9876543210",
"gst_number": "24ABQFS9803E1ZX",
"pan_number": "ABCDE1234F",
"state": "Gujarat",
"city": "Ahmedabad"
}{
"status": 422,
"show": true,
"msg": "PAN ABCDE1234F does not match the GSTIN — the GSTIN 24ABQFS9803E1ZX carries PAN ABQFS9803E."
}Refused: state does not match the GSTIN
The first two digits of a GSTIN are the state code.
{
"name": "Sharma Traders",
"mobile": "9876543210",
"gst_number": "24ABQFS9803E1ZX",
"pan_number": "ABQFS9803E",
"state": "Maharashtra",
"city": "Ahmedabad"
}{
"status": 422,
"show": true,
"msg": "State Maharashtra (code 27) does not match the GSTIN, which is registered in state code 24."
}Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 422 |
{
"status": 422,
"show": true,
"msg": "Customer name is required."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "PAN ABCDE1234F does not match the GSTIN — the GSTIN 24ABQFS9803E1ZX carries PAN ABQFS9803E."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "State Maharashtra (code 27) does not match the GSTIN, which is registered in state code 24."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "GST registration type \"Regular\" needs a GSTIN."
} |
Update customer
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}Change fields of one of your customers. Send only the fields to change. A customer that came from Tally (in_tally true) is read-only except: notes / internal_remarks / custom_fields / is_favourite, and the contact fields Tally left EMPTY (mobile, alternate_mobile, email, gst_number, pan_number, billing_address, shipping_address, country, state, city, pincode, gst_registration_type) — those can be filled; a field that already has Tally's value answers 422 (e.g. "City comes from Tally — change it in Tally"). Values filled here are never sent to Tally, and a later Tally sync overwrites them. Customer details (GET) then also return tally_locked_fields and tally_fillable_fields.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
name | string | No | Min length 1. Max length 191. |
mobile | string | No | Max length 30. |
alternate_mobile | string | No | Max length 30. |
email | string | No | Max length 191. A valid email. |
gst_number | string | No | Max length 30. |
pan_number | string | No | Max length 30. |
location_id | integer | No | Location id from GET /ext/locations. Optional; default = the company's main location. |
sales_person_id | integer | No | Sales person id (optional; null = none). |
customer_group_id | integer | No | Customer group id (optional; null = none). |
opening_balance | number | No | Min -9999999999. Max 9999999999. Up to 2 decimals. |
credit_limit | number | No | Min 0. Max 9999999999. Up to 2 decimals. |
credit_days | integer | No | Min 0. Max 3650. |
status | string | No | One of: Active | Inactive | Blocked. |
billing_address | string | No | Max length 2000. |
shipping_address | string | No | Max length 2000. |
is_tally_ledger | boolean | No | true = push this customer to Tally as a ledger; false = keep it cloud-only. |
ledger_group | string | No | Max length 191. |
opening_balance_type | string | No | One of: Cr | Dr. |
country | string | No | Max length 64. |
state | string | No | Max length 100. |
city | string | No | Max length 120. |
pincode | string | No | Max length 12. |
gst_registration_type | string | No | One of: Unknown | Composition | Unregistered/Consumer | Government Entity / TDS | Regular - SEZ | Regular - Deemed Exporter | Regular - Exports (EOU) | e-Commerce Operator | Input Service Distributor | Embassy/UN Body | Non-Resident Taxpayer | Regular. Max length 40. |
notes | string | No | Max length 2000. |
internal_remarks | string | No | Max length 2000. |
custom_fields | object | No | Your own extra fields: an object of key → value (optional). |
is_favourite | boolean | No | Mark as favourite (true / false). Default false. |
Request example
{
"city": "Surat"
}Code sample
curl -X PUT "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"city":"Surat"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}', {
method: 'PUT',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"city": "Surat"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Customer updated.",
"data": {
"id": "3232",
"name": "TANVI FOOTWEAR (SANAND)",
"mobile": "9898341043",
"alternate_mobile": null,
"email": null,
"gst_number": null,
"pan_number": null,
"gst_registration_type": null,
"billing_address": "NEAR CHAUHAN HOSPITAL\nAHMEDABAD VIRAMGAM ROAD\nSANAND",
"shipping_address": null,
"city": "Surat",
"state": null,
"pincode": null,
"country": "India",
"location_id": "1",
"customer_group_id": "26",
"opening_balance": "0.00",
"opening_balance_type": "Cr",
"credit_limit": "50000.00",
"credit_days": null,
"status": "Active",
"custom_fields": {},
"in_tally": true,
"created_at": "2026-08-31T08:14:38.486Z",
"updated_at": "2026-10-29T09:30:57.778Z"
}
}Response fields (25)
| Field | Type | Meaning |
|---|---|---|
id | string | Record id — use it in /{id} calls. |
name | string | Name, exactly as in Tally / Teloora. |
mobile | string | 10-digit mobile. |
alternate_mobile | null | |
email | null | Email. |
gst_number | null | GSTIN (15 chars). |
pan_number | null | PAN (10 chars). |
gst_registration_type | null | |
billing_address | string | Billing address. |
shipping_address | null | Shipping address. |
city | string | City. |
state | null | State (name). |
pincode | null | PIN code. |
country | string | Country. |
location_id | string | Location id. |
customer_group_id | string | Customer group id. |
opening_balance | string | Opening balance. |
opening_balance_type | string | Dr | Cr. |
credit_limit | string | Credit limit. |
credit_days | null | Credit period in days (null = no terms). |
status | string | Active | Inactive (records) or the voucher status. |
custom_fields | object | Your own extra fields (object). |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 404 |
{
"status": 404,
"show": true,
"msg": "Customer not found."
} |
| 422 | A field is missing or invalid. msg says which one. |
List locations
https://tallysaasapi.teloora.com/api/v1/ext/locationsYour company's locations / branches — values for a customer's location_id.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
search | string | No | Max length 150. |
status | string | No | One of: Active | Inactive | Blocked. |
page | integer | No | Min 1. Default 1. |
per_page | integer | No | Default 20, max 100. Min 1. Max 1000. Default 20. |
sort | string | No | Max length 40. |
order | string | No | One of: asc | desc. |
last_update | string | No | 1 or an ISO date — only rows changed since then. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/locations" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/locations', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"data": [
{
"id": "5",
"name": "ZZ TEST 10290650 GODOWN",
"code": null,
"city": null,
"state": null,
"pincode": null,
"mobile": null,
"status": "Active",
"updated_at": "2026-10-29T06:53:50.921Z"
},
{
"id": "4",
"name": "udaupur",
"code": null,
"city": null,
"state": null,
"pincode": null,
"mobile": null,
"status": "Active",
"updated_at": "2026-10-29T09:11:45.728Z"
}
],
"meta": {
"total": 4,
"page": 1,
"per_page": 2
}
}
}Response fields (12)
| Field | Type | Meaning |
|---|---|---|
data[].id | string | Record id — use it in /{id} calls. |
data[].name | string | Name, exactly as in Tally / Teloora. |
data[].code | null | |
data[].city | null | City. |
data[].state | null | State (name). |
data[].pincode | null | PIN code. |
data[].mobile | null | 10-digit mobile. |
data[].status | string | Active | Inactive (records) or the voucher status. |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
Customer sign-in (online store)
https://tallysaasapi.teloora.com/api/v1/ext/customers/loginA customer who has a store password signs in with mobile number or e-mail. 10 attempts / 15 min. Keep the customer id from the answer in your own (signed) session; read the customer with GET /ext/customers/{id}.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
login | string | Yes | Mobile number or e-mail. |
password | string | Yes | The customer's store password. |
Request example
{
"login": "9000022233"
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers/login" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"login":"9000022233"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/login', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"login": "9000022233"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Signed in.",
"data": {
"id": 3373,
"name": "Asha Patel",
"mobile": "9000022233",
"email": "asha@example.com",
"billing_address": null,
"shipping_address": "12, Shanti Nagar",
"city": "Ahmedabad",
"state": "Gujarat",
"pincode": "382210",
"in_tally": false
},
"session": {
"token": "eyJhbGciOi...",
"customer": {
"id": 3373,
"name": "Asha Patel",
"mobile": "9000022233",
"email": "asha@example.com",
"billing_address": null,
"shipping_address": "12, Shanti Nagar",
"city": "Ahmedabad",
"state": "Gujarat",
"pincode": "382210",
"in_tally": false
},
"expires_in": "30d"
}
}Response fields (10)
| Field | Type | Meaning |
|---|---|---|
id | number | Record id — use it in /{id} calls. |
name | string | Name, exactly as in Tally / Teloora. |
mobile | string | 10-digit mobile. |
email | string | Email. |
billing_address | null | Billing address. |
shipping_address | string | Shipping address. |
city | string | City. |
state | string | State (name). |
pincode | string | PIN code. |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
Forgot password — send code
https://tallysaasapi.teloora.com/api/v1/ext/customers/forgot-passwordE-mails a 6-digit code (valid 10 minutes) to the customer FROM YOUR OWN mail server — set it once in Teloora › Settings › Email (SMTP). Without it the answer is 503 SMTP_NOT_SET ("The store has not set up its e-mail yet"). 404 NOT_FOUND when no customer has this mobile / e-mail, 403 INACTIVE for a blocked account, 422 NO_EMAIL when the account has no e-mail. Limited to 8 requests an hour per login (429).
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
login | string | Yes | Mobile number or e-mail. |
Request example
{
"login": "9000022233"
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers/forgot-password" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"login":"9000022233"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/forgot-password', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"login": "9000022233"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "We have sent a 6-digit code to ra•••@example.com.",
"data": null
}Errors
| Status | Meaning / example |
|---|---|
| 503 | |
| 422 | A field is missing or invalid. msg says which one. |
Forgot password — set new
https://tallysaasapi.teloora.com/api/v1/ext/customers/reset-passwordChecks the code (5 tries) and sets the new password; the customer is signed in.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
login | string | Yes | Mobile number or e-mail (same as on forgot-password). |
code | string | Yes | 6 digits. |
new_password | string | Yes | 6–64 characters. |
Request example
{
"login": "9000022233",
"code": "482913",
"new_password": "******"
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers/reset-password" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"login":"9000022233","code":"482913","new_password":"******"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/reset-password', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"login": "9000022233",
"code": "482913",
"new_password": "******"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Password changed. You are signed in.",
"data": {
"id": 3373,
"name": "Asha Patel",
"mobile": "9000022233",
"email": "asha@example.com",
"billing_address": null,
"shipping_address": "12, Shanti Nagar",
"city": "Ahmedabad",
"state": "Gujarat",
"pincode": "382210",
"in_tally": false
},
"session": {
"token": "eyJhbGciOi...",
"customer": {
"id": 3373,
"name": "Asha Patel",
"mobile": "9000022233",
"email": "asha@example.com",
"billing_address": null,
"shipping_address": "12, Shanti Nagar",
"city": "Ahmedabad",
"state": "Gujarat",
"pincode": "382210",
"in_tally": false
},
"expires_in": "30d"
}
}Response fields (10)
| Field | Type | Meaning |
|---|---|---|
id | number | Record id — use it in /{id} calls. |
name | string | Name, exactly as in Tally / Teloora. |
mobile | string | 10-digit mobile. |
email | string | Email. |
billing_address | null | Billing address. |
shipping_address | string | Shipping address. |
city | string | City. |
state | string | State (name). |
pincode | string | PIN code. |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
A customer's saved addresses
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addressesThe saved delivery addresses of ONE signed-in customer of this website (My addresses / the checkout address picker), default first, then newest. The first call keeps the address the customer already had (shipping_address + city / state / pincode) as the default "Home" address. Only ask for the customer who is signed in. A customer of another website → 404.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": [
{
"id": "a3f9c21b7d04",
"type": "home",
"label": "Home",
"name": "Ramesh Patel",
"mobile": "9876543210",
"house": "12",
"building": "Sunrise Apartment",
"street": "MG Road",
"area": "Vijay Nagar",
"city": "Indore",
"state": "Madhya Pradesh",
"pincode": "452010",
"address": "12, Sunrise Apartment, MG Road, Vijay Nagar",
"is_default": true,
"created_at": "2026-11-03T06:00:00.000Z",
"updated_at": "2026-11-03T06:00:00.000Z"
}
]
}Response fields (9)
| Field | Type | Meaning |
|---|---|---|
id | string | Address key (use it to edit / remove). |
type | string | home | work | other. |
label | string | Home / Work, or the name given to an Other address. |
name | string | Receiver's name. |
mobile | string | Receiver's 10-digit mobile. |
house / building / street / area | string | The four parts of the address. |
city / state / pincode | string | City, state name, 6-digit PIN code. |
address | string | The four parts joined into one line. |
is_default | boolean | true on exactly one address — checkout picks it first. |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
Save a new address
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addressesAdds an address (up to 10). The same address cannot be saved twice — house, building, street, area, city, state and pincode are compared ignoring case, spaces and punctuation → 409. The first address is the default. The answer also carries `addresses` (the whole list). The customer's own shipping_address is NOT changed here — copy the default onto it with PUT /ext/customers/{id} if you want (the store front does).
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
type | string | No | home (default) | work | other. |
label | string | No | Only for type other, e.g. "Mom's house". Max 30. |
name | string | Yes | Receiver's full name. 2-150. |
mobile | string | Yes | 10-digit Indian mobile (6-9 first). |
house | string | Yes | House / flat no. Max 60. |
building | string | Yes | Building / society. 2-120. |
street | string | Yes | Street / road. 2-120. |
area | string | Yes | Area / locality. 2-150. |
city | string | Yes | 2-100. |
state | string | Yes | State name. 2-100. |
pincode | string | Yes | 6 digits, not starting with 0. |
is_default | boolean | No | true = make this the default (the others stop being default). |
Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": true,
"msg": "Address saved.",
"data": {
"id": "a3f9c21b7d04",
"type": "home",
"label": "Home",
"name": "Ramesh Patel",
"mobile": "9876543210",
"house": "12",
"building": "Sunrise Apartment",
"street": "MG Road",
"area": "Vijay Nagar",
"city": "Indore",
"state": "Madhya Pradesh",
"pincode": "452010",
"address": "12, Sunrise Apartment, MG Road, Vijay Nagar",
"is_default": true,
"created_at": "2026-11-03T06:00:00.000Z",
"updated_at": "2026-11-03T06:00:00.000Z"
},
"addresses": [
{
"id": "a3f9c21b7d04",
"type": "home",
"label": "Home",
"name": "Ramesh Patel",
"mobile": "9876543210",
"house": "12",
"building": "Sunrise Apartment",
"street": "MG Road",
"area": "Vijay Nagar",
"city": "Indore",
"state": "Madhya Pradesh",
"pincode": "452010",
"address": "12, Sunrise Apartment, MG Road, Vijay Nagar",
"is_default": true,
"created_at": "2026-11-03T06:00:00.000Z",
"updated_at": "2026-11-03T06:00:00.000Z"
}
]
}Response fields (9)
| Field | Type | Meaning |
|---|---|---|
id | string | Address key (use it to edit / remove). |
type | string | home | work | other. |
label | string | Home / Work, or the name given to an Other address. |
name | string | Receiver's name. |
mobile | string | Receiver's 10-digit mobile. |
house / building / street / area | string | The four parts of the address. |
city / state / pincode | string | City, state name, 6-digit PIN code. |
address | string | The four parts joined into one line. |
is_default | boolean | true on exactly one address — checkout picks it first. |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
| 409 | |
| 422 | A field is missing or invalid. msg says which one. |
| 422 | A field is missing or invalid. msg says which one. |
Edit an address / make it the default
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses/{key}Replaces one saved address (send every field, as for add). is_default: true makes it the default. Same duplicate rule (another saved address with the same parts → 409). Answer = the address + `addresses`.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
type | string | No | home (default) | work | other. |
label | string | No | Only for type other, e.g. "Mom's house". Max 30. |
name | string | Yes | Receiver's full name. 2-150. |
mobile | string | Yes | 10-digit Indian mobile (6-9 first). |
house | string | Yes | House / flat no. Max 60. |
building | string | Yes | Building / society. 2-120. |
street | string | Yes | Street / road. 2-120. |
area | string | Yes | Area / locality. 2-150. |
city | string | Yes | 2-100. |
state | string | Yes | State name. 2-100. |
pincode | string | Yes | 6 digits, not starting with 0. |
is_default | boolean | No | true = make this the default (the others stop being default). |
Code sample
curl -X PUT "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses/{key}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses/{key}', {
method: 'PUT',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": true,
"msg": "Address updated.",
"data": {
"id": "a3f9c21b7d04",
"type": "home",
"label": "Home",
"name": "Ramesh Patel",
"mobile": "9876543210",
"house": "12",
"building": "Sunrise Apartment",
"street": "MG Road",
"area": "Vijay Nagar",
"city": "Indore",
"state": "Madhya Pradesh",
"pincode": "452010",
"address": "12, Sunrise Apartment, MG Road, Vijay Nagar",
"is_default": true,
"created_at": "2026-11-03T06:00:00.000Z",
"updated_at": "2026-11-03T06:00:00.000Z"
},
"addresses": [
{
"id": "a3f9c21b7d04",
"type": "home",
"label": "Home",
"name": "Ramesh Patel",
"mobile": "9876543210",
"house": "12",
"building": "Sunrise Apartment",
"street": "MG Road",
"area": "Vijay Nagar",
"city": "Indore",
"state": "Madhya Pradesh",
"pincode": "452010",
"address": "12, Sunrise Apartment, MG Road, Vijay Nagar",
"is_default": true,
"created_at": "2026-11-03T06:00:00.000Z",
"updated_at": "2026-11-03T06:00:00.000Z"
}
]
}Response fields (9)
| Field | Type | Meaning |
|---|---|---|
id | string | Address key (use it to edit / remove). |
type | string | home | work | other. |
label | string | Home / Work, or the name given to an Other address. |
name | string | Receiver's name. |
mobile | string | Receiver's 10-digit mobile. |
house / building / street / area | string | The four parts of the address. |
city / state / pincode | string | City, state name, 6-digit PIN code. |
address | string | The four parts joined into one line. |
is_default | boolean | true on exactly one address — checkout picks it first. |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
| 409 | |
| 422 | A field is missing or invalid. msg says which one. |
| 422 | A field is missing or invalid. msg says which one. |
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
Remove an address
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses/{key}Removes one saved address. Removing the default makes the newest remaining address the default. Answer carries `addresses` (the list left).
Header: Authorization: Bearer <token>
Code sample
curl -X DELETE "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses/{key}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/addresses/{key}', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": true,
"msg": "Address removed.",
"data": null,
"addresses": []
}Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
Create product
https://tallysaasapi.teloora.com/api/v1/ext/productsCreate an item, optionally with its size-wise opening stock. It is pushed to Tally (with the sizes as batches) on the next sync.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Max 191 chars. Min length 1. Max length 191. |
sku | string | No | Max 100 chars. Max length 100. |
unit | string | No | e.g. Nos, Pair, Kgs (max 30). Max length 30. |
hsn_code | string | No | 4 to 8 digits. |
gst_rate | number | No | GST % (a valid slab, e.g. 0, 5, 12, 18, 28). Min 0. Max 100. Up to 2 decimals. Default 0. |
purchase_price | number | No | 0 or more, 2 decimals. Min 0. Max 9999999999. Up to 2 decimals. Default 0. |
sales_price | number | No | 0 or more, 2 decimals. Min 0. Max 9999999999. Up to 2 decimals. Default 0. |
opening_stock | number | No | Total opening. When opening_batches is sent it must equal their total (or leave it out). Min 0. Max 9999999999. Up to 2 decimals. |
opening_batches | array | No | Size-wise opening stock = Tally batches: [{ "size": "41", "qty": 10 }, …]. Size 1–60 chars, unique per product (case-insensitive), no " < >; qty 0 or more (max 3 decimals); at most 200 sizes. opening_stock becomes their total. Max items 200. Each item: { size*: string, qty*: number } (* = required). |
category_id | integer | No | Group id. |
stock_category_id | integer | No | |
status | string | No | Active | Inactive. One of: Active | Inactive. Default "Active". |
is_tally_item | boolean | No | Default true. |
description | string | No | Max 5000 chars. Max length 5000. |
custom_fields | object | No | Your own extra fields: an object of key → value (optional). |
seo_title | string | No | Max length 70. |
seo_description | string | No | Max length 170. |
seo_keywords | string | No | Max length 255. |
gst_inclusive | boolean | No |
Request example
{
"name": "DOCS SAMPLE SHOE 7X10 BLK",
"unit": "Pair",
"hsn_code": "6402",
"gst_rate": 12,
"sales_price": 1299,
"opening_batches": [
{
"size": "7",
"qty": 10
},
{
"size": "8",
"qty": 12
},
{
"size": "9",
"qty": 8
}
]
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/products" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"name":"DOCS SAMPLE SHOE 7X10 BLK","unit":"Pair","hsn_code":"6402","gst_rate":12,"sales_price":1299,"opening_batches":[{"size":"7","qty":10},{"size":"8","qty":12},{"size":"9","qty":8}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/products', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "DOCS SAMPLE SHOE 7X10 BLK",
"unit": "Pair",
"hsn_code": "6402",
"gst_rate": 12,
"sales_price": 1299,
"opening_batches": [
{
"size": "7",
"qty": 10
},
{
"size": "8",
"qty": 12
},
{
"size": "9",
"qty": 8
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Product created.",
"data": {
"id": "6230",
"name": "DOCS SAMPLE SHOE 7X10 BLK",
"sku": null,
"unit": "Pair",
"hsn_code": "6402",
"gst_rate": "12.00",
"gst_inclusive": true,
"sales_price": "1299.00",
"mrp": null,
"opening_stock": "30.00",
"opening_batches": [
{
"qty": 10,
"size": "7"
},
{
"qty": 12,
"size": "8"
},
{
"qty": 8,
"size": "9"
}
],
"status": "Active",
"description": null,
"category_id": null,
"custom_fields": {},
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"in_tally": false,
"created_at": "2026-10-29T09:30:54.484Z",
"updated_at": "2026-10-29T09:30:54.484Z"
}
}Response fields (23)
| Field | Type | Meaning |
|---|---|---|
id | string | Record id — use it in /{id} calls. |
name | string | Name, exactly as in Tally / Teloora. |
sku | null | Item code. |
unit | string | Unit of measure (Nos, Pair, Kgs …). |
hsn_code | string | HSN / SAC code (null when the item has none). |
gst_rate | string | GST % (string, 2 decimals). |
gst_inclusive | boolean | true = the selling price INCLUDES GST (GST is backed out of it); false = GST is added on top. Default true. Website / order maths only — never sent to Tally; editable for Tally items. |
sales_price | string | List selling price. |
mrp | null | Maximum retail price (null when not set). |
opening_stock | string | Opening quantity (a Tally item: Tally's closing). |
opening_batches | array | Size-wise opening sent for a Teloora-created item (not yet in Tally): [{size, qty}]. |
opening_batches[].qty | number | |
opening_batches[].size | string | |
status | string | Active | Inactive (records) or the voucher status. |
description | null | Free text. |
category_id | null | Group id. |
custom_fields | object | Your own extra fields (object). |
seo_title | null | Website SEO title for the page (max 70; null = build your own from the name). Website only — never sent to Tally. |
seo_description | null | Website SEO meta description (max 170; null when not set). Website only — never sent to Tally. |
seo_keywords | null | Website SEO keywords, comma separated (max 255; null when not set). Website only — never sent to Tally. |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Cases
Without sizes
A plain item: just its opening quantity.
{
"name": "DOCS SAMPLE CAP",
"unit": "Nos",
"opening_stock": 25
}{
"status": 200,
"show": false,
"msg": "Product created.",
"data": {
"id": "6231",
"name": "DOCS SAMPLE CAP",
"sku": null,
"unit": "Nos",
"hsn_code": null,
"gst_rate": "0.00",
"gst_inclusive": true,
"sales_price": "0.00",
"mrp": null,
"opening_stock": "25.00",
"opening_batches": [],
"status": "Active",
"description": null,
"category_id": null,
"custom_fields": {},
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"in_tally": false,
"created_at": "2026-10-29T09:30:55.156Z",
"updated_at": "2026-10-29T09:30:55.156Z"
}
}Refused: a size listed twice
{
"name": "X",
"opening_batches": [
{
"size": "7",
"qty": 1
},
{
"size": "7",
"qty": 2
}
]
}{
"status": 422,
"show": true,
"msg": "The same size is listed twice — each size can appear only once."
}Refused: opening does not match its sizes
Send the sizes only (opening_stock is then their total), or make both match.
{
"name": "X",
"opening_stock": 99,
"opening_batches": [
{
"size": "7",
"qty": 1
}
]
}{
"status": 422,
"show": true,
"msg": "Opening stock (99) must equal the total of the sizes (1). Send the sizes only, or make both match."
}Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 422 |
{
"status": 422,
"show": true,
"msg": "Product name is required."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "The same size is listed twice — each size can appear only once."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Opening quantity of a size cannot be negative."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Opening stock (99) must equal the total of the sizes (30). Send the sizes only, or make both match."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "HSN code must be 4 to 8 digits."
} |
Update product
https://tallysaasapi.teloora.com/api/v1/ext/products/{id}Change any field (send only what changes). Opening stock and sizes can be changed only until the item is in Tally.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
name | string | No | Max 191 chars. Min length 1. Max length 191. |
sku | string | No | Max 100 chars. Max length 100. |
unit | string | No | e.g. Nos, Pair, Kgs (max 30). Max length 30. |
hsn_code | string | No | 4 to 8 digits. Max length 20. |
gst_rate | number | No | GST % (a valid slab, e.g. 0, 5, 12, 18, 28). Min 0. Max 100. Up to 2 decimals. |
purchase_price | number | No | 0 or more, 2 decimals. Min -9999999999. Max 9999999999. Up to 2 decimals. |
sales_price | number | No | 0 or more, 2 decimals. Min -9999999999. Max 9999999999. Up to 2 decimals. |
opening_stock | number | No | Only while the item is NOT yet in Tally. Min -9999999999. Max 9999999999. Up to 2 decimals. |
opening_batches | array | No | Size-wise opening stock = Tally batches: [{ "size": "41", "qty": 10 }, …]. Size 1–60 chars, unique per product (case-insensitive), no " < >; qty 0 or more (max 3 decimals); at most 200 sizes. opening_stock becomes their total. Refused once the item is in Tally (Tally owns its batches). Max items 200. Each item: { size*: string, qty*: number } (* = required). |
category_id | integer | No | Group id. |
stock_category_id | integer | No | |
status | string | No | Active | Inactive. One of: Active | Inactive. |
is_tally_item | boolean | No | true = push this item to Tally; false = keep it cloud-only. |
description | string | No | Max 5000 chars. Max length 5000. |
custom_fields | object | No | Your own extra fields: an object of key → value (optional). |
seo_title | string | No | Max length 70. |
seo_description | string | No | Max length 170. |
seo_keywords | string | No | Max length 255. |
gst_inclusive | boolean | No |
Request example
{
"sales_price": 899,
"opening_batches": [
{
"size": "6",
"qty": 5
},
{
"size": "7",
"qty": 6
}
]
}Code sample
curl -X PUT "https://tallysaasapi.teloora.com/api/v1/ext/products/{id}" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"sales_price":899,"opening_batches":[{"size":"6","qty":5},{"size":"7","qty":6}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/products/{id}', {
method: 'PUT',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"sales_price": 899,
"opening_batches": [
{
"size": "6",
"qty": 5
},
{
"size": "7",
"qty": 6
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Product updated.",
"data": {
"id": "6232",
"name": "DOCS SAMPLE SANDAL",
"sku": null,
"unit": "Pair",
"hsn_code": null,
"gst_rate": "0.00",
"gst_inclusive": true,
"sales_price": "899.00",
"mrp": null,
"opening_stock": "11.00",
"opening_batches": [
{
"qty": 5,
"size": "6"
},
{
"qty": 6,
"size": "7"
}
],
"status": "Active",
"description": null,
"category_id": null,
"custom_fields": {},
"seo_title": null,
"seo_description": null,
"seo_keywords": null,
"in_tally": false,
"created_at": "2026-10-29T09:30:55.183Z",
"updated_at": "2026-10-29T09:30:55.300Z"
}
}Response fields (23)
| Field | Type | Meaning |
|---|---|---|
id | string | Record id — use it in /{id} calls. |
name | string | Name, exactly as in Tally / Teloora. |
sku | null | Item code. |
unit | string | Unit of measure (Nos, Pair, Kgs …). |
hsn_code | null | HSN / SAC code (null when the item has none). |
gst_rate | string | GST % (string, 2 decimals). |
gst_inclusive | boolean | true = the selling price INCLUDES GST (GST is backed out of it); false = GST is added on top. Default true. Website / order maths only — never sent to Tally; editable for Tally items. |
sales_price | string | List selling price. |
mrp | null | Maximum retail price (null when not set). |
opening_stock | string | Opening quantity (a Tally item: Tally's closing). |
opening_batches | array | Size-wise opening sent for a Teloora-created item (not yet in Tally): [{size, qty}]. |
opening_batches[].qty | number | |
opening_batches[].size | string | |
status | string | Active | Inactive (records) or the voucher status. |
description | null | Free text. |
category_id | null | Group id. |
custom_fields | object | Your own extra fields (object). |
seo_title | null | Website SEO title for the page (max 70; null = build your own from the name). Website only — never sent to Tally. |
seo_description | null | Website SEO meta description (max 170; null when not set). Website only — never sent to Tally. |
seo_keywords | null | Website SEO keywords, comma separated (max 255; null when not set). Website only — never sent to Tally. |
in_tally | boolean | true when the record is already in Tally (then it is read-only — change it in Tally). |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Cases
Refused: the item is already in Tally
Tally owns the stock and sizes of an item that is in Tally — change them in Tally.
{
"opening_batches": [
{
"size": "7",
"qty": 1
}
]
}{
"status": 422,
"show": true,
"msg": "Opening batches comes from Tally — change it in Tally; the next sync brings the change here. Only description, custom_fields, status, seo_title, seo_description, seo_keywords, gst_inclusive can be changed in Teloora.",
"field": "opening_batches"
}Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 403 | The login is not a Website user. |
| 404 |
{
"status": 404,
"show": true,
"msg": "Product not found."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "This item is already in Tally — its size-wise opening stock is kept in Tally. Change it there; the next sync brings it here."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Provide at least one field to update."
} |
Offers (live public coupons)
https://tallysaasapi.teloora.com/api/v1/ext/couponsThe website user's coupons a shopper may see: switched on, marked public, inside their dates and not used up. Four types: percent (% off, optional ₹ cap), flat (₹ off), bxgy (Buy X Get Y free — the cheapest eligible units are free) and free_shipping (the order's delivery charge becomes 0). Set in Teloora › Users › ⋮ › Coupons. Limits (total uses) are not shown. Show `label` / `summary` as the offer text.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/coupons" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/coupons', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": [
{
"code": "DIWALI10",
"title": "Diwali offer",
"description": "10% off on all shoes",
"type": "percent",
"value": 10,
"max_discount": 200,
"label": "10% off up to ₹200",
"summary": "10% off on orders of ₹999 or more (up to ₹200)",
"buy_qty": null,
"get_qty": null,
"get_scope": null,
"get_category_ids": [],
"get_product_ids": [],
"max_free": null,
"min_order": 999,
"min_qty": 0,
"scope": "all",
"category_ids": [],
"product_ids": [],
"payment": "both",
"ends_on": "2026-11-15",
"first_order": false,
"per_customer": 1
},
{
"code": "B2G1",
"title": "Buy 2 get 1",
"description": "",
"type": "bxgy",
"value": 0,
"max_discount": null,
"label": "Buy 2 Get 1 Free",
"summary": "Buy 2 get 1 free",
"buy_qty": 2,
"get_qty": 1,
"get_scope": "same",
"get_category_ids": [],
"get_product_ids": [],
"max_free": null,
"min_order": 0,
"min_qty": 0,
"scope": "all",
"category_ids": [],
"product_ids": [],
"payment": "both",
"ends_on": null,
"first_order": false,
"per_customer": 1
},
{
"code": "FREESHIP",
"title": "Free shipping",
"description": "",
"type": "free_shipping",
"value": 0,
"max_discount": null,
"label": "Free shipping",
"summary": "Free shipping on orders of ₹499 or more",
"buy_qty": null,
"get_qty": null,
"get_scope": null,
"get_category_ids": [],
"get_product_ids": [],
"max_free": null,
"min_order": 499,
"min_qty": 0,
"scope": "all",
"category_ids": [],
"product_ids": [],
"payment": "both",
"ends_on": null,
"first_order": false,
"per_customer": null
}
]
}Response fields (23)
| Field | Type | Meaning |
|---|---|---|
[].code | string | |
[].title | string | |
[].description | string | Free text. |
[].type | string | |
[].value | number | |
[].max_discount | number | |
[].label | string | |
[].summary | string | |
[].buy_qty | null | |
[].get_qty | null | |
[].get_scope | null | |
[].get_category_ids | array | |
[].get_product_ids | array | |
[].max_free | null | |
[].min_order | number | |
[].min_qty | number | |
[].scope | string | |
[].category_ids | array | |
[].product_ids | array | |
[].payment | string | |
[].ends_on | string | |
[].first_order | boolean | |
[].per_customer | number |
Check a coupon on a cart
https://tallysaasapi.teloora.com/api/v1/ext/coupons/checkPrices the cart exactly as an order would (catalogue rates, payment-mode extra) and checks the code: dates, payment mode, minimum order / pieces, categories / products, total and per-customer uses, first order. percent / flat: the discount comes off BEFORE GST, shared over the eligible lines. bxgy (Buy X Get Y): with the same items, every full set of X+Y eligible units gives Y free; with other free items (get_scope categories / products), every X bought units unlock Y free units of those items in the cart; the CHEAPEST units are the free ones (max_free caps them) and `free_lines` says which. free_shipping: nothing comes off the items — the delivery charge becomes 0 (`shipping_saved`); refused when delivery is already free. When the cart does not qualify the 422 message says what to add ("Add 1 more eligible item to get 1 free (buy 2 get 1)."). Send the same code on the order as voucher_details.coupon.code — the order checks it again.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
code | string | Yes | Coupon code (any case). |
payment_mode | string | Yes | cash | online |
customer_id | integer | No | The shopper (for per-customer and first-order rules). |
items | array | Yes | [{ product_id, quantity }] — one per cart line. |
Request example
{
"code": "DIWALI10",
"payment_mode": "online",
"customer_id": 17,
"items": [
{
"product_id": 33,
"quantity": 2
}
]
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/coupons/check" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"code":"DIWALI10","payment_mode":"online","customer_id":17,"items":[{"product_id":33,"quantity":2}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/coupons/check', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"code": "DIWALI10",
"payment_mode": "online",
"customer_id": 17,
"items": [
{
"product_id": 33,
"quantity": 2
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Coupon applied.",
"data": {
"coupon": {
"code": "DIWALI10",
"title": "Diwali offer",
"description": "10% off on all shoes",
"type": "percent",
"value": 10,
"max_discount": 200,
"label": "10% off up to ₹200",
"summary": "10% off on orders of ₹999 or more (up to ₹200)",
"buy_qty": null,
"get_qty": null,
"get_scope": null,
"get_category_ids": [],
"get_product_ids": [],
"max_free": null,
"min_order": 999,
"min_qty": 0,
"scope": "all",
"category_ids": [],
"product_ids": [],
"payment": "both",
"ends_on": "2026-11-15",
"first_order": false,
"per_customer": 1
},
"amount": 157.9,
"eligible_product_ids": [
33
],
"type": "percent",
"free_units": 0,
"free_lines": [],
"shipping_saved": 0,
"delivery": {
"amount": 0,
"reason": "Free delivery on orders of ₹999 or more"
}
}
}Response fields (33)
| Field | Type | Meaning |
|---|---|---|
coupon | object | |
coupon.code | string | |
coupon.title | string | |
coupon.description | string | Free text. |
coupon.type | string | |
coupon.value | number | |
coupon.max_discount | number | |
coupon.label | string | |
coupon.summary | string | |
coupon.buy_qty | null | |
coupon.get_qty | null | |
coupon.get_scope | null | |
coupon.get_category_ids | array | |
coupon.get_product_ids | array | |
coupon.max_free | null | |
coupon.min_order | number | |
coupon.min_qty | number | |
coupon.scope | string | |
coupon.category_ids | array | |
coupon.product_ids | array | |
coupon.payment | string | |
coupon.ends_on | string | |
coupon.first_order | boolean | |
coupon.per_customer | number | |
amount | number | |
eligible_product_ids | array | |
type | string | |
free_units | number | |
free_lines | array | |
shipping_saved | number | |
delivery | object | |
delivery.amount | number | |
delivery.reason | string |
Cases
Buy X Get Y (bxgy) — 3 units on "buy 2 get 1"
{
"code": "B2G1",
"payment_mode": "cash",
"customer_id": 17,
"items": [
{
"product_id": 33,
"quantity": 2
},
{
"product_id": 34,
"quantity": 1
}
]
}{
"status": 200,
"show": false,
"msg": "Coupon applied — 1 free.",
"data": {
"coupon": {
"code": "B2G1",
"title": "Buy 2 get 1",
"description": "",
"type": "bxgy",
"value": 0,
"max_discount": null,
"label": "Buy 2 Get 1 Free",
"summary": "Buy 2 get 1 free",
"buy_qty": 2,
"get_qty": 1,
"get_scope": "same",
"get_category_ids": [],
"get_product_ids": [],
"max_free": null,
"min_order": 0,
"min_qty": 0,
"scope": "all",
"category_ids": [],
"product_ids": [],
"payment": "both",
"ends_on": null,
"first_order": false,
"per_customer": 1
},
"amount": 299,
"eligible_product_ids": [
34
],
"type": "bxgy",
"free_units": 1,
"free_lines": [
{
"index": 1,
"product_id": 34,
"units": 1,
"share": 299
}
],
"shipping_saved": 0,
"delivery": null
}
}Free shipping
{
"code": "FREESHIP",
"payment_mode": "cash",
"customer_id": 17,
"items": [
{
"product_id": 33,
"quantity": 1
}
]
}{
"status": 200,
"show": false,
"msg": "Coupon applied — free delivery (you save ₹60).",
"data": {
"coupon": {
"code": "FREESHIP",
"title": "Free shipping",
"description": "",
"type": "free_shipping",
"value": 0,
"max_discount": null,
"label": "Free shipping",
"summary": "Free shipping on orders of ₹499 or more",
"buy_qty": null,
"get_qty": null,
"get_scope": null,
"get_category_ids": [],
"get_product_ids": [],
"max_free": null,
"min_order": 499,
"min_qty": 0,
"scope": "all",
"category_ids": [],
"product_ids": [],
"payment": "both",
"ends_on": null,
"first_order": false,
"per_customer": null
},
"amount": 0,
"eligible_product_ids": [
33
],
"type": "free_shipping",
"free_units": 0,
"free_lines": [],
"shipping_saved": 60,
"delivery": {
"amount": 0,
"reason": "Free delivery (coupon FREESHIP)"
}
}
}Errors
| Status | Meaning / example |
|---|---|
| 422 |
{
"status": 422,
"show": true,
"msg": "Add ₹250 more to use this coupon (minimum order ₹999)."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "You have already used this coupon."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Add 1 more eligible item to get 1 free (buy 2 get 1)."
} |
| 422 |
{
"status": 422,
"show": true,
"msg": "Delivery is already free on this order — this coupon is not needed."
} |
Store reviews
https://tallysaasapi.teloora.com/api/v1/ext/reviewsCustomer reviews of the online store that are VISIBLE (the admin can hide or remove any review in Teloora › Users › website user › Reviews). summary = { avg (1 decimal), count, breakdown {5..1: count} } over all visible reviews; data = one page of reviews, newest first: key, name (FIRST name only), city, rating 1-5, text, created_at, updated_at. Optional rating= filters the page (summary stays for all). Show nothing when summary.count is 0.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
page | integer | No | Min 1. Default 1. |
per_page | integer | No | Min 1, max 50. Default 12. Min 1. Max 50. Default 12. |
rating | integer | No | 1-5. Only reviews with this many stars on the page (summary still covers all visible reviews). Min 1. Max 5. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/reviews" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/reviews', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"summary": {
"avg": 4.8,
"count": 72,
"breakdown": {
"1": 0,
"2": 0,
"3": 2,
"4": 11,
"5": 59
}
},
"data": [
{
"key": "a383a8816c1ba",
"name": "Manoj",
"city": null,
"rating": 4,
"text": "Very good, I recommended to buy for children and useful for school purpose, Delivery time is long 7-8 days",
"created_at": "2026-10-26T12:11:57.947Z",
"updated_at": "2026-10-26T12:11:57.947Z"
},
{
"key": "aab42a34a42c2",
"name": "Ajay",
"city": "Narnol",
"rating": 5,
"text": "I buy Lakhani School shoe, The shoe have a good quality and are very comfortable.",
"created_at": "2026-10-26T09:58:11.697Z",
"updated_at": "2026-10-26T09:58:11.697Z"
}
],
"meta": {
"total": 72,
"page": 1,
"per_page": 2,
"last_page": 36
}
}
}Response fields (11)
| Field | Type | Meaning |
|---|---|---|
data[].key | string | |
data[].name | string | Name, exactly as in Tally / Teloora. |
data[].city | null | City. |
data[].rating | number | |
data[].text | string | |
data[].created_at | string | When it was created (ISO, UTC). |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
meta.last_page | number |
Errors
| Status | Meaning / example |
|---|---|
| 401 | Not signed in, wrong email/password, or the token expired / was ended. Sign in again. |
| 422 | A field is missing or invalid. msg says which one. |
A customer's own review
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/reviewThe store review of ONE signed-in customer of this website (customers created / signed up through this website user). data = { rating, text, status visible|hidden, name, city, created_at, updated_at } or null when the customer has not reviewed yet. Your server must only ask for the customer who is signed in (as with orders). A customer of another website → 404.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/review" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/review', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"rating": 5,
"text": "very nice quality",
"status": "visible",
"name": "hitesh",
"city": null,
"created_at": "2026-10-21T06:14:03.863Z",
"updated_at": "2026-10-21T06:14:03.863Z"
}
}Response fields (7)
| Field | Type | Meaning |
|---|---|---|
rating | number | |
text | string | |
status | string | Active | Inactive (records) or the voucher status. |
name | string | Name, exactly as in Tally / Teloora. |
city | null | City. |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
Give / edit a customer's review
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/reviewSaves the signed-in customer's ONE review of the store (a second call edits it). rating 1-5 is required; text is optional (max 1000). A review the store has hidden stays hidden after an edit. The review is shown on the store with the customer's first name and city.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
rating | integer | Yes | 1-5 stars. Min 1. Max 5. |
text | string | No | Max 1000 characters. Empty / null allowed. Max length 1000. |
Request example
{
"rating": 5,
"text": "Good quality and quick delivery."
}Code sample
curl -X PUT "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/review" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"rating":5,"text":"Good quality and quick delivery."}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/review', {
method: 'PUT',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"rating": 5,
"text": "Good quality and quick delivery."
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Review updated.",
"data": {
"rating": 5,
"text": "Good quality and quick delivery.",
"status": "visible",
"name": "hitesh",
"city": null,
"created_at": "2026-10-21T06:14:03.863Z",
"updated_at": "2026-10-29T09:30:57.967Z"
}
}Response fields (7)
| Field | Type | Meaning |
|---|---|---|
rating | number | |
text | string | |
status | string | Active | Inactive (records) or the voucher status. |
name | string | Name, exactly as in Tally / Teloora. |
city | null | City. |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Cases
Refused: rating out of range
{
"rating": 7
}{
"status": 422,
"show": true,
"msg": "Choose a rating from 1 to 5 stars."
}Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
| 403 | The login is not a Website user. |
| 422 | A field is missing or invalid. msg says which one. |
Remove a customer's review
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/reviewRemoves the signed-in customer's own review of the store.
Header: Authorization: Bearer <token>
Code sample
curl -X DELETE "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/review" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/review', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Review removed.",
"data": null
}Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
Product ratings
https://tallysaasapi.teloora.com/api/v1/ext/products/{id}/reviewsRatings of ONE product that are VISIBLE (the admin can add, edit, hide or remove them in Teloora › Items › item › Ratings). summary = { avg (1 decimal), count, breakdown {5..1: count} } over all visible ratings of the product; data = one page, newest first: key, name (FIRST name only), city, rating 1-5, text, created_at, updated_at. Every product in /ext/products also carries rating = { avg, count } (visible only). Unknown product → 404. Each rating also has images = absolute urls of the shopper’s photos (may be empty). summary.with_photos = visible ratings that have photos; photos = up to 12 latest customer photos [{ url, key, rating }] for a gallery strip.
Header: Authorization: Bearer <token>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
page | integer | No | Min 1. Default 1. |
per_page | integer | No | Min 1, max 50. Default 12. |
rating | integer | No | 1-5. Only ratings with this many stars on the page (summary still covers all). |
sort | string | No | newest (default) | oldest | highest | lowest | photos (with photos first). |
photos | boolean | No | 1 = only ratings with photos. |
search | string | No | Words in the review text or the first name. Max 100. |
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/products/{id}/reviews" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/products/{id}/reviews', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"data": {
"summary": {
"avg": 4.5,
"count": 2,
"breakdown": {
"1": 0,
"2": 0,
"3": 0,
"4": 1,
"5": 1
}
},
"data": [
{
"key": "a1b2c3d4e5f6",
"name": "Ravi",
"city": "Indore",
"rating": 5,
"text": "Great fabric.",
"created_at": "2026-10-29T10:00:00.000Z",
"updated_at": "2026-10-29T10:00:00.000Z"
}
],
"meta": {
"total": 2,
"page": 1,
"per_page": 12,
"last_page": 1
}
}
}Response fields (11)
| Field | Type | Meaning |
|---|---|---|
data[].key | string | |
data[].name | string | Name, exactly as in Tally / Teloora. |
data[].city | string | City. |
data[].rating | number | |
data[].text | string | |
data[].created_at | string | When it was created (ISO, UTC). |
data[].updated_at | string | Last change (ISO, UTC) — use with last_update. |
meta.total | number | Grand total. |
meta.page | number | This page. |
meta.per_page | number | Rows per page. |
meta.last_page | number |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
A customer's own product rating
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}The rating ONE signed-in customer of this website gave ONE product: { rating, text, status visible|hidden, name, city, created_at, updated_at } or null when not rated yet. Only ask for the customer who is signed in. Each rating also has images = absolute urls of the shopper’s photos (may be empty).
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"data": {
"rating": 5,
"text": "Great fabric.",
"status": "visible",
"name": "Ravi",
"city": "Indore",
"created_at": "2026-10-29T10:00:00.000Z",
"updated_at": "2026-10-29T10:00:00.000Z"
}
}Response fields (7)
| Field | Type | Meaning |
|---|---|---|
rating | number | |
text | string | |
status | string | Active | Inactive (records) or the voucher status. |
name | string | Name, exactly as in Tally / Teloora. |
city | string | City. |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
Rate a product
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}Saves the signed-in customer's ONE rating of a product (a second call edits it). rating 1-5 is required; text is optional (max 1000). A rating the store has hidden stays hidden after an edit. Shown with the customer's first name and city. Optional photos: images (see below); the answer carries images = absolute photo urls.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
rating | integer | Yes | 1-5. |
text | string | No | Max 1000. |
images | array | No | Up to 3 photos. Each: a data URL (data:image/jpeg|png|webp;base64,…) of a NEW photo, max 5 MB — fitted inside 1200 px and stored as JPG — or the url of a photo already on this rating (kept). Photos left out are deleted. |
Code sample
curl -X PUT "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}', {
method: 'PUT',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"msg": "Thank you for rating this product!",
"data": {
"rating": 5,
"text": "Great fabric.",
"status": "visible",
"name": "Ravi",
"city": "Indore",
"created_at": "2026-10-29T10:00:00.000Z",
"updated_at": "2026-10-29T10:00:00.000Z"
}
}Response fields (7)
| Field | Type | Meaning |
|---|---|---|
rating | number | |
text | string | |
status | string | Active | Inactive (records) or the voucher status. |
name | string | Name, exactly as in Tally / Teloora. |
city | string | City. |
created_at | string | When it was created (ISO, UTC). |
updated_at | string | Last change (ISO, UTC) — use with last_update. |
Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
| 403 | The login is not a Website user. |
| 422 | A field is missing or invalid. msg says which one. |
Remove a customer's product rating
https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}Removes the signed-in customer's own rating of the product.
Header: Authorization: Bearer <token>
Code sample
curl -X DELETE "https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}" \
-H "Authorization: Bearer <token>"const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/{id}/product-reviews/{productId}', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"msg": "Rating removed.",
"data": null
}Errors
| Status | Meaning / example |
|---|---|
| 404 | The record does not exist in YOUR company (records of other companies are never visible). |
The store's referral program
https://tallysaasapi.teloora.com/api/v1/ext/referralWhat the store's Referral & Wallet program gives, so the store front can explain it (signup page, account, checkout). Answers { enabled:false } when the store has it OFF — then hide all referral / wallet UI. referrer / referee: null when that side gets nothing; on = signup | first_purchase; type = points | percent (percent = % of the first order before GST, turned into points). point_value = ₹ per point. redeem_*: limits for paying with points (0 = no limit). Use it on every page load (cache a few minutes).
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/referral" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/referral', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"enabled": true,
"point_value": 1,
"referrer": {
"on": "first_purchase",
"type": "points",
"value": 100
},
"referee": {
"on": "signup",
"type": "points",
"value": 50
},
"max_reward_points": 0,
"first_order_min": 499,
"redeem_enabled": true,
"redeem_min_points": 50,
"redeem_max_points": 500,
"redeem_max_pct": 20,
"min_order_for_redeem": 0,
"expiry_days": 365,
"share_message": "Shop with me and get bonus points!"
}
}A shopper's wallet and referral code
https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/walletThe signed-in shopper's own referral code (made the first time it is asked for, when the program is ON), balance (points they can spend now), pending (rewards waiting for the order to be delivered/paid), referral stats and the history (newest first, max 200; cancelled rows left out). Build the share link as SITE_URL + '/login?ref=' + referral_code. Only a shopper of this store (404 otherwise).
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/wallet" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/wallet', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"program": {
"enabled": true,
"point_value": 1
},
"referral_code": "RAHU7K2QX",
"balance": 150,
"pending": 100,
"point_value": 1,
"balance_amount": 150,
"referrals": {
"invited": 3,
"ordered": 1
},
"history": [
{
"id": 12,
"type": "credit",
"reason": "referral_signup",
"label": "Referral — signup",
"points": 50,
"amount": 50,
"status": "confirmed",
"expires_at": "2027-11-18T00:00:00.000Z",
"note": "Signed up with a friend's code",
"created_at": "2026-11-18T10:00:00.000Z",
"invoice_id": null,
"invoice_no": null
}
]
}
}Check wallet points on a cart
https://tallysaasapi.teloora.com/api/v1/ext/wallet/checkPrices the cart exactly as an order would (catalogue rates, payment-mode extra, coupon) and checks how many points this shopper may use: the store's minimum points, most points per order, most % of the order, order value needed, and the balance. 200 → { points, amount (₹ off before GST), max_points, balance }. 422 → the reason, with max_points and balance so the page can offer the most allowed. Then send voucher_details.wallet = { points } on POST /ext/sales-invoices — the order checks everything again and debits the points at once (a cancelled order gives them back if the store says so). Points come off before GST like a coupon, after the coupon.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
customer_id | integer | Yes | The signed-in shopper. |
points | number | Yes | Points to use (> 0). |
payment_mode | string | No | cash | online (default cash). |
coupon_code | string | No | The coupon on this cart, if any — points apply after it. |
items | array | Yes | [{ product_id, quantity, variant_id? }] — one per cart line. |
Request example
{
"customer_id": 17,
"points": 100,
"payment_mode": "online",
"coupon_code": "",
"items": [
{
"product_id": 33,
"quantity": 2
}
]
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/wallet/check" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"customer_id":17,"points":100,"payment_mode":"online","coupon_code":"","items":[{"product_id":33,"quantity":2}]}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/wallet/check', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"customer_id": 17,
"points": 100,
"payment_mode": "online",
"coupon_code": "",
"items": [
{
"product_id": 33,
"quantity": 2
}
]
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"points": 100,
"amount": 100,
"max_points": 180,
"balance": 250,
"point_value": 1,
"order_value": 900
}
}Contact us form
https://tallysaasapi.teloora.com/api/v1/ext/store/contactThe store's "Contact us" form. Sends one e-mail to the licence's company-admin (and the company e-mail when different) through the store's own SMTP, else the platform mailer. Reply-To = the shopper's e-mail. Nothing is saved. 5 messages an hour per mobile. 422 → { field } of the first wrong field. 503 NO_OWNER_EMAIL = the store has no e-mail; 503 NOT_SENT = the mail server refused — show "call or WhatsApp the store".
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | 2–100 characters. |
mobile | string | Yes | Mobile number (digits, + - and spaces allowed). |
email | string | No | Shopper e-mail — the owner can reply to it. |
subject | string | No | Up to 150 characters. |
message | string | Yes | 5–3000 characters. |
Request example
{
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"subject": "Bulk order",
"message": "Need 200 pairs for a school."
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/store/contact" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"name":"Ravi Shah","mobile":"9876543210","email":"ravi@example.com","subject":"Bulk order","message":"Need 200 pairs for a school."}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/store/contact', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"subject": "Bulk order",
"message": "Need 200 pairs for a school."
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Thank you! Your message has been sent. We will get back to you soon.",
"data": null
}Request Quote settings of the store
https://tallysaasapi.teloora.com/api/v1/ext/quoteIs Request Quote on, and for which items. { enabled:false } when off — then show the normal cart everywhere. mode "mixed" = an item is a quote item when its id is in product_ids OR its category_id is in category_ids (sub-categories are already included), unless it is in exclude_product_ids. mode "quote_only" = every item is a quote item: hide the cart and checkout. show_price false = show "Price on request" on quote items. ask_qty / ask_variant = show those boxes on the request form. repeat_days = one request per mobile per item in this many days (0 = no limit).
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/quote" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/quote', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"enabled": true,
"mode": "mixed",
"show_price": false,
"repeat_days": 7,
"ask_qty": true,
"ask_variant": true,
"category_ids": [
2,
14,
15
],
"product_ids": [
33
],
"exclude_product_ids": [
40
]
}
}Request a quote on one item
https://tallysaasapi.teloora.com/api/v1/ext/quotesA shopper (signed in or guest) asks for a quote on one item. The api checks: Request Quote on (422 QUOTE_OFF), the item is a quote item (422 NOT_QUOTE_PRODUCT), and one request per mobile per item in repeat_days (422 QUOTE_REPEAT with quote_id and next_at). Saves the request (+ the message as the first chat line) and e-mails the store owner. A guest request shows in My quotes once they sign in with the same mobile.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
product_id | integer | Yes | The item. |
name | string | Yes | 2–100 characters. |
mobile | string | Yes | The repeat limit is per last 10 digits. |
email | string | No | Replies and offers are e-mailed here. |
quantity | number | No | > 0. Kept only when ask_qty is on. |
variant | string | No | Size / variant. Kept only when ask_variant is on. |
message | string | Yes | Required since 2026-11-24: at least 10 words, up to 3000 characters. Fewer words → 422 with field "message". |
customer_id | integer | No | The signed-in shopper (this store's customer); omit for a guest. |
Request example
{
"product_id": 33,
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"quantity": 50,
"variant": "8",
"message": "Please send your best price for 50 pairs, delivery to Indore within two weeks.",
"customer_id": 17
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/quotes" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"product_id":33,"name":"Ravi Shah","mobile":"9876543210","email":"ravi@example.com","quantity":50,"variant":"8","message":"Please send your best price for 50 pairs, delivery to Indore within two weeks.","customer_id":17}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/quotes', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"product_id": 33,
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"quantity": 50,
"variant": "8",
"message": "Please send your best price for 50 pairs, delivery to Indore within two weeks.",
"customer_id": 17
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Thank you! Your quote request has been sent. The store will reply soon.",
"data": {
"id": 12,
"product_id": 33,
"product_name": "(ACT) PREMIUM-231 6X10 BLK",
"variant": "8",
"quantity": 50,
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"message": "Price for 50 pairs?",
"status": "new",
"offer": null,
"unread": false,
"created_at": "2026-11-24T06:20:00.000Z",
"last_message_at": "2026-11-24T07:05:00.000Z"
}
}A shopper's quote requests
https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotesThe signed-in shopper's requests (and guest requests on the same mobile), latest activity first, up to 200. unread = the store wrote since the shopper last opened it. status: new | replied | offered | accepted | converted | closed | rejected.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": [
{
"id": 12,
"product_id": 33,
"product_name": "(ACT) PREMIUM-231 6X10 BLK",
"variant": "8",
"quantity": 50,
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"message": "Price for 50 pairs?",
"status": "offered",
"offer": {
"price": 450,
"qty": 50,
"valid_until": "2026-12-01",
"note": "Free delivery"
},
"unread": true,
"created_at": "2026-11-24T06:20:00.000Z",
"last_message_at": "2026-11-24T07:05:00.000Z"
}
]
}One quote request with its chat
https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteIdThe request, the store's offer and every chat line (from: customer | admin | system). Opening it marks the store's replies read.
Header: Authorization: Bearer <token>
Code sample
curl -X GET "https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId" \ -H "Authorization: Bearer <token>"
const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + token,
},
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "success",
"data": {
"id": 12,
"product_id": 33,
"product_name": "(ACT) PREMIUM-231 6X10 BLK",
"variant": "8",
"quantity": 50,
"name": "Ravi Shah",
"mobile": "9876543210",
"email": "ravi@example.com",
"message": "Price for 50 pairs?",
"status": "offered",
"offer": {
"price": 450,
"qty": 50,
"valid_until": "2026-12-01",
"note": "Free delivery"
},
"unread": false,
"created_at": "2026-11-24T06:20:00.000Z",
"last_message_at": "2026-11-24T07:05:00.000Z",
"messages": [
{
"id": 1,
"from": "customer",
"body": "Price for 50 pairs?",
"at": "2026-11-24T06:20:00.000Z"
},
{
"id": 2,
"from": "admin",
"body": "Offer: ₹450 per piece\nQuantity: 50",
"at": "2026-11-24T07:05:00.000Z"
}
]
}
}Shopper replies on a quote
https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId/messagesAdds the shopper's message to the chat and e-mails the store owner. 422 QUOTE_CLOSED when the request is converted / closed / rejected.
Header: Authorization: Bearer <token>
Body fields
| Name | Type | Required | Notes |
|---|---|---|---|
body | string | Yes | 1–3000 characters. |
Request example
{
"body": "Can you do 440?"
}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId/messages" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"body":"Can you do 440?"}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId/messages', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"body": "Can you do 440?"
}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Message sent.",
"data": {
"id": 3,
"from": "customer",
"body": "Can you do 440?",
"at": "2026-11-24T07:10:00.000Z"
}
}Shopper accepts the offer
https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId/acceptOnly when status is "offered". 422 NO_OFFER / OFFER_EXPIRED (past valid_until). Sets status accepted and tells the store owner, who then makes the Sales Order in Teloora.
Header: Authorization: Bearer <token>
Request example
{}Code sample
curl -X POST "https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId/accept" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}'const res = await fetch('https://tallysaasapi.teloora.com/api/v1/ext/customers/:id/quotes/:quoteId/accept', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
const body = await res.json();
if (body.status !== 200) throw new Error(body.msg);Success response
{
"status": 200,
"show": false,
"msg": "Offer accepted. The store will confirm your order.",
"data": {
"status": "accepted"
}
}