See who owes what, how old it is, and how an item or a party has moved. For conventions, read the API overview.
Outstandings
List outstandings
GET /v1/outstandings
Bill-wise receivables and payables with due dates and ageing per party. This returns the full set, with no paging. Amounts are signed: positive is debit, negative is credit.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
company |
Query | string | No | Company name, exactly as GET /v1/companies returns it. Case-sensitive. Optional only when the workspace has one company. |
party |
Query | string | No | Only this party ledger. |
kind |
Query | string | No | Only receivables or only payables. One of: receivable, payable. |
asOf |
Query | date | No | Age as at this date, YYYY-MM-DD. The result is approximate: read approximate. |
buckets |
Query | string | No | Ageing edges in days, comma-separated and ascending, for example 30,60,90. Up to 6. |
fresh |
Query | boolean | No | Set to true to ask for a sooner refresh of this company. Needs company. The response is still the synced copy, and this never reads Tally. Default false. |
Response fields
| Field | Type | Description |
|---|---|---|
referenceDate |
date | Reference date. |
bills[] |
array of object | Bills. |
bills[].party |
string | Party. |
bills[].billName |
string | Bill name. |
bills[].billDate |
date | Bill date. |
bills[].dueDate |
date | Due date. |
bills[].amount |
number | The bill-wise figure, signed: positive debit, negative credit. |
bills[].overdueDays |
integer | Overdue days. |
bills[].billType |
string | One of: New Ref, Agst Ref, Advance, On Account. |
bills[].kind |
string | Set by the bill's sign: a debit bill is receivable, a credit bill is payable. One of: receivable, payable, other. |
bills[].openAmount |
number | What is still open once the party's on-account amount is applied. Prefer this to amount when present. |
bills[].appliedAmount |
number | amount minus openAmount. |
bills[].matchedBy[] |
array of object | The on-account entry that exactly offsets this bill, when one is known. |
bills[].matchedBy[].voucherGuid |
string | Voucher guid. |
bills[].matchedBy[].date |
date | Date. |
bills[].matchedBy[].amount |
number | The entry's full amount. |
bills[].matchedBy[].voucherType |
string | Voucher type. |
aging[] |
array of object | Aging. |
aging[].party |
string | Party. |
aging[].kind |
string | One of: receivable, payable, other. |
aging[].buckets[] |
array of object | Ageing buckets per the requested (or default 30/60/90) edges. Always present. |
aging[].buckets[].label |
string | Bucket label, e.g. "0-30", "31-60", "90+". |
aging[].buckets[].amount |
number | Amount. |
aging[].total |
number | Total. |
approximate |
boolean | true when you sent asOf: the ageing covers bills still open at the last sync, so it can understate. |
parties[] |
array of object | Per-party comparison of bill-wise totals with the ledger balance. Sometimes omitted. |
parties[].party |
string | Party. |
parties[].basis |
string | How the figure was reached. raw: the two figures agree. accounted: on-account entries explain the gap. fifo: the gap was applied oldest bill first. unreconciled: they could not be reconciled. One of: raw, accounted, fifo, unreconciled. |
parties[].outstanding |
number | What the party owes. |
parties[].billsNet |
number | Total of the bills. |
parties[].ledgerClosing |
number | Ledger closing balance. |
parties[].ledgerAsOf |
date-time | When that balance was read. |
parties[].delta |
number | ledgerClosing minus billsNet. |
parties[].untracked |
object | Ledger balance left over after applying the gap to bills. |
parties[].untracked.amount |
number | Signed, same convention as everything else here. |
parties[].untracked.asOfDate |
date | The party's last ledger movement date; null when it could not be read. |
parties[].untracked.overdueDays |
integer | Null when the date could not be read. |
parties[].note |
string | The basis, in one sentence. |
Status codes
| Status | Error | Meaning |
|---|---|---|
| 200 | Success. | |
| 400 | bad_request |
The workspace has several companies and you sent no company, or a parameter is malformed. |
| 401 | unauthorized |
The key is missing, invalid or revoked. |
| 404 | not_found |
No company with that name. |
Example request
curl -sG "https://relay.autotally.ai/v1/outstandings" \
-H "authorization: Bearer $AUTOTALLY_TOKEN" \
--data-urlencode "company=Sharma Traders Pvt Ltd" \
--data-urlencode "kind=receivable"
Example response
{
"referenceDate": "2026-11-01",
"bills": [
{
"party": "Mehta Hardware Stores",
"billName": "INV/2026-27/0142",
"billDate": "2026-10-14",
"dueDate": "2026-11-13",
"amount": 11800,
"overdueDays": 0,
"billType": "New Ref",
"kind": "receivable"
}
],
"aging": [
{
"party": "Mehta Hardware Stores",
"kind": "receivable",
"buckets": [
{
"label": "0-30",
"amount": 11800
},
{
"label": "31-60",
"amount": 0
},
{
"label": "61-90",
"amount": 0
},
{
"label": "90+",
"amount": 0
}
],
"total": 11800
}
]
}
Analytics
Get item analytics
GET /v1/analytics/items/{item}
Last and average prices, quantity movement and open orders for one stock item, worked out from your synced vouchers.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
item |
Path | string | Yes | Stock item name, URL-encoded. |
company |
Query | string | No | Company name, exactly as GET /v1/companies returns it. Case-sensitive. Optional only when the workspace has one company. |
from |
Query | date | No | Period start, YYYY-MM-DD. |
to |
Query | date | No | Period end, YYYY-MM-DD. |
Response fields
| Field | Type | Description |
|---|---|---|
item |
string | Item. |
from |
date | From. |
to |
date | To. |
lastSalePrice |
number | Last sale price. |
lastSaleDate |
date | Last sale date. |
avgSalePrice |
number | Avg sale price. |
lastPurchasePrice |
number | Last purchase price. |
avgPurchasePrice |
number | Avg purchase price. |
qtySold |
number | Qty sold. |
qtyPurchased |
number | Qty purchased. |
netMovement |
number | QtyPurchased − qtySold. |
salesCount |
integer | Sales count. |
purchaseCount |
integer | Purchase count. |
unit |
string | Unit. |
orderBook |
object | Order book. |
orderBook.openSalesOrderQty |
number | Open sales order qty. |
orderBook.openSalesOrderValue |
number | Open sales order value. |
orderBook.openPurchaseOrderQty |
number | Open purchase order qty. |
orderBook.openPurchaseOrderValue |
number | Open purchase order value. |
orderConversion |
object | Order conversion. |
orderConversion.degraded |
boolean | true when order numbers were missing, so only the order book is meaningful. |
orderConversion.orderedQty |
number | Ordered qty. |
orderConversion.invoicedQty |
number | Invoiced qty. |
orderConversion.conversionRate |
number | InvoicedQty / orderedQty; null when orderedQty === 0. |
Status codes
| Status | Error | Meaning |
|---|---|---|
| 200 | Success. | |
| 400 | bad_request |
The workspace has several companies and you sent no company, or a parameter is malformed. |
| 401 | unauthorized |
The key is missing, invalid or revoked. |
| 404 | not_found |
No company with that name. |
Example request
curl -sG "https://relay.autotally.ai/v1/analytics/items/Steel%20Hinge%204%20inch" \
-H "authorization: Bearer $AUTOTALLY_TOKEN" \
--data-urlencode "company=Sharma Traders Pvt Ltd"
Get party analytics
GET /v1/analytics/parties/{party}
Last transaction, totals, average days to pay and open orders for one party, worked out from your synced vouchers.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
party |
Path | string | Yes | Party ledger name, URL-encoded. |
company |
Query | string | No | Company name, exactly as GET /v1/companies returns it. Case-sensitive. Optional only when the workspace has one company. |
from |
Query | date | No | Period start, YYYY-MM-DD. |
to |
Query | date | No | Period end, YYYY-MM-DD. |
Response fields
| Field | Type | Description |
|---|---|---|
party |
string | Party. |
from |
date | From. |
to |
date | To. |
lastTransactionDate |
date | Last transaction date. |
transactionCount |
integer | Transaction count. |
totalSalesValue |
number | Total sales value. |
totalPurchaseValue |
number | Total purchase value. |
avgDaysToPay |
number | Avg days to pay. |
settledBillCount |
integer | Settled bill count. |
openSalesOrderValue |
number | Open sales order value. |
openPurchaseOrderValue |
number | Open purchase order value. |
Status codes
| Status | Error | Meaning |
|---|---|---|
| 200 | Success. | |
| 400 | bad_request |
The workspace has several companies and you sent no company, or a parameter is malformed. |
| 401 | unauthorized |
The key is missing, invalid or revoked. |
| 404 | not_found |
No company with that name. |
Example request
curl -sG "https://relay.autotally.ai/v1/analytics/parties/Mehta%20Hardware%20Stores" \
-H "authorization: Bearer $AUTOTALLY_TOKEN" \
--data-urlencode "company=Sharma Traders Pvt Ltd"
