Skip to main content
Skip to content
Fininvo

Fininvo for developers

Build on Fininvo with the Public API.

Read and write ERP, HRMS and Payroll data from your own servers, and let signed webhooks tell you the moment something changes.

  • REST and JSON over HTTPS
  • Signed webhooks with retries
  • Scoped keys per product
Your first call
curl https://fininvo.com/api/v1/public/me \
  -H "Authorization: Bearer $FININVO_API_KEY"
  1. Create an API key
  2. Make your first call
  3. Read some data
  4. Receive events

What you can build

Real integrations, step by step.

Three worked examples from the integration flows. Each diagram shows who calls whom, in order.

ERP

Online store to ERP

Create customers and draft invoices from your online store, hear back when an invoice is paid, and keep stock levels on your product pages in step.

Open in integration flows
Drawing diagram
sequenceDiagram
    autonumber
    actor Buyer
    participant Shop as Your online store
    participant Sync as Your sync service
    participant FV as Fininvo ERP API

    Buyer->>Shop: Places order 10458
    Shop->>Sync: Order created
    Sync->>FV: GET /erp/customers?search=email
    alt not found
        Sync->>FV: POST /erp/customers (Idempotency-Key: cust-email)
    end
    Sync->>FV: POST /erp/invoices draft (Idempotency-Key: order-10458)
    FV-->>Sync: 201 draft invoice
    Note over FV: Your team reviews and posts the invoice in Fininvo
    FV--)Sync: Webhook erp.invoice.paid
    Sync->>Shop: Mark order paid
    loop every 15 minutes
        Sync->>FV: GET /erp/stock-levels?updatedSince=...
        Sync->>Shop: Update stock on product pages
    end
HRMS

Biometric device to HRMS

Send punches from attendance devices to HRMS in batches. Duplicates are ignored, so a gateway can resend after a network outage without harm.

Open in integration flows
Drawing diagram
sequenceDiagram
    autonumber
    participant Dev as Attendance device
    participant GW as Your device gateway
    participant FV as Fininvo HRMS API

    Dev->>GW: Punches (employee code, time)
    loop every 5 minutes
        GW->>FV: POST /hr/attendance/punches (up to 500, UTC times)
        FV-->>GW: accepted / duplicate / rejected with reasons
        GW->>GW: Keep rejected ones for a person to check
    end
    Note over GW,FV: Network down? Keep punches and resend.<br/>Duplicates are ignored, so resending is safe.
Payroll

Payroll to your accounting system

When a payroll run is finalized, fetch its salary journal by component and post it to your accounting system. Payroll stays read-only through the API.

Open in integration flows
Drawing diagram
sequenceDiagram
    autonumber
    actor PM as Payroll manager
    participant FV as Fininvo Payroll
    participant Int as Your integration
    participant Acc as Your accounting system

    PM->>FV: Finalize October payroll
    FV--)Int: Webhook payroll.run.finalized (ids and status only)
    Int->>FV: GET /payroll/runs/{id}/journal
    FV-->>Int: Salary journal by component (from the processed run)
    Int->>Acc: Post journal entry
    Note over FV,Int: Payroll is read-only through the API.<br/>Runs are created and approved by people in Fininvo.

Overview and quick start

From API key to first response.

Status: specification for Public API v1. Not live yet. These pages describe the API as planned in docs/PLATFORM-PUBLIC-API-WEBHOOKS-SPRINT-PLAN.md. Update them in the same change as any public shape change.

The Fininvo API lets your own software read and write data in Fininvo ERP, HRMS and Payroll, and webhooks let Fininvo tell your software when something happens.

PageWhat it covers
Integration flowsDiagrams of every flow: access, keys, calls, retries, webhooks, examples, leaked keys
AuthenticationCreating API keys, scopes, rotation, revocation
API referenceEvery endpoint, parameters and example responses
WebhooksRegistering endpoints, event types, verifying signatures, retries
Errors and rate limitsError format, status codes, limits, idempotency
Security best practicesHow to store keys and what to do if one leaks

Who can use it

API access is included from the Growth plan upward in each product. Each plan has its own limits (calls per day, calls per minute, number of keys, number of webhook endpoints), and the Growth plan is read-only. Your current limits are shown on the pricing page, under Settings → Subscription, and in the response of GET /me.

