Skip to content
Docs menu: Documents

Documents

Preview and issue fiscal documents.

On this page

List documents #

GET /api/v1/documents

Returns 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

limitinteger

How many items to return, 1 to 100; 10 by default.

From 1 to 100 · Default: 10

starting_afterstring

An 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_beforestring

An 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

merchantstring

Only 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]string

Only documents created at or after this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).

Format: date-time

created[lte]string

Only documents created at or before this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).

Format: date-time

issue_date[gte]string

Only documents whose issue_date is on or after this date (YYYY-MM-DD).

Format: date

issue_date[lte]string

Only documents whose issue_date is on or before this date (YYYY-MM-DD).

Format: date

mydata_markstring

Only the GR document with this MARK.

Show patternHide pattern^[1-9]\d{0,18}$
numberstring

Only documents with exactly this number (in FR, the number you assigned).

1 to 100 characters

external_referencestring

Only documents with exactly this external_reference.

Up to 200 characters

Show patternHide pattern\S

Request

curl
curl -X GET 'https://tallio.dev/api/v1/documents' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
Responses
StatusDescription
200A page of documents.
4XX, 5XXAn error: see Errors below.

Response body · 200

objectstringrequired

Always "list".

Always list

dataobject[]required

This 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)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When the document last changed.

Format: date-time

has_morebooleanrequired

Whether 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-idstring

The 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-limitinteger

Requests allowed in the current window for the bucket this request counted against.

With 200, 400, 429 · At least 1

ratelimit-remaininginteger

Requests left in the current window; 0 means the next one is refused until the window resets.

With 200, 400, 429 · At least 0

ratelimit-resetinteger

Seconds until the current window resets.

With 200, 400, 429 · At least 0

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
validation_failed400NoRequest validation failed.
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.

Issue a document #

POST /api/v1/documents

Issue 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-keystringrequired

A 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

merchantstringrequired

The merchant issuing the document (mer_…), created under your account.

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
documentobjectrequired
Show nested fields (13)Hide nested fields (13)
regimestringrequired

Tax regime: GR, a document issued in Greece through myDATA.

Always GR

typestringrequired

AADE 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.3

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency: EUR, the only one Greek documents take.

Always EUR

supplierobjectrequired

The 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_idoneOfrequired

The merchant's ΑΦΜ: country GR, scheme afm.

tax_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 1 of 1

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 1 of 1 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 1 of 1 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 1 of 1

Show patternHide pattern^\d{9}$
namestring

Legal 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])*$
addressobject

Postal address.

Show nested fields (4)Hide nested fields (4)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

establishmentobject

A branch registered with AADE (Greece).

Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 1 of 1 · Always branch

codestringrequired

AADE branch number, "1" to "9999"; the head office has no establishment.

Option 1 of 1

Show patternHide pattern^[1-9]\d{0,3}$
branchnever

Not accepted: an AADE branch is establishment {scheme: "branch", code}.

customerobject

The 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_idoneOfrequired

Tax 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_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 1 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 1 of 3 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 1 of 3 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 1 of 3

Show patternHide pattern^\d{9}$
tax_idobjectrequired

VAT registration in an EU member state.

Option 2 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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, XI

schemestringrequired

Identifier scheme: vat.

Option 2 of 3 · Always vat

codestringrequired

The 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_idobjectrequired

Another national tax number, for a registration no other scheme covers.

Option 3 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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}$
schemestringrequired

Identifier scheme: tin.

Option 3 of 3 · Always tin

codestringrequired

National tax number: 2 to 30 letters and digits.

Option 3 of 3

Show patternHide pattern^[0-9A-Z]{2,30}$
namestring

Legal 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])*$
addressobject

Postal address. Required outside Greece.

Show nested fields (4)Hide nested fields (4)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

establishmentobject

A branch registered with AADE (Greece).

Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 1 of 1 · Always branch

codestringrequired

AADE branch number, "1" to "9999"; the head office has no establishment.

Option 1 of 1

Show patternHide pattern^[1-9]\d{0,3}$
branchnever

