API
Step by step from sign-in to webhook. Call the API only from a trusted server, not from the browser (there is no CORS access). Every endpoint with schemas and examples: API reference.
Quick start
- 1. Create an API client As the owner, under Settings → API keys, save the secret somewhere safe right away.
- 2. Get an access token Exchange client ID and secret for a token, it is valid for one hour at most.
- 3. Check your first invoice Send an XML or PDF file to
validate; within the monthly free quota that costs nothing.
With the API you integrate Revobill into your own software: validate invoices, deliver them as inbound items, read the archive, request export packages, and be notified by Revobill about every invoice that has finished validation and every finished export (webhooks). You do not need a developer account; your Revobill account applies. A guide to validating in the browser without API access is at Validate an e-invoice.
What each call costs:
- Validating (
validate) stores nothing in the archive and is billed by usage: each business has a free allowance per calendar month, and tiered pricing applies above it. The prices and the size of the free allowance are in the cost overview of the API reference and under Settings → Billing; this guide does not state any amounts. In addition, rate limiting applies as protection against overload. - Delivering (
deliveries) is an invoice inbound item like an email with attachments and is billed like one: EUR 0.25 per inbound item with a PDF or XML (plus VAT), once per inbound item and not per file. An inbound item without a PDF and XML, and an inbound item whose files are all already in the archive, cost nothing. - Reading the archive, exports and webhooks cost nothing extra.
The full OpenAPI 3.1 contract contains all fields, enums, null rules, examples and the webhook messages; the interactive API reference shows it in readable form. The reference does not send any requests itself and does not fetch any tokens. Within v1, optional fields may be added; ignore unknown fields. Breaking changes get a new version path.
Create a client
- Register, confirm your email address and set up your business completely.
- As the owner, open Settings → API keys. Members cannot manage clients.
- Enter a name of 1 to 80 characters and choose the permissions (scopes). The permissions cannot be changed later; if you need different ones, create a new client. At most ten active clients are allowed per business.
- Decide when the secret expires: on a date from today onward, or "Valid without limit".
- Copy the secret immediately into your server's secret store. It is shown exactly once; closing, navigating and reloading discard the display. The client ID stays permanently in the list, but only the beginning of the secret does.
A client belongs to the business. Never pass the client ID and secret on in browser code, URLs, logs or source code.
| Scope | allows |
|---|---|
validate | POST /v1/validate, GET /v1/usage |
ingest | POST /v1/deliveries, GET /v1/deliveries/{id} |
archive.read | GET /v1/invoices, GET /v1/invoices/{id}, GET /v1/invoices/{id}/original, GET /v1/deliveries/{id} |
export | POST /v1/exports, GET /v1/exports/{id}, GET /v1/exports/{id}/package |
POST /v1/client/renew needs no particular scope. If the scope is missing, the API responds with 403 insufficient_scope.
The API re-checks what the account state allows on every call: validate in the states trial, active and past_due; ingest additionally after a suspension (export_only), as long as the business still accepts email (30 days); archive.read and export up to 90 days after a suspension; renewing as long as the account is not closed. A closed account refuses everything. Otherwise the API responds with 403 account_forbidden.
Get an access token
A client exchanges the client ID and secret at the token endpoint for a short-lived access token (OAuth 2.1, client credentials). Set REVOBILL_URL to the HTTPS address of Revobill (publicly https://api.revobill.io) and fetch the client ID and secret from your secret store. The examples contain no real values.
curl --silent --show-error \
--user "${REVOBILL_CLIENT_ID}:${REVOBILL_CLIENT_SECRET}" \
--data 'grant_type=client_credentials' \
"${REVOBILL_URL}/v1/oauth/token"
The response is {"access_token":"rvt_…","token_type":"Bearer","expires_in":3600,"scope":"…"}. The token lives at most 3600 seconds and never longer than the secret; there is no refresh token, so fetch a new one when it expires. With scope= (space-separated) you can narrow the token's scopes, never widen them; without it, all scopes of the client apply. Instead of Basic auth, the secret may also come as the form field client_secret together with client_id, but never in both. Duplicate parameters are rejected. The endpoint is throttled per client ID and network address (429 with Retry-After).
Errors from this endpoint have the form defined in RFC 6749 (error, error_description), not the v1 error form: invalid_request, invalid_scope, unsupported_grant_type, invalid_client (an unknown client ID, a wrong, expired or revoked secret and a closed account look the same) and temporarily_unavailable.
All other calls send the token as Authorization: Bearer rvt_…. Exactly one header, at most 256 bytes. A cookie, query parameter and body are not authentication, and the client secret (rvk_…) is not an access token. Revocation, expiry and account state apply immediately on every call. Machine calls need neither an Origin nor a cookie; the API gives no CORS permission for browser integrations with embedded secrets.
TOKEN=$(curl --silent --user "${REVOBILL_CLIENT_ID}:${REVOBILL_CLIENT_SECRET}" \
--data 'grant_type=client_credentials' "${REVOBILL_URL}/v1/oauth/token" \
| jq -r .access_token)
Renew, rotate and revoke the secret
Renew the secret before it expires, in the settings ("Renew", also after an account suspension) or via the API with the client's own token. An expired or revoked secret cannot be renewed; create a new client then.
curl --silent --show-error --request POST \
--header "Authorization: Bearer ${TOKEN}" \
--header 'Content-Type: application/json' \
--data '{"expires_at":"2027-12-31T23:59:59Z"}' \
"${REVOBILL_URL}/v1/client/renew"
expires_at is a date in the future or null for unlimited; nothing else. The secret and scopes stay the same, and issued tokens end in their own time.
To rotate, you create a second client, switch your integration over, verify one call, and then revoke the old one. You revoke a lost or exposed secret immediately; it is not shown again. If the response to creating a client is lost, check the list, revoke the unknown new client and deliberately create a replacement; do not repeat the creation automatically.
Check invoices
curl --silent --show-error \
--header "Authorization: Bearer ${TOKEN}" \
--form 'file=@rechnung.xml' \
"${REVOBILL_URL}/v1/validate"
For a PDF use file=@rechnung.pdf. Send exactly one non-empty multipart field file with a file name; after it you may send profile and version once each (see below), and there are no further fields. Do not set the multipart Content-Type yourself; curl adds the boundary. Content detection determines the format, not the file name or MIME type. The call needs the scope validate.
HTTP 200 means the technical validation has finished. Read report.status: valid, warnings, invalid, not_verifiable or pdf_without_xml. An invalid invoice or a PDF without XML also returns 200. The report contains detection, profile, the areas actually checked in scope, limits in limits, ordered findings with rule code, severity, location, original text and German-language help, plus per finding the field identifiers of the occurrence in fields (for example BT-14, BG-25; an empty list when the rule package names no field) and the place in the XML document in place (path and line, null when unknown, also in stored reports of older invoices); bt_path is unchanged and never holds an XML path, the separate mandatory-fields check checks14, as well as engine and artefact version. invoice contains the invoice data in the v1 projection, or null if no model could be read.
Choose profile and rule version
curl --silent --show-error \
--header "Authorization: Bearer ${TOKEN}" \
--form 'file=@rechnung.xml' \
--form 'profile=zugferd_basic' \
"${REVOBILL_URL}/v1/validate"
Without profile and version, the validation detects the profile from the specification identifier (BT-24) and uses the current rule version; the response is the same as without these fields. With profile you validate specifically against one profile, with version against a version: an XRechnung version (also an older one) or a version of one of the newer formats (Peppol BIS Billing 3.0, Peppol PINT, NLCIUS, UBL.BE, FatturaPA, ebInterface, KSeF FA(3), Facturae, ISDOC, Finvoice); auto means "as without a value" in both fields. Which values exist, what they are called and which rule packages can validate a profile is returned by GET /v1/profiles without authentication and free of charge; it is the same list the validation page offers, and it is deliberately not repeated here. A value that is not in the list, a duplicate field, or a profile combined with a version of a new format (every version except the XRechnung versions) results in 400 invalid_selection; the call does not count then.
If the call sent profile or version (even with auto), the response additionally contains selection: requested_profile and requested_version (the choice, null for auto), detected_profile (the profile that BT-24 names, otherwise null), rule_package (the rule package that validated or would have validated, like report.engine.artefact_version) and resolution:
detected: no profile chosen, BT-24 named one; it was validated.confirmed: BT-24 names the chosen profile; it was validated.contradiction: BT-24 names a different offered profile. Nothing was validated,report.statusisinvalid.applied: BT-24 is missing or names none of the offered ones. It was validated against the chosen profile, the result is at mostwarnings.unavailable: the format does not have the chosen profile (ZUGFeRD exists only as CII, not as UBL). Nothing was validated.undetectable: nothing chosen and BT-24 names no offered profile. Nothing was validated,report.statusisnot_verifiable.not_applicable: there was no invoice XML to assess (PDF without XML, file too large or unreadable).
You choose the new formats through their version in version, not as a profile. Without a value, the validation recognises the format from the document (BT-24 for the UBL family, root namespace and version attribute for the national formats) and validates against the newest version of that format; the response names the version used in selection.rule_package and report.engine.artefact_version. A version that belongs to the format of the document is applied. A version of another format (also an XRechnung version beside a document of a new format) is replaced by the newest version of the recognised format; then selection.rule_package differs from selection.requested_version. The same holds the other way round: a version of a new format beside an XRechnung or ZUGFeRD document is replaced. A valid document of the UBL family (Peppol BIS, PINT, NLCIUS, UBL.BE) is an e-invoice under EN 16931; the national formats (FatturaPA, ebInterface, KSeF FA(3), Facturae, ISDOC, Finvoice) receive "technically conformant to report.technically_conformant_to, present only for these documents) and are not an e-invoice in the sense of the German obligation. For the national formats the schema is checked; signatures and prose rules are listed as not checked in the coverage of the package.
A recognised profile without a rule package (Factur-X, OIOUBL, CIUS-PT, EHF, ZUGFeRD 1.0) results in not_verifiable with a reason, never in a validation against a similar profile. Factur-X becomes verifiable once a rule package for it is available.
The rule version changes nothing for a ZUGFeRD profile: these profiles always run against their fixed rule package. A choice that results in contradiction or unavailable is also a technical report (HTTP 200) and is billed like any other.
Amounts, quantities and tax rates are decimal strings with a dot and no thousands separator, never JSON floating-point numbers. Missing, invalid or unknown numbers are null; a real zero is "0". The currency is given separately in currency. Treat texts and attachment URIs as untrusted data, execute nothing and do not automatically load third-party URLs.
validate archives nothing and stores neither the file nor the report; there is no online VAT ID lookup, no OCR and no comparison with the recipient of your business. scope says which checks actually took place; false does not mean "passed". The API does not replace a tax or legal assessment.
Only an admitted validation that returns a technical report (HTTP 200) is billed, also for an invalid invoice or a PDF without XML. Technical errors on Revobill's side after admission (validation_failed, validation_timeout) and every rejected call cost nothing and do not count towards the monthly allowance; the per-minute budget is still charged for errors after admission. The allowance applies per business and calendar month (Europe/Berlin, the month begins on the 1st at 00:00 local time); unused free validations expire at the end of the month.
Beyond the free allowance, only an account in the trial period or an active account with a valid payment mandate and the cost switch turned on validates. In the trial period, with a payment mandate and the cost switch the monthly rule already applies: a free allowance per calendar month, then the price scale, billed with the monthly run; the trial period itself is unchanged, and the base price and inbound invoices stay free until it ends. Without a payment mandate or with the cost switch off, and when a payment is outstanding (past_due), the allowance ends at the free allowance; in the trial period it then applies once for the entire trial period. Only the owner changes the cost switch under Settings → API keys, not the API. When the allowance is exhausted, the API responds with 429 monthly_quota_exhausted without Retry-After; usage.month.reason gives the reason: trial, payment_required or paid_disabled. The rejected call does not count.
GET /v1/usage returns request_id and usage with two windows. usage.minute has limit, used, remaining and resets_at (UTC) for the per-minute budget. usage.month shows the monthly state of billable validations: scope (month or trial; trial only in the trial period without a payment mandate or with the cost switch off), limit (null without an upper bound), used, remaining (null without an upper bound), free_remaining, resets_at (null for scope = "trial", because a change of month does not renew the trial-period allowance) and paid_enabled; reason is null there and is only set in the error body of monthly_quota_exhausted. There is no daily window. Reading does not count.
Deliver invoices
A call is an inbound item like an email with attachments. It needs the scope ingest.
curl --silent --show-error \
--header "Authorization: Bearer ${TOKEN}" \
--form 'file=@rechnung.xml' \
--form 'file=@rechnung.pdf' \
--form 'file=@lieferschein.pdf' \
"${REVOBILL_URL}/v1/deliveries"
Send one to 20 multipart fields file of any type, each with a file name and non-empty, and no other fields. Each file may be at most 64 MiB (XML at most 10 MiB), the whole body including the multipart envelope at most 128 MiB, and the upload deadline is 30 seconds.
The response comes as soon as everything is stored and before any file is examined: 202 with delivery_id and state received. After that the worker unpacks (ZIP archives, forwarded emails), classifies by content, files into the archive and validates, exactly as with email inbound: PDF and XML are validated, everything else becomes an attachment. The validation does not run within the call.
GET /v1/deliveries/{id} returns the state (scope ingest or archive.read):
state | Meaning |
|---|---|
received | stored, not yet examined (documents is still empty) |
processing | being examined; documents are still in validation |
done | every document has reached its final state |
failed | processing was abandoned; the files are stored |
For each document, documents gives id, class, role (invoice for PDF and XML, attachment for everything else), state (state as in the interface) and duplicate_of. With the id you read the report and original in the archive.
The same set of files again (same names and bytes, any order) is not stored again: 200 with duplicate_of (the earlier inbound item) and the current state, free of charge. A single file that is already in the archive as a document (also via email) does not become a second document; the inbound item shows it with duplicate_of. Delivery works as long as the business accepts email; otherwise 403 account_forbidden. In the interface, such an inbound item appears with "via API (Client …)" in the inbox list. ZIP contents are only unpacked in the worker and limited there.
Read the archive
All calls need the scope archive.read and count towards the read budget (see limits).
GET /v1/invoiceslists all documents of the business, newest inbound items first, also attachments (roleattachment). Parameters:limit(1 to 100, default 50),cursor,received_from(inclusive) andreceived_to(exclusive) as RFC 3339,stateandsource. Each parameter at most once.GET /v1/invoices/{id}returns the same master data plus thereportstored at validation and theinvoicethat was read, in the same form as forvalidate.reportisnullas long as the document has not been validated yet, for attachments and after a technical validation error. Documents that were validated before the stored report was introduced are re-validated once in the background (without notice); until thenreportisnullandreport_pendingistrue.GET /v1/invoices/{id}/originalreturns the file as it arrived (for a PDF with embedded XML, the PDF).Content-Typecomes from the bytes, never from the sender;Content-Dispositionis alwaysattachment, plusnosniff.X-Content-SHA256gives the SHA-256 hash of the delivered bytes. A document with suspected integrity problems comes withX-Revoice-Integrity: suspect; a document in quarantine (virus found or file type blocked) is never delivered (409quarantined), nor is one that is not scanned for viruses yet (409scan_pending, fetch again shortly). Every delivered retrieval is in the business's audit log.
source gives the origin: mail (email inbound), api (delivered via this API), upload (uploaded in the interface) or internal (one of Revobill's own invoices from billing). state is stored, classified, validation_pending, green, yellow, red, validation_error or quarantined.
The cursor is opaque, is valid for 24 hours and only with exactly the same filters; new inbound items do not shift the pages. A modified, expired or differently filtered cursor, an unknown or duplicate parameter, an invalid value and received_from not before received_to result in 400 invalid_query. The document of another business and an unknown identifier both result in 404.
Exports
An export is the same ZIP package as on the export page (invoices, attachments, validation reports, index and evidence). All calls need the scope export.
curl --silent --show-error --request POST \
--header "Authorization: Bearer ${TOKEN}" \
--header 'Content-Type: application/json' \
--data '{"from":"2026-10-01","to":"2026-10-31","basis":"invoice_date"}' \
"${REVOBILL_URL}/v1/exports"
from and to are calendar days in Europe/Berlin (YYYY-MM-DD, both inclusive, to not before from), basis is invoice_date (invoice date, the day of receipt if there is no date) or received (date of receipt). Further fields are an error (400 invalid_export_request). The 202 response gives export_id and state building; the package is built in the worker.
GET /v1/exports/{id} returns the state: building (with progress_done and progress_total), ready (with package_sha256) or failed (with failure). A new export of the same period gets the next version. Exports from the interface are also readable (requested_via ui). GET /v1/exports/{id}/package returns the finished ZIP (application/zip, always attachment) with X-Content-SHA256; while the export is building and when it is failed, the API responds with 409 export_not_ready. Every request and every retrieval is in the audit log; the export appears on the export page with "via API" and the name of the client.
If no document that belongs in a package falls into the period, the API responds with 400 export_empty and creates nothing. At most one export is built at a time per business; a further call results in 409 export_in_progress with Retry-After and Location of the running export. At most 20 requests per UTC day and business apply (all clients together, failed exports also count, rejected ones do not): the 21st results in 429 export_quota_exhausted.
Webhooks
Instead of polling, you can have yourself notified. The owner enters an address of your software under Settings → Webhook. Revobill sends a message there when
invoice.processed: a PDF or XML has reached its final state (validated, validation failed technically, classified without validation, or in quarantine). This applies to documents from email, API and upload in the interface; Revobill's own invoices and attachments of other types do not trigger a message.export.finished: an export has becomereadyorfailed, whether requested from the interface or via the API.
There is at most one message per document and per export. There is one address per business. A business without an address collects nothing; an account in the state export_only keeps collecting, a closed one does not. After the address is entered, delivery begins with new events, not retroactively.
Address and secret
The address must begin with https://, use port 443 (no other port) and be at most 2048 characters long. It must not contain a username or password and must not point to a machine in your own or a private network: every address the name resolves to must be public. Revobill connects only to the validated addresses, does not follow a redirect (it counts as a failure) and uses no proxy.
When saving, Revobill generates a signing secret (whsec_ and 64 hex characters) and shows it exactly once. Enter it in your software. You can regenerate it at any time; the old one no longer applies afterwards. The secret is stored at Revobill only in encrypted form.
Message
Revobill sends POST with Content-Type: application/json and compact JSON as the body. The headers:
| Header | Content |
|---|---|
Revoice-Signature | t=<unix-seconds>,v1=<hex>, see below |
Revoice-Event-Id | equal to event_id in the body |
Revoice-Event-Type | invoice.processed or export.finished |
Revoice-Delivery-Attempt | number of the attempt, starting at 1 |
The body always has event_id, type, occurred_at, sequence and truncated. invoice.processed additionally carries the fields of a document as in GET /v1/invoices/{id} (id, received_at, source, role, class, state, invoice_number, invoice_date, seller_name, seller_vat_id, currency, gross, retain_until) as well as report and invoice as for validate. export.finished carries id (the export_id), state (ready or failed), from, to, basis, version, finished_at, failure, manifest_sha256, package_sha256 and requested_via. The exact schemas are in the webhooks section of the contract.
If a message is larger than 256 KiB, Revobill first omits report (for exports failure), then everything except the fixed-length fields, and sets truncated to true; you then fetch the full report via the API. You read the rest about the report and original from the archive with the id anyway.
Verify the signature
The signature is HMAC-SHA256 with the secret over the string <t> + . + body, hexadecimal. Verify over the received bytes, compare in constant time and reject messages whose t deviates from your clock by more than 300 seconds. Revobill signs every attempt anew with a new t; the body stays the same.
Test vector: secret whsec_test_secret, t=1700000000, body {"event_id":"e1","type":"invoice.processed"}.
printf '1700000000.{"event_id":"e1","type":"invoice.processed"}' \
| openssl dgst -sha256 -hmac 'whsec_test_secret'
# cde69a5d935be318dbcff1963cd4c62f136fa443460ea8ca9b28c82b080c65ec
# Header: Revoice-Signature: t=1700000000,v1=cde69a5d935be318dbcff1963cd4c62f136fa443460ea8ca9b28c82b080c65ec
import hashlib, hmac, time
def valid(secret: str, header: str, body: bytes) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t = int(parts["t"])
if abs(time.time() - t) > 300:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts["v1"])
Responses, order and retries
Respond with a 2xx status within 10 seconds (default deadline per attempt). Anything else (a different status, a redirect, a timeout, a connection error) counts as a failure and is retried. Revobill delivers at least once: recognise a repeat by event_id and process it only once.
- Order. Every message has a gapless running number
sequenceper business; it follows the order in which the documents reach their final state, notreceived_at. Revobill delivers one message after the other, the oldest open one first. A message that does not arrive holds back all later ones so that nothing overtakes it. - Retries. After a failure, Revobill waits one minute, then twice as long for each attempt, at most four hours. If the outage lasts 24 hours, the owner receives exactly one email (without invoice data); after that Revobill tries hourly. As soon as a delivery succeeds, the outage ends and the backlog arrives in order.
- Skipping. If the oldest message hangs permanently (for example because your receiver always rejects it with HTTP 400), the owner can skip it in the settings. It is then no longer delivered, the document stays in the archive and retrievable via the API, and delivery continues with the next one. This is recorded in the audit log. The settings also show the outage, open messages, last error and next attempt, and can trigger a delivery immediately.
- Retention. Revobill deletes delivered and skipped messages 30 days afterwards, including the payload. If you delete the address, open messages are discarded; the running number never goes back.
Treat every message as a notification: fetch the current state via the API when needed.
Rate limiting and limits
| Limit | Value |
|---|---|
| Validating, minute | all clients of a business together at most as many validations per minute (fixed UTC minute window) as the limit of the business allows; default 300, usage.minute.limit is authoritative |
| Validating, concurrent | at most as many concurrent validations per business and web server process as the limit of the business allows; default 2. When no place is free the call waits briefly (default 5 s) and is rejected only after that |
| Validating, month | a free allowance per business and calendar month; above it only with a payment mandate and the cost switch turned on, in the trial period too; without both in the trial period once for the entire trial period (usage.month) |
| Read budget | list, detail, original and all three export calls together at most as many per minute and per day and business (UTC) as the limits of the business allow; default 120 per minute and 5,000 per day |
| Exports | at most as many requests per UTC day and business as the limit of the business allows (default 20), at most one export at a time |
| Delivering | 1 to 20 files, 64 MiB per file (XML 10 MiB), body 128 MiB, upload deadline 30 s |
| Validating, size | XML 10 MiB, PDF 64 MiB, multipart envelope 64 KiB, upload deadline 30 s, validation response deadline 20 s |
| Clients | at most ten active per business |
| Webhook | https, port 443, address at most 2048 characters, response within 10 s, message at most 256 KiB |
The limits for validations, reads and exports are defaults; other values can apply to a business. For validation, usage.minute.limit states the limit of the business. The per-minute budget of validation and the read budget protect the service from overload. When one of these limits is reached, the API responds with 429 and Retry-After (seconds); the rejected call does not count. Fixed minute windows allow up to twice as many admissions across a minute change; this is not a promise of a sliding rate. The read budget counts only accepted calls. The monthly allowance of validation (monthly_quota_exhausted) is separate from this and has no Retry-After. After admission, the validation validate also counts on timeout, connection abort or process crash and is not refunded. Each web process runs only a limited number of validations at a time (default 2 per business and web server process, and a limit per process overall). When no place is free the call waits briefly and is then rejected with too_many_concurrent (limit of the business) or capacity (process full), both with Retry-After; a rejected validation does not count.
Order of a validation: authentication, limited upload and container detection, free validation slot (with a short wait), renewed check of client and account as well as atomic confirmation of the minute window and the monthly allowance, then the validation run. Before this confirmed admission, no error counts. Content-wise invalid invoices and PDFs without XML count and are billed; technical errors after admission count only for the per-minute budget. The usage named in a response is a snapshot.
Errors
Errors return error.code, error.message, request_id and usage (only when validating, otherwise null). Technical errors contain no invoice or input fragments. The codes and field names are stable; message texts are in English. The token endpoint responds according to RFC 6749 (see above).
| Status | error.code | Meaning |
|---|---|---|
| 400 | invalid_upload | Validating: invalid multipart envelope, no, empty or multiple files, additional fields other than profile and version |
| 400 | invalid_selection | Validating: profile or version with a value that is not in GET /v1/profiles, duplicated, or a profile together with a version of a new format; the call does not count |
| 400 | invalid_delivery | Delivering: no or empty file, additional fields, invalid multipart envelope |
| 400 | invalid_request | Renewing: not exactly expires_at with a future date or null |
| 400 | invalid_query | List: invalid parameter, value or page cursor |
| 400 | invalid_export_request | Export: not exactly from, to, basis with valid values |
| 400 | export_empty | Export: there is no document in the period that belongs in a package |
| 401 | invalid_token | Access token is missing, duplicated, wrong, too long, expired or the client revoked; WWW-Authenticate: Bearer |
| 403 | insufficient_scope | the token lacks the scope; WWW-Authenticate names it |
| 403 | account_forbidden | the account state does not allow the action or setup is incomplete |
| 404 | not_found | unknown endpoint |
| 404 | delivery_not_found | unknown inbound item (also one of another business) |
| 404 | invoice_not_found | unknown document (also one of another business) |
| 404 | export_not_found | unknown export (also one of another business) |
| 405 | method_not_allowed | wrong HTTP method |
| 409 | quarantined | original in quarantine is never delivered |
| 409 | scan_pending | document not scanned for viruses yet; fetch again shortly |
| 409 | export_in_progress | an export is already being built; Retry-After and Location |
| 409 | export_not_ready | package cannot be fetched (building or failed) |
| 413 | too_large | Validating: file or envelope too large |
| 413 | delivery_too_large | Delivering: more than 20 files, file or body too large |
| 415 | unsupported_container | Validating: neither PDF nor XML |
| 429 | quota_exhausted | per-minute budget of validation reached (the name stayed for compatibility reasons); Retry-After |
| 429 | monthly_quota_exhausted | monthly allowance of validation exhausted; usage.month.reason gives the reason; no Retry-After, the call does not count |
| 429 | too_many_concurrent | as many validations are already running for your business as the limit allows; rejected after a short wait; Retry-After |
| 429 | read_quota_exhausted | read budget reached; Retry-After |
| 429 | export_quota_exhausted | the daily limit of export requests is reached; Retry-After |
| 500 | validation_failed | technical validation error after admission; counts for the per-minute budget, not for the monthly allowance |
| 503 | capacity | all shared slots occupied (after a short wait); not admitted; Retry-After |
| 503 | database_unavailable | admission not reliably confirmed; a commit may have happened; no automatic retry |
| 503 | original_unavailable | original cannot be read from the archive without error; try again later |
| 503 | package_unavailable | package cannot be read from the archive without error; try again later |
| 504 | upload_timeout | transfer took too long; no admission |
| 504 | validation_timeout | validation response deadline expired; counts for the per-minute budget, not for the monthly allowance |
All v1 responses carry Cache-Control: no-store and a newly generated X-Request-Id that matches request_id. For troubleshooting, note only this ID and the error code, no secrets or invoice contents.
POST /v1/validate is not idempotent: a repeated call may count again, and there is no idempotency key. Disable automatic POST retries in the client and proxy, especially after 503, 504 or a network error. POST /v1/deliveries, by contrast, is protected against repetition: the same set of files is not stored or billed twice. For POST /v1/exports, the daily limit and the single running export limit duplicate requests; after a network error, check the state first instead of requesting again.
Processing and operation
When validating, files and reports stay in memory and are stored neither as a document nor as an archive or billing entry. Delivered files, by contrast, lie like email attachments in the business's immutable archive (designed to be GoBD-compliant, with a retention period). For each client, Revobill stores name, client ID, the hash of the secret (never the secret) with its beginning, scopes, expiry and timestamps; for access tokens only the hash; in addition the counters of the budgets and messages, and audit entries for creating, renewing, revoking, delivering, download, export and skipping messages. The webhook messages contain the invoice's data (payload to the address you chose); choose only a recipient you may entrust with this data.
The API is not a promise of availability. This documentation describes the contract as the API implements it.