Docs menu: Documents
Documents
Preview and issue fiscal documents.
On this page
List documents #
/api/v1/documentsReturns the documents of your key's mode, newest first, each with its timeline. Filter by merchant, status, type, creation time, issue date, number, MARK (mydata_mark, GR) or your external_reference.
- Bearer API key
Query parameters
limitintegerHow many items to return, 1 to 100; 10 by default.
From 1 to 100 · Default:
10starting_afterstringAn id (doc_…) from this list: return the items after it, older ones (pass the last id of the current page). Not with ending_before.
Up to 64 characters
ending_beforestringAn id (doc_…) from this list: return the items before it, newer ones (pass the first id of the current page). Not with starting_after.
Up to 64 characters
merchantstringOnly this merchant's documents (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$statusstring[]Only documents in these statuses; repeat the parameter for several.
1 to 10 items
typestring[]Only documents of these types; repeat the parameter for several.
1 to 10 items
created[gte]stringOnly documents created at or after this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
Format:
date-timecreated[lte]stringOnly documents created at or before this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
Format:
date-timeissue_date[gte]stringOnly documents whose issue_date is on or after this date (YYYY-MM-DD).
Format:
dateissue_date[lte]stringOnly documents whose issue_date is on or before this date (YYYY-MM-DD).
Format:
datemydata_markstringOnly the GR document with this MARK.
Show patternHide pattern
^[1-9]\d{0,18}$numberstringOnly documents with exactly this number (in FR, the number you assigned).
1 to 100 characters
external_referencestringOnly documents with exactly this external_reference.
Up to 200 characters
Show patternHide pattern
\S
Request
curlcurl -X GET 'https://tallio.dev/api/v1/documents' \
-H "Authorization: Bearer $TALLIO_API_KEY"| Status | Description |
|---|---|
200 | A page of documents. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 200
objectstringrequiredAlways "list".
Always
listdataobject[]requiredThis page's items, newest first.
Each item: A fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
has_morebooleanrequiredWhether more items exist past this page in the direction you paged (starting_after or ending_before).
Example response · 200{
"object": "list",
"data": [],
"has_more": false
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 200, 400, 429 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 200, 400, 429 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 200, 400, 429 · At least 0
www-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
validation_failed | 400 | No | Request validation failed. |
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
Issue a document #
/api/v1/documentsIssue a document for a merchant. Tallio validates and classifies it at once, stores it as pending and issues it through the merchant's provider in the background.
- Bearer API key
- Idempotency-Key required
Header parameters
idempotency-keystringrequiredA key you choose (1-255 printable ASCII characters, e.g. a UUID) that makes a create request safe to retry: the same key with the same body returns the first result instead of creating a second document. Keys starting with
store_order:,store_refund:,correction:,correction_credit:,credit_note:are reserved for Tallio's own documents and refused.1 to 255 characters
Show patternHide pattern
^[\x21-\x7E]*$
Request by regime
regime: GR
A document issued in Greece (regime GR) through myDATA. Amounts are integer minor units.
Request body
merchantstringrequiredThe merchant issuing the document (mer_…), created under your account.
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$documentobjectrequiredShow nested fields (13)Hide nested fields (13)
regimestringrequiredTax regime: GR, a document issued in Greece through myDATA.
Always
GRtypestringrequiredAADE myDATA document type: 1.1 sales invoice, 2.1 service invoice, 2.2 intra-EU service invoice (reverse charge), 2.3 third-country service invoice, 5.1 credit note (associated), 5.2 credit note (non-associated), 11.1 retail sales receipt, 11.2 retail service receipt, 11.4 retail credit note.
One of:
1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3issue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency: EUR, the only one Greek documents take.
Always
EURsupplierobjectrequiredThe merchant issuing the document, registered in Greece: its tax_id and establishment must be the merchant's own (422 supplier_mismatch).
Show nested fields (7)Hide nested fields (7)
tax_idoneOfrequiredThe merchant's ΑΦΜ: country GR, scheme afm.
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 1 of 1
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 1 of 1 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 1 of 1 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 1 of 1
Show patternHide pattern
^\d{9}$
namestringLegal name. Optional: AADE holds it, and adapters drop it when they send straight to myDATA, which rejects it.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address.
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
establishmentobjectA branch registered with AADE (Greece).
Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
customerobjectThe customer. Required for 1.1, 2.1, 2.2, 2.3, 5.1, 5.2 (Greek, country GR, on 1.1 and 2.1; in another EU member state on 2.2; outside the EU on 2.3); not allowed on the retail types (11.1, 11.2, 11.4).
Show nested fields (9)Hide nested fields (9)
tax_idoneOfrequiredTax registration: the ΑΦΜ for a Greek party (scheme afm, country GR), the whole VAT number for one in another EU member state (scheme vat, prefix included), the national tax number elsewhere (scheme tin).
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 1 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 1 of 3 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 1 of 3 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 1 of 3
Show patternHide pattern
^\d{9}$
tax_idobjectrequiredVAT registration in an EU member state.
Option 2 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the VAT registration: GR for Greece (not the VAT prefix EL).
Option 2 of 3 · One of:
AT,BE,BG,CY,CZ,DE,DK,EE,ES,FI,FR,GR,HR,HU,IE,IT,LT,LU,LV,MT,NL,PL,PT,RO,SE,SI,SK,XIschemestringrequiredIdentifier scheme: vat.
Option 2 of 3 · Always
vatcodestringrequiredThe whole VAT number, prefix included (EL for Greece). A request is refused unless the part after the prefix has its country's format: AT: U, then 8 digits; BE: 10 digits, the first 0 or 1; BG: 9 or 10 digits; CY: 8 digits, then a letter; CZ: 8 to 10 digits; DE: 9 digits; DK: 8 digits; EE: 9 digits; ES: a letter or digit, 7 digits, then a letter or digit; FI: 8 digits; FR: a 2-character key (digits, or letters other than I and O), then the 9-digit SIREN; EL: the 9-digit ΑΦΜ; HR: 11 digits; HU: 8 digits; IE: a digit, then a letter, digit, + or *, then 5 digits, then 1 or 2 letters; IT: 11 digits; LT: 9 or 12 digits; LU: 8 digits; LV: 11 digits; MT: 8 digits; NL: 9 digits, B, then 2 digits; PL: 10 digits; PT: 9 digits; RO: 2 to 10 digits; SE: 12 digits; SI: 8 digits; SK: 10 digits; XI: 9 or 12 digits, or GD or HA then 3 digits.
Option 2 of 3
Show patternHide pattern
^[A-Z]{2}[0-9A-Z+*]{2,12}$
tax_idobjectrequiredAnother national tax number, for a registration no other scheme covers.
Option 3 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the registration: GR for Greece (not the VAT prefix EL).
Option 3 of 3
Show patternHide pattern
^[A-Z]{2}$schemestringrequiredIdentifier scheme: tin.
Option 3 of 3 · Always
tincodestringrequiredNational tax number: 2 to 30 letters and digits.
Option 3 of 3
Show patternHide pattern
^[0-9A-Z]{2,30}$
namestringLegal name. Required outside Greece. Optional for Greek parties, whose name AADE holds; adapters drop it when they send a Greek party straight to myDATA, which rejects it.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address. Required outside Greece.
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
establishmentobjectA branch registered with AADE (Greece).
Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
precedingobject[]The documents a credit note corrects, by MARK. Required for 5.1; required for 11.4 unless special_category is 13; not allowed on other types.
1 to 1000 items
Each item: A document this credit note corrects, by its MARK.
Show nested fields (1)Hide nested fields (1)
markstringrequiredMARK (AADE registration number) of an issued document.
Show patternHide pattern
^[1-9]\d{0,18}$
special_categorynumberAADE special invoice category. Only 13 (difficulty correlating) is supported, and only on 11.4: the retail receipts it credits cannot be identified, so it carries no preceding.
Always
13linesobject[]requiredThe document's lines, from 1 to 1000.
1 to 1000 items
Each item: One line. Its net amount is quantity × unit_price, rounded half up to the cent, at most 1000000000000000.
Show nested fields (6)Hide nested fields (6)
descriptionstringrequiredWhat was sold, as printed on the document.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$quantitystringrequiredQuantity, a decimal string below 1000000000 with up to 3 decimals, greater than 0, e.g. "2" or "1.5" (kg).
Show patternHide pattern
^(0|[1-9]\d{0,8})(\.\d{1,3})?$unitstringUnit the quantity is measured in: piece (myDATA 1), kg (myDATA 2), litre (myDATA 3), metre (myDATA 4), square_metre (myDATA 5), cubic_metre (myDATA 6).
One of:
piece,kg,litre,metre,square_metre,cubic_metreunit_priceintegerrequiredNet price per unit in minor units (cents), at most 100000000000.
From 0 to 100000000000
vatobjectrequiredThe line's Greek VAT: its category, which fixes the rate, and the exemption cause of an exempt line.
Show nested fields (2)Hide nested fields (2)
categorystringrequiredGreek VAT category of the line, which fixes its rate: standard 24% (myDATA 1), reduced 13% (myDATA 2), super_reduced 6% (myDATA 3), standard_island 17% (myDATA 4), reduced_island 9% (myDATA 5), super_reduced_island 4% (myDATA 6), exempt 0% (myDATA 7). An exempt line needs an exemption.
One of:
standard,reduced,super_reduced,standard_island,reduced_island,super_reduced_island,exemptexemptionintegermyDATA VAT exemption cause (1-31), e.g. 14 for article 33 of the VAT code (Law 5144/2024). Required on exempt lines only.
From 1 to 31
income_classificationobjectExplicit myDATA income classification for the line. Omit it to have Tallio apply and report a default.
Show nested fields (2)Hide nested fields (2)
categorystringrequiredmyDATA income classification category, e.g. category1_1 sale of goods, category1_2 sale of products, category1_3 provision of services, category1_95 other income information.
One of:
category1_1,category1_2,category1_3,category1_4,category1_5,category1_6,category1_7,category1_8,category1_9,category1_10,category1_95typestringE3 income type. Required, except that category1_95 takes none or one of E3_596, E3_597.
One of:
E3_106,E3_205,E3_210,E3_305,E3_310,E3_318,E3_561_001,E3_561_002,E3_561_003,E3_561_004,E3_561_005,E3_561_006,E3_561_007,E3_562,E3_563,E3_564,E3_565,E3_566,E3_567,E3_568,E3_570,E3_595,E3_596,E3_597,E3_880_001,E3_880_002,E3_880_003,E3_880_004,E3_881_001,E3_881_002,E3_881_003,E3_881_004,E3_598_001,E3_598_003
paymentsobject[]How the document is paid, up to 10 entries.
1 to 10 items
Each item: One way the document is paid.
Show nested fields (2)Hide nested fields (2)
methodstringrequiredHow the document is paid: domestic_account (myDATA 1), foreign_account (myDATA 2), cash (myDATA 3), cheque (myDATA 4), on_credit (myDATA 5), web_banking (myDATA 6), pos (myDATA 7), iris (myDATA 8).
One of:
domestic_account,foreign_account,cash,cheque,on_credit,web_banking,pos,irisamountintegerrequiredAmount paid this way, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
paidbooleanWhether the document is already settled when issued. Only on 1.1, 2.1, 2.2, 2.3, 11.1, 11.2, and never true with an on_credit payment. Omitted: true on a retail receipt (11.1, 11.2), paid at the sale, unless a payment is on_credit; false otherwise. A provider that records payment (Oxygen) marks the document paid, so it does not print as unpaid; myDATA itself carries no such flag.
totalsobjectrequiredDocument totals. Tallio rejects totals that do not add up.
Show nested fields (3)Hide nested fields (3)
netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
notesstringFree text printed on the document, 1 to 500 characters, by providers that print one (Wrapp: its notes); myDATA itself has no such field. Tallio adds no wording of its own: on a 2.2 put the reverse-charge statement here (Αντίστροφη επιβάρυνση).
1 to 500 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
providerstringThe provider to issue through. Omit it when the merchant has one active connection in your key's mode (a test key with none uses the sandbox); set it when there are several. A live key never reaches the sandbox.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiexternal_referencestringYour own reference for the document, e.g. an order number: 1 to 200 characters, trimmed. Not unique; list documents by it to find them.
Up to 200 characters
Show patternHide pattern
\SreplacesstringA rejected or failed document of the same merchant (doc_…) that this one is issued to replace: linked both ways (replaces / replaced_by), and the replaced document gets document.replaced. A document has one live replacement at a time; another may follow only once that one is rejected or failed too. A failed document the provider took (it has a provider_reference) cannot be replaced: retry it, which checks its status.
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$metadataobjectUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it. With a test key, metadata.tallio_sandbox picks what the sandbox does: reject (rejected at issue), transient_503_x2 (two 503s, then issued), timeout_unknown_issued (the first issue times out though it was issued), timeout_unknown_lost (the first issue times out and nothing was issued), pending_then_issued and pending_then_rejected (accepted, decided on the second status check), credentials_invalid (the provider refuses the connection's credentials).
Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
Request
JSON{
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"document": {
"regime": "GR",
"type": "1.1",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "555555559"
}
},
"customer": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "666666662"
},
"name": "Kafeneio Lemonia IKE"
},
"lines": [
{
"description": "Olive oil, bulk",
"quantity": "1.5",
"unit": "litre",
"unit_price": 1000,
"vat": {
"category": "reduced"
},
"income_classification": {
"category": "category1_1",
"type": "E3_561_001"
}
},
{
"description": "Delivery",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "standard"
}
}
],
"payments": [
{
"method": "cash",
"amount": 2935
}
],
"totals": {
"net": 2500,
"vat": 435,
"gross": 2935
}
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
}
}| Status | Description |
|---|---|
201 | Accepted as pending; it is issued in the background. A replay returns the first document. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 201
dataobjectrequiredA fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
Example response · 201{
"data": {
"id": "doc_02y9O8rhJKVUXRvojdffcz",
"object": "document",
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"mode": "test",
"provider": "sandbox",
"regime": "GR",
"type": "1.1",
"number": null,
"status": "pending",
"stage": "queued",
"issue_date": "2026-10-10",
"currency": "EUR",
"net": 2500,
"vat": 435,
"gross": 2935,
"provider_reference": null,
"mydata": {
"mark": null,
"uid": null,
"qr_url": null,
"cancellation_mark": null
},
"ctc": null,
"lifecycle": null,
"lifecycle_history": [],
"error": null,
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
},
"original_document": null,
"replaces": null,
"corrects": null,
"replaced_by": null,
"corrected_by": null,
"credit_notes": [],
"amount_credited": {
"net": 0,
"gross": 0
},
"timeline": [
{
"id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
"type": "document.created",
"created": "2026-10-11T09:30:00.000Z"
}
],
"issued_at": null,
"created": "2026-10-11T09:30:00.000Z",
"updated": "2026-10-11T09:30:00.000Z"
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 201, 400, 404, 409, 413, 415, 422, 429 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 201, 400, 404, 409, 413, 415, 422, 429 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 201, 400, 404, 409, 413, 415, 422, 429 · At least 0
idempotent-replayedstringtrue when this answer replays an earlier request with the same Idempotency-Key (nothing new was created); absent on the request that created it.
With 201 · Always
truewww-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
validation_failed | 400 | No | Request validation failed. |
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
subscription_required | 403 | No | Issuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free. |
store_plan_live_only | 403 | No | This team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key. |
not_found | 404 | No | The requested resource was not found. |
idempotency_conflict | 409 | No | This idempotency key was already used with a different request. |
merchant_archived | 409 | No | This merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive). |
already_exists | 409 | No | An object with this identifier already exists; look it up instead of creating it again. |
payload_too_large | 413 | No | The request body is too large. |
unsupported_media_type | 415 | No | The request body must be JSON (Content-Type: application/json). |
not_supported | 422 | No | The provider or document type does not support this operation. |
regime_mismatch | 422 | No | The request's regime differs from its merchant's: a document, a setting or a provider of another country. |
supplier_mismatch | 422 | No | The document's supplier is not its merchant. |
connection_unavailable | 422 | No | The merchant has no usable connection to route this document to. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
Retrieve a document #
/api/v1/documents/{id}Returns a document with its status, its regime's identity once issued, and its timeline of events.
Greece
The identity is mydata, with the MARK.
France
It is number and ctc.
- Bearer API key
Path parameters
idstringrequiredThe document's id (doc_…).
Request
curlcurl -X GET 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz' \
-H "Authorization: Bearer $TALLIO_API_KEY"TypeScript SDKimport { createTallioClient } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await tallio.getDocument("doc_02y9O8rhJKVUXRvojdffcz");| Status | Description |
|---|---|
200 | The document. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 200
dataobjectrequiredA fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
Example response · 200{
"data": {
"id": "doc_02y9O8rhJKVUXRvojdffcz",
"object": "document",
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"mode": "test",
"provider": "sandbox",
"regime": "GR",
"type": "1.1",
"number": null,
"status": "issued",
"stage": null,
"issue_date": "2026-10-10",
"currency": "EUR",
"net": 2500,
"vat": 435,
"gross": 2935,
"provider_reference": "doc_02y9O8rhJKVUXRvojdffcz",
"mydata": {
"mark": "900000000000001",
"uid": "4E1F0A6C2B9D8E7F6A5B4C3D2E1F0A9B8C7D6E5F",
"qr_url": "https://sandbox.tallio.invalid/qr/900000000000001",
"cancellation_mark": null
},
"ctc": null,
"lifecycle": null,
"lifecycle_history": [],
"error": null,
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
},
"original_document": null,
"replaces": null,
"corrects": null,
"replaced_by": null,
"corrected_by": null,
"credit_notes": [],
"amount_credited": {
"net": 0,
"gross": 0
},
"timeline": [
{
"id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
"type": "document.created",
"created": "2026-10-11T09:30:00.000Z"
},
{
"id": "evt_02y9O8s1a8ymJqpmAy0nLe",
"type": "document.issued",
"created": "2026-10-11T09:30:02.000Z"
}
],
"issued_at": "2026-10-11T09:30:02.000Z",
"created": "2026-10-11T09:30:00.000Z",
"updated": "2026-10-11T09:30:02.000Z"
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 200, 404, 409, 429 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 200, 404, 409, 429 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 200, 404, 409, 429 · At least 0
www-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
not_found | 404 | No | The requested resource was not found. |
store_url_mismatch | 409 | No | This store key was granted to another store URL than the one this request names (Tallio-Store-Url). Connect this store again, or confirm that the store moved. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
Cancel a document #
/api/v1/documents/{id}/cancelWithdraws a document still queued, before anything was sent (it ends cancelled, never issued), or cancels an issued one where its regime allows it. The document gets document.cancelled. Anything else is 409 invalid_state: an issued document is then corrected with a credit note. A cancelled document is answered as it is.
Greece
An issued document is cancelled in myDATA where its provider can for its type and no credit note was made from it; it ends cancelled with mydata.cancellation_mark.
France
An issued document is never cancelled (French invoices are corrected, never deleted): 422 credit_required, so credit it with a 381 (POST /documents/{id}/credit_notes) or correct it (POST /documents/{id}/correct).
- Bearer API key
Path parameters
idstringrequiredThe document's id (doc_…).
Request
curlcurl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/cancel' \
-H "Authorization: Bearer $TALLIO_API_KEY"TypeScript SDKimport { createTallioClient, unwrap } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await unwrap(tallio.http.POST("/api/v1/documents/{id}/cancel", {
params: {
path: {
id: "doc_02y9O8rhJKVUXRvojdffcz",
},
},
}));| Status | Description |
|---|---|
200 | The cancelled document. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 200
dataobjectrequiredA fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
Example response · 200{
"data": {
"id": "doc_02y9O8rhJKVUXRvojdffcz",
"object": "document",
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"mode": "test",
"provider": "sandbox",
"regime": "GR",
"type": "1.1",
"number": null,
"status": "issued",
"stage": null,
"issue_date": "2026-10-10",
"currency": "EUR",
"net": 2500,
"vat": 435,
"gross": 2935,
"provider_reference": "doc_02y9O8rhJKVUXRvojdffcz",
"mydata": {
"mark": "900000000000001",
"uid": "4E1F0A6C2B9D8E7F6A5B4C3D2E1F0A9B8C7D6E5F",
"qr_url": "https://sandbox.tallio.invalid/qr/900000000000001",
"cancellation_mark": null
},
"ctc": null,
"lifecycle": null,
"lifecycle_history": [],
"error": null,
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
},
"original_document": null,
"replaces": null,
"corrects": null,
"replaced_by": null,
"corrected_by": null,
"credit_notes": [],
"amount_credited": {
"net": 0,
"gross": 0
},
"timeline": [
{
"id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
"type": "document.created",
"created": "2026-10-11T09:30:00.000Z"
},
{
"id": "evt_02y9O8s1a8ymJqpmAy0nLe",
"type": "document.issued",
"created": "2026-10-11T09:30:02.000Z"
}
],
"issued_at": "2026-10-11T09:30:02.000Z",
"created": "2026-10-11T09:30:00.000Z",
"updated": "2026-10-11T09:30:02.000Z"
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 200, 404, 409, 422, 429, 503 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 200, 404, 409, 422, 429, 503 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 200, 404, 409, 422, 429, 503 · At least 0
www-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
not_found | 404 | No | The requested resource was not found. |
invalid_state | 409 | No | The object's current state does not allow this request. |
credit_required | 422 | No | An issued document of this regime is never cancelled; credit it with a credit note (POST /documents/{id}/credit_notes) or correct it (POST /documents/{id}/correct). |
provider_rejected | 422 | No | The provider rejected the document. |
connection_unavailable | 422 | No | The merchant has no usable connection to route this document to. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
provider_unavailable | 503 | Yes | The provider is temporarily unavailable. |
Correct a document #
/api/v1/documents/{id}/correctReplaces an issued document with a corrected one, taking the original back as strategy says. Answers the corrected document, pending; it is issued once the original is cancelled or credited in full, and fails if that does not happen. The original gets document.corrected and names it in corrected_by; its credit note, if one is made, gets document.created and the original document.credited once it is issued. A document that is not issued, was partly credited, or already has a live correction is 409 invalid_state. A corrected document in another regime than its merchant's is 422 regime_mismatch, and one whose supplier is not its merchant 422 supplier_mismatch.
Greece
The original is cancelled in myDATA, or credited with a 5.1 or 11.4.
France
The original is credited in full with a 381 naming its number and date, under credit_note.number (strategy cancel is 422 credit_required; a credit-note number already used that year is 409 already_exists), then the corrected 380 or 386 is issued under its own number.
- Bearer API key
- Idempotency-Key required
Path parameters
idstringrequiredThe document's id (doc_…).
Header parameters
idempotency-keystringrequiredA key you choose (1-255 printable ASCII characters, e.g. a UUID) that makes a create request safe to retry: the same key with the same body returns the first result instead of creating a second document. Keys starting with
store_order:,store_refund:,correction:,correction_credit:,credit_note:are reserved for Tallio's own documents and refused.1 to 255 characters
Show patternHide pattern
^[\x21-\x7E]*$
Request by regime
regime: GR
A document issued in Greece (regime GR) through myDATA. Amounts are integer minor units.
Request body
documentobjectrequiredShow nested fields (13)Hide nested fields (13)
regimestringrequiredTax regime: GR, a document issued in Greece through myDATA.
Always
GRtypestringrequiredAADE myDATA document type: 1.1 sales invoice, 2.1 service invoice, 2.2 intra-EU service invoice (reverse charge), 2.3 third-country service invoice, 5.1 credit note (associated), 5.2 credit note (non-associated), 11.1 retail sales receipt, 11.2 retail service receipt, 11.4 retail credit note.
One of:
1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3issue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency: EUR, the only one Greek documents take.
Always
EURsupplierobjectrequiredThe merchant issuing the document, registered in Greece: its tax_id and establishment must be the merchant's own (422 supplier_mismatch).
Show nested fields (7)Hide nested fields (7)
tax_idoneOfrequiredThe merchant's ΑΦΜ: country GR, scheme afm.
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 1 of 1
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 1 of 1 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 1 of 1 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 1 of 1
Show patternHide pattern
^\d{9}$
namestringLegal name. Optional: AADE holds it, and adapters drop it when they send straight to myDATA, which rejects it.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address.
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
establishmentobjectA branch registered with AADE (Greece).
Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
customerobjectThe customer. Required for 1.1, 2.1, 2.2, 2.3, 5.1, 5.2 (Greek, country GR, on 1.1 and 2.1; in another EU member state on 2.2; outside the EU on 2.3); not allowed on the retail types (11.1, 11.2, 11.4).
Show nested fields (9)Hide nested fields (9)
tax_idoneOfrequiredTax registration: the ΑΦΜ for a Greek party (scheme afm, country GR), the whole VAT number for one in another EU member state (scheme vat, prefix included), the national tax number elsewhere (scheme tin).
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 1 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 1 of 3 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 1 of 3 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 1 of 3
Show patternHide pattern
^\d{9}$
tax_idobjectrequiredVAT registration in an EU member state.
Option 2 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the VAT registration: GR for Greece (not the VAT prefix EL).
Option 2 of 3 · One of:
AT,BE,BG,CY,CZ,DE,DK,EE,ES,FI,FR,GR,HR,HU,IE,IT,LT,LU,LV,MT,NL,PL,PT,RO,SE,SI,SK,XIschemestringrequiredIdentifier scheme: vat.
Option 2 of 3 · Always
vatcodestringrequiredThe whole VAT number, prefix included (EL for Greece). A request is refused unless the part after the prefix has its country's format: AT: U, then 8 digits; BE: 10 digits, the first 0 or 1; BG: 9 or 10 digits; CY: 8 digits, then a letter; CZ: 8 to 10 digits; DE: 9 digits; DK: 8 digits; EE: 9 digits; ES: a letter or digit, 7 digits, then a letter or digit; FI: 8 digits; FR: a 2-character key (digits, or letters other than I and O), then the 9-digit SIREN; EL: the 9-digit ΑΦΜ; HR: 11 digits; HU: 8 digits; IE: a digit, then a letter, digit, + or *, then 5 digits, then 1 or 2 letters; IT: 11 digits; LT: 9 or 12 digits; LU: 8 digits; LV: 11 digits; MT: 8 digits; NL: 9 digits, B, then 2 digits; PL: 10 digits; PT: 9 digits; RO: 2 to 10 digits; SE: 12 digits; SI: 8 digits; SK: 10 digits; XI: 9 or 12 digits, or GD or HA then 3 digits.
Option 2 of 3
Show patternHide pattern
^[A-Z]{2}[0-9A-Z+*]{2,12}$
tax_idobjectrequiredAnother national tax number, for a registration no other scheme covers.
Option 3 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the registration: GR for Greece (not the VAT prefix EL).
Option 3 of 3
Show patternHide pattern
^[A-Z]{2}$schemestringrequiredIdentifier scheme: tin.
Option 3 of 3 · Always
tincodestringrequiredNational tax number: 2 to 30 letters and digits.
Option 3 of 3
Show patternHide pattern
^[0-9A-Z]{2,30}$
namestringLegal name. Required outside Greece. Optional for Greek parties, whose name AADE holds; adapters drop it when they send a Greek party straight to myDATA, which rejects it.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address. Required outside Greece.
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
establishmentobjectA branch registered with AADE (Greece).
Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
precedingobject[]The documents a credit note corrects, by MARK. Required for 5.1; required for 11.4 unless special_category is 13; not allowed on other types.
1 to 1000 items
Each item: A document this credit note corrects, by its MARK.
Show nested fields (1)Hide nested fields (1)
markstringrequiredMARK (AADE registration number) of an issued document.
Show patternHide pattern
^[1-9]\d{0,18}$
special_categorynumberAADE special invoice category. Only 13 (difficulty correlating) is supported, and only on 11.4: the retail receipts it credits cannot be identified, so it carries no preceding.
Always
13linesobject[]requiredThe document's lines, from 1 to 1000.
1 to 1000 items
Each item: One line. Its net amount is quantity × unit_price, rounded half up to the cent, at most 1000000000000000.
Show nested fields (6)Hide nested fields (6)
descriptionstringrequiredWhat was sold, as printed on the document.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$quantitystringrequiredQuantity, a decimal string below 1000000000 with up to 3 decimals, greater than 0, e.g. "2" or "1.5" (kg).
Show patternHide pattern
^(0|[1-9]\d{0,8})(\.\d{1,3})?$unitstringUnit the quantity is measured in: piece (myDATA 1), kg (myDATA 2), litre (myDATA 3), metre (myDATA 4), square_metre (myDATA 5), cubic_metre (myDATA 6).
One of:
piece,kg,litre,metre,square_metre,cubic_metreunit_priceintegerrequiredNet price per unit in minor units (cents), at most 100000000000.
From 0 to 100000000000
vatobjectrequiredThe line's Greek VAT: its category, which fixes the rate, and the exemption cause of an exempt line.
Show nested fields (2)Hide nested fields (2)
categorystringrequiredGreek VAT category of the line, which fixes its rate: standard 24% (myDATA 1), reduced 13% (myDATA 2), super_reduced 6% (myDATA 3), standard_island 17% (myDATA 4), reduced_island 9% (myDATA 5), super_reduced_island 4% (myDATA 6), exempt 0% (myDATA 7). An exempt line needs an exemption.
One of:
standard,reduced,super_reduced,standard_island,reduced_island,super_reduced_island,exemptexemptionintegermyDATA VAT exemption cause (1-31), e.g. 14 for article 33 of the VAT code (Law 5144/2024). Required on exempt lines only.
From 1 to 31
income_classificationobjectExplicit myDATA income classification for the line. Omit it to have Tallio apply and report a default.
Show nested fields (2)Hide nested fields (2)
categorystringrequiredmyDATA income classification category, e.g. category1_1 sale of goods, category1_2 sale of products, category1_3 provision of services, category1_95 other income information.
One of:
category1_1,category1_2,category1_3,category1_4,category1_5,category1_6,category1_7,category1_8,category1_9,category1_10,category1_95typestringE3 income type. Required, except that category1_95 takes none or one of E3_596, E3_597.
One of:
E3_106,E3_205,E3_210,E3_305,E3_310,E3_318,E3_561_001,E3_561_002,E3_561_003,E3_561_004,E3_561_005,E3_561_006,E3_561_007,E3_562,E3_563,E3_564,E3_565,E3_566,E3_567,E3_568,E3_570,E3_595,E3_596,E3_597,E3_880_001,E3_880_002,E3_880_003,E3_880_004,E3_881_001,E3_881_002,E3_881_003,E3_881_004,E3_598_001,E3_598_003
paymentsobject[]How the document is paid, up to 10 entries.
1 to 10 items
Each item: One way the document is paid.
Show nested fields (2)Hide nested fields (2)
methodstringrequiredHow the document is paid: domestic_account (myDATA 1), foreign_account (myDATA 2), cash (myDATA 3), cheque (myDATA 4), on_credit (myDATA 5), web_banking (myDATA 6), pos (myDATA 7), iris (myDATA 8).
One of:
domestic_account,foreign_account,cash,cheque,on_credit,web_banking,pos,irisamountintegerrequiredAmount paid this way, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
paidbooleanWhether the document is already settled when issued. Only on 1.1, 2.1, 2.2, 2.3, 11.1, 11.2, and never true with an on_credit payment. Omitted: true on a retail receipt (11.1, 11.2), paid at the sale, unless a payment is on_credit; false otherwise. A provider that records payment (Oxygen) marks the document paid, so it does not print as unpaid; myDATA itself carries no such flag.
totalsobjectrequiredDocument totals. Tallio rejects totals that do not add up.
Show nested fields (3)Hide nested fields (3)
netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
notesstringFree text printed on the document, 1 to 500 characters, by providers that print one (Wrapp: its notes); myDATA itself has no such field. Tallio adds no wording of its own: on a 2.2 put the reverse-charge statement here (Αντίστροφη επιβάρυνση).
1 to 500 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
strategystringHow the original is taken back: cancel (cancelled in myDATA, where its provider can for its type), credit (credited in full with a credit note; the correction is issued once that is) or auto, the default (cancelled where possible, else credited).
Greece
All three apply.
France
An issued invoice is never cancelled: auto and credit both credit it with a 381, and cancel is 422 credit_required.
One of:
auto,cancel,credit· Default:autocredit_noteobjectGreece
Not allowed (myDATA numbers and dates it).
France
The 381 credit note that takes the original back in full, as for POST /documents/{id}/credit_notes. Required for an FR original not yet credited in full.
Show nested fields (3)Hide nested fields (3)
numberstringrequiredThe credit note's own number (BT-1), which you assign in your credit-note sequence; not the corrected invoice's number.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringThe credit note's issue date (BT-2), YYYY-MM-DD, at most today in France and not before the original's; today in France when omitted.
Format:
datecustomerobjectThe original's customer, a French party with its SIREN, needed only once Tallio no longer keeps the original's request body; while it does, the original's customer is used and this is ignored.
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: siren.
Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: vat.
Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
external_referencestringYour own reference for the document, e.g. an order number: 1 to 200 characters, trimmed. Not unique; list documents by it to find them.
Up to 200 characters
Show patternHide pattern
\SmetadataobjectUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
Request
JSON{
"document": {
"regime": "GR",
"type": "1.1",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "555555559"
}
},
"customer": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "666666662"
},
"name": "Kafeneio Lemonia IKE"
},
"lines": [
{
"description": "Olive oil, bulk",
"quantity": "1.5",
"unit": "litre",
"unit_price": 1000,
"vat": {
"category": "reduced"
},
"income_classification": {
"category": "category1_1",
"type": "E3_561_001"
}
},
{
"description": "Delivery",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "standard"
}
}
],
"payments": [
{
"method": "cash",
"amount": 2935
}
],
"totals": {
"net": 2500,
"vat": 435,
"gross": 2935
}
},
"strategy": "auto",
"external_reference": "#1042-corrected"
}curlcurl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/correct' \
-H "Authorization: Bearer $TALLIO_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"document": {
"regime": "GR",
"type": "1.1",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "555555559"
}
},
"customer": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "666666662"
},
"name": "Kafeneio Lemonia IKE"
},
"lines": [
{
"description": "Olive oil, bulk",
"quantity": "1.5",
"unit": "litre",
"unit_price": 1000,
"vat": {
"category": "reduced"
},
"income_classification": {
"category": "category1_1",
"type": "E3_561_001"
}
},
{
"description": "Delivery",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "standard"
}
}
],
"payments": [
{
"method": "cash",
"amount": 2935
}
],
"totals": {
"net": 2500,
"vat": 435,
"gross": 2935
}
},
"strategy": "auto",
"external_reference": "#1042-corrected"
}'TypeScript SDKimport { createTallioClient, unwrap } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await unwrap(tallio.http.POST("/api/v1/documents/{id}/correct", {
params: {
path: {
id: "doc_02y9O8rhJKVUXRvojdffcz",
},
},
body: {
document: {
regime: "GR",
type: "1.1",
issue_date: "2026-10-10",
currency: "EUR",
supplier: {
tax_id: {
country: "GR",
scheme: "afm",
code: "555555559",
},
},
customer: {
tax_id: {
country: "GR",
scheme: "afm",
code: "666666662",
},
name: "Kafeneio Lemonia IKE",
},
lines: [
{
description: "Olive oil, bulk",
quantity: "1.5",
unit: "litre",
unit_price: 1000,
vat: {
category: "reduced",
},
income_classification: {
category: "category1_1",
type: "E3_561_001",
},
},
{
description: "Delivery",
quantity: "1",
unit_price: 1000,
vat: {
category: "standard",
},
},
],
payments: [
{
method: "cash",
amount: 2935,
},
],
totals: {
net: 2500,
vat: 435,
gross: 2935,
},
},
strategy: "auto",
external_reference: "#1042-corrected",
},
}));regime: FR
A document issued in France (regime FR). Amounts are integer hundredths (cents) of its currency, whatever the currency.
Request body
documentobjectrequiredShow nested fields (19)Hide nested fields (19)
regimestringrequiredTax regime: FR, an e-invoice issued in France through a plateforme agréée.
Always
FRtypestringrequiredUNTDID 1001 document type: 380 commercial invoice, 381 credit note, 384 corrective invoice, 386 prepayment (deposit) invoice.
One of:
380,381,384,386numberstringrequiredThe invoice number you assign (BT-1): 1 to 35 letters, digits and - + _ /, unique for the supplier's SIREN within the year.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts (BT-5), e.g. EUR, one with cents (JPY, KWD and the like are refused). Not EUR: vat_total_eur is required.
Show patternHide pattern
^[A-Z]{3}$vat_total_eurintegerThe VAT total in EUR (BT-111), in euro cents, at most 1000000000000000: required when currency is not EUR, not allowed when it is.
From 0 to 1000000000000000
supplierobjectrequiredThe merchant issuing the invoice, established in France: its legal_id, tax_id and establishment must be the merchant's own (422 supplier_mismatch).
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: siren.
Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: vat.
Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
customerobjectrequiredThe business customer; its SIREN is a mandatory mention.
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: siren.
Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: vat.
Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
precedingobject[]The invoices this one refers to: one or more on a 381, exactly one on a 384, none on 380 or 386.
1 to 1000 items
Each item: An invoice this document refers to, by its number and issue date.
Show nested fields (2)Hide nested fields (2)
numberstringrequiredThe preceding invoice's number (BT-25): 1 to 35 letters, digits and - + _ /.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringrequiredThe preceding invoice's issue date (BT-26), YYYY-MM-DD.
Format:
date
operationstringrequiredWhat the invoice covers: goods, services or mixed (both). A mandatory mention in France; no default.
One of:
goods,services,mixedvat_on_debitsbooleanThe supplier pays VAT on debits (BT-8), a mandatory mention when chosen. Default false.
Default:
falsedeliveryobjectThe delivery, a mandatory mention when its address differs from the customer's.
Show nested fields (1)Hide nested fields (1)
addressobjectrequiredWhere the goods are delivered (BG-15).
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
legal_mentionsobjectThe payment mentions French law requires on a B2B invoice, each 1 to 500 characters. A mention left out is written with its statutory default, and the preview warns.
Show nested fields (3)Hide nested fields (3)
recovery_feestringThe fixed recovery fee owed on late payment (note PMT). Omitted, the statutory 40 € mention is written.
1 to 500 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$late_payment_penaltiesstringThe late-payment penalty terms (note PMD). Omitted, the statutory default is written: the ECB refinancing rate plus 10 points.
1 to 500 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$early_payment_discountstringThe early-payment discount terms, or that there is none (note AAB). Omitted, "no discount" is written.
1 to 500 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
buyer_referencestringThe reference the buyer asked to be quoted (BT-10), 1 to 100 characters. For a public-sector buyer on Chorus Pro, its service code (code service), required when the buyer's structure requires one.
1 to 100 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$purchase_orderstringThe buyer's purchase order reference (BT-13), 1 to 50 characters. For a public-sector buyer on Chorus Pro, its engagement number (numéro d'engagement), required when the buyer's structure requires one.
1 to 50 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$linesobject[]requiredThe invoice's lines, from 1 to 1000.
1 to 1000 items
Each item: One line. Its net amount is quantity × unit_price, rounded half up to the cent, at most 1000000000000000.
Show nested fields (5)Hide nested fields (5)
descriptionstringrequiredWhat was sold, as printed on the document.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$quantitystringrequiredQuantity, a decimal string below 1000000000 with up to 3 decimals, greater than 0, e.g. "2" or "1.5" (kg).
Show patternHide pattern
^(0|[1-9]\d{0,8})(\.\d{1,3})?$unitstringUnit the quantity is measured in: piece (Rec 20 H87), kg (Rec 20 KGM), litre (Rec 20 LTR), metre (Rec 20 MTR), square_metre (Rec 20 MTK), cubic_metre (Rec 20 MTQ), hour (Rec 20 HUR), day (Rec 20 DAY).
One of:
piece,kg,litre,metre,square_metre,cubic_metre,hour,dayunit_priceintegerrequiredNet price per unit in minor units (cents), at most 100000000000.
From 0 to 100000000000
vatobjectrequiredThe line's VAT: its category, its rate and, on an untaxed line, why.
Show nested fields (3)Hide nested fields (3)
categorystringrequiredUNCL 5305 VAT category: S standard rate, Z zero rated, E exempt, AE reverse charge, K intra-EU supply, G export outside the EU, O outside the scope of VAT.
One of:
S,Z,E,AE,K,G,OpercentstringrequiredVAT rate as a decimal percent string, one of France's rates: 0, 0.9, 1.05, 1.75, 2.1, 5.5, 7, 8.5, 9.2, 9.6, 10, 13, 19.6, 20, 20.6.
One of:
0,7,10,13,20,0.9,1.05,1.75,2.1,5.5,8.5,9.2,9.6,19.6,20.6exemptionobjectWhy the line is not taxed: a VATEX code and, optionally, the reason as text. Required on category E.
Show nested fields (2)Hide nested fields (2)
codestringrequiredVATEX exemption reason code (BT-121), e.g. VATEX-EU-IC (intra-EU supply), VATEX-FR-FRANCHISE (franchise scheme, CGI art. 293 B) or VATEX-FR-CNWVAT (credit notes only). One of: VATEX-EU-79-C, VATEX-EU-132, VATEX-EU-132-1A, VATEX-EU-132-1B, VATEX-EU-132-1C, VATEX-EU-132-1D, VATEX-EU-132-1E, VATEX-EU-132-1F, VATEX-EU-132-1FA, VATEX-EU-132-1G, VATEX-EU-132-1H, VATEX-EU-132-1I, VATEX-EU-132-1J, VATEX-EU-132-1K, VATEX-EU-132-1L, VATEX-EU-132-1M, VATEX-EU-132-1N, VATEX-EU-132-1O, VATEX-EU-132-1P, VATEX-EU-132-1Q, VATEX-EU-143, VATEX-EU-143-1A, VATEX-EU-143-1B, VATEX-EU-143-1C, VATEX-EU-143-1D, VATEX-EU-143-1E, VATEX-EU-143-1F, VATEX-EU-143-1FA, VATEX-EU-143-1G, VATEX-EU-143-1H, VATEX-EU-143-1I, VATEX-EU-143-1J, VATEX-EU-143-1K, VATEX-EU-143-1L, VATEX-EU-148, VATEX-EU-148-A, VATEX-EU-148-B, VATEX-EU-148-C, VATEX-EU-148-D, VATEX-EU-148-E, VATEX-EU-148-F, VATEX-EU-148-G, VATEX-EU-151, VATEX-EU-151-1A, VATEX-EU-151-1AA, VATEX-EU-151-1B, VATEX-EU-151-1C, VATEX-EU-151-1D, VATEX-EU-151-1E, VATEX-EU-309, VATEX-EU-AE, VATEX-EU-D, VATEX-EU-F, VATEX-EU-G, VATEX-EU-I, VATEX-EU-IC, VATEX-EU-J, VATEX-EU-O, VATEX-FR-FRANCHISE, VATEX-FR-CNWVAT, VATEX-FR-CGI261-1, VATEX-FR-CGI261-2, VATEX-FR-CGI261-3, VATEX-FR-CGI261-4, VATEX-FR-CGI261-5, VATEX-FR-CGI261-7, VATEX-FR-CGI261-8, VATEX-FR-CGI261A, VATEX-FR-CGI261B, VATEX-FR-CGI261C-1, VATEX-FR-CGI261C-2, VATEX-FR-CGI261C-3, VATEX-FR-CGI261D-1, VATEX-FR-CGI261D-1BIS, VATEX-FR-CGI261D-2, VATEX-FR-CGI261D-3, VATEX-FR-CGI261D-4, VATEX-FR-CGI261E-1, VATEX-FR-CGI261E-2, VATEX-FR-CGI275, VATEX-FR-CGI277A, VATEX-FR-298SEXDECIESA, VATEX-FR-AE.
One of:
VATEX-EU-79-C,VATEX-EU-132,VATEX-EU-132-1A,VATEX-EU-132-1B,VATEX-EU-132-1C,VATEX-EU-132-1D,VATEX-EU-132-1E,VATEX-EU-132-1F,VATEX-EU-132-1FA,VATEX-EU-132-1G,VATEX-EU-132-1H,VATEX-EU-132-1I,VATEX-EU-132-1J,VATEX-EU-132-1K,VATEX-EU-132-1L,VATEX-EU-132-1M,VATEX-EU-132-1N,VATEX-EU-132-1O,VATEX-EU-132-1P,VATEX-EU-132-1Q,VATEX-EU-143,VATEX-EU-143-1A,VATEX-EU-143-1B,VATEX-EU-143-1C,VATEX-EU-143-1D,VATEX-EU-143-1E,VATEX-EU-143-1F,VATEX-EU-143-1FA,VATEX-EU-143-1G,VATEX-EU-143-1H,VATEX-EU-143-1I,VATEX-EU-143-1J,VATEX-EU-143-1K,VATEX-EU-143-1L,VATEX-EU-148,VATEX-EU-148-A,VATEX-EU-148-B,VATEX-EU-148-C,VATEX-EU-148-D,VATEX-EU-148-E,VATEX-EU-148-F,VATEX-EU-148-G,VATEX-EU-151,VATEX-EU-151-1A,VATEX-EU-151-1AA,VATEX-EU-151-1B,VATEX-EU-151-1C,VATEX-EU-151-1D,VATEX-EU-151-1E,VATEX-EU-309,VATEX-EU-AE,VATEX-EU-D,VATEX-EU-F,VATEX-EU-G,VATEX-EU-I,VATEX-EU-IC,VATEX-EU-J,VATEX-EU-O,VATEX-FR-FRANCHISE,VATEX-FR-CNWVAT,VATEX-FR-CGI261-1,VATEX-FR-CGI261-2,VATEX-FR-CGI261-3,VATEX-FR-CGI261-4,VATEX-FR-CGI261-5,VATEX-FR-CGI261-7,VATEX-FR-CGI261-8,VATEX-FR-CGI261A,VATEX-FR-CGI261B,VATEX-FR-CGI261C-1,VATEX-FR-CGI261C-2,VATEX-FR-CGI261C-3,VATEX-FR-CGI261D-1,VATEX-FR-CGI261D-1BIS,VATEX-FR-CGI261D-2,VATEX-FR-CGI261D-3,VATEX-FR-CGI261D-4,VATEX-FR-CGI261E-1,VATEX-FR-CGI261E-2,VATEX-FR-CGI275,VATEX-FR-CGI277A,VATEX-FR-298SEXDECIESA,VATEX-FR-AEreasonstringThe exemption reason as text (BT-120), printed beside the code.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
paymentsobject[]How the invoice is paid, up to 10 entries.
1 to 10 items
Each item: One way the invoice is paid.
Show nested fields (2)Hide nested fields (2)
methodstringrequiredHow the invoice is paid: cash (UNCL 4461 10), cheque (UNCL 4461 20), credit_transfer (UNCL 4461 30), card (UNCL 4461 48), direct_debit (UNCL 4461 49), sepa_credit_transfer (UNCL 4461 58), sepa_direct_debit (UNCL 4461 59).
One of:
cash,cheque,credit_transfer,card,direct_debit,sepa_credit_transfer,sepa_direct_debitamountintegerrequiredAmount paid this way, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
payee_accountobjectThe account a credit transfer pays into (BG-17). Sent with each credit_transfer or sepa_credit_transfer payment, and unused without one; without it, those payments are not written as payment means.
Show nested fields (3)Hide nested fields (3)
ibanstringrequiredThe account's IBAN (BT-84), upper case without spaces; its check digits are verified.
Show patternHide pattern
^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$bicstringThe bank's BIC (BT-86), 8 or 11 characters.
Show patternHide pattern
^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}(?:[A-Z0-9]{3})?$namestringThe account's name (BT-85), 1 to 70 characters.
1 to 70 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
totalsobjectrequiredDocument totals. Tallio rejects totals that do not add up.
Show nested fields (3)Hide nested fields (3)
netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
strategystringHow the original is taken back: cancel (cancelled in myDATA, where its provider can for its type), credit (credited in full with a credit note; the correction is issued once that is) or auto, the default (cancelled where possible, else credited).
Greece
All three apply.
France
An issued invoice is never cancelled: auto and credit both credit it with a 381, and cancel is 422 credit_required.
One of:
auto,cancel,credit· Default:autocredit_noteobjectGreece
Not allowed (myDATA numbers and dates it).
France
The 381 credit note that takes the original back in full, as for POST /documents/{id}/credit_notes. Required for an FR original not yet credited in full.
Show nested fields (3)Hide nested fields (3)
numberstringrequiredThe credit note's own number (BT-1), which you assign in your credit-note sequence; not the corrected invoice's number.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringThe credit note's issue date (BT-2), YYYY-MM-DD, at most today in France and not before the original's; today in France when omitted.
Format:
datecustomerobjectThe original's customer, a French party with its SIREN, needed only once Tallio no longer keeps the original's request body; while it does, the original's customer is used and this is ignored.
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: siren.
Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: vat.
Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
external_referencestringYour own reference for the document, e.g. an order number: 1 to 200 characters, trimmed. Not unique; list documents by it to find them.
Up to 200 characters
Show patternHide pattern
\SmetadataobjectUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
Request
JSON{
"document": {
"regime": "FR",
"type": "380",
"number": "F2026-0043",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"name": "Huilerie Provençale SAS",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "555555556"
},
"tax_id": {
"country": "FR",
"scheme": "vat",
"code": "FR70555555556"
}
},
"customer": {
"name": "Épicerie Lemoine SARL",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "666666664"
}
},
"operation": "goods",
"vat_on_debits": false,
"lines": [
{
"description": "Huile d'olive, vrac",
"quantity": "2",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "5.5"
}
},
{
"description": "Livraison",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "20"
}
}
],
"totals": {
"net": 3000,
"vat": 310,
"gross": 3310
}
},
"strategy": "auto",
"credit_note": {
"number": "AV2026-0007"
},
"external_reference": "#2087-corrected"
}curlcurl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/correct' \
-H "Authorization: Bearer $TALLIO_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{
"document": {
"regime": "FR",
"type": "380",
"number": "F2026-0043",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"name": "Huilerie Provençale SAS",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "555555556"
},
"tax_id": {
"country": "FR",
"scheme": "vat",
"code": "FR70555555556"
}
},
"customer": {
"name": "Épicerie Lemoine SARL",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "666666664"
}
},
"operation": "goods",
"vat_on_debits": false,
"lines": [
{
"description": "Huile d'\''olive, vrac",
"quantity": "2",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "5.5"
}
},
{
"description": "Livraison",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "20"
}
}
],
"totals": {
"net": 3000,
"vat": 310,
"gross": 3310
}
},
"strategy": "auto",
"credit_note": {
"number": "AV2026-0007"
},
"external_reference": "#2087-corrected"
}'TypeScript SDKimport { createTallioClient, unwrap } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await unwrap(tallio.http.POST("/api/v1/documents/{id}/correct", {
params: {
path: {
id: "doc_02y9O8rhJKVUXRvojdffcz",
},
},
body: {
document: {
regime: "FR",
type: "380",
number: "F2026-0043",
issue_date: "2026-10-10",
currency: "EUR",
supplier: {
name: "Huilerie Provençale SAS",
legal_id: {
country: "FR",
scheme: "siren",
code: "555555556",
},
tax_id: {
country: "FR",
scheme: "vat",
code: "FR70555555556",
},
},
customer: {
name: "Épicerie Lemoine SARL",
legal_id: {
country: "FR",
scheme: "siren",
code: "666666664",
},
},
operation: "goods",
vat_on_debits: false,
lines: [
{
description: "Huile d'olive, vrac",
quantity: "2",
unit_price: 1000,
vat: {
category: "S",
percent: "5.5",
},
},
{
description: "Livraison",
quantity: "1",
unit_price: 1000,
vat: {
category: "S",
percent: "20",
},
},
],
totals: {
net: 3000,
vat: 310,
gross: 3310,
},
},
strategy: "auto",
credit_note: {
number: "AV2026-0007",
},
external_reference: "#2087-corrected",
},
}));| Status | Description |
|---|---|
201 | The corrected document, pending. A replay returns the first one. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 201
dataobjectrequiredA fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
Example response · 201{
"data": {
"id": "doc_02y9O8rhJKVUXRvojdffcz",
"object": "document",
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"mode": "test",
"provider": "sandbox",
"regime": "GR",
"type": "1.1",
"number": null,
"status": "pending",
"stage": "queued",
"issue_date": "2026-10-10",
"currency": "EUR",
"net": 2500,
"vat": 435,
"gross": 2935,
"provider_reference": null,
"mydata": {
"mark": null,
"uid": null,
"qr_url": null,
"cancellation_mark": null
},
"ctc": null,
"lifecycle": null,
"lifecycle_history": [],
"error": null,
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
},
"original_document": null,
"replaces": null,
"corrects": null,
"replaced_by": null,
"corrected_by": null,
"credit_notes": [],
"amount_credited": {
"net": 0,
"gross": 0
},
"timeline": [
{
"id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
"type": "document.created",
"created": "2026-10-11T09:30:00.000Z"
}
],
"issued_at": null,
"created": "2026-10-11T09:30:00.000Z",
"updated": "2026-10-11T09:30:00.000Z"
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 201, 400, 404, 409, 413, 415, 422, 429, 503 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 201, 400, 404, 409, 413, 415, 422, 429, 503 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 201, 400, 404, 409, 413, 415, 422, 429, 503 · At least 0
idempotent-replayedstringtrue when this answer replays an earlier request with the same Idempotency-Key (nothing new was created); absent on the request that created it.
With 201 · Always
truewww-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
validation_failed | 400 | No | Request validation failed. |
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
subscription_required | 403 | No | Issuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free. |
store_plan_live_only | 403 | No | This team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key. |
not_found | 404 | No | The requested resource was not found. |
idempotency_conflict | 409 | No | This idempotency key was already used with a different request. |
invalid_state | 409 | No | The object's current state does not allow this request. |
merchant_archived | 409 | No | This merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive). |
already_exists | 409 | No | An object with this identifier already exists; look it up instead of creating it again. |
payload_too_large | 413 | No | The request body is too large. |
unsupported_media_type | 415 | No | The request body must be JSON (Content-Type: application/json). |
credit_required | 422 | No | An issued document of this regime is never cancelled; credit it with a credit note (POST /documents/{id}/credit_notes) or correct it (POST /documents/{id}/correct). |
balance_exceeded | 422 | No | The credit notes of this document would exceed its net amount. |
not_supported | 422 | No | The provider or document type does not support this operation. |
regime_mismatch | 422 | No | The request's regime differs from its merchant's: a document, a setting or a provider of another country. |
supplier_mismatch | 422 | No | The document's supplier is not its merchant. |
connection_unavailable | 422 | No | The merchant has no usable connection to route this document to. |
provider_rejected | 422 | No | The provider rejected the document. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
provider_unavailable | 503 | Yes | The provider is temporarily unavailable. |
Credit a document #
/api/v1/documents/{id}/credit_notesCredits an issued document, in full or in part (lines or amount), with the original's lines and parties, issued through the same provider. Answers the credit note, pending; the original carries it in credit_notes and amount_credited at once, and gets document.credited once it is issued. Credits beyond what is left of the original are 422 balance_exceeded; a document that is not issued or cannot be credited is 409 invalid_state.
Greece
A 5.1 credit note for an invoice (1.1, 2.1), an 11.4 for a retail receipt (11.1, 11.2), naming the original's MARK. For a 5.2 (a credit note with no original in myDATA), POST /documents.
France
A 381 for an invoice (380, 384, 386), naming the original's number and issue date, under the number you give in number (a number already used that year is 409 already_exists), with the original's payments, payee_account, buyer_reference and purchase_order unless the body gives its own.
- Bearer API key
- Idempotency-Key required
Path parameters
idstringrequiredThe document's id (doc_…).
Header parameters
idempotency-keystringrequiredA key you choose (1-255 printable ASCII characters, e.g. a UUID) that makes a create request safe to retry: the same key with the same body returns the first result instead of creating a second document. Keys starting with
store_order:,store_refund:,correction:,correction_credit:,credit_note:are reserved for Tallio's own documents and refused.1 to 255 characters
Show patternHide pattern
^[\x21-\x7E]*$
Request body
linesobject[]Credit part of the document, line by line: each line keeps the original's description, unit price, VAT category and classification. Not with amount. The whole document when both are omitted.
1 or more items
Each item: A line of the original to credit.
Show nested fields (2)Hide nested fields (2)
lineintegerrequiredThe original's line to credit, by position: 1 for its first line.
From 1 to 1000
quantitystringHow much of the line's quantity to credit, at its unit price; the whole line when omitted. At most the line's own quantity.
Show patternHide pattern
^(0|[1-9]\d{0,8})(\.\d{1,3})?$
amountintegerCredit part of the document as one amount, in minor units including VAT (what the customer gets back). Only for a document whose lines share one VAT rate (GR: also one exemption cause and income classification); the credit note has one line, described like the original's first. Not with lines.
From 1 to 1250000000000000
customeranyOfThe customer, needed only once Tallio no longer keeps the original's request body; while it does, the original's customer is used and this is ignored.
Greece
For a 5.1, a party with its tax_id.
France
A party with its SIREN.
customerobjectA business established in France, identified by its SIREN.
Option 1 of 2
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
Option 1 of 2 · 1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Option 1 of 2
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Option 1 of 2 · Always
FRschemestringrequiredIdentifier scheme: siren.
Option 1 of 2 · Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Option 1 of 2
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Option 1 of 2
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Option 1 of 2 · Always
FRschemestringrequiredIdentifier scheme: vat.
Option 1 of 2 · Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Option 1 of 2
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Option 1 of 2
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Option 1 of 2 · Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Option 1 of 2
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Option 1 of 2
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Option 1 of 2 · Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
Option 1 of 2 · 1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Option 1 of 2
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
Option 1 of 2 · 1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
Option 1 of 2 · 1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
Option 1 of 2 · 1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
Option 1 of 2 · 1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Option 1 of 2
Show patternHide pattern
^[A-Z]{2}$
customerobjectA business taking part in a Greek document.
Option 2 of 2
Show nested fields (10)Hide nested fields (10)
tax_idoneOfrequiredTax registration: the ΑΦΜ for a Greek party (scheme afm, country GR), the whole VAT number for one in another EU member state (scheme vat, prefix included), the national tax number elsewhere (scheme tin).
Option 2 of 2
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 2 of 2 › Option 1 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 2 of 2 › Option 1 of 3 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 2 of 2 › Option 1 of 3 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 2 of 2 › Option 1 of 3
Show patternHide pattern
^\d{9}$
tax_idobjectrequiredVAT registration in an EU member state.
Option 2 of 2 › Option 2 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the VAT registration: GR for Greece (not the VAT prefix EL).
Option 2 of 2 › Option 2 of 3 · One of:
AT,BE,BG,CY,CZ,DE,DK,EE,ES,FI,FR,GR,HR,HU,IE,IT,LT,LU,LV,MT,NL,PL,PT,RO,SE,SI,SK,XIschemestringrequiredIdentifier scheme: vat.
Option 2 of 2 › Option 2 of 3 · Always
vatcodestringrequiredThe whole VAT number, prefix included (EL for Greece). A request is refused unless the part after the prefix has its country's format: AT: U, then 8 digits; BE: 10 digits, the first 0 or 1; BG: 9 or 10 digits; CY: 8 digits, then a letter; CZ: 8 to 10 digits; DE: 9 digits; DK: 8 digits; EE: 9 digits; ES: a letter or digit, 7 digits, then a letter or digit; FI: 8 digits; FR: a 2-character key (digits, or letters other than I and O), then the 9-digit SIREN; EL: the 9-digit ΑΦΜ; HR: 11 digits; HU: 8 digits; IE: a digit, then a letter, digit, + or *, then 5 digits, then 1 or 2 letters; IT: 11 digits; LT: 9 or 12 digits; LU: 8 digits; LV: 11 digits; MT: 8 digits; NL: 9 digits, B, then 2 digits; PL: 10 digits; PT: 9 digits; RO: 2 to 10 digits; SE: 12 digits; SI: 8 digits; SK: 10 digits; XI: 9 or 12 digits, or GD or HA then 3 digits.
Option 2 of 2 › Option 2 of 3
Show patternHide pattern
^[A-Z]{2}[0-9A-Z+*]{2,12}$
tax_idobjectrequiredAnother national tax number, for a registration no other scheme covers.
Option 2 of 2 › Option 3 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the registration: GR for Greece (not the VAT prefix EL).
Option 2 of 2 › Option 3 of 3
Show patternHide pattern
^[A-Z]{2}$schemestringrequiredIdentifier scheme: tin.
Option 2 of 2 › Option 3 of 3 · Always
tincodestringrequiredNational tax number: 2 to 30 letters and digits.
Option 2 of 2 › Option 3 of 3
Show patternHide pattern
^[0-9A-Z]{2,30}$
namestringLegal name. Required outside Greece. Optional for Greek parties, whose name AADE holds; adapters drop it when they send a Greek party straight to myDATA, which rejects it.
Option 2 of 2 · 1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address. Required outside Greece.
Option 2 of 2
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
Option 2 of 2 · 1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
Option 2 of 2 · 1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
Option 2 of 2 · 1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
Option 2 of 2 · 1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
Option 2 of 2
establishmentobjectA branch registered with AADE (Greece).
Option 2 of 2 › Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 2 of 2 › Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 2 of 2 › Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
Option 2 of 2
legal_idneverNot on a GR party.
Option 2 of 2
numberstringGreece
Not allowed (the provider numbers it).
France
The credit note's own number (BT-1), which you assign; required for an FR original.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringGreece
Not allowed (the provider dates it the day it issues it).
France
The credit note's issue date (BT-2), YYYY-MM-DD, at most today in France and not before the original's; today in France when omitted. Send the date you gave its number, so a retry on a later day keeps both.
Format:
datepaymentsobject[]Greece
Not allowed.
France
How the credit is paid back, replacing the original's payments. When omitted, the original's (a part credit: the whole credit by the method that paid the most), while Tallio keeps its request. Chorus Pro requires a payment means on a credit note.
1 to 10 items
Each item: One way the invoice is paid.
Show nested fields (2)Hide nested fields (2)
methodstringrequiredHow the invoice is paid: cash (UNCL 4461 10), cheque (UNCL 4461 20), credit_transfer (UNCL 4461 30), card (UNCL 4461 48), direct_debit (UNCL 4461 49), sepa_credit_transfer (UNCL 4461 58), sepa_direct_debit (UNCL 4461 59).
One of:
cash,cheque,credit_transfer,card,direct_debit,sepa_credit_transfer,sepa_direct_debitamountintegerrequiredAmount paid this way, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
payee_accountobjectGreece
Not allowed.
France
The account a credit transfer in payments pays into (BG-17), replacing the original's; the original's when omitted, while Tallio keeps its request.
Show nested fields (3)Hide nested fields (3)
ibanstringrequiredThe account's IBAN (BT-84), upper case without spaces; its check digits are verified.
Show patternHide pattern
^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$bicstringThe bank's BIC (BT-86), 8 or 11 characters.
Show patternHide pattern
^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}(?:[A-Z0-9]{3})?$namestringThe account's name (BT-85), 1 to 70 characters.
1 to 70 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
buyer_referencestringGreece
Not allowed.
France
The buyer's reference (BT-10; on Chorus Pro, its service code), replacing the original's; the original's when omitted, while Tallio keeps its request, so the credit note reaches the same service.
1 to 100 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$purchase_orderstringGreece
Not allowed.
France
The buyer's purchase order (BT-13; on Chorus Pro, its engagement number), replacing the original's; the original's when omitted, while Tallio keeps its request.
1 to 50 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$external_referencestringYour own reference for the document, e.g. an order number: 1 to 200 characters, trimmed. Not unique; list documents by it to find them.
Up to 200 characters
Show patternHide pattern
\SmetadataobjectUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
Request
JSON{}curlcurl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/credit_notes' \
-H "Authorization: Bearer $TALLIO_API_KEY" \
-H 'Idempotency-Key: order-1042' \
-H "Content-Type: application/json" \
-d '{}'TypeScript SDKimport { createTallioClient, unwrap } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await unwrap(tallio.http.POST("/api/v1/documents/{id}/credit_notes", {
params: {
path: {
id: "doc_02y9O8rhJKVUXRvojdffcz",
},
},
body: {},
}));| Status | Description |
|---|---|
201 | The credit note, pending. A replay returns the first one. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 201
dataobjectrequiredA fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
Example response · 201{
"data": {
"id": "doc_02y9O8rhJKVUXRvojdffcz",
"object": "document",
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"mode": "test",
"provider": "sandbox",
"regime": "GR",
"type": "1.1",
"number": null,
"status": "pending",
"stage": "queued",
"issue_date": "2026-10-10",
"currency": "EUR",
"net": 2500,
"vat": 435,
"gross": 2935,
"provider_reference": null,
"mydata": {
"mark": null,
"uid": null,
"qr_url": null,
"cancellation_mark": null
},
"ctc": null,
"lifecycle": null,
"lifecycle_history": [],
"error": null,
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
},
"original_document": null,
"replaces": null,
"corrects": null,
"replaced_by": null,
"corrected_by": null,
"credit_notes": [],
"amount_credited": {
"net": 0,
"gross": 0
},
"timeline": [
{
"id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
"type": "document.created",
"created": "2026-10-11T09:30:00.000Z"
}
],
"issued_at": null,
"created": "2026-10-11T09:30:00.000Z",
"updated": "2026-10-11T09:30:00.000Z"
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 201, 400, 404, 409, 413, 415, 422, 429 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 201, 400, 404, 409, 413, 415, 422, 429 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 201, 400, 404, 409, 413, 415, 422, 429 · At least 0
idempotent-replayedstringtrue when this answer replays an earlier request with the same Idempotency-Key (nothing new was created); absent on the request that created it.
With 201 · Always
truewww-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
validation_failed | 400 | No | Request validation failed. |
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
subscription_required | 403 | No | Issuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free. |
store_plan_live_only | 403 | No | This team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key. |
not_found | 404 | No | The requested resource was not found. |
idempotency_conflict | 409 | No | This idempotency key was already used with a different request. |
invalid_state | 409 | No | The object's current state does not allow this request. |
merchant_archived | 409 | No | This merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive). |
already_exists | 409 | No | An object with this identifier already exists; look it up instead of creating it again. |
payload_too_large | 413 | No | The request body is too large. |
unsupported_media_type | 415 | No | The request body must be JSON (Content-Type: application/json). |
balance_exceeded | 422 | No | The credit notes of this document would exceed its net amount. |
connection_unavailable | 422 | No | The merchant has no usable connection to route this document to. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
Download a document's PDF #
/api/v1/documents/{id}/pdfReturns the issued document's PDF as the provider renders it, fetched on demand and never stored by Tallio. While the provider is still generating it the answer is 503 pdf_not_ready with Retry-After; ask again then. A document that is not issued (pending, rejected, failed or cancelled) is 409 invalid_state. A disconnected connection still serves its documents' PDFs until its credentials are deleted, 30 days after the disconnect; after that, or through an invalid connection, the answer is 422 connection_unavailable.
- Bearer API key
Path parameters
idstringrequiredThe document's id (doc_…).
Request
curlcurl -X GET 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/pdf' \
-H "Authorization: Bearer $TALLIO_API_KEY"TypeScript SDKimport { createTallioClient } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await tallio.getDocumentPdf("doc_02y9O8rhJKVUXRvojdffcz");| Status | Description |
|---|---|
200 | The PDF. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 200
(the body)stringrequiredFormat:
binary
Example response · 200"string"Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 200, 404, 409, 422, 429, 503 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 200, 404, 409, 422, 429, 503 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 200, 404, 409, 422, 429, 503 · At least 0
www-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
not_found | 404 | No | The requested resource was not found. |
store_url_mismatch | 409 | No | This store key was granted to another store URL than the one this request names (Tallio-Store-Url). Connect this store again, or confirm that the store moved. |
invalid_state | 409 | No | The object's current state does not allow this request. |
not_supported | 422 | No | The provider or document type does not support this operation. |
connection_unavailable | 422 | No | The merchant has no usable connection to route this document to. |
provider_credentials_invalid | 422 | No | The provider refused the connection's credentials; reconnect with valid ones. |
provider_rejected | 422 | No | The provider rejected the document. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
pdf_not_ready | 503 | Yes | The provider is still preparing the document's PDF; try again shortly. |
provider_unavailable | 503 | Yes | The provider is temporarily unavailable. |
Retry a failed document #
/api/v1/documents/{id}/retryQueues a failed document to be sent again, with the same key and the same document as before (document.retried). A document the provider took, or may have, is checked with the provider first and never sent twice. Only a failed document can be retried, at most 3 times; otherwise 409 invalid_state, and after the last retry create a new document. A document with a provider reference is only checked by that reference, so its retries are not capped. A retry takes no Idempotency-Key: after a lost answer, GET the document (a 409 means it is pending again).
- Bearer API key
Path parameters
idstringrequiredThe document's id (doc_…).
Request
curlcurl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/retry' \
-H "Authorization: Bearer $TALLIO_API_KEY"TypeScript SDKimport { createTallioClient, unwrap } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await unwrap(tallio.http.POST("/api/v1/documents/{id}/retry", {
params: {
path: {
id: "doc_02y9O8rhJKVUXRvojdffcz",
},
},
}));| Status | Description |
|---|---|
200 | The document, pending again. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 200
dataobjectrequiredA fiscal document Tallio issues through a provider, with its status and history.
Show nested fields (35)Hide nested fields (35)
idstringrequiredId of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$objectstringrequiredAlways "document".
Always
documentmerchantstringrequiredId of the merchant (mer_…).
Show patternHide pattern
^mer_[0-9A-Za-z]{22}$modestringrequiredlive for a document created with a live key, test for a test key.
One of:
live,testproviderstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisiregimestringrequiredTax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
One of:
GR,FR· Default:GRtypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3numberstring | nullrequiredThe document's number.
Greece
The provider's number in its series (e.g. ΕΑΛΠ-1), null until it assigns one: a display label, not unique, so identify a document by its id.
France
The number you assigned (set once issued).
Default:
nullstatusstringrequiredWhere the document stands: pending (Tallio accepted it; not yet issued, see stage), issued (the tax system accepted it; in Greece it has a MARK), rejected (the provider or the tax system refused it), failed (Tallio could not deliver it to the provider), cancelled (withdrawn before it was sent, or cancelled in myDATA after issue: see mydata.cancellation_mark).
One of:
pending,issued,rejected,failed,cancelledstagestring | nullrequiredWhere a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.
One of:
queued,submitting,awaiting_confirmation,reconcilingissue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts.
Greece
EUR.
France
Any with cents.
Show patternHide pattern
^[A-Z]{3}$netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
provider_referencestring | nullrequiredThe provider's own reference for the document, once it has taken it; null before.
mydataobject | nullrequiredmyDATA's identity of the document: an object in GR, null in any other regime.
Show nested fields (4)Hide nested fields (4)
markstring | nullrequiredMARK (AADE registration number) once issued, as a digit string; null before. A cancelled document keeps the MARK it was issued with (null when it was withdrawn before it was sent).
Show patternHide pattern
^[1-9]\d{0,18}$uidstring | nullrequiredmyDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
Show patternHide pattern
^[0-9A-F]{40}$qr_urlstring | nullrequiredURL the document's QR code points to; null until the provider returns one.
Format:
uricancellation_markstring | nullrequiredThe MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
Show patternHide pattern
^[1-9]\d{0,18}$
ctcobject | nullrequiredThe French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
Show nested fields (2)Hide nested fields (2)
platform_idstring | nullrequiredThe plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
flow_idstring | nullrequiredThe platform's id of the flow that carried the document; null until it reports one.
lifecycleobject | nullrequiredThe tax regime's status for the document once sent.
Greece
Always null.
France
Null until the platform reports one.
Default:
nullShow nested fields (3)Hide nested fields (3)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-time
lifecycle_historyobject[]requiredEvery lifecycle status reported for the document, oldest first, at most the newest 30; the last is lifecycle. Empty in GR. A status after issue (a buyer's 210 Refusée, the platform's 213 Rejetée) never changes status: an issued document stays issued.
Up to 30 items · Default:
[]Each item: One lifecycle status the tax regime's platform reported for the document.
Show nested fields (5)Hide nested fields (5)
keystringrequiredWhere the document is after issue, in GOBL's bill.Status keys.
One of:
issued,acknowledged,processing,querying,rejected,accepted,paid,error,othercodestringrequiredThe regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
1 to 20 characters
atstringrequiredWhen the regime's platform reported this status.
Format:
date-timeprovider_statusstring | nullrequiredThe provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$reasonstring | nullrequiredThe platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
1 to 64 characters
Show patternHide pattern
^[A-Za-z0-9_.:-]+$
errorobject | nullrequiredWhy the document was rejected or failed; null otherwise.
Show nested fields (6)Hide nested fields (6)
codestringrequiredStable machine-readable error code. Branch on this, never on
message.One of:
validation_failed,unauthorized,not_found,idempotency_conflict,idempotency_in_progress,already_exists,invalid_grant,store_url_mismatch,invalid_state,already_issued,connection_not_disconnected,merchant_archived,cursor_not_listed,payload_too_large,unsupported_media_type,rate_limited,too_many_pending_erasures,forbidden,restricted_key,vendor_suspended,subscription_required,store_plan_live_only,store_unproven,not_supported,regime_mismatch,supplier_mismatch,connection_unavailable,connection_unconfirmed,provider_credentials_invalid,provider_rejected,balance_exceeded,credit_required,provider_unavailable,pdf_not_ready,service_unavailable,internal_errormessagestringrequiredTallio's own explanation, safe to show to a developer; the provider's words are in provider_message.
provider_codestring | nullrequiredThe provider's own error code, or null when the error did not come from a provider.
provider_messagestring | nullrequiredThe provider's own error message, verbatim, or null when the error did not come from a provider. On a document or connection it is removed (null), like provider_raw, once the retention window ends or by a data-subject erasure.
retryablebooleanrequiredTrue when the same request may succeed if sent again later.
provider_rawanyThe provider's error response body as received, or a TruncatedProviderRaw marker when it exceeds 4096 bytes of JSON. Never holds request headers, credentials or the request payload.
classificationobjectrequiredHow the document was classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
external_referencestring | nullrequiredYour own reference for the document, or null.
Default:
nullmetadataobjectrequiredUp to 50 key-value pairs of your own (keys up to 40 characters, values up to 500). Do not put personal data in it.
Default:
{}Show nested fields (1)Hide nested fields (1)
{key}stringA value, up to 500 characters.
1 to 40 characters
original_documentstring | nullrequiredFor a credit note made from a Tallio document: that document (doc_…). Null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replacesstring | nullrequiredThe rejected or failed document this one was issued to replace, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$correctsstring | nullrequiredThe issued document this one corrects, or null.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$replaced_bystring | nullrequiredThe document created to replace this rejected or failed one, the live one if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$corrected_bystring | nullrequiredThe document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
Default:
nullShow patternHide pattern
^doc_[0-9A-Za-z]{22}$credit_notesstring[]requiredCredit notes made from this document, oldest first, at most 100.
Up to 100 items · Default:
[]Each item: Id of the document (doc_…).
Show patternHide pattern
^doc_[0-9A-Za-z]{22}$amount_creditedobjectrequiredWhat credit notes made from this document take, pending ones included. Zero when there are none.
Default:
{"net":0,"gross":0}Show nested fields (2)Hide nested fields (2)
netintegerrequiredNet amount credited, in cents.
From 0 to 9007199254740991
grossintegerrequiredGross amount credited, in cents.
From 0 to 9007199254740991
timelineobject[]requiredThe document's events, oldest first, at most 100.
Up to 100 items
Each item: One event in a document's history. GET /events/{id} returns the full Event.
Show nested fields (3)Hide nested fields (3)
idstringrequiredId of the event (evt_…).
Show patternHide pattern
^evt_[0-9A-Za-z]{22}$typestringrequiredWhat happened: document.created (Tallio accepted a document), document.issued (the tax system accepted it; in Greece it has a MARK), document.rejected (the provider or the tax system refused it), document.failed (Tallio could not deliver it), merchant.created (a merchant was created), connection.created (a merchant was connected to a provider), connection.verified (the provider accepted its credentials), connection.invalid (the provider refused them), connection.disconnected (it was disconnected), connect_session.completed (a merchant connected through a hosted connect link), webhook_endpoint.disabled (Tallio disabled an endpoint failing for days), document.retried (a failed document was queued to be sent again), document.credited (a credit note made from the document was issued), document.cancelled (the document was withdrawn or cancelled), document.corrected (a corrected document was made to replace it), document.replaced (a new document was created to replace a rejected or failed one), connection.deleted (a disconnected connection was deleted from the merchant's list), merchant.archived (a merchant was archived: it issues nothing new), merchant.unarchived (an archived merchant was restored), store_order.updated (a store order's status, reason, handled mark or document changed), document.lifecycle_updated (the French platform reported a new lifecycle status for an issued document) and connection.updated (a connection's settings changed).
One of:
document.created,document.issued,document.rejected,document.failed,merchant.created,connection.created,connection.verified,connection.invalid,connection.disconnected,connect_session.completed,webhook_endpoint.disabled,document.retried,document.credited,document.cancelled,document.corrected,document.replaced,connection.deleted,merchant.archived,merchant.unarchived,store_order.updated,document.lifecycle_updated,connection.updatedcreatedstringrequiredWhen the event happened.
Format:
date-time
issued_atstring | nullrequiredWhen the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
Format:
date-timecreatedstringrequiredWhen Tallio accepted the document.
Format:
date-timeupdatedstringrequiredWhen the document last changed.
Format:
date-time
Example response · 200{
"data": {
"id": "doc_02y9O8rhJKVUXRvojdffcz",
"object": "document",
"merchant": "mer_02y9O8rh7F50tGi0QcWRrx",
"mode": "test",
"provider": "sandbox",
"regime": "GR",
"type": "1.1",
"number": null,
"status": "issued",
"stage": null,
"issue_date": "2026-10-10",
"currency": "EUR",
"net": 2500,
"vat": 435,
"gross": 2935,
"provider_reference": "doc_02y9O8rhJKVUXRvojdffcz",
"mydata": {
"mark": "900000000000001",
"uid": "4E1F0A6C2B9D8E7F6A5B4C3D2E1F0A9B8C7D6E5F",
"qr_url": "https://sandbox.tallio.invalid/qr/900000000000001",
"cancellation_mark": null
},
"ctc": null,
"lifecycle": null,
"lifecycle_history": [],
"error": null,
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"external_reference": "#1042",
"metadata": {
"order_id": "5520731963508"
},
"original_document": null,
"replaces": null,
"corrects": null,
"replaced_by": null,
"corrected_by": null,
"credit_notes": [],
"amount_credited": {
"net": 0,
"gross": 0
},
"timeline": [
{
"id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
"type": "document.created",
"created": "2026-10-11T09:30:00.000Z"
},
{
"id": "evt_02y9O8s1a8ymJqpmAy0nLe",
"type": "document.issued",
"created": "2026-10-11T09:30:02.000Z"
}
],
"issued_at": "2026-10-11T09:30:02.000Z",
"created": "2026-10-11T09:30:00.000Z",
"updated": "2026-10-11T09:30:02.000Z"
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 200, 404, 409, 429 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 200, 404, 409, 429 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 200, 404, 409, 429 · At least 0
www-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
subscription_required | 403 | No | Issuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free. |
store_plan_live_only | 403 | No | This team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key. |
not_found | 404 | No | The requested resource was not found. |
invalid_state | 409 | No | The object's current state does not allow this request. |
merchant_archived | 409 | No | This merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive). |
already_exists | 409 | No | An object with this identifier already exists; look it up instead of creating it again. |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |
Preview a document #
/api/v1/documents/previewPreview a document without issuing it: Tallio validates it, applies classification defaults and returns the payload the provider would receive. Nothing is sent to the provider or to AADE.
- Bearer API key
Request by regime
regime: GR
A document issued in Greece (regime GR) through myDATA. Amounts are integer minor units.
Request body
regimestringrequiredTax regime: GR, a document issued in Greece through myDATA.
Always
GRtypestringrequiredAADE myDATA document type: 1.1 sales invoice, 2.1 service invoice, 2.2 intra-EU service invoice (reverse charge), 2.3 third-country service invoice, 5.1 credit note (associated), 5.2 credit note (non-associated), 11.1 retail sales receipt, 11.2 retail service receipt, 11.4 retail credit note.
One of:
1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3issue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency: EUR, the only one Greek documents take.
Always
EURsupplierobjectrequiredThe merchant issuing the document, registered in Greece: its tax_id and establishment must be the merchant's own (422 supplier_mismatch).
Show nested fields (7)Hide nested fields (7)
tax_idoneOfrequiredThe merchant's ΑΦΜ: country GR, scheme afm.
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 1 of 1
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 1 of 1 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 1 of 1 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 1 of 1
Show patternHide pattern
^\d{9}$
namestringLegal name. Optional: AADE holds it, and adapters drop it when they send straight to myDATA, which rejects it.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address.
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
establishmentobjectA branch registered with AADE (Greece).
Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
customerobjectThe customer. Required for 1.1, 2.1, 2.2, 2.3, 5.1, 5.2 (Greek, country GR, on 1.1 and 2.1; in another EU member state on 2.2; outside the EU on 2.3); not allowed on the retail types (11.1, 11.2, 11.4).
Show nested fields (9)Hide nested fields (9)
tax_idoneOfrequiredTax registration: the ΑΦΜ for a Greek party (scheme afm, country GR), the whole VAT number for one in another EU member state (scheme vat, prefix included), the national tax number elsewhere (scheme tin).
tax_idobjectrequiredGreek tax registration: the ΑΦΜ.
Option 1 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: GR.
Option 1 of 3 · Always
GRschemestringrequiredIdentifier scheme: afm.
Option 1 of 3 · Always
afmcodestringrequiredGreek tax number (ΑΦΜ): 9 digits with a matching check digit.
Option 1 of 3
Show patternHide pattern
^\d{9}$
tax_idobjectrequiredVAT registration in an EU member state.
Option 2 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the VAT registration: GR for Greece (not the VAT prefix EL).
Option 2 of 3 · One of:
AT,BE,BG,CY,CZ,DE,DK,EE,ES,FI,FR,GR,HR,HU,IE,IT,LT,LU,LV,MT,NL,PL,PT,RO,SE,SI,SK,XIschemestringrequiredIdentifier scheme: vat.
Option 2 of 3 · Always
vatcodestringrequiredThe whole VAT number, prefix included (EL for Greece). A request is refused unless the part after the prefix has its country's format: AT: U, then 8 digits; BE: 10 digits, the first 0 or 1; BG: 9 or 10 digits; CY: 8 digits, then a letter; CZ: 8 to 10 digits; DE: 9 digits; DK: 8 digits; EE: 9 digits; ES: a letter or digit, 7 digits, then a letter or digit; FI: 8 digits; FR: a 2-character key (digits, or letters other than I and O), then the 9-digit SIREN; EL: the 9-digit ΑΦΜ; HR: 11 digits; HU: 8 digits; IE: a digit, then a letter, digit, + or *, then 5 digits, then 1 or 2 letters; IT: 11 digits; LT: 9 or 12 digits; LU: 8 digits; LV: 11 digits; MT: 8 digits; NL: 9 digits, B, then 2 digits; PL: 10 digits; PT: 9 digits; RO: 2 to 10 digits; SE: 12 digits; SI: 8 digits; SK: 10 digits; XI: 9 or 12 digits, or GD or HA then 3 digits.
Option 2 of 3
Show patternHide pattern
^[A-Z]{2}[0-9A-Z+*]{2,12}$
tax_idobjectrequiredAnother national tax number, for a registration no other scheme covers.
Option 3 of 3
Show nested fields (3)Hide nested fields (3)
countrystringrequiredISO 3166-1 alpha-2 country of the registration: GR for Greece (not the VAT prefix EL).
Option 3 of 3
Show patternHide pattern
^[A-Z]{2}$schemestringrequiredIdentifier scheme: tin.
Option 3 of 3 · Always
tincodestringrequiredNational tax number: 2 to 30 letters and digits.
Option 3 of 3
Show patternHide pattern
^[0-9A-Z]{2,30}$
namestringLegal name. Required outside Greece. Optional for Greek parties, whose name AADE holds; adapters drop it when they send a Greek party straight to myDATA, which rejects it.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$addressobjectPostal address. Required outside Greece.
Show nested fields (4)Hide nested fields (4)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOfThe party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.
establishmentobjectA branch registered with AADE (Greece).
Option 1 of 1
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: branch.
Option 1 of 1 · Always
branchcodestringrequiredAADE branch number, "1" to "9999"; the head office has no establishment.
Option 1 of 1
Show patternHide pattern
^[1-9]\d{0,3}$
branchneverNot accepted: an AADE branch is establishment {scheme: "branch", code}.
precedingobject[]The documents a credit note corrects, by MARK. Required for 5.1; required for 11.4 unless special_category is 13; not allowed on other types.
1 to 1000 items
Each item: A document this credit note corrects, by its MARK.
Show nested fields (1)Hide nested fields (1)
markstringrequiredMARK (AADE registration number) of an issued document.
Show patternHide pattern
^[1-9]\d{0,18}$
special_categorynumberAADE special invoice category. Only 13 (difficulty correlating) is supported, and only on 11.4: the retail receipts it credits cannot be identified, so it carries no preceding.
Always
13linesobject[]requiredThe document's lines, from 1 to 1000.
1 to 1000 items
Each item: One line. Its net amount is quantity × unit_price, rounded half up to the cent, at most 1000000000000000.
Show nested fields (6)Hide nested fields (6)
descriptionstringrequiredWhat was sold, as printed on the document.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$quantitystringrequiredQuantity, a decimal string below 1000000000 with up to 3 decimals, greater than 0, e.g. "2" or "1.5" (kg).
Show patternHide pattern
^(0|[1-9]\d{0,8})(\.\d{1,3})?$unitstringUnit the quantity is measured in: piece (myDATA 1), kg (myDATA 2), litre (myDATA 3), metre (myDATA 4), square_metre (myDATA 5), cubic_metre (myDATA 6).
One of:
piece,kg,litre,metre,square_metre,cubic_metreunit_priceintegerrequiredNet price per unit in minor units (cents), at most 100000000000.
From 0 to 100000000000
vatobjectrequiredThe line's Greek VAT: its category, which fixes the rate, and the exemption cause of an exempt line.
Show nested fields (2)Hide nested fields (2)
categorystringrequiredGreek VAT category of the line, which fixes its rate: standard 24% (myDATA 1), reduced 13% (myDATA 2), super_reduced 6% (myDATA 3), standard_island 17% (myDATA 4), reduced_island 9% (myDATA 5), super_reduced_island 4% (myDATA 6), exempt 0% (myDATA 7). An exempt line needs an exemption.
One of:
standard,reduced,super_reduced,standard_island,reduced_island,super_reduced_island,exemptexemptionintegermyDATA VAT exemption cause (1-31), e.g. 14 for article 33 of the VAT code (Law 5144/2024). Required on exempt lines only.
From 1 to 31
income_classificationobjectExplicit myDATA income classification for the line. Omit it to have Tallio apply and report a default.
Show nested fields (2)Hide nested fields (2)
categorystringrequiredmyDATA income classification category, e.g. category1_1 sale of goods, category1_2 sale of products, category1_3 provision of services, category1_95 other income information.
One of:
category1_1,category1_2,category1_3,category1_4,category1_5,category1_6,category1_7,category1_8,category1_9,category1_10,category1_95typestringE3 income type. Required, except that category1_95 takes none or one of E3_596, E3_597.
One of:
E3_106,E3_205,E3_210,E3_305,E3_310,E3_318,E3_561_001,E3_561_002,E3_561_003,E3_561_004,E3_561_005,E3_561_006,E3_561_007,E3_562,E3_563,E3_564,E3_565,E3_566,E3_567,E3_568,E3_570,E3_595,E3_596,E3_597,E3_880_001,E3_880_002,E3_880_003,E3_880_004,E3_881_001,E3_881_002,E3_881_003,E3_881_004,E3_598_001,E3_598_003
paymentsobject[]How the document is paid, up to 10 entries.
1 to 10 items
Each item: One way the document is paid.
Show nested fields (2)Hide nested fields (2)
methodstringrequiredHow the document is paid: domestic_account (myDATA 1), foreign_account (myDATA 2), cash (myDATA 3), cheque (myDATA 4), on_credit (myDATA 5), web_banking (myDATA 6), pos (myDATA 7), iris (myDATA 8).
One of:
domestic_account,foreign_account,cash,cheque,on_credit,web_banking,pos,irisamountintegerrequiredAmount paid this way, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
paidbooleanWhether the document is already settled when issued. Only on 1.1, 2.1, 2.2, 2.3, 11.1, 11.2, and never true with an on_credit payment. Omitted: true on a retail receipt (11.1, 11.2), paid at the sale, unless a payment is on_credit; false otherwise. A provider that records payment (Oxygen) marks the document paid, so it does not print as unpaid; myDATA itself carries no such flag.
totalsobjectrequiredDocument totals. Tallio rejects totals that do not add up.
Show nested fields (3)Hide nested fields (3)
netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
notesstringFree text printed on the document, 1 to 500 characters, by providers that print one (Wrapp: its notes); myDATA itself has no such field. Tallio adds no wording of its own: on a 2.2 put the reverse-charge statement here (Αντίστροφη επιβάρυνση).
1 to 500 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
Request
JSON{
"regime": "GR",
"type": "1.1",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "555555559"
}
},
"customer": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "666666662"
},
"name": "Kafeneio Lemonia IKE"
},
"lines": [
{
"description": "Olive oil, bulk",
"quantity": "1.5",
"unit": "litre",
"unit_price": 1000,
"vat": {
"category": "reduced"
},
"income_classification": {
"category": "category1_1",
"type": "E3_561_001"
}
},
{
"description": "Delivery",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "standard"
}
}
],
"payments": [
{
"method": "cash",
"amount": 2935
}
],
"totals": {
"net": 2500,
"vat": 435,
"gross": 2935
}
}curlcurl -X POST 'https://tallio.dev/api/v1/documents/preview' \
-H "Authorization: Bearer $TALLIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"regime": "GR",
"type": "1.1",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "555555559"
}
},
"customer": {
"tax_id": {
"country": "GR",
"scheme": "afm",
"code": "666666662"
},
"name": "Kafeneio Lemonia IKE"
},
"lines": [
{
"description": "Olive oil, bulk",
"quantity": "1.5",
"unit": "litre",
"unit_price": 1000,
"vat": {
"category": "reduced"
},
"income_classification": {
"category": "category1_1",
"type": "E3_561_001"
}
},
{
"description": "Delivery",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "standard"
}
}
],
"payments": [
{
"method": "cash",
"amount": 2935
}
],
"totals": {
"net": 2500,
"vat": 435,
"gross": 2935
}
}'TypeScript SDKimport { createTallioClient } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await tallio.previewDocument({
regime: "GR",
type: "1.1",
issue_date: "2026-10-10",
currency: "EUR",
supplier: {
tax_id: {
country: "GR",
scheme: "afm",
code: "555555559",
},
},
customer: {
tax_id: {
country: "GR",
scheme: "afm",
code: "666666662",
},
name: "Kafeneio Lemonia IKE",
},
lines: [
{
description: "Olive oil, bulk",
quantity: "1.5",
unit: "litre",
unit_price: 1000,
vat: {
category: "reduced",
},
income_classification: {
category: "category1_1",
type: "E3_561_001",
},
},
{
description: "Delivery",
quantity: "1",
unit_price: 1000,
vat: {
category: "standard",
},
},
],
payments: [
{
method: "cash",
amount: 2935,
},
],
totals: {
net: 2500,
vat: 435,
gross: 2935,
},
});regime: FR
A document issued in France (regime FR). Amounts are integer hundredths (cents) of its currency, whatever the currency.
Request body
regimestringrequiredTax regime: FR, an e-invoice issued in France through a plateforme agréée.
Always
FRtypestringrequiredUNTDID 1001 document type: 380 commercial invoice, 381 credit note, 384 corrective invoice, 386 prepayment (deposit) invoice.
One of:
380,381,384,386numberstringrequiredThe invoice number you assign (BT-1): 1 to 35 letters, digits and - + _ /, unique for the supplier's SIREN within the year.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringrequiredIssue date, YYYY-MM-DD.
Format:
datecurrencystringrequiredISO 4217 currency of the amounts (BT-5), e.g. EUR, one with cents (JPY, KWD and the like are refused). Not EUR: vat_total_eur is required.
Show patternHide pattern
^[A-Z]{3}$vat_total_eurintegerThe VAT total in EUR (BT-111), in euro cents, at most 1000000000000000: required when currency is not EUR, not allowed when it is.
From 0 to 1000000000000000
supplierobjectrequiredThe merchant issuing the invoice, established in France: its legal_id, tax_id and establishment must be the merchant's own (422 supplier_mismatch).
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: siren.
Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: vat.
Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
customerobjectrequiredThe business customer; its SIREN is a mandatory mention.
Show nested fields (6)Hide nested fields (6)
namestringrequiredLegal name.
1 to 200 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$legal_idobjectrequiredCompany registration in France: the SIREN.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: siren.
Always
sirencodestringrequiredSIREN, the 9-digit company number, Luhn-checked. Test keys also take the SIRENs of the Chorus Pro qualification structure and the SUPER PDP sandbox companies, which fail it.
Show patternHide pattern
^\d{9}$
tax_idobjectVAT registration in France.
Show nested fields (3)Hide nested fields (3)
countrystringrequiredCountry of the registration: FR.
Always
FRschemestringrequiredIdentifier scheme: vat.
Always
vatcodestringrequiredFrench VAT number: FR, a 2-character key, then the 9-digit SIREN, the party's legal_id (checked on the document, with the key).
Show patternHide pattern
^FR[0-9A-HJ-NP-Z]{2}\d{9}$
establishmentobjectThe establishment the party acts from, by its SIRET, which starts with its SIREN.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredIdentifier scheme: siret.
Always
siretcodestringrequiredSIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.
Show patternHide pattern
^\d{14}$
electronic_addressobjectWhere the party receives e-invoices: its address in the French directory.
Show nested fields (2)Hide nested fields (2)
schemestringrequiredElectronic address scheme: 0225, the French e-invoicing directory.
Always
0225codestringrequiredThe address in the directory (BT-34/BT-49): the SIREN, alone or with _SIRET and a routing code.
1 to 125 characters
Show patternHide pattern
^[A-Za-z0-9_+\-/]*$
addressobjectPostal address.
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
precedingobject[]The invoices this one refers to: one or more on a 381, exactly one on a 384, none on 380 or 386.
1 to 1000 items
Each item: An invoice this document refers to, by its number and issue date.
Show nested fields (2)Hide nested fields (2)
numberstringrequiredThe preceding invoice's number (BT-25): 1 to 35 letters, digits and - + _ /.
1 to 35 characters
Show patternHide pattern
^[A-Za-z0-9\-+_/]*$issue_datestringrequiredThe preceding invoice's issue date (BT-26), YYYY-MM-DD.
Format:
date
operationstringrequiredWhat the invoice covers: goods, services or mixed (both). A mandatory mention in France; no default.
One of:
goods,services,mixedvat_on_debitsbooleanThe supplier pays VAT on debits (BT-8), a mandatory mention when chosen. Default false.
Default:
falsedeliveryobjectThe delivery, a mandatory mention when its address differs from the customer's.
Show nested fields (1)Hide nested fields (1)
addressobjectrequiredWhere the goods are delivered (BG-15).
Show nested fields (5)Hide nested fields (5)
streetstringStreet name.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$numberstringStreet number.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$postal_codestringrequiredPostal code.
1 to 20 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$citystringrequiredCity.
1 to 150 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$countrystringISO 3166-1 alpha-2 country; omitted, France.
Show patternHide pattern
^[A-Z]{2}$
legal_mentionsobjectThe payment mentions French law requires on a B2B invoice, each 1 to 500 characters. A mention left out is written with its statutory default, and the preview warns.
Show nested fields (3)Hide nested fields (3)
recovery_feestringThe fixed recovery fee owed on late payment (note PMT). Omitted, the statutory 40 € mention is written.
1 to 500 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$late_payment_penaltiesstringThe late-payment penalty terms (note PMD). Omitted, the statutory default is written: the ECB refinancing rate plus 10 points.
1 to 500 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$early_payment_discountstringThe early-payment discount terms, or that there is none (note AAB). Omitted, "no discount" is written.
1 to 500 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
buyer_referencestringThe reference the buyer asked to be quoted (BT-10), 1 to 100 characters. For a public-sector buyer on Chorus Pro, its service code (code service), required when the buyer's structure requires one.
1 to 100 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$purchase_orderstringThe buyer's purchase order reference (BT-13), 1 to 50 characters. For a public-sector buyer on Chorus Pro, its engagement number (numéro d'engagement), required when the buyer's structure requires one.
1 to 50 characters
Show patternHide pattern
^$|^(?=[\s\S]*\S)(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$linesobject[]requiredThe invoice's lines, from 1 to 1000.
1 to 1000 items
Each item: One line. Its net amount is quantity × unit_price, rounded half up to the cent, at most 1000000000000000.
Show nested fields (5)Hide nested fields (5)
descriptionstringrequiredWhat was sold, as printed on the document.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$quantitystringrequiredQuantity, a decimal string below 1000000000 with up to 3 decimals, greater than 0, e.g. "2" or "1.5" (kg).
Show patternHide pattern
^(0|[1-9]\d{0,8})(\.\d{1,3})?$unitstringUnit the quantity is measured in: piece (Rec 20 H87), kg (Rec 20 KGM), litre (Rec 20 LTR), metre (Rec 20 MTR), square_metre (Rec 20 MTK), cubic_metre (Rec 20 MTQ), hour (Rec 20 HUR), day (Rec 20 DAY).
One of:
piece,kg,litre,metre,square_metre,cubic_metre,hour,dayunit_priceintegerrequiredNet price per unit in minor units (cents), at most 100000000000.
From 0 to 100000000000
vatobjectrequiredThe line's VAT: its category, its rate and, on an untaxed line, why.
Show nested fields (3)Hide nested fields (3)
categorystringrequiredUNCL 5305 VAT category: S standard rate, Z zero rated, E exempt, AE reverse charge, K intra-EU supply, G export outside the EU, O outside the scope of VAT.
One of:
S,Z,E,AE,K,G,OpercentstringrequiredVAT rate as a decimal percent string, one of France's rates: 0, 0.9, 1.05, 1.75, 2.1, 5.5, 7, 8.5, 9.2, 9.6, 10, 13, 19.6, 20, 20.6.
One of:
0,7,10,13,20,0.9,1.05,1.75,2.1,5.5,8.5,9.2,9.6,19.6,20.6exemptionobjectWhy the line is not taxed: a VATEX code and, optionally, the reason as text. Required on category E.
Show nested fields (2)Hide nested fields (2)
codestringrequiredVATEX exemption reason code (BT-121), e.g. VATEX-EU-IC (intra-EU supply), VATEX-FR-FRANCHISE (franchise scheme, CGI art. 293 B) or VATEX-FR-CNWVAT (credit notes only). One of: VATEX-EU-79-C, VATEX-EU-132, VATEX-EU-132-1A, VATEX-EU-132-1B, VATEX-EU-132-1C, VATEX-EU-132-1D, VATEX-EU-132-1E, VATEX-EU-132-1F, VATEX-EU-132-1FA, VATEX-EU-132-1G, VATEX-EU-132-1H, VATEX-EU-132-1I, VATEX-EU-132-1J, VATEX-EU-132-1K, VATEX-EU-132-1L, VATEX-EU-132-1M, VATEX-EU-132-1N, VATEX-EU-132-1O, VATEX-EU-132-1P, VATEX-EU-132-1Q, VATEX-EU-143, VATEX-EU-143-1A, VATEX-EU-143-1B, VATEX-EU-143-1C, VATEX-EU-143-1D, VATEX-EU-143-1E, VATEX-EU-143-1F, VATEX-EU-143-1FA, VATEX-EU-143-1G, VATEX-EU-143-1H, VATEX-EU-143-1I, VATEX-EU-143-1J, VATEX-EU-143-1K, VATEX-EU-143-1L, VATEX-EU-148, VATEX-EU-148-A, VATEX-EU-148-B, VATEX-EU-148-C, VATEX-EU-148-D, VATEX-EU-148-E, VATEX-EU-148-F, VATEX-EU-148-G, VATEX-EU-151, VATEX-EU-151-1A, VATEX-EU-151-1AA, VATEX-EU-151-1B, VATEX-EU-151-1C, VATEX-EU-151-1D, VATEX-EU-151-1E, VATEX-EU-309, VATEX-EU-AE, VATEX-EU-D, VATEX-EU-F, VATEX-EU-G, VATEX-EU-I, VATEX-EU-IC, VATEX-EU-J, VATEX-EU-O, VATEX-FR-FRANCHISE, VATEX-FR-CNWVAT, VATEX-FR-CGI261-1, VATEX-FR-CGI261-2, VATEX-FR-CGI261-3, VATEX-FR-CGI261-4, VATEX-FR-CGI261-5, VATEX-FR-CGI261-7, VATEX-FR-CGI261-8, VATEX-FR-CGI261A, VATEX-FR-CGI261B, VATEX-FR-CGI261C-1, VATEX-FR-CGI261C-2, VATEX-FR-CGI261C-3, VATEX-FR-CGI261D-1, VATEX-FR-CGI261D-1BIS, VATEX-FR-CGI261D-2, VATEX-FR-CGI261D-3, VATEX-FR-CGI261D-4, VATEX-FR-CGI261E-1, VATEX-FR-CGI261E-2, VATEX-FR-CGI275, VATEX-FR-CGI277A, VATEX-FR-298SEXDECIESA, VATEX-FR-AE.
One of:
VATEX-EU-79-C,VATEX-EU-132,VATEX-EU-132-1A,VATEX-EU-132-1B,VATEX-EU-132-1C,VATEX-EU-132-1D,VATEX-EU-132-1E,VATEX-EU-132-1F,VATEX-EU-132-1FA,VATEX-EU-132-1G,VATEX-EU-132-1H,VATEX-EU-132-1I,VATEX-EU-132-1J,VATEX-EU-132-1K,VATEX-EU-132-1L,VATEX-EU-132-1M,VATEX-EU-132-1N,VATEX-EU-132-1O,VATEX-EU-132-1P,VATEX-EU-132-1Q,VATEX-EU-143,VATEX-EU-143-1A,VATEX-EU-143-1B,VATEX-EU-143-1C,VATEX-EU-143-1D,VATEX-EU-143-1E,VATEX-EU-143-1F,VATEX-EU-143-1FA,VATEX-EU-143-1G,VATEX-EU-143-1H,VATEX-EU-143-1I,VATEX-EU-143-1J,VATEX-EU-143-1K,VATEX-EU-143-1L,VATEX-EU-148,VATEX-EU-148-A,VATEX-EU-148-B,VATEX-EU-148-C,VATEX-EU-148-D,VATEX-EU-148-E,VATEX-EU-148-F,VATEX-EU-148-G,VATEX-EU-151,VATEX-EU-151-1A,VATEX-EU-151-1AA,VATEX-EU-151-1B,VATEX-EU-151-1C,VATEX-EU-151-1D,VATEX-EU-151-1E,VATEX-EU-309,VATEX-EU-AE,VATEX-EU-D,VATEX-EU-F,VATEX-EU-G,VATEX-EU-I,VATEX-EU-IC,VATEX-EU-J,VATEX-EU-O,VATEX-FR-FRANCHISE,VATEX-FR-CNWVAT,VATEX-FR-CGI261-1,VATEX-FR-CGI261-2,VATEX-FR-CGI261-3,VATEX-FR-CGI261-4,VATEX-FR-CGI261-5,VATEX-FR-CGI261-7,VATEX-FR-CGI261-8,VATEX-FR-CGI261A,VATEX-FR-CGI261B,VATEX-FR-CGI261C-1,VATEX-FR-CGI261C-2,VATEX-FR-CGI261C-3,VATEX-FR-CGI261D-1,VATEX-FR-CGI261D-1BIS,VATEX-FR-CGI261D-2,VATEX-FR-CGI261D-3,VATEX-FR-CGI261D-4,VATEX-FR-CGI261E-1,VATEX-FR-CGI261E-2,VATEX-FR-CGI275,VATEX-FR-CGI277A,VATEX-FR-298SEXDECIESA,VATEX-FR-AEreasonstringThe exemption reason as text (BT-120), printed beside the code.
1 to 300 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
paymentsobject[]How the invoice is paid, up to 10 entries.
1 to 10 items
Each item: One way the invoice is paid.
Show nested fields (2)Hide nested fields (2)
methodstringrequiredHow the invoice is paid: cash (UNCL 4461 10), cheque (UNCL 4461 20), credit_transfer (UNCL 4461 30), card (UNCL 4461 48), direct_debit (UNCL 4461 49), sepa_credit_transfer (UNCL 4461 58), sepa_direct_debit (UNCL 4461 59).
One of:
cash,cheque,credit_transfer,card,direct_debit,sepa_credit_transfer,sepa_direct_debitamountintegerrequiredAmount paid this way, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
payee_accountobjectThe account a credit transfer pays into (BG-17). Sent with each credit_transfer or sepa_credit_transfer payment, and unused without one; without it, those payments are not written as payment means.
Show nested fields (3)Hide nested fields (3)
ibanstringrequiredThe account's IBAN (BT-84), upper case without spaces; its check digits are verified.
Show patternHide pattern
^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$bicstringThe bank's BIC (BT-86), 8 or 11 characters.
Show patternHide pattern
^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}(?:[A-Z0-9]{3})?$namestringThe account's name (BT-85), 1 to 70 characters.
1 to 70 characters
Show patternHide pattern
^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
totalsobjectrequiredDocument totals. Tallio rejects totals that do not add up.
Show nested fields (3)Hide nested fields (3)
netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
Request
JSON{
"regime": "FR",
"type": "380",
"number": "F2026-0042",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"name": "Huilerie Provençale SAS",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "555555556"
},
"tax_id": {
"country": "FR",
"scheme": "vat",
"code": "FR70555555556"
}
},
"customer": {
"name": "Épicerie Lemoine SARL",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "666666664"
}
},
"operation": "goods",
"vat_on_debits": false,
"lines": [
{
"description": "Huile d'olive, vrac",
"quantity": "2",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "5.5"
}
},
{
"description": "Livraison",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "20"
}
}
],
"totals": {
"net": 3000,
"vat": 310,
"gross": 3310
}
}curlcurl -X POST 'https://tallio.dev/api/v1/documents/preview' \
-H "Authorization: Bearer $TALLIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"regime": "FR",
"type": "380",
"number": "F2026-0042",
"issue_date": "2026-10-10",
"currency": "EUR",
"supplier": {
"name": "Huilerie Provençale SAS",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "555555556"
},
"tax_id": {
"country": "FR",
"scheme": "vat",
"code": "FR70555555556"
}
},
"customer": {
"name": "Épicerie Lemoine SARL",
"legal_id": {
"country": "FR",
"scheme": "siren",
"code": "666666664"
}
},
"operation": "goods",
"vat_on_debits": false,
"lines": [
{
"description": "Huile d'\''olive, vrac",
"quantity": "2",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "5.5"
}
},
{
"description": "Livraison",
"quantity": "1",
"unit_price": 1000,
"vat": {
"category": "S",
"percent": "20"
}
}
],
"totals": {
"net": 3000,
"vat": 310,
"gross": 3310
}
}'TypeScript SDKimport { createTallioClient } from "@tallio-dev/sdk";
const tallio = createTallioClient({
apiKey: process.env.TALLIO_API_KEY!,
baseUrl: "https://tallio.dev",
});
const result = await tallio.previewDocument({
regime: "FR",
type: "380",
number: "F2026-0042",
issue_date: "2026-10-10",
currency: "EUR",
supplier: {
name: "Huilerie Provençale SAS",
legal_id: {
country: "FR",
scheme: "siren",
code: "555555556",
},
tax_id: {
country: "FR",
scheme: "vat",
code: "FR70555555556",
},
},
customer: {
name: "Épicerie Lemoine SARL",
legal_id: {
country: "FR",
scheme: "siren",
code: "666666664",
},
},
operation: "goods",
vat_on_debits: false,
lines: [
{
description: "Huile d'olive, vrac",
quantity: "2",
unit_price: 1000,
vat: {
category: "S",
percent: "5.5",
},
},
{
description: "Livraison",
quantity: "1",
unit_price: 1000,
vat: {
category: "S",
percent: "20",
},
},
],
totals: {
net: 3000,
vat: 310,
gross: 3310,
},
});| Status | Description |
|---|---|
200 | The preview. |
| 4XX, 5XX | An error: see Errors below. |
Response body · 200
dataobjectrequiredWhat issuing this document would do. Nothing has been issued.
Show nested fields (5)Hide nested fields (5)
providerstringrequiredThe licensed e-invoicing provider (a Greek provider, direct myDATA, a French plateforme agréée, Chorus Pro for a French public-sector buyer, or Tallio's sandbox) that issues the document.
One of:
sandbox,mydata,wrapp,impact,epsilon,softone,prosvasis,superpdp,choruspro,b2brouter,oxygen,iopole,qonto,elorus,timologisitypestringrequiredDocument type, by regime.
Greece
An AADE myDATA type (e.g. 1.1).
France
A UNTDID 1001 code (e.g. 380).
One of:
380,381,384,386,1.1,2.1,5.1,5.2,11.1,11.2,11.4,2.2,2.3totalsobjectrequiredDocument totals. Tallio rejects totals that do not add up.
Show nested fields (3)Hide nested fields (3)
netintegerrequiredSum of the lines' net amounts, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
vatintegerrequiredSum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
From 0 to 1000000000000000
grossintegerrequirednet + vat, in minor units, at most 1250000000000000.
From 0 to 1250000000000000
classificationobjectrequiredHow the document will be classified for myDATA.
Show nested fields (2)Hide nested fields (2)
sourcestringrequireddefault when any line took Tallio's default, else override when any line took the merchant's override, else line.
One of:
line,override,defaultwarningsstring[]requiredWhat to check before issuing, e.g. that defaults were applied.
payloadobjectrequiredThe request Tallio would send to the provider, in the provider's own format.
Show nested fields (1)Hide nested fields (1)
{key}any
Example response · 200{
"data": {
"provider": "sandbox",
"type": "1.1",
"totals": {
"net": 2500,
"vat": 435,
"gross": 2935
},
"classification": {
"source": "default",
"warnings": [
"No income classification on line 2; applied the 1.1 default category1_1/E3_561_001. Set it on the line, or as a merchant override, if that is wrong."
]
},
"payload": {
"invoice_type": "1.1",
"currency": "EUR",
"line_count": 2,
"total_gross": 2935
}
}
}Response headers
x-request-idstringThe request's correlation id; quote it when reporting a problem. One of: req_ plus a uuid (Tallio made it), client: plus the x-request-id you sent (8-128 of A-Z a-z 0-9 . _ : -), or the hosting platform's id.
With every response
Show patternHide pattern
^(?:req_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|client:[A-Za-z0-9._:-]{8,128}|[A-Za-z0-9._-]{1,16}::[A-Za-z0-9._:-]{6,110})$ratelimit-limitintegerRequests allowed in the current window for the bucket this request counted against.
With 200, 400, 413, 415, 429 · At least 1
ratelimit-remainingintegerRequests left in the current window; 0 means the next one is refused until the window resets.
With 200, 400, 413, 415, 429 · At least 0
ratelimit-resetintegerSeconds until the current window resets.
With 200, 400, 413, 415, 429 · At least 0
www-authenticatestringThe bearer challenge: send a vendor secret key as
Authorization: Bearer <key>.With 401 · Always
Bearer realm="tallio"retry-afterintegerSeconds to wait before retrying a request refused with 429
rate_limited.With 429 · At least 1
| Code | Status | Retryable | Meaning |
|---|---|---|---|
validation_failed | 400 | No | Request validation failed. |
unauthorized | 401 | No | Authentication is required. |
vendor_suspended | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
restricted_key | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
payload_too_large | 413 | No | The request body is too large. |
unsupported_media_type | 415 | No | The request body must be JSON (Content-Type: application/json). |
rate_limited | 429 | Yes | A rate limit was reached. Retry later. |
internal_error | 500 | No | An unexpected server error occurred. |