Not 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)
markstringrequired

MARK (AADE registration number) of an issued document.

Show patternHide pattern^[1-9]\d{0,18}$
special_categorynumber

AADE 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 13

linesobject[]required

The 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)
descriptionstringrequired

What 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])*$
quantitystringrequired

Quantity, 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})?$
unitstring

Unit 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_metre

unit_priceintegerrequired

Net price per unit in minor units (cents), at most 100000000000.

From 0 to 100000000000

vatobjectrequired

The 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)
categorystringrequired

Greek 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, exempt

exemptioninteger

myDATA 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_classificationobject

Explicit myDATA income classification for the line. Omit it to have Tallio apply and report a default.

Show nested fields (2)Hide nested fields (2)
categorystringrequired

myDATA 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_95

typestring

E3 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)
methodstringrequired

How 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, iris

amountintegerrequired

Amount paid this way, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

paidboolean

Whether 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.

totalsobjectrequired

Document totals. Tallio rejects totals that do not add up.

Show nested fields (3)Hide nested fields (3)
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

notesstring

Free 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])*$
providerstring

The 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, timologisi

external_referencestring

Your 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\S
replacesstring

A 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}$
metadataobject

Up 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}string

A 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"
  }
}
Responses
StatusDescription
201Accepted as pending; it is issued in the background. A replay returns the first document.
4XX, 5XXAn error: see Errors below.

Response body · 201

dataobjectrequired

A fiscal document Tallio issues through a provider, with its status and history.

Show nested fields (35)Hide nested fields (35)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When 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-idstring

The 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-limitinteger

Requests 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-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 201, 400, 404, 409, 413, 415, 422, 429 · At least 0

idempotent-replayedstring

true 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 true

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
validation_failed400NoRequest validation failed.
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
subscription_required403NoIssuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free.
store_plan_live_only403NoThis team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key.
not_found404NoThe requested resource was not found.
idempotency_conflict409NoThis idempotency key was already used with a different request.
merchant_archived409NoThis merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive).
already_exists409NoAn object with this identifier already exists; look it up instead of creating it again.
payload_too_large413NoThe request body is too large.
unsupported_media_type415NoThe request body must be JSON (Content-Type: application/json).
not_supported422NoThe provider or document type does not support this operation.
regime_mismatch422NoThe request's regime differs from its merchant's: a document, a setting or a provider of another country.
supplier_mismatch422NoThe document's supplier is not its merchant.
connection_unavailable422NoThe merchant has no usable connection to route this document to.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.

Retrieve a document #

GET /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

idstringrequired

The document's id (doc_…).

Request

curl
curl -X GET 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
Responses
StatusDescription
200The document.
4XX, 5XXAn error: see Errors below.

Response body · 200

dataobjectrequired

A fiscal document Tallio issues through a provider, with its status and history.

Show nested fields (35)Hide nested fields (35)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When 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-idstring

The 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-limitinteger

Requests allowed in the current window for the bucket this request counted against.

With 200, 404, 409, 429 · At least 1

ratelimit-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 200, 404, 409, 429 · At least 0

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
not_found404NoThe requested resource was not found.
store_url_mismatch409NoThis 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_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.

Cancel a document #

POST /api/v1/documents/{id}/cancel

Withdraws 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

idstringrequired

The document's id (doc_…).

Request

curl
curl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/cancel' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
Responses
StatusDescription
200The cancelled document.
4XX, 5XXAn error: see Errors below.

Response body · 200

dataobjectrequired

A fiscal document Tallio issues through a provider, with its status and history.

Show nested fields (35)Hide nested fields (35)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When 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-idstring

The 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-limitinteger

Requests allowed in the current window for the bucket this request counted against.

With 200, 404, 409, 422, 429, 503 · At least 1

ratelimit-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 200, 404, 409, 422, 429, 503 · At least 0

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
not_found404NoThe requested resource was not found.
invalid_state409NoThe object's current state does not allow this request.
credit_required422NoAn 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_rejected422NoThe provider rejected the document.
connection_unavailable422NoThe merchant has no usable connection to route this document to.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.
provider_unavailable503YesThe provider is temporarily unavailable.

