Status: specification for Public API v1. Not live yet. The generated reference at
/api/v1/public/openapi.jsonis authoritative once the API ships.
Base URL: https://fininvo.com/api/v1/public
All list endpoints accept page (default 1) and limit (default 20, maximum 100) and return
{ "data": [...], "meta": { "page", "limit", "total" } }.
Meta
| Method and path | Scope | Description |
|---|---|---|
GET /me | any valid key | Key details, scopes, company, limits |
GET /events | events:read | Events of the last 30 days. Filters: type, since |
ERP
Requires an ERP key. Data is scoped to the company the key is bound to (a key for all companies
sends X-Fininvo-Company). Money is a decimal string in the currency's minor unit ("499.00",
JPY "499") next to an ISO 4217 currency. Dates are YYYY-MM-DD, timestamps ISO-8601 UTC.
Lists are newest first. With updatedSince they are ordered by updatedAt ascending, so a sync
can page forward and store the last updatedAt it saw.
Customers
| Method and path | Scope |
|---|---|
GET /erp/customers | erp.customers:read |
GET /erp/customers/{id} | erp.customers:read |
POST /erp/customers | erp.customers:write |
PATCH /erp/customers/{id} | erp.customers:write |
List filters: updatedSince, search (name, email or phone), status (ACTIVE, INACTIVE).
Body fields: name (required), type (COMPANY default, or INDIVIDUAL), email, phone,
taxId (a GSTIN or any other tax registration number), currency (ISO 4217; omitted, the company
currency), billingAddress and shippingAddress (line1, line2, city, state, postalCode,
country as ISO 3166-1 alpha-2), notes. Creating a customer counts toward the plan customer
limit (422 plan_limit_reached).
PATCH /erp/customers/{id} takes the same fields, all optional, plus status; send only what
changes. currency is set at create and cannot be changed here.
curl -X POST https://fininvo.com/api/v1/public/erp/customers \
-H "Authorization: Bearer $FININVO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 5d0c6c1e-6b1f-4a41-9a8e-2f7a1c9f2b11" \
-d '{
"name": "Northwind Stores",
"email": "accounts@northwind.example",
"phone": "+919800000000",
"taxId": "29ABCDE1234F1Z5",
"billingAddress": {
"line1": "12 Market Road", "city": "Bengaluru",
"state": "KA", "postalCode": "560001", "country": "IN"
}
}'Response 201:
{
"id": "9a77...",
"code": "CUST-0042",
"name": "Northwind Stores",
"type": "COMPANY",
"email": "accounts@northwind.example",
"phone": "+919800000000",
"taxId": "29ABCDE1234F1Z5",
"status": "ACTIVE",
"currency": "INR",
"billingAddress": {
"line1": "12 Market Road", "line2": null, "city": "Bengaluru",
"state": "KA", "postalCode": "560001", "country": "IN"
},
"shippingAddress": null,
"createdAt": "2026-11-26T10:02:11.000Z",
"updatedAt": "2026-11-26T10:02:11.000Z"
}Items and stock
| Method and path | Scope |
|---|---|
GET /erp/items | erp.items:read |
GET /erp/items/{id} | erp.items:read |
GET /erp/stock-levels | erp.items:read |
/erp/items filters: updatedSince, search (name, SKU or barcode), sku. /erp/stock-levels
filters: itemId, warehouseId, updatedSince.
Items are shared by every company of the account. An item:
{
"id": "c41e...", "sku": "TSHIRT-BLK-M", "name": "T-shirt, black, M", "description": null,
"type": "GOODS", "unit": "pcs", "barcode": null, "hsnCode": "6109", "taxRate": "12",
"salePrice": "499.00", "priceIncludesTax": false, "currency": "INR", "trackInventory": true,
"status": "ACTIVE", "createdAt": "...", "updatedAt": "..."
}currency is the item's own, else the company currency. Stock levels are per item and warehouse
of the company; reserved is stock held for open orders and available = onHand - reserved:
{
"data": [
{ "itemId": "c41e...", "sku": "TSHIRT-BLK-M", "warehouseId": "w01...", "onHand": "42", "reserved": "5", "available": "37", "updatedAt": "2026-11-26T08:00:00Z" }
],
"meta": { "page": 1, "limit": 20, "total": 1 }
}Invoices
| Method and path | Scope |
|---|---|
GET /erp/invoices | erp.invoices:read |
GET /erp/invoices/{id} | erp.invoices:read |
POST /erp/invoices | erp.invoices:write |
List filters: updatedSince, status (DRAFT, SENT, PARTIALLY_PAID, PAID, OVERDUE,
CANCELLED), customerId, issueDateFrom, issueDateTo (a date-only issueDateTo includes
that day). The list returns invoices without lines; GET /erp/invoices/{id} and the create
response include them.
{
"id": "5be0...", "number": "INV-2026-0042", "customerId": "9a77...", "status": "DRAFT",
"issueDate": "2026-11-26", "dueDate": "2026-12-11", "currency": "INR", "exchangeRate": "1",
"subtotal": "998.00", "taxTotal": "119.76",
"taxBreakdown": [ { "type": "CGST", "amount": "59.88" }, { "type": "SGST", "amount": "59.88" } ],
"roundOff": "0.24", "total": "1118.00", "amountPaid": "0.00", "balanceDue": "1118.00",
"notes": "Reference: SHOP-10458\nOnline order 10458",
"createdAt": "...", "updatedAt": "...",
"lines": [
{ "id": "...", "itemId": "c41e...", "sku": "TSHIRT-BLK-M", "name": "T-shirt, black, M",
"description": null, "hsnCode": "6109", "quantity": "2", "unitPrice": "499.00",
"discountPercent": null, "taxRate": "12", "netAmount": "998.00" }
]
}subtotal is before line discounts; netAmount is a line's amount after its discount, before
tax. taxBreakdown lists only the tax heads that are not zero (CGST, SGST, IGST, VAT,
SALES_TAX, GST, HST, PST).
POST /erp/invoices creates a draft. A person reviews and posts it in Fininvo ERP. Tax is
calculated by Fininvo from each item's tax rate (or its tax category when the item has no rate).
Body: customerId, issueDate, optional dueDate (default 30 days later), currency (default:
the customer currency, else the company currency), reference, notes, and 1 to 200 lines
(itemId, quantity, unitPrice before tax, optional discountPercent, description).
Quantities and amounts are decimal strings; JSON numbers are accepted. There is no separate
reference field in v1: reference is stored as the first line of the invoice notes. You may send
subtotal, taxTotal and total as a checksum: when one differs from the server calculation by
more than one minor unit the call returns 422 totals_mismatch. Each draft counts toward the plan
invoices-per-month limit (422 plan_limit_reached).
curl -X POST https://fininvo.com/api/v1/public/erp/invoices \
-H "Authorization: Bearer $FININVO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-10458" \
-d '{
"customerId": "9a77...",
"issueDate": "2026-11-26",
"dueDate": "2026-12-11",
"reference": "SHOP-10458",
"lines": [
{ "itemId": "c41e...", "quantity": "2", "unitPrice": "499.00" }
],
"notes": "Online order 10458"
}'The invoice currency is the customer or company currency. It is never guessed: a company with no
currency configured returns 422 company_currency_unknown.
Payments
| Method and path | Scope |
|---|---|
GET /erp/payments | erp.payments:read |
GET /erp/payments/{id} | erp.payments:read |
Payments received from customers. Filters: updatedSince, customerId, invoiceId, dateFrom,
dateTo.
{
"id": "e81f...", "number": "PAY-2026-0007", "customerId": "9a77...", "date": "2026-11-28",
"amount": "1118.00", "currency": "INR", "exchangeRate": "1", "method": "BANK_TRANSFER",
"reference": "UTR123456", "taxWithheld": null, "notes": null,
"allocations": [ { "invoiceId": "5be0...", "amount": "1118.00" } ],
"createdAt": "...", "updatedAt": "..."
}HRMS
Requires an HRMS key.
Employees
| Method and path | Scope |
|---|---|
GET /hr/employees | hr.employees:read |
GET /hr/employees/{id} | hr.employees:read |
GET /hr/departments | hr.employees:read |
/hr/employees filters: updatedSince, status (ACTIVE, INACTIVE, TERMINATED), departmentId,
search (employee code or work email; names are encrypted at rest and are not searchable).
Lists are ordered by updatedAt, oldest first, so updatedSince plus paging is a stable incremental sync.
/hr/departments accepts updatedSince and returns id, code, name, parentId,
headEmployeeId, isActive, updatedAt.
{
"id": "EMP-0042",
"employeeCode": "E042",
"firstName": "Asha",
"lastName": "Rao",
"workEmail": "asha.rao@acme.example",
"designation": "Senior Accountant",
"departmentId": "d7a1...",
"managerId": "EMP-0007",
"status": "ACTIVE",
"joiningDate": "2024-04-01",
"workLocation": "Bengaluru",
"updatedAt": "2026-11-12T06:30:00Z"
}Identity numbers, bank details, salary, date of birth and personal contact details are not
in this response. Add ?include=sensitive with a key that holds hr.employees.sensitive:read
to receive them in a sensitive object. Without that scope the parameter returns
403 insufficient_scope. A value Fininvo cannot decrypt is returned as null.
"sensitive": {
"dateOfBirth": "1990-05-17",
"personalEmail": "asha@example.com",
"personalPhone": "+919800000001",
"currentAddress": "12 Market Road, Bengaluru",
"permanentAddress": null,
"panNumber": "ABCDE1234F",
"aadhaarNumber": "123412341234",
"passportNumber": null,
"bankAccounts": [
{ "accountNumber": "001122334455", "accountHolderName": "Asha Rao", "bankName": "Acme Bank",
"branchName": "MG Road", "ifscCode": "ACME0000001", "accountType": "SAVINGS", "isPrimary": true }
],
"salary": { "annualCtc": "1200000", "basicSalary": "50000", "currency": "INR" }
}Attendance
| Method and path | Scope |
|---|---|
GET /hr/attendance | hr.attendance:read |
POST /hr/attendance/punches | hr.attendance:write |
GET /hr/attendance requires dateFrom and dateTo (YYYY-MM-DD, maximum 31 days apart). Optional
employeeId. Each record has the day, first in, last out, worked minutes and a status that
Fininvo computes when you read it (PRESENT, LATE, HALF_DAY, ABSENT, ON_LEAVE, HOLIDAY,
WEEKOFF), with lateness judged against the shift in your account's timezone. There is one record
per active employee per day, ordered by employee code then day; meta.total counts employee-days.
{ "employeeId": "EMP-0042", "employeeCode": "E042", "date": "2026-11-26", "status": "LATE",
"firstIn": "2026-11-26T04:00:00.000Z", "lastOut": "2026-11-26T13:00:00.000Z",
"workedMinutes": 540, "lateByMinutes": 30, "source": "BIOMETRIC" }POST /hr/attendance/punches accepts up to 500 punches per call, for biometric and access
control devices:
{
"deviceId": "gate-1",
"punches": [
{ "employeeCode": "E042", "timestamp": "2026-11-26T03:31:10Z", "direction": "IN" },
{ "employeeCode": "E042", "timestamp": "2026-11-26T12:35:44Z", "direction": "OUT" }
]
}Send timestamps in UTC (Z, or an explicit offset such as +05:30; a timestamp without a zone is
rejected). direction is optional (IN or OUT); without it the earliest punch of the day is the
first in and the latest the last out. The Idempotency-Key header is required. A punch with the same
employee, timestamp and device is accepted once; repeats are reported as duplicate, so it is safe
to resend a batch. More than 500 punches, or a body without deviceId and punches, returns 400.
Otherwise the response is 200 and lists accepted, duplicate and rejected punches by their position
in your batch, with a reason for each rejection:
{
"deviceId": "gate-1",
"received": 3,
"accepted": [{ "index": 0, "employeeCode": "E042", "timestamp": "2026-11-26T03:31:10.000Z" }],
"duplicate": [{ "index": 1, "employeeCode": "E042", "timestamp": "2026-11-26T03:31:10.000Z" }],
"rejected": [{ "index": 2, "employeeCode": "E999", "timestamp": "2026-11-26T03:40:00Z", "reason": "unknown_employee" }]
}Rejection reasons: missing_employee_code, invalid_timestamp, timestamp_in_future (more than
5 minutes ahead), invalid_direction, unknown_employee (no employee with that code in your
account), attendance_month_locked (the month is locked for payroll), not_recorded (retry it).
Punches appear in Fininvo HRMS under a biometric device named API:<deviceId>.
Leave
| Method and path | Scope |
|---|---|
GET /hr/leave-requests | hr.leave:read |
GET /hr/leave-balances | hr.leave:read |
/hr/leave-requests filters: updatedSince, status, employeeId, dateFrom, dateTo (requests
that overlap the range). Each request has leaveTypeId, leaveTypeCode, leaveTypeName, dateFrom,
dateTo, days (decimal string), isHalfDay, status, approverId and timestamps. The employee's
reason and contact details while on leave are not returned.
/hr/leave-balances filters: employeeId, year (leave year; without it every year is returned,
newest first). Balances are decimal strings: opening, accrued, carriedForward, used,
encashed, available.
An employeeId that is not in your account returns 404.
Payroll
Requires a Payroll key. Read-only. Only processed runs are returned, exactly as they were processed: later changes to salary structures or settings do not alter past runs.
| Method and path | Scope |
|---|---|
GET /payroll/runs | payroll.runs:read |
GET /payroll/runs/{id} | payroll.runs:read |
GET /payroll/runs/{id}/journal | payroll.runs:read |
GET /payroll/runs/{id}/payslips | payroll.payslips:read |
GET /payroll/payslips/{id} | payroll.payslips:read |
A run is processed when its status is FROZEN (fully approved), DISBURSED, CLOSED, or
the older FINALIZED / PAID. Runs that are still being prepared (draft, calculated, pending
approval) are never returned: their ids answer 404, and so do their payslips. As everywhere in
the API, a single resource is returned as the object itself and lists as { "data", "meta" }.
/payroll/runs filters: periodFrom, periodTo (YYYY-MM, inclusive), status (one or more
of the processed statuses, comma-separated). Any other value returns 400 validation_failed.
Newest period first.
{
"id": "7c2e...",
"period": "2026-10",
"status": "FROZEN",
"currency": "INR",
"employeeCount": 48,
"totals": { "gross": "2480000.00", "deductions": "312400.00", "net": "2167600.00", "employerCost": "2598000.00" },
"runDate": "2026-10-30T11:45:00Z",
"approvedAt": "2026-10-30T11:40:00Z",
"finalizedAt": null,
"snapshot": { "capturedAt": "2026-10-28T09:00:00Z", "checksum": "9f2c..." }
}snapshot identifies the immutable record of the configuration the run was calculated with.
Amounts are decimal strings. currency is the ISO code of your account (or, when the account
has none, of the company the key is bound to); it is never guessed.
/payroll/runs/{id}/payslips and /payroll/payslips/{id} return payslips (the payslip id is
the employee's line in that run):
{
"id": "b41d...",
"runId": "7c2e...",
"period": "2026-10",
"currency": "INR",
"employee": { "id": "EMP-0042", "code": "E042", "name": "Asha Rao" },
"days": { "total": 31, "worked": "30.00", "lossOfPay": "1.00" },
"gross": "60000.00",
"deductions": "7200.00",
"net": "52800.00",
"employerContributions": "3600.00",
"components": [
{ "code": "BASIC", "name": "Basic Salary", "type": "EARNING", "amount": "40000.00" },
{ "code": "PF_EE", "name": "Provident Fund (Employee)", "type": "DEDUCTION", "amount": "7200.00" },
{ "code": "PF_ER", "name": "Provident Fund (Employer)", "type": "EMPLOYER_CONTRIBUTION", "amount": "3600.00" }
],
"onHold": false
}employee.name is filled only when the run's processing record carries it and is otherwise
null; use employee.id or employee.code with GET /hr/employees/{id} (HRMS key) for
names. Bank account numbers, PAN and other identity numbers are never part of a payslip
response.
/payroll/runs/{id}/journal returns the salary journal grouped by component, ready to post into
your accounting system. Earnings and employer contributions are debits; deductions, employer
contributions payable and net pay are credits. There are no account codes: map componentCode
to your own chart of accounts.
{
"runId": "7c2e...",
"period": "2026-10",
"status": "FROZEN",
"currency": "INR",
"employeeCount": 48,
"lines": [
{ "type": "EARNING", "componentCode": "BASIC", "componentName": "Basic Salary", "debit": "1600000.00", "credit": "0.00" },
{ "type": "EMPLOYER_CONTRIBUTION", "componentCode": "PF_ER", "componentName": "Provident Fund (Employer)", "debit": "118000.00", "credit": "0.00" },
{ "type": "DEDUCTION", "componentCode": "PF_EE", "componentName": "Provident Fund (Employee)", "debit": "0.00", "credit": "192000.00" },
{ "type": "EMPLOYER_CONTRIBUTION_PAYABLE", "componentCode": "PF_ER", "componentName": "Provident Fund (Employer)", "debit": "0.00", "credit": "118000.00" },
{ "type": "NET_PAY", "componentCode": null, "componentName": "Net pay", "debit": "0.00", "credit": "2167600.00" }
],
"totals": { "debit": "2598000.00", "credit": "2598000.00" }
}Payroll errors:
| Status and code | When |
|---|---|
404 not_found | The run or payslip does not exist, belongs to another account, or the run is not processed |
409 run_snapshot_missing | The run was processed before Fininvo kept immutable run records. Its figures are not recomputed for the API; view it in Fininvo Payroll |
422 company_currency_unknown | No currency is configured for the account |
400 validation_failed | Bad periodFrom / periodTo / status filter |
Runs that answer 409 run_snapshot_missing are also left out of GET /payroll/runs.
Not available in v1
Bills and purchase orders, creating or editing employees, applying for leave, any payroll write, Recruit and POS. Tell support which of these you need: it shapes what comes next.