API access must also be switched on for your account. If the Developers page shows a locked state, contact your account manager or support.

Only account owners and admins can create keys and webhook endpoints.

How it fits together

Drawing diagram
flowchart LR
    APP["Your server"] -->|"HTTPS + API key"| API["Fininvo Public API"]
    API --> PROD["ERP / HRMS / Payroll"]
    PROD -->|"something changed"| WH["Fininvo webhooks"]
    WH -->|"signed HTTPS POST"| HOOK["Your webhook endpoint"]
    HOOK -->|"fetch latest"| API

Every flow in detail: Integration flows.

Base URL

Code
https://fininvo.com/api/v1/public

All requests must use HTTPS. The API is for server-to-server use: browsers are blocked (no CORS), so never call it from front-end code.

Quickstart

1. Create an API key

  1. Sign in to the product you want to integrate (ERP, HRMS or Payroll).
  2. Open Settings → Developers → API keys and choose Create key.
  3. Give it a name that says where it will run, for example shopify-sync-prod.
  4. Pick the scopes it needs and nothing more. Start with read scopes.
  5. Choose an expiry date (365 days maximum).
  6. Optional but recommended: add the IP addresses of your server.
  7. Copy the key. It is shown once. Fininvo stores only a hash and cannot show it again.

A key looks like this:

Code
fnv_live_a1b2c3d4e5f6_Zk9...43 characters...Qw

A key belongs to one product. An ERP key cannot read HRMS data. Create one key per product and per integration.

2. Make your first call

Shell
curl https://fininvo.com/api/v1/public/me \
  -H "Authorization: Bearer $FININVO_API_KEY"
JSON
{
  "key": { "name": "shopify-sync-prod", "prefix": "a1b2c3d4e5f6", "expiresAt": "2027-11-26T00:00:00Z" },
  "product": "ERP",
  "scopes": ["erp.invoices:read", "erp.customers:read"],
  "tenant": { "name": "Acme Traders" },
  "company": { "id": "0b8f...", "name": "Acme Traders Pvt Ltd", "currency": "INR" },
  "limits": { "requestsPerMinute": 120, "requestsPerDay": 10000 }
}

3. Read some data

Shell
curl "https://fininvo.com/api/v1/public/erp/invoices?limit=20&updatedSince=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer $FININVO_API_KEY"
JSON
{
  "data": [
    {
      "id": "6f1c...",
      "number": "INV-2026-00412",
      "status": "SENT",
      "customerId": "9a77...",
      "issueDate": "2026-11-20",
      "dueDate": "2026-12-05",
      "currency": "INR",
      "total": "13000.00",
      "amountDue": "13000.00",
      "updatedAt": "2026-11-20T09:14:03Z"
    }
  ],
  "meta": { "page": 1, "limit": 20, "total": 137 }
}

4. Receive events

Register an HTTPS endpoint under Settings → Developers → Webhooks, pick the events you want, and verify the signature on every delivery. See Webhooks.

Conventions

  • JSON in and out. Send Content-Type: application/json on requests with a body.
  • Field names are camelCase.
  • Dates and times are ISO-8601 in UTC (2026-11-20T09:14:03Z). Calendar dates are YYYY-MM-DD.
  • Money is a decimal string with a separate ISO currency code ("total": "13000.00", "currency": "INR"). Never parse amounts as floating point numbers.
  • IDs are opaque strings. Do not assume a format or length.
  • Lists return { "data": [...], "meta": { "page", "limit", "total" } }. Use page and limit (default 20, maximum 100).
  • Incremental sync: most lists accept updatedSince. Store the latest updatedAt you have seen and pass it on the next run.
  • Request id: every response has an X-Request-Id header. Include it when you contact support.

Versioning and stability

The API is versioned in the URL (/api/v1). Within v1 we only make additive changes: new endpoints, new optional parameters, new fields in responses, new event types. Your code should ignore fields it does not know.

A breaking change means a new version. The old version stays available for a published deprecation window, and deprecated endpoints return a Deprecation header before they are removed.

The machine-readable spec is at https://fininvo.com/api/v1/public/openapi.json.

Support

Email support@fininvo.com with the X-Request-Id of the failing call, the key prefix (the 12 characters after fnv_live_, never the full key) and the time of the request.

Early access

Want to build on the API before launch?