Correct a document #

POST /api/v1/documents/{id}/correct

Replaces 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

idstringrequired

The document's id (doc_…).

Header parameters

idempotency-keystringrequired

A 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

documentobjectrequired
Show nested fields (13)Hide nested fields (13)
regimestringrequired

Tax regime: GR, a document issued in Greece through myDATA.

Always GR

typestringrequired

AADE 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.3

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency: EUR, the only one Greek documents take.

Always EUR

supplierobjectrequired

The 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_idoneOfrequired

The merchant's ΑΦΜ: country GR, scheme afm.

tax_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 1 of 1

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 1 of 1 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 1 of 1 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 1 of 1

Show patternHide pattern^\d{9}$
namestring

Legal 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])*$
addressobject

Postal address.

Show nested fields (4)Hide nested fields (4)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

establishmentobject

A branch registered with AADE (Greece).

Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 1 of 1 · Always branch

codestringrequired

AADE branch number, "1" to "9999"; the head office has no establishment.

Option 1 of 1

Show patternHide pattern^[1-9]\d{0,3}$
branchnever

Not accepted: an AADE branch is establishment {scheme: "branch", code}.

customerobject

The 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_idoneOfrequired

Tax 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_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 1 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 1 of 3 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 1 of 3 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 1 of 3

Show patternHide pattern^\d{9}$
tax_idobjectrequired

VAT registration in an EU member state.

Option 2 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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, XI

schemestringrequired

Identifier scheme: vat.

Option 2 of 3 · Always vat

codestringrequired

The 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_idobjectrequired

Another national tax number, for a registration no other scheme covers.

Option 3 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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}$
schemestringrequired

Identifier scheme: tin.

Option 3 of 3 · Always tin

codestringrequired

National tax number: 2 to 30 letters and digits.

Option 3 of 3

Show patternHide pattern^[0-9A-Z]{2,30}$
namestring

Legal 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])*$
addressobject

Postal address. Required outside Greece.

Show nested fields (4)Hide nested fields (4)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

establishmentobject

A branch registered with AADE (Greece).

Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 1 of 1 · Always branch

codestringrequired

AADE branch number, "1" to "9999"; the head office has no establishment.

Option 1 of 1

Show patternHide pattern^[1-9]\d{0,3}$
branchnever

Not 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)
markstringrequired

MARK (AADE registration number) of an issued document.

Show patternHide pattern^[1-9]\d{0,18}$
special_categorynumber

AADE 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 13

linesobject[]required

The 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)
descriptionstringrequired

What 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])*$
quantitystringrequired

Quantity, 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})?$
unitstring

Unit 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_metre

unit_priceintegerrequired

Net price per unit in minor units (cents), at most 100000000000.

From 0 to 100000000000

vatobjectrequired

The 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)
categorystringrequired

Greek 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, exempt

exemptioninteger

myDATA 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_classificationobject

Explicit myDATA income classification for the line. Omit it to have Tallio apply and report a default.

Show nested fields (2)Hide nested fields (2)
categorystringrequired

myDATA 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_95

typestring

E3 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)
methodstringrequired

How 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, iris

amountintegerrequired

Amount paid this way, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

paidboolean

Whether 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.

totalsobjectrequired

Document totals. Tallio rejects totals that do not add up.

Show nested fields (3)Hide nested fields (3)
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

notesstring

Free 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])*$
strategystring

How 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: auto

credit_noteobject

Greece

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)
numberstringrequired

The 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_datestring

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.

Format: date

customerobject

The 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)
namestringrequired

Legal name.

1 to 200 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
legal_idobjectrequired

Company registration in France: the SIREN.

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: FR.

Always FR

schemestringrequired

Identifier scheme: siren.

Always siren

codestringrequired

SIREN, 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_idobject

VAT registration in France.

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: FR.

Always FR

schemestringrequired

Identifier scheme: vat.

