TOVRReference

Factoring partners

The TOVR integration for factoring companies. One client application per consenting organization, the scopes, the invoice.recorded flow from webhook to refetch to catch-up, the limits that apply, and the indicative factoring offer TOVR shows carriers.

A factoring company can learn, within seconds, that a TOVR customer has recorded a freight invoice, and read that invoice's number, amount, date and transports. This page lists what the integration consists of. The endpoints are specified in Invoices, Webhooks and Change feed.

Tenancy

Each TOVR customer is an organization, and each API credential belongs to exactly one organization. There is no cross-organization endpoint and no list of TOVR's customers, carriers or invoices. A factoring partner therefore holds one client application per organization that agreed to work with it.

StepWhoWhat
1The organization's owner or adminCreates a client application in Settings → Developer with the scopes below, and sends you the client_id and client_secret over a secure channel
2YouStore the pair against that customer
3The organizationCan withdraw access at any time by deleting the client application

A token minted with that pair sees that organization's data and nothing else. You never send an organization id.

Scopes

ScopeGives youNeeded for
invoices:readGET /invoices, GET /invoices/{id}Reading the record an event points at, and subscribing to invoice.recorded
webhooks:writeCreate, change, rotate and delete webhook endpointsSubscribing
webhooks:readList endpoints and their delivery statusSeeing whether your endpoint was disabled
events:readGET /eventsCatching up after downtime
shipments:read (optional)GET /shipments/{id}Reading the transports in covers[]. Not needed to finance an invoice.

Scopes are fixed when the client application is created. A missing scope is 403 insufficient_scope, and the organization has to create a new client application to add it.

Flow

StepRequestNotes
Get a tokenPOST /api/v1/oauth2/tokenOne hour per token, no refresh. Limits: 10 per minute per client_id, 30 per minute per address. See Authentication.
SubscribePOST /api/v1/webhook_endpoints with enabled_events: ["invoice.recorded"]One endpoint per organization. Store its secret, shown once. Several organizations may use the same URL; each endpoint has its own secret, and tovr-webhook-id tells you which.
ReceivePOST to your URLVerify tovr-signature (HMAC-SHA256 over `${t}.${rawBody}`, 300 s window), deduplicate on tovr-event-id, answer 2xx within 10 s. See Webhooks › Signature.
ReadGET /api/v1/invoices/{object_id}With that organization's token. The event carries no amount or name.
Catch upGET /api/v1/events?type=invoice.recorded&after=<cursor>30 days of history. Keep one cursor per organization.
curl -X POST https://tovr.eu/api/v1/webhook_endpoints \
  -H "Authorization: Bearer $TOVR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "url": "https://hooks.example.com/tovr",
    "description": "invoice.recorded for customer 1042",
    "enabled_events": ["invoice.recorded"]
  }'

A delivery body:

{"object":"event","id":"aev_5f0c1d2e-3a4b-4c5d-8e6f-708192a3b4c5","type":"invoice.recorded","object_type":"invoice","object_id":"inv_0b6f4a8e-5c1d-4e2f-9a7b-3c8d2e1f0a9b"}

The refetched record:

{
  "object": "invoice_record",
  "id": "inv_0b6f4a8e-5c1d-4e2f-9a7b-3c8d2e1f0a9b",
  "external_ref": "2026-000917",
  "issuer": "Balkan Freight OOD",
  "amount": { "amount": "1935.00", "currency": "EUR" },
  "issued_at": "2026-11-19T00:00:00.000Z",
  "recorded_at": "2026-11-20T08:41:12.305Z",
  "note": null,
  "covers": [
    { "object": "invoice_coverage", "shipment_id": "shp_7c2e5a90-3b1d-4f6e-9a4c-8d2b1e0f5a37", "chain_item_id": null }
  ]
}

Retries, disabling and re-enabling are specified in Webhooks › Delivery semantics: seven attempts over about 31 hours, five abandoned deliveries in a row disable the endpoint, a 410 disables it at once.

What invoice.recorded means to a factor

FactConsequence
The customer's ERP issued the invoice. TOVR recorded that it exists.The record has no due date, payment state, PDF or per-transport amounts.
The event fires once, when the record is first created.A later correction of the amount or date by the ERP changes the record and emits nothing.
One ERP invoice can cover several transports, recorded one at a time.Later transports are added to covers[] without an event.
An invoice against a public-market shipment belongs to no organization.It is never visible and emits nothing.

Read GET /invoices/{id} again at the moment you make an offer or advance funds. The copy you fetched when the event arrived can be out of date.

Limits

Every call counts against the client application's limits, set by the organization's plan:

PlanRequests per minuteRequests per month
Hobby6010,000
Pro300200,000
Scale1,2002,000,000
Enterpriseunmeteredunmetered

Over the minute is 429 rate_limited with Retry-After. Over the month is 402 quota_exceeded, which waiting does not clear. Responses that reach the limiter carry X-RateLimit-* headers. Webhook deliveries to you do not count. One token per hour and one refetch per invoice fit in the Hobby plan. See Rate limiting and quota.

The factoring offer carriers see

TOVR shows carriers a factoring offer next to a transport price, in the offer emails and on the carrier's offer page. The offer TOVR shows today is from Smart Factoring, product Xpress Factoring, available to every organization.

The figures are indicative. TOVR computes them from Smart Factoring's published rate card, not from a contracted rate. The carrier sees "Indicative only — Smart Factoring sets the final rate when you submit the invoice." Smart Factoring sets the real rate after it assesses the invoice.

TermValue
CurrencyEUR only
Invoice amountEUR 511.00 to EUR 25,564.59
Term20–90 days. The offer uses 45 days.
FundingWithin 48 hours of approval
Fee2.9% for 20–32 days, 5.9% for 33–62 days, 8.9% for 63–90 days
Calculationfee = amount × fee% ÷ 100, rounded to the cent; the carrier receives amount − fee
ApplyA link to https://smart-factoring.com/. TOVR sends no data with it.

For a EUR 1,935.00 transport at 45 days: fee 5.9% = EUR 114.17, the carrier receives EUR 1,820.83.

When several factoring providers fit, TOVR picks one that is active, quotes in the same currency, covers the amount and term, and has an HTTPS application link, then the lowest priority number. An organization's own factor is visible only to that organization.

What TOVR does not do

TOVR does notInstead
Issue freight invoicesThe customer's ERP issues them. TOVR records that they exist.
Tell you whether an invoice is paidNo payment state exists in TOVR
Send carrier personal data in an eventAn event carries an event id and an invoice id
Export data in bulk or across organizationsEach organization grants its own credential
Submit factoring applicationsThe carrier applies on the factor's own page

On this page