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.
| Step | Who | What |
|---|---|---|
| 1 | The organization's owner or admin | Creates a client application in Settings → Developer with the scopes below, and sends you the client_id and client_secret over a secure channel |
| 2 | You | Store the pair against that customer |
| 3 | The organization | Can 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
| Scope | Gives you | Needed for |
|---|---|---|
invoices:read | GET /invoices, GET /invoices/{id} | Reading the record an event points at, and subscribing to invoice.recorded |
webhooks:write | Create, change, rotate and delete webhook endpoints | Subscribing |
webhooks:read | List endpoints and their delivery status | Seeing whether your endpoint was disabled |
events:read | GET /events | Catching 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
| Step | Request | Notes |
|---|---|---|
| Get a token | POST /api/v1/oauth2/token | One hour per token, no refresh. Limits: 10 per minute per client_id, 30 per minute per address. See Authentication. |
| Subscribe | POST /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. |
| Receive | POST to your URL | Verify tovr-signature (HMAC-SHA256 over `${t}.${rawBody}`, 300 s window), deduplicate on tovr-event-id, answer 2xx within 10 s. See Webhooks › Signature. |
| Read | GET /api/v1/invoices/{object_id} | With that organization's token. The event carries no amount or name. |
| Catch up | GET /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
| Fact | Consequence |
|---|---|
| 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:
| Plan | Requests per minute | Requests per month |
|---|---|---|
| Hobby | 60 | 10,000 |
| Pro | 300 | 200,000 |
| Scale | 1,200 | 2,000,000 |
| Enterprise | unmetered | unmetered |
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.
| Term | Value |
|---|---|
| Currency | EUR only |
| Invoice amount | EUR 511.00 to EUR 25,564.59 |
| Term | 20–90 days. The offer uses 45 days. |
| Funding | Within 48 hours of approval |
| Fee | 2.9% for 20–32 days, 5.9% for 33–62 days, 8.9% for 63–90 days |
| Calculation | fee = amount × fee% ÷ 100, rounded to the cent; the carrier receives amount − fee |
| Apply | A 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 not | Instead |
|---|---|
| Issue freight invoices | The customer's ERP issues them. TOVR records that they exist. |
| Tell you whether an invoice is paid | No payment state exists in TOVR |
| Send carrier personal data in an event | An event carries an event id and an invoice id |
| Export data in bulk or across organizations | Each organization grants its own credential |
| Submit factoring applications | The carrier applies on the factor's own page |
Webhooks
Webhook endpoints of the TOVR REST API. Endpoint object and its six operations, URL rules, the per-event scope rule, the delivery request and its headers, the HMAC-SHA256 signature with verification code, the retry ladder, disabling and re-enabling, and secret rotation.
Domain model
The objects the TOVR REST API returns, field by field. Chain, chain stop, vehicle, vehicle availability, match, quote and outreach event, the enumerations they use, and where the shipment, invoice, event and webhook objects are specified.