Always vat

codestringrequired

French 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}$
establishmentobject

The establishment the party acts from, by its SIRET, which starts with its SIREN.

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: siret.

Always siret

codestringrequired

SIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.

Show patternHide pattern^\d{14}$
electronic_addressobject

Where the party receives e-invoices: its address in the French directory.

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Electronic address scheme: 0225, the French e-invoicing directory.

Always 0225

codestringrequired

The 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_+\-/]*$
addressobject

Postal address.

Show nested fields (5)Hide nested fields (5)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
countrystring

ISO 3166-1 alpha-2 country; omitted, France.

Show patternHide pattern^[A-Z]{2}$
external_referencestring

Your 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\S
metadataobject

Up 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}string

A 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"
}
Responses
StatusDescription
201The corrected document, pending. A replay returns the first one.
4XX, 5XXAn error: see Errors below.

Response body · 201

dataobjectrequired

A fiscal document Tallio issues through a provider, with its status and history.

Show nested fields (35)Hide nested fields (35)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When 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-idstring

The 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-limitinteger

Requests 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-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 201, 400, 404, 409, 413, 415, 422, 429, 503 · At least 0

idempotent-replayedstring

true 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 true

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
validation_failed400NoRequest validation failed.
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
subscription_required403NoIssuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free.
store_plan_live_only403NoThis team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key.
not_found404NoThe requested resource was not found.
idempotency_conflict409NoThis idempotency key was already used with a different request.
invalid_state409NoThe object's current state does not allow this request.
merchant_archived409NoThis merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive).
already_exists409NoAn object with this identifier already exists; look it up instead of creating it again.
payload_too_large413NoThe request body is too large.
unsupported_media_type415NoThe request body must be JSON (Content-Type: application/json).
credit_required422NoAn 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_exceeded422NoThe credit notes of this document would exceed its net amount.
not_supported422NoThe provider or document type does not support this operation.
regime_mismatch422NoThe request's regime differs from its merchant's: a document, a setting or a provider of another country.
supplier_mismatch422NoThe document's supplier is not its merchant.
connection_unavailable422NoThe merchant has no usable connection to route this document to.
provider_rejected422NoThe provider rejected the document.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.
provider_unavailable503YesThe provider is temporarily unavailable.

Credit a document #

POST /api/v1/documents/{id}/credit_notes

Credits 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

idstringrequired

The document's id (doc_…).

Header parameters

idempotency-keystringrequired

A 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)
lineintegerrequired

The original's line to credit, by position: 1 for its first line.

From 1 to 1000

quantitystring

How 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})?$
amountinteger

Credit 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

customeranyOf

The 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.

customerobject

A business established in France, identified by its SIREN.

Option 1 of 2

Show nested fields (6)Hide nested fields (6)
namestringrequired

Legal 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_idobjectrequired

Company registration in France: the SIREN.

Option 1 of 2

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: FR.

Option 1 of 2 · Always FR

schemestringrequired

Identifier scheme: siren.

Option 1 of 2 · Always siren

codestringrequired

SIREN, 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_idobject

VAT registration in France.

Option 1 of 2

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: FR.

Option 1 of 2 · Always FR

schemestringrequired

Identifier scheme: vat.

Option 1 of 2 · Always vat

codestringrequired

French 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}$
establishmentobject

The 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)
schemestringrequired

Identifier scheme: siret.

Option 1 of 2 · Always siret

codestringrequired

SIRET, the 14-digit establishment number: the SIREN, then 5 digits; Luhn-checked.

Option 1 of 2

Show patternHide pattern^\d{14}$
electronic_addressobject

Where the party receives e-invoices: its address in the French directory.

Option 1 of 2

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Electronic address scheme: 0225, the French e-invoicing directory.

Option 1 of 2 · Always 0225

codestringrequired

The 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_+\-/]*$
addressobject

Postal address.

Option 1 of 2

Show nested fields (5)Hide nested fields (5)
streetstring

Street 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])*$
numberstring

Street 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_codestringrequired

Postal 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])*$
citystringrequired

City.

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])*$
countrystring

ISO 3166-1 alpha-2 country; omitted, France.

Option 1 of 2

Show patternHide pattern^[A-Z]{2}$
customerobject

A business taking part in a Greek document.

Option 2 of 2

Show nested fields (10)Hide nested fields (10)
tax_idoneOfrequired

Tax 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_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 2 of 2 › Option 1 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 2 of 2 › Option 1 of 3 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 2 of 2 › Option 1 of 3 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 2 of 2 › Option 1 of 3

Show patternHide pattern^\d{9}$
tax_idobjectrequired

VAT registration in an EU member state.

Option 2 of 2 › Option 2 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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, XI

schemestringrequired

Identifier scheme: vat.

Option 2 of 2 › Option 2 of 3 · Always vat

codestringrequired

The 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_idobjectrequired

Another 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)
countrystringrequired

ISO 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}$
schemestringrequired

Identifier scheme: tin.

Option 2 of 2 › Option 3 of 3 · Always tin

codestringrequired

National tax number: 2 to 30 letters and digits.

Option 2 of 2 › Option 3 of 3

Show patternHide pattern^[0-9A-Z]{2,30}$
namestring

Legal 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])*$
addressobject

Postal address. Required outside Greece.

Option 2 of 2

Show nested fields (4)Hide nested fields (4)
streetstring

Street 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])*$
numberstring

Street 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_codestringrequired

Postal 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])*$
citystringrequired

City.

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])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

Option 2 of 2

establishmentobject

A branch registered with AADE (Greece).

Option 2 of 2 › Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 2 of 2 › Option 1 of 1 · Always branch

codestringrequired

AADE 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}$
branchnever

Not accepted: an AADE branch is establishment {scheme: "branch", code}.

Option 2 of 2

legal_idnever

Not on a GR party.

Option 2 of 2

numberstring

Greece

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_datestring

Greece

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: date

paymentsobject[]

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)
methodstringrequired

How 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_debit

amountintegerrequired

Amount paid this way, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

payee_accountobject

Greece

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)
ibanstringrequired

The 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}$
bicstring

The 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})?$
namestring

The 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_referencestring

Greece

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_orderstring

Greece

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_referencestring

Your 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\S
metadataobject

Up 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}string

A value, up to 500 characters.

1 to 40 characters

Request

JSON
{}
Responses
StatusDescription
201The credit note, pending. A replay returns the first one.
4XX, 5XXAn error: see Errors below.

Response body · 201

dataobjectrequired

A fiscal document Tallio issues through a provider, with its status and history.

Show nested fields (35)Hide nested fields (35)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When 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-idstring

The 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-limitinteger

Requests 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-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 201, 400, 404, 409, 413, 415, 422, 429 · At least 0

idempotent-replayedstring

true 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 true

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
validation_failed400NoRequest validation failed.
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
subscription_required403NoIssuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free.
store_plan_live_only403NoThis team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key.
not_found404NoThe requested resource was not found.
idempotency_conflict409NoThis idempotency key was already used with a different request.
invalid_state409NoThe object's current state does not allow this request.
merchant_archived409NoThis merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive).
already_exists409NoAn object with this identifier already exists; look it up instead of creating it again.
payload_too_large413NoThe request body is too large.
unsupported_media_type415NoThe request body must be JSON (Content-Type: application/json).
balance_exceeded422NoThe credit notes of this document would exceed its net amount.
connection_unavailable422NoThe merchant has no usable connection to route this document to.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.

Download a document's PDF #

GET /api/v1/documents/{id}/pdf

Returns 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

idstringrequired

The document's id (doc_…).

Request

curl
curl -X GET 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/pdf' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
Responses
StatusDescription
200The PDF.
4XX, 5XXAn error: see Errors below.

Response body · 200

(the body)stringrequired

Format: binary

Example response · 200
"string"

Response headers

x-request-idstring

The 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-limitinteger

Requests allowed in the current window for the bucket this request counted against.

With 200, 404, 409, 422, 429, 503 · At least 1

ratelimit-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 200, 404, 409, 422, 429, 503 · At least 0

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
not_found404NoThe requested resource was not found.
store_url_mismatch409NoThis 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_state409NoThe object's current state does not allow this request.
not_supported422NoThe provider or document type does not support this operation.
connection_unavailable422NoThe merchant has no usable connection to route this document to.
provider_credentials_invalid422NoThe provider refused the connection's credentials; reconnect with valid ones.
provider_rejected422NoThe provider rejected the document.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.
pdf_not_ready503YesThe provider is still preparing the document's PDF; try again shortly.
provider_unavailable503YesThe provider is temporarily unavailable.

Retry a failed document #

POST /api/v1/documents/{id}/retry

Queues 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

idstringrequired

The document's id (doc_…).

Request

curl
curl -X POST 'https://tallio.dev/api/v1/documents/doc_02y9O8rhJKVUXRvojdffcz/retry' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
Responses
StatusDescription
200The document, pending again.
4XX, 5XXAn error: see Errors below.

Response body · 200

dataobjectrequired

A fiscal document Tallio issues through a provider, with its status and history.

Show nested fields (35)Hide nested fields (35)
idstringrequired

Id of the document (doc_…).

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
objectstringrequired

Always "document".

Always document

merchantstringrequired

Id of the merchant (mer_…).

Show patternHide pattern^mer_[0-9A-Za-z]{22}$
modestringrequired

live for a document created with a live key, test for a test key.

One of: live, test

providerstringrequired

The 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, timologisi

regimestringrequired

Tax 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: GR

typestringrequired

Document 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.3

numberstring | nullrequired

The 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: null

statusstringrequired

Where 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, cancelled

stagestring | nullrequired

Where a pending document is (queued, submitting, awaiting_confirmation, reconciling); null unless status is pending.

One of: queued, submitting, awaiting_confirmation, reconciling

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency of the amounts.

Greece

EUR.

France

Any with cents.

Show patternHide pattern^[A-Z]{3}$
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

provider_referencestring | nullrequired

The provider's own reference for the document, once it has taken it; null before.

mydataobject | nullrequired

myDATA's identity of the document: an object in GR, null in any other regime.

Show nested fields (4)Hide nested fields (4)
markstring | nullrequired

MARK (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 | nullrequired

myDATA 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 | nullrequired

URL the document's QR code points to; null until the provider returns one.

Format: uri

cancellation_markstring | nullrequired

The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.

Show patternHide pattern^[1-9]\d{0,18}$
ctcobject | nullrequired

The 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 | nullrequired

The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.

flow_idstring | nullrequired

The platform's id of the flow that carried the document; null until it reports one.

lifecycleobject | nullrequired

The tax regime's status for the document once sent.

Greece

Always null.

France

Null until the platform reports one.

Default: null

Show nested fields (3)Hide nested fields (3)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

lifecycle_historyobject[]required

Every 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)
keystringrequired

Where the document is after issue, in GOBL's bill.Status keys.

One of: issued, acknowledged, processing, querying, rejected, accepted, paid, error, other

codestringrequired

The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.

1 to 20 characters

atstringrequired

When the regime's platform reported this status.

Format: date-time

provider_statusstring | nullrequired

The 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 | nullrequired

The 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 | nullrequired

Why the document was rejected or failed; null otherwise.

Show nested fields (6)Hide nested fields (6)
codestringrequired

Stable 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_error

messagestringrequired

Tallio's own explanation, safe to show to a developer; the provider's words are in provider_message.

provider_codestring | nullrequired

The provider's own error code, or null when the error did not come from a provider.

provider_messagestring | nullrequired

The 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.

retryablebooleanrequired

True when the same request may succeed if sent again later.

provider_rawany

The 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.

classificationobjectrequired

How the document was classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

external_referencestring | nullrequired

Your own reference for the document, or null.

Default: null

metadataobjectrequired

Up 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}string

A value, up to 500 characters.

1 to 40 characters

original_documentstring | nullrequired

For a credit note made from a Tallio document: that document (doc_…). Null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replacesstring | nullrequired

The rejected or failed document this one was issued to replace, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
correctsstring | nullrequired

The issued document this one corrects, or null.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
replaced_bystring | nullrequired

The document created to replace this rejected or failed one, the live one if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
corrected_bystring | nullrequired

The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.

Default: null

Show patternHide pattern^doc_[0-9A-Za-z]{22}$
credit_notesstring[]required

Credit 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_creditedobjectrequired

What 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)
netintegerrequired

Net amount credited, in cents.

From 0 to 9007199254740991

grossintegerrequired

Gross amount credited, in cents.

From 0 to 9007199254740991

timelineobject[]required

The 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)
idstringrequired

Id of the event (evt_…).

Show patternHide pattern^evt_[0-9A-Za-z]{22}$
typestringrequired

What 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.updated

createdstringrequired

When the event happened.

Format: date-time

issued_atstring | nullrequired

When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.

Format: date-time

createdstringrequired

When Tallio accepted the document.

Format: date-time

updatedstringrequired

When 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-idstring

The 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-limitinteger

Requests allowed in the current window for the bucket this request counted against.

With 200, 404, 409, 429 · At least 1

ratelimit-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 200, 404, 409, 429 · At least 0

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
subscription_required403NoIssuing live documents needs an active Tallio plan. An owner can choose one in the dashboard (Settings, Billing); test mode stays free.
store_plan_live_only403NoThis team is on a store plan: it issues live documents only through its store's connection. Test mode works with any key.
not_found404NoThe requested resource was not found.
invalid_state409NoThe object's current state does not allow this request.
merchant_archived409NoThis merchant is archived: it issues and connects nothing new. Unarchive it first (POST /merchants/{id}/unarchive).
already_exists409NoAn object with this identifier already exists; look it up instead of creating it again.
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.

Preview a document #

POST /api/v1/documents/preview

Preview 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

regimestringrequired

Tax regime: GR, a document issued in Greece through myDATA.

Always GR

typestringrequired

AADE 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.3

issue_datestringrequired

Issue date, YYYY-MM-DD.

Format: date

currencystringrequired

ISO 4217 currency: EUR, the only one Greek documents take.

Always EUR

supplierobjectrequired

The 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_idoneOfrequired

The merchant's ΑΦΜ: country GR, scheme afm.

tax_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 1 of 1

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 1 of 1 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 1 of 1 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 1 of 1

Show patternHide pattern^\d{9}$
namestring

Legal 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])*$
addressobject

Postal address.

Show nested fields (4)Hide nested fields (4)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

establishmentobject

A branch registered with AADE (Greece).

Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 1 of 1 · Always branch

codestringrequired

AADE branch number, "1" to "9999"; the head office has no establishment.

Option 1 of 1

Show patternHide pattern^[1-9]\d{0,3}$
branchnever

Not accepted: an AADE branch is establishment {scheme: "branch", code}.

customerobject

The 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_idoneOfrequired

Tax 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_idobjectrequired

Greek tax registration: the ΑΦΜ.

Option 1 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

Country of the registration: GR.

Option 1 of 3 · Always GR

schemestringrequired

Identifier scheme: afm.

Option 1 of 3 · Always afm

codestringrequired

Greek tax number (ΑΦΜ): 9 digits with a matching check digit.

Option 1 of 3

Show patternHide pattern^\d{9}$
tax_idobjectrequired

VAT registration in an EU member state.

Option 2 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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, XI

schemestringrequired

Identifier scheme: vat.

Option 2 of 3 · Always vat

codestringrequired

The 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_idobjectrequired

Another national tax number, for a registration no other scheme covers.

Option 3 of 3

Show nested fields (3)Hide nested fields (3)
countrystringrequired

ISO 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}$
schemestringrequired

Identifier scheme: tin.

Option 3 of 3 · Always tin

codestringrequired

National tax number: 2 to 30 letters and digits.

Option 3 of 3

Show patternHide pattern^[0-9A-Z]{2,30}$
namestring

Legal 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])*$
addressobject

Postal address. Required outside Greece.

Show nested fields (4)Hide nested fields (4)
streetstring

Street name.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
numberstring

Street number.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
postal_codestringrequired

Postal code.

1 to 20 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
citystringrequired

City.

1 to 150 characters

Show patternHide pattern^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$
establishmentoneOf

The party's AADE branch (scheme branch, code 1 to 9999); omit it for the head office.

establishmentobject

A branch registered with AADE (Greece).

Option 1 of 1

Show nested fields (2)Hide nested fields (2)
schemestringrequired

Identifier scheme: branch.

Option 1 of 1 · Always branch

codestringrequired

AADE branch number, "1" to "9999"; the head office has no establishment.

Option 1 of 1

Show patternHide pattern^[1-9]\d{0,3}$
branchnever

Not 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)
markstringrequired

MARK (AADE registration number) of an issued document.

Show patternHide pattern^[1-9]\d{0,18}$
special_categorynumber

AADE 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 13

linesobject[]required

The 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)
descriptionstringrequired

What 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])*$
quantitystringrequired

Quantity, 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})?$
unitstring

Unit 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_metre

unit_priceintegerrequired

Net price per unit in minor units (cents), at most 100000000000.

From 0 to 100000000000

vatobjectrequired

The 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)
categorystringrequired

Greek 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, exempt

exemptioninteger

myDATA 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_classificationobject

Explicit myDATA income classification for the line. Omit it to have Tallio apply and report a default.

Show nested fields (2)Hide nested fields (2)
categorystringrequired

myDATA 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_95

typestring

E3 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)
methodstringrequired

How 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, iris

amountintegerrequired

Amount paid this way, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

paidboolean

Whether 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.

totalsobjectrequired

Document totals. Tallio rejects totals that do not add up.

Show nested fields (3)Hide nested fields (3)
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

notesstring

Free 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
  }
}
Responses
StatusDescription
200The preview.
4XX, 5XXAn error: see Errors below.

Response body · 200

dataobjectrequired

What issuing this document would do. Nothing has been issued.

Show nested fields (5)Hide nested fields (5)
providerstringrequired

The 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, timologisi

typestringrequired

Document 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.3

totalsobjectrequired

Document totals. Tallio rejects totals that do not add up.

Show nested fields (3)Hide nested fields (3)
netintegerrequired

Sum of the lines' net amounts, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

vatintegerrequired

Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.

From 0 to 1000000000000000

grossintegerrequired

net + vat, in minor units, at most 1250000000000000.

From 0 to 1250000000000000

classificationobjectrequired

How the document will be classified for myDATA.

Show nested fields (2)Hide nested fields (2)
sourcestringrequired

default when any line took Tallio's default, else override when any line took the merchant's override, else line.

One of: line, override, default

warningsstring[]required

What to check before issuing, e.g. that defaults were applied.

payloadobjectrequired

The 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-idstring

The 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-limitinteger

Requests allowed in the current window for the bucket this request counted against.

With 200, 400, 413, 415, 429 · At least 1

ratelimit-remaininginteger

Requests 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-resetinteger

Seconds until the current window resets.

With 200, 400, 413, 415, 429 · At least 0

www-authenticatestring

The bearer challenge: send a vendor secret key as Authorization: Bearer <key>.

With 401 · Always Bearer realm="tallio"

retry-afterinteger

Seconds to wait before retrying a request refused with 429 rate_limited.

With 429 · At least 1

Errors
CodeStatusRetryableMeaning
validation_failed400NoRequest validation failed.
unauthorized401NoAuthentication is required.
vendor_suspended403NoThis vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it.
restricted_key403NoA restricted (store) key may not call this operation; it needs the vendor's secret key.
payload_too_large413NoThe request body is too large.
unsupported_media_type415NoThe request body must be JSON (Content-Type: application/json).
rate_limited429YesA rate limit was reached. Retry later.
internal_error500NoAn unexpected server error occurred.