---
title: "Events · Tallio API reference"
description: "What happened in your account, kept for polling and catching up."
canonical: "https://tallio.dev/docs/api/events"
lang: "en"
---

# Events

What happened in your account, kept for polling and catching up.

## List events

`GET /api/v1/events`

Returns the events of your key's mode, newest committed first, each exactly as webhooks deliver it. Filter by type, document, merchant and creation time. Catch up after downtime with ending\_before set to the last event you handled from this list (not a webhook's or GET /events/{id}'s): an event that commits later always lists above the ones already served, so none is skipped. An ending\_before the list has not served yet is 409 cursor\_not\_listed.

*Bearer API key*

*Query parameters*

- `limit` · `integer`
  How many items to return, 1 to 100; 10 by default.
  From 1 to 100 · Default: `10`
- `starting_after` · `string`
  An id (evt\_…) 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_before` · `string`
  An id (evt\_…) 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
- `type` · `string[]`
  Only events of these types; repeat the parameter for several (type=a\&type=b).
  1 to 20 items
- `document` · `string`
  Only events about this document (doc\_…).
  Pattern: `^doc_[0-9A-Za-z]{22}$`
- `merchant` · `string`
  Only events about this merchant or its documents and connections (mer\_…).
  Pattern: `^mer_[0-9A-Za-z]{22}$`
- `created[gte]` · `string`
  Only events created at or after this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
  Format: `date-time`
- `created[lte]` · `string`
  Only events created at or before this moment (ISO 8601, e.g. 2026-10-11T09:30:00Z).
  Format: `date-time`

*Request*

*curl*

```bash
curl -X GET 'https://tallio.dev/api/v1/events' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
```

*TypeScript SDK*

```ts
import { createTallioClient, unwrap } from "@tallio-dev/sdk";

const tallio = createTallioClient({
  apiKey: process.env.TALLIO_API_KEY!,
  baseUrl: "https://tallio.dev",
});

const result = await unwrap(tallio.http.GET("/api/v1/events"));
```

*Responses*

| Status | Description |
| --- | --- |
| `200` | A page of events. |
| 4XX, 5XX | An error: see Errors below. |

*Response body · 200*

- `object` · `string` · required
  Always "list".
  Always `list`
- `data` · `object[]` · required
  This page's items, newest first.
  Each item: Something that happened in your account. Webhooks deliver these; consumers dedupe on id.
  - `id` · `string` · required
    Id of the event (evt\_…).
    Pattern: `^evt_[0-9A-Za-z]{22}$`
  - `object` · `string` · required
    Always "event".
    Always `event`
  - `type` · `string` · required
    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`
  - `created` · `string` · required
    When the event happened.
    Format: `date-time`
  - `api_version` · `string` · required
    The API version data.object is rendered in, e.g. 0.1.0.
  - `livemode` · `boolean` · required
    True for an event from live mode, false for test mode.
  - `data` · `anyOf` · required
    The object the event is about. Its kind follows from type (document.\* carries a Document, merchant.\* a Merchant, connection.\* a Connection, connect\_session.\* a ConnectSession, webhook\_endpoint.\* a WebhookEndpoint, store\_order.\* a StoreOrder); narrow on data.object.object.
  - `data` · `object` · required
    A document event's data: object is the document right after the event (data.object.object is "document").
    Option 1 of 6
    - `object` · `object` · required
      A fiscal document Tallio issues through a provider, with its status and history.
      Option 1 of 6
      - `id` · `string` · required
        Id of the document (doc\_…).
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "document".
        Option 1 of 6 · Always `document`
      - `merchant` · `string` · required
        Id of the merchant (mer\_…).
        Option 1 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `mode` · `string` · required
        live for a document created with a live key, test for a test key.
        Option 1 of 6 · One of: `live`, `test`
      - `provider` · `string` · required
        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.
        Option 1 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
      - `regime` · `string` · required
        Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
        Option 1 of 6 · One of: `GR`, `FR` · Default: `GR`
      - `type` · `string` · required
        Document type, by regime.
        > **Greece:** An AADE myDATA type (e.g. 1.1).
        
        > **France:** A UNTDID 1001 code (e.g. 380).
        
        Option 1 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
      - `number` · `string | null` · required
        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).
        
        Option 1 of 6 · Default: `null`
      - `status` · `string` · required
        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).
        Option 1 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
      - `stage` · `string | null` · required
        Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
        Option 1 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
      - `issue_date` · `string` · required
        Issue date, YYYY-MM-DD.
        Option 1 of 6 · Format: `date`
      - `currency` · `string` · required
        ISO 4217 currency of the amounts.
        > **Greece:** EUR.
        
        > **France:** Any with cents.
        
        Option 1 of 6
        Pattern: `^[A-Z]{3}$`
      - `net` · `integer` · required
        Sum of the lines' net amounts, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `vat` · `integer` · required
        Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `gross` · `integer` · required
        net + vat, in minor units, at most 1250000000000000.
        Option 1 of 6 · From 0 to 1250000000000000
      - `provider_reference` · `string | null` · required
        The provider's own reference for the document, once it has taken it; null before.
        Option 1 of 6
      - `mydata` · `object | null` · required
        myDATA's identity of the document: an object in GR, null in any other regime.
        Option 1 of 6
        - `mark` · `string | null` · required
          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).
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
        - `uid` · `string | null` · required
          myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
          Option 1 of 6
          Pattern: `^[0-9A-F]{40}$`
        - `qr_url` · `string | null` · required
          URL the document's QR code points to; null until the provider returns one.
          Option 1 of 6 · Format: `uri`
        - `cancellation_mark` · `string | null` · required
          The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
      - `ctc` · `object | null` · required
        The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
        Option 1 of 6
        - `platform_id` · `string | null` · required
          The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
          Option 1 of 6
        - `flow_id` · `string | null` · required
          The platform's id of the flow that carried the document; null until it reports one.
          Option 1 of 6
      - `lifecycle` · `object | null` · required
        The tax regime's status for the document once sent.
        > **Greece:** Always null.
        
        > **France:** Null until the platform reports one.
        
        Option 1 of 6 · Default: `null`
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
      - `lifecycle_history` · `object[]` · 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.
        Option 1 of 6 · Up to 30 items · Default: `[]`
        Each item: One lifecycle status the tax regime's platform reported for the document. Option 1 of 6
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
        - `provider_status` · `string | null` · required
          The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
        - `reason` · `string | null` · required
          The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
      - `error` · `object | null` · required
        Why the document was rejected or failed; null otherwise.
        Option 1 of 6
        - `code` · `string` · required
          Stable machine-readable error code. Branch on this, never on `message`.
          Option 1 of 6 · 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`
        - `message` · `string` · required
          Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
          Option 1 of 6
        - `provider_code` · `string | null` · required
          The provider's own error code, or null when the error did not come from a provider.
          Option 1 of 6
        - `provider_message` · `string | null` · required
          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.
          Option 1 of 6
        - `retryable` · `boolean` · required
          True when the same request may succeed if sent again later.
          Option 1 of 6
        - `provider_raw` · `any`
          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.
          Option 1 of 6
      - `classification` · `object` · required
        How the document was classified for myDATA.
        Option 1 of 6
        - `source` · `string` · required
          default when any line took Tallio's default, else override when any line took the merchant's override, else line.
          Option 1 of 6 · One of: `line`, `override`, `default`
        - `warnings` · `string[]` · required
          What to check before issuing, e.g. that defaults were applied.
          Option 1 of 6
          Each item: Option 1 of 6
      - `external_reference` · `string | null` · required
        Your own reference for the document, or null.
        Option 1 of 6 · Default: `null`
      - `metadata` · `object` · required
        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.
        Option 1 of 6 · Default: `{}`
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 1 of 6 · 1 to 40 characters
      - `original_document` · `string | null` · required
        For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaces` · `string | null` · required
        The rejected or failed document this one was issued to replace, or null.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrects` · `string | null` · required
        The issued document this one corrects, or null.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaced_by` · `string | null` · required
        The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrected_by` · `string | null` · required
        The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `credit_notes` · `string[]` · required
        Credit notes made from this document, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items · Default: `[]`
        Each item: Id of the document (doc\_…). Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `amount_credited` · `object` · required
        What credit notes made from this document take, pending ones included. Zero when there are none.
        Option 1 of 6 · Default: `{"net":0,"gross":0}`
        - `net` · `integer` · required
          Net amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
        - `gross` · `integer` · required
          Gross amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
      - `timeline` · `object[]` · required
        The document's events, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items
        Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 1 of 6
        - `id` · `string` · required
          Id of the event (evt\_…).
          Option 1 of 6
          Pattern: `^evt_[0-9A-Za-z]{22}$`
        - `type` · `string` · required
          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).
          Option 1 of 6 · 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`
        - `created` · `string` · required
          When the event happened.
          Option 1 of 6 · Format: `date-time`
      - `issued_at` · `string | null` · required
        When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
        Option 1 of 6 · Format: `date-time`
      - `created` · `string` · required
        When Tallio accepted the document.
        Option 1 of 6 · Format: `date-time`
      - `updated` · `string` · required
        When the document last changed.
        Option 1 of 6 · Format: `date-time`
    - `previous_attributes` · `object`
      The values the changed fields had before the event; absent for an event that changed nothing.
      Option 1 of 6
      - `id` · `string`
        Id of the document (doc\_…).
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `object` · `string`
        Always "document".
        Option 1 of 6 · Always `document`
      - `merchant` · `string`
        Id of the merchant (mer\_…).
        Option 1 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `mode` · `string`
        live for a document created with a live key, test for a test key.
        Option 1 of 6 · One of: `live`, `test`
      - `provider` · `string`
        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.
        Option 1 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
      - `regime` · `string`
        Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
        Option 1 of 6 · One of: `GR`, `FR`
      - `type` · `string`
        Document type, by regime.
        > **Greece:** An AADE myDATA type (e.g. 1.1).
        
        > **France:** A UNTDID 1001 code (e.g. 380).
        
        Option 1 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
      - `number` · `string | null`
        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).
        
        Option 1 of 6
      - `status` · `string`
        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).
        Option 1 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
      - `stage` · `string | null`
        Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
        Option 1 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
      - `issue_date` · `string`
        Issue date, YYYY-MM-DD.
        Option 1 of 6 · Format: `date`
      - `currency` · `string`
        ISO 4217 currency of the amounts.
        > **Greece:** EUR.
        
        > **France:** Any with cents.
        
        Option 1 of 6
        Pattern: `^[A-Z]{3}$`
      - `net` · `integer`
        Sum of the lines' net amounts, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `vat` · `integer`
        Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `gross` · `integer`
        net + vat, in minor units, at most 1250000000000000.
        Option 1 of 6 · From 0 to 1250000000000000
      - `provider_reference` · `string | null`
        The provider's own reference for the document, once it has taken it; null before.
        Option 1 of 6
      - `mydata` · `object | null`
        myDATA's identity of the document: an object in GR, null in any other regime.
        Option 1 of 6
        - `mark` · `string | null` · required
          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).
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
        - `uid` · `string | null` · required
          myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
          Option 1 of 6
          Pattern: `^[0-9A-F]{40}$`
        - `qr_url` · `string | null` · required
          URL the document's QR code points to; null until the provider returns one.
          Option 1 of 6 · Format: `uri`
        - `cancellation_mark` · `string | null` · required
          The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
      - `ctc` · `object | null`
        The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
        Option 1 of 6
        - `platform_id` · `string | null` · required
          The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
          Option 1 of 6
        - `flow_id` · `string | null` · required
          The platform's id of the flow that carried the document; null until it reports one.
          Option 1 of 6
      - `lifecycle` · `object | null`
        The tax regime's status for the document once sent.
        > **Greece:** Always null.
        
        > **France:** Null until the platform reports one.
        
        Option 1 of 6
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
      - `lifecycle_history` · `object[]`
        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.
        Option 1 of 6 · Up to 30 items
        Each item: One lifecycle status the tax regime's platform reported for the document. Option 1 of 6
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
        - `provider_status` · `string | null` · required
          The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
        - `reason` · `string | null` · required
          The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
      - `error` · `object | null`
        Why the document was rejected or failed; null otherwise.
        Option 1 of 6
        - `code` · `string` · required
          Stable machine-readable error code. Branch on this, never on `message`.
          Option 1 of 6 · 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`
        - `message` · `string` · required
          Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
          Option 1 of 6
        - `provider_code` · `string | null` · required
          The provider's own error code, or null when the error did not come from a provider.
          Option 1 of 6
        - `provider_message` · `string | null` · required
          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.
          Option 1 of 6
        - `retryable` · `boolean` · required
          True when the same request may succeed if sent again later.
          Option 1 of 6
        - `provider_raw` · `any`
          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.
          Option 1 of 6
      - `classification` · `object`
        How the document was classified for myDATA.
        Option 1 of 6
        - `source` · `string` · required
          default when any line took Tallio's default, else override when any line took the merchant's override, else line.
          Option 1 of 6 · One of: `line`, `override`, `default`
        - `warnings` · `string[]` · required
          What to check before issuing, e.g. that defaults were applied.
          Option 1 of 6
          Each item: Option 1 of 6
      - `external_reference` · `string | null`
        Your own reference for the document, or null.
        Option 1 of 6
      - `metadata` · `object`
        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.
        Option 1 of 6
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 1 of 6 · 1 to 40 characters
      - `original_document` · `string | null`
        For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaces` · `string | null`
        The rejected or failed document this one was issued to replace, or null.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrects` · `string | null`
        The issued document this one corrects, or null.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaced_by` · `string | null`
        The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrected_by` · `string | null`
        The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `credit_notes` · `string[]`
        Credit notes made from this document, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items
        Each item: Id of the document (doc\_…). Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `amount_credited` · `object`
        What credit notes made from this document take, pending ones included. Zero when there are none.
        Option 1 of 6
        - `net` · `integer` · required
          Net amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
        - `gross` · `integer` · required
          Gross amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
      - `timeline` · `object[]`
        The document's events, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items
        Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 1 of 6
        - `id` · `string` · required
          Id of the event (evt\_…).
          Option 1 of 6
          Pattern: `^evt_[0-9A-Za-z]{22}$`
        - `type` · `string` · required
          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).
          Option 1 of 6 · 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`
        - `created` · `string` · required
          When the event happened.
          Option 1 of 6 · Format: `date-time`
      - `issued_at` · `string | null`
        When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
        Option 1 of 6 · Format: `date-time`
      - `created` · `string`
        When Tallio accepted the document.
        Option 1 of 6 · Format: `date-time`
      - `updated` · `string`
        When the document last changed.
        Option 1 of 6 · Format: `date-time`
  - `data` · `object` · required
    A merchant event's data: object is the merchant right after the event (data.object.object is "merchant").
    Option 2 of 6
    - `object` · `object` · required
      A business that issues documents under your account.
      Option 2 of 6
      - `id` · `string` · required
        Id of the merchant (mer\_…).
        Option 2 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "merchant".
        Option 2 of 6 · Always `merchant`
      - `external_id` · `string` · required
        Your own id for the merchant, e.g. a shop domain: 1 to 200 characters, trimmed, unique in your account ignoring case (Shop-A and shop-a are the same merchant). Find a merchant by it.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `name` · `string` · required
        The merchant's name, as you show it: 1 to 200 characters, trimmed.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `regime` · `string` · required
        The tax regime the merchant issues under: GR or FR.
        Option 2 of 6 · One of: `GR`, `FR` · Default: `GR`
      - `tax_id` · `object | null` · required
        The merchant's tax registration (GR afm, FR vat), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `legal_id` · `object | null` · required
        The merchant's company registration (FR siren), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `establishment` · `object | null` · required
        The establishment the merchant issues from (GR branch, FR siret), or null for the head office.
        Option 2 of 6
        - `scheme` · `string` · required
          Establishment scheme: branch (AADE) or siret.
          Option 2 of 6 · One of: `branch`, `siret`
        - `code` · `string` · required
          The branch number or the SIRET.
          Option 2 of 6
      - `metadata` · `object` · required
        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.
        Option 2 of 6
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 2 of 6 · 1 to 40 characters
      - `archived` · `boolean` · required
        True once the merchant is archived; it then issues nothing new.
        Option 2 of 6
      - `created` · `string` · required
        When the merchant was created.
        Option 2 of 6 · Format: `date-time`
    - `previous_attributes` · `object`
      The values the changed fields had before the event; absent for an event that changed nothing.
      Option 2 of 6
      - `id` · `string`
        Id of the merchant (mer\_…).
        Option 2 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `object` · `string`
        Always "merchant".
        Option 2 of 6 · Always `merchant`
      - `external_id` · `string`
        Your own id for the merchant, e.g. a shop domain: 1 to 200 characters, trimmed, unique in your account ignoring case (Shop-A and shop-a are the same merchant). Find a merchant by it.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `name` · `string`
        The merchant's name, as you show it: 1 to 200 characters, trimmed.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `regime` · `string`
        The tax regime the merchant issued under: GR or FR.
        Option 2 of 6 · One of: `GR`, `FR`
      - `tax_id` · `object | null`
        The merchant's tax registration (GR afm, FR vat), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `legal_id` · `object | null`
        The merchant's company registration (FR siren), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `establishment` · `object | null`
        The establishment the merchant issues from (GR branch, FR siret), or null for the head office.
        Option 2 of 6
        - `scheme` · `string` · required
          Establishment scheme: branch (AADE) or siret.
          Option 2 of 6 · One of: `branch`, `siret`
        - `code` · `string` · required
          The branch number or the SIRET.
          Option 2 of 6
      - `metadata` · `object`
        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.
        Option 2 of 6
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 2 of 6 · 1 to 40 characters
      - `archived` · `boolean`
        True once the merchant is archived; it then issues nothing new.
        Option 2 of 6
      - `created` · `string`
        When the merchant was created.
        Option 2 of 6 · Format: `date-time`
  - `data` · `object` · required
    A connection event's data: object is the connection right after the event (data.object.object is "connection").
    Option 3 of 6
    - `object` · `object` · required
      A merchant's credentials for one provider in one mode. The credentials themselves are never returned.
      Option 3 of 6
      - `id` · `string` · required
        Id of the connection (con\_…).
        Option 3 of 6
        Pattern: `^con_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "connection".
        Option 3 of 6 · Always `connection`
      - `merchant` · `string` · required
        The merchant this connection belongs to (mer\_…).
        Option 3 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `provider` · `string` · required
        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.
        Option 3 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
      - `mode` · `string` · required
        live for a connection made with a live key, test for a test key.
        Option 3 of 6 · One of: `live`, `test`
      - `status` · `string` · required
        active (documents can be routed to it), pending (made on the hosted connect page, but the provider has not confirmed its credentials yet; Tallio verifies it again on a schedule and documents cannot be routed to it until it is active), invalid (the provider refused its credentials; fix and verify again), disconnected (no longer used; its credentials are deleted 30 days later).
        Option 3 of 6 · One of: `active`, `pending`, `invalid`, `disconnected`
      - `verified_at` · `string | null` · required
        When the provider last accepted its credentials; null until then.
        Option 3 of 6 · Format: `date-time`
      - `last_error` · `object | null` · required
        Why the provider last refused it; null otherwise.
        Option 3 of 6
        - `code` · `string` · required
          Stable machine-readable error code. Branch on this, never on `message`.
          Option 3 of 6 · 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`
        - `message` · `string` · required
          Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
          Option 3 of 6
        - `provider_code` · `string | null` · required
          The provider's own error code, or null when the error did not come from a provider.
          Option 3 of 6
        - `provider_message` · `string | null` · required
          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.
          Option 3 of 6
        - `retryable` · `boolean` · required
          True when the same request may succeed if sent again later.
          Option 3 of 6
        - `provider_raw` · `any`
          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.
          Option 3 of 6
      - `config` · `anyOf` · required
        The connection's settings, by provider: series and first\_number (mydata, impact, softone, prosvasis), numbering\_sequences (oxygen), document\_types (elorus), print\_issuer, series and first\_number (timologisi); empty for the others.
        Option 3 of 6
      - `config` · `object` · required
        This provider takes no connection settings.
        Option 3 of 6 › Option 1 of 5
      - `config` · `object` · required
        Numbering settings: the series and first number per document type, where Tallio numbers in myDATA.
        Option 3 of 6 › Option 2 of 5
        - `series` · `object`
          The myDATA series to number each document type in (1 to 50 characters ISO-8859-7 holds: Greek, Latin without accents, digits); a type left out uses TALLIO, a series of Tallio's own.
          Option 3 of 6 › Option 2 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 2 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
            Pattern: `^\S(?:.{0,48}\S)?$`
        - `first_number` · `object`
          The first number (aa) of each type's series, for a series your other software already used: the series starts there, or after the last number Tallio gave in it when that is higher.
          Option 3 of 6 › Option 2 of 5
          - `{key}` · `integer`
            Option 3 of 6 › Option 2 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3` · From 1 to 9999999999
      - `config` · `object` · required
        Oxygen connection settings: the numbering sequence per document type, where the account has a choice.
        Option 3 of 6 › Option 3 of 5
        - `numbering_sequences` · `object`
          The Oxygen numbering sequence id to number each document type in, when the account has several active ones for that type. A type left out takes the account's only active, non-draft sequence for it.
          Option 3 of 6 › Option 3 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 3 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3` · 1 to 64 characters
      - `config` · `object` · required
        Elorus connection settings: the document type per Tallio type, where the organisation has a choice.
        Option 3 of 6 › Option 4 of 5
        - `document_types` · `object`
          The Elorus document type id to issue each document type as, when the organisation has several active ones for its myDATA type. A type left out takes the organisation's default (or only) active one.
          Option 3 of 6 › Option 4 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 4 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
            Pattern: `^\d{1,30}$`
      - `config` · `object` · required
        timologisi.online connection settings: the issuer's print details and the myDATA numbering.
        Option 3 of 6 › Option 5 of 5
        - `print_issuer` · `object`
          The issuer's print details; timologisi.online refuses a document without profession and tax office.
          Option 3 of 6 › Option 5 of 5
          - `name` · `string`
            The printed company name; the document's supplier.name when left out.
            Option 3 of 6 › Option 5 of 5 · 1 to 200 characters
          - `profession` · `string` · required
            The printed business activity (επάγγελμα).
            Option 3 of 6 › Option 5 of 5 · 1 to 200 characters
          - `tax_office` · `string` · required
            The printed tax office (ΔΟΥ).
            Option 3 of 6 › Option 5 of 5 · 1 to 100 characters
          - `address` · `object`
            The printed address, with street and number; the document's supplier.address when left out.
            Option 3 of 6 › Option 5 of 5
            - `street` · `string` · required
              Street name.
              Option 3 of 6 › Option 5 of 5 · 1 to 150 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
            - `number` · `string` · required
              Street number.
              Option 3 of 6 › Option 5 of 5 · 1 to 20 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
            - `postal_code` · `string` · required
              Postal code.
              Option 3 of 6 › Option 5 of 5 · 1 to 20 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
            - `city` · `string` · required
              City.
              Option 3 of 6 › Option 5 of 5 · 1 to 150 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
          - `phone` · `string`
            Printed phone number.
            Option 3 of 6 › Option 5 of 5 · 1 to 50 characters
          - `email` · `string`
            Printed email address.
            Option 3 of 6 › Option 5 of 5 · Format: `email` · Up to 254 characters
          - `website` · `string`
            Printed website.
            Option 3 of 6 › Option 5 of 5 · 1 to 200 characters
          - `registry_number` · `string`
            Printed ΓΕΜΗ number.
            Option 3 of 6 › Option 5 of 5 · 1 to 50 characters
        - `series` · `object`
          The myDATA series to number each document type in (1 to 50 characters ISO-8859-7 holds: Greek, Latin without accents, digits); a type left out uses TALLIO, a series of Tallio's own.
          Option 3 of 6 › Option 5 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 5 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
            Pattern: `^\S(?:.{0,48}\S)?$`
        - `first_number` · `object`
          The first number (aa) of each type's series, for a series your other software already used: the series starts there, or after the last number Tallio gave in it when that is higher.
          Option 3 of 6 › Option 5 of 5
          - `{key}` · `integer`
            Option 3 of 6 › Option 5 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3` · From 1 to 9999999999
      - `created` · `string` · required
        When the connection was created.
        Option 3 of 6 · Format: `date-time`
  - `data` · `object` · required
    A connect-session event's data: object is the session right after the event (data.object.object is "connect\_session"); it never carries the link.
    Option 4 of 6
    - `object` · `object` · required
      The connect session right after the event, without its one-time link.
      Option 4 of 6
      - `id` · `string` · required
        Id of the connect session (cs\_…).
        Option 4 of 6
        Pattern: `^cs_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "connect\_session".
        Option 4 of 6 · Always `connect_session`
      - `merchant` · `string` · required
        The merchant being connected (mer\_…).
        Option 4 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `expires_at` · `string` · required
        When the link stops working: 30 minutes after it was made.
        Option 4 of 6 · Format: `date-time`
      - `completed_at` · `string | null` · required
        When the merchant connected through it; null until then.
        Option 4 of 6 · Format: `date-time`
      - `connection` · `string | null` · required
        The connection the merchant made through it (con\_…), or null.
        Option 4 of 6
        Pattern: `^con_[0-9A-Za-z]{22}$`
  - `data` · `object` · required
    A webhook-endpoint event's data: object is the endpoint right after the event (data.object.object is "webhook\_endpoint").
    Option 5 of 6
    - `object` · `object` · required
      A URL that receives your events, signed with its own secret.
      Option 5 of 6
      - `id` · `string` · required
        Id of the webhook endpoint (we\_…).
        Option 5 of 6
        Pattern: `^we_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "webhook\_endpoint".
        Option 5 of 6 · Always `webhook_endpoint`
      - `url` · `string` · required
        Where events are POSTed. In a webhook\_endpoint.\* event, only its origin (any path or query shown as /…), since a token may sit there; GET the endpoint for the whole URL.
        Option 5 of 6
      - `enabled_events` · `anyOf[]` · required
        The event types delivered, or \["\*"\].
        Option 5 of 6
        - `enabled_events[]` · `anyOf` · required
          An event type to deliver, or \* for every type.
          Option 5 of 6
        - `enabled_events[]` · `string` · required
          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).
          Option 5 of 6 › Option 1 of 2 · 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`
        - `enabled_events[]` · `string` · required
          Option 5 of 6 › Option 2 of 2 · Always `*`
      - `description` · `string | null` · required
        Your note about the endpoint, or null.
        Option 5 of 6
      - `mode` · `string` · required
        live for an endpoint made with a live key (live events), test for a test key.
        Option 5 of 6 · One of: `live`, `test`
      - `merchant` · `string | null` · required
        The one merchant whose events the endpoint receives: set on a store's endpoint, made when the store connected (Connect to Tallio); null for an endpoint that receives every merchant's events.
        Option 5 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `status` · `string` · required
        enabled (events are delivered) or disabled (by you, or by Tallio after failing for days).
        Option 5 of 6 · One of: `enabled`, `disabled`
      - `disabled_reason` · `string | null` · required
        Why Tallio disabled it (failing: it failed every delivery for days); null otherwise.
        Option 5 of 6
      - `created` · `string` · required
        When the endpoint was created.
        Option 5 of 6 · Format: `date-time`
  - `data` · `object` · required
    A store-order event's data: object is the store order right after the event (data.object.object is "store\_order"). A hint to read the order again: GET /store\_orders/{id} is the truth.
    Option 6 of 6
    - `object` · `object` · required
      A shop order sent to Tallio, and the document it became.
      Option 6 of 6
      - `id` · `string` · required
        Id of the store order (ord\_…).
        Option 6 of 6
        Pattern: `^ord_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "store\_order".
        Option 6 of 6 · Always `store_order`
      - `merchant` · `string` · required
        Id of the merchant (mer\_…).
        Option 6 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `mode` · `string` · required
        live for an order sent with a live key, test for a test key.
        Option 6 of 6 · One of: `live`, `test`
      - `platform` · `string` · required
        The platform the order comes from.
        Option 6 of 6 · One of: `shopify`, `woocommerce`
      - `external_id` · `string` · required
        The platform's id of the order.
        Option 6 of 6 · 1 to 64 characters
      - `number` · `string` · required
        The order number the merchant and the buyer see.
        Option 6 of 6
      - `status` · `string` · required
        pending (received, not yet mapped), skipped (it maps to no document: see reason), sent (its document was created and is on its way to the provider), issued (the document was issued), failed (the document was rejected, failed or cancelled, or Tallio could not create it: see reason).
        Option 6 of 6 · One of: `pending`, `skipped`, `sent`, `issued`, `failed`
      - `reason` · `string | null` · required
        Why the order is skipped or failed, as a machine code; null otherwise.
        Option 6 of 6
      - `detail` · `string | null` · required
        The reason in a sentence for the merchant; null when there is no reason.
        Option 6 of 6
      - `document` · `object | null` · required
        The document issued for the order, once one was created; null before.
        Option 6 of 6
        - `id` · `string` · required
          Id of the document (doc\_…).
          Option 6 of 6
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `object` · `string` · required
          Always "document".
          Option 6 of 6 · Always `document`
        - `merchant` · `string` · required
          Id of the merchant (mer\_…).
          Option 6 of 6
          Pattern: `^mer_[0-9A-Za-z]{22}$`
        - `mode` · `string` · required
          live for a document created with a live key, test for a test key.
          Option 6 of 6 · One of: `live`, `test`
        - `provider` · `string` · required
          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.
          Option 6 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
        - `regime` · `string` · required
          Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
          Option 6 of 6 · One of: `GR`, `FR` · Default: `GR`
        - `type` · `string` · required
          Document type, by regime.
          > **Greece:** An AADE myDATA type (e.g. 1.1).
          
          > **France:** A UNTDID 1001 code (e.g. 380).
          
          Option 6 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
        - `number` · `string | null` · required
          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).
          
          Option 6 of 6 · Default: `null`
        - `status` · `string` · required
          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).
          Option 6 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
        - `stage` · `string | null` · required
          Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
          Option 6 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
        - `issue_date` · `string` · required
          Issue date, YYYY-MM-DD.
          Option 6 of 6 · Format: `date`
        - `currency` · `string` · required
          ISO 4217 currency of the amounts.
          > **Greece:** EUR.
          
          > **France:** Any with cents.
          
          Option 6 of 6
          Pattern: `^[A-Z]{3}$`
        - `net` · `integer` · required
          Sum of the lines' net amounts, in minor units, at most 1000000000000000.
          Option 6 of 6 · From 0 to 1000000000000000
        - `vat` · `integer` · required
          Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
          Option 6 of 6 · From 0 to 1000000000000000
        - `gross` · `integer` · required
          net + vat, in minor units, at most 1250000000000000.
          Option 6 of 6 · From 0 to 1250000000000000
        - `provider_reference` · `string | null` · required
          The provider's own reference for the document, once it has taken it; null before.
          Option 6 of 6
        - `mydata` · `object | null` · required
          myDATA's identity of the document: an object in GR, null in any other regime.
          Option 6 of 6
          - `mark` · `string | null` · required
            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).
            Option 6 of 6
            Pattern: `^[1-9]\d{0,18}$`
          - `uid` · `string | null` · required
            myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
            Option 6 of 6
            Pattern: `^[0-9A-F]{40}$`
          - `qr_url` · `string | null` · required
            URL the document's QR code points to; null until the provider returns one.
            Option 6 of 6 · Format: `uri`
          - `cancellation_mark` · `string | null` · required
            The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
            Option 6 of 6
            Pattern: `^[1-9]\d{0,18}$`
        - `ctc` · `object | null` · required
          The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
          Option 6 of 6
          - `platform_id` · `string | null` · required
            The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
            Option 6 of 6
          - `flow_id` · `string | null` · required
            The platform's id of the flow that carried the document; null until it reports one.
            Option 6 of 6
        - `lifecycle` · `object | null` · required
          The tax regime's status for the document once sent.
          > **Greece:** Always null.
          
          > **France:** Null until the platform reports one.
          
          Option 6 of 6 · Default: `null`
          - `key` · `string` · required
            Where the document is after issue, in GOBL's bill.Status keys.
            Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
          - `code` · `string` · required
            The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
            Option 6 of 6 · 1 to 20 characters
          - `at` · `string` · required
            When the regime's platform reported this status.
            Option 6 of 6 · Format: `date-time`
        - `lifecycle_history` · `object[]` · 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.
          Option 6 of 6 · Up to 30 items · Default: `[]`
          Each item: One lifecycle status the tax regime's platform reported for the document. Option 6 of 6
          - `key` · `string` · required
            Where the document is after issue, in GOBL's bill.Status keys.
            Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
          - `code` · `string` · required
            The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
            Option 6 of 6 · 1 to 20 characters
          - `at` · `string` · required
            When the regime's platform reported this status.
            Option 6 of 6 · Format: `date-time`
          - `provider_status` · `string | null` · required
            The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
            Option 6 of 6 · 1 to 64 characters
            Pattern: `^[A-Za-z0-9_.:-]+$`
          - `reason` · `string | null` · required
            The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
            Option 6 of 6 · 1 to 64 characters
            Pattern: `^[A-Za-z0-9_.:-]+$`
        - `error` · `object | null` · required
          Why the document was rejected or failed; null otherwise.
          Option 6 of 6
          - `code` · `string` · required
            Stable machine-readable error code. Branch on this, never on `message`.
            Option 6 of 6 · 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`
          - `message` · `string` · required
            Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
            Option 6 of 6
          - `provider_code` · `string | null` · required
            The provider's own error code, or null when the error did not come from a provider.
            Option 6 of 6
          - `provider_message` · `string | null` · required
            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.
            Option 6 of 6
          - `retryable` · `boolean` · required
            True when the same request may succeed if sent again later.
            Option 6 of 6
          - `provider_raw` · `any`
            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.
            Option 6 of 6
        - `classification` · `object` · required
          How the document was classified for myDATA.
          Option 6 of 6
          - `source` · `string` · required
            default when any line took Tallio's default, else override when any line took the merchant's override, else line.
            Option 6 of 6 · One of: `line`, `override`, `default`
          - `warnings` · `string[]` · required
            What to check before issuing, e.g. that defaults were applied.
            Option 6 of 6
            Each item: Option 6 of 6
        - `external_reference` · `string | null` · required
          Your own reference for the document, or null.
          Option 6 of 6 · Default: `null`
        - `metadata` · `object` · required
          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.
          Option 6 of 6 · Default: `{}`
          - `{key}` · `string`
            A value, up to 500 characters.
            Option 6 of 6 · 1 to 40 characters
        - `original_document` · `string | null` · required
          For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `replaces` · `string | null` · required
          The rejected or failed document this one was issued to replace, or null.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `corrects` · `string | null` · required
          The issued document this one corrects, or null.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `replaced_by` · `string | null` · required
          The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `corrected_by` · `string | null` · required
          The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `credit_notes` · `string[]` · required
          Credit notes made from this document, oldest first, at most 100.
          Option 6 of 6 · Up to 100 items · Default: `[]`
          Each item: Id of the document (doc\_…). Option 6 of 6
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `amount_credited` · `object` · required
          What credit notes made from this document take, pending ones included. Zero when there are none.
          Option 6 of 6 · Default: `{"net":0,"gross":0}`
          - `net` · `integer` · required
            Net amount credited, in cents.
            Option 6 of 6 · From 0 to 9007199254740991
          - `gross` · `integer` · required
            Gross amount credited, in cents.
            Option 6 of 6 · From 0 to 9007199254740991
        - `timeline` · `object[]` · required
          The document's events, oldest first, at most 100.
          Option 6 of 6 · Up to 100 items
          Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 6 of 6
          - `id` · `string` · required
            Id of the event (evt\_…).
            Option 6 of 6
            Pattern: `^evt_[0-9A-Za-z]{22}$`
          - `type` · `string` · required
            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).
            Option 6 of 6 · 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`
          - `created` · `string` · required
            When the event happened.
            Option 6 of 6 · Format: `date-time`
        - `issued_at` · `string | null` · required
          When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
          Option 6 of 6 · Format: `date-time`
        - `created` · `string` · required
          When Tallio accepted the document.
          Option 6 of 6 · Format: `date-time`
        - `updated` · `string` · required
          When the document last changed.
          Option 6 of 6 · Format: `date-time`
      - `warnings` · `object[]` · required
        What the merchant should know about the order's document (a rounding cent, a free line left off, the store's default payment method); empty when there is nothing, or before the order is mapped.
        Option 6 of 6
        Each item: Something the merchant should know about the document made for the order; the document was still made. Option 6 of 6
        - `code` · `string` · required
          What is worth knowing about the document, as a machine code: the store's method used for an unrecognised payment method, a free line left out, a rounding difference, an invoice request not met, or a registered detail not applied.
          Option 6 of 6 · One of: `payment_method_default`, `free_line_omitted`, `rounding_difference`, `invoice_requested_invalid_vat`, `invoice_requested_incomplete`, `invoice_customer_is_supplier`, `invoice_request_ambiguous`, `invoice_billing_not_greek`, `invoice_name_from_person`, `invoice_field_truncated`, `invoice_registry_address_not_applied`, `invoice_request_too_late`, `delivery_address_omitted`
        - `detail` · `string` · required
          The warning in a sentence for the merchant.
          Option 6 of 6
        - `difference` · `integer | null` · required
          rounding\_difference only: what the customer paid minus the document's gross, in cents (hundredths of the currency), negative when the document is higher; null for every other warning.
          Option 6 of 6 · From -9007199254740991 to 9007199254740991
      - `refunds` · `object[]` · required
        The order's refunds sent with POST /store\_orders/{id}/refunds, oldest first, each with its credit note once one was created; empty when there are none.
        Option 6 of 6
        Each item: A store order's refund sent to Tallio, and the credit note it became. Option 6 of 6
        - `id` · `string` · required
          Id of the store refund (ref\_…).
          Option 6 of 6
          Pattern: `^ref_[0-9A-Za-z]{22}$`
        - `object` · `string` · required
          Always "store\_refund".
          Option 6 of 6 · Always `store_refund`
        - `merchant` · `string` · required
          Id of the merchant (mer\_…).
          Option 6 of 6
          Pattern: `^mer_[0-9A-Za-z]{22}$`
        - `store_order` · `string` · required
          The store order it refunds (ord\_…).
          Option 6 of 6
          Pattern: `^ord_[0-9A-Za-z]{22}$`
        - `external_id` · `string` · required
          The platform's id of the refund.
          Option 6 of 6
        - `status` · `string` · required
          pending (received, or waiting for the order's document to be issued), skipped (it maps to no credit note: see reason), sent (its credit note was created and is on its way to the provider), issued (the credit note was issued), failed (the credit note was rejected, failed or cancelled, or Tallio could not create it: see reason).
          Option 6 of 6 · One of: `pending`, `skipped`, `sent`, `issued`, `failed`
        - `reason` · `string | null` · required
          Why the refund is skipped or failed, as a machine code; null otherwise.
          Option 6 of 6
        - `detail` · `string | null` · required
          The reason in a sentence for the merchant; null when there is no reason.
          Option 6 of 6
        - `document` · `object | null` · required
          The credit note issued for the refund, linked to the order's document, once one was created; null before.
          Option 6 of 6
          - `id` · `string` · required
            Id of the document (doc\_…).
            Option 6 of 6
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `object` · `string` · required
            Always "document".
            Option 6 of 6 · Always `document`
          - `merchant` · `string` · required
            Id of the merchant (mer\_…).
            Option 6 of 6
            Pattern: `^mer_[0-9A-Za-z]{22}$`
          - `mode` · `string` · required
            live for a document created with a live key, test for a test key.
            Option 6 of 6 · One of: `live`, `test`
          - `provider` · `string` · required
            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.
            Option 6 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
          - `regime` · `string` · required
            Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
            Option 6 of 6 · One of: `GR`, `FR` · Default: `GR`
          - `type` · `string` · required
            Document type, by regime.
            > **Greece:** An AADE myDATA type (e.g. 1.1).
            
            > **France:** A UNTDID 1001 code (e.g. 380).
            
            Option 6 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
          - `number` · `string | null` · required
            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).
            
            Option 6 of 6 · Default: `null`
          - `status` · `string` · required
            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).
            Option 6 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
          - `stage` · `string | null` · required
            Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
            Option 6 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
          - `issue_date` · `string` · required
            Issue date, YYYY-MM-DD.
            Option 6 of 6 · Format: `date`
          - `currency` · `string` · required
            ISO 4217 currency of the amounts.
            > **Greece:** EUR.
            
            > **France:** Any with cents.
            
            Option 6 of 6
            Pattern: `^[A-Z]{3}$`
          - `net` · `integer` · required
            Sum of the lines' net amounts, in minor units, at most 1000000000000000.
            Option 6 of 6 · From 0 to 1000000000000000
          - `vat` · `integer` · required
            Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
            Option 6 of 6 · From 0 to 1000000000000000
          - `gross` · `integer` · required
            net + vat, in minor units, at most 1250000000000000.
            Option 6 of 6 · From 0 to 1250000000000000
          - `provider_reference` · `string | null` · required
            The provider's own reference for the document, once it has taken it; null before.
            Option 6 of 6
          - `mydata` · `object | null` · required
            myDATA's identity of the document: an object in GR, null in any other regime.
            Option 6 of 6
            - `mark` · `string | null` · required
              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).
              Option 6 of 6
              Pattern: `^[1-9]\d{0,18}$`
            - `uid` · `string | null` · required
              myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
              Option 6 of 6
              Pattern: `^[0-9A-F]{40}$`
            - `qr_url` · `string | null` · required
              URL the document's QR code points to; null until the provider returns one.
              Option 6 of 6 · Format: `uri`
            - `cancellation_mark` · `string | null` · required
              The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
              Option 6 of 6
              Pattern: `^[1-9]\d{0,18}$`
          - `ctc` · `object | null` · required
            The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
            Option 6 of 6
            - `platform_id` · `string | null` · required
              The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
              Option 6 of 6
            - `flow_id` · `string | null` · required
              The platform's id of the flow that carried the document; null until it reports one.
              Option 6 of 6
          - `lifecycle` · `object | null` · required
            The tax regime's status for the document once sent.
            > **Greece:** Always null.
            
            > **France:** Null until the platform reports one.
            
            Option 6 of 6 · Default: `null`
            - `key` · `string` · required
              Where the document is after issue, in GOBL's bill.Status keys.
              Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
            - `code` · `string` · required
              The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
              Option 6 of 6 · 1 to 20 characters
            - `at` · `string` · required
              When the regime's platform reported this status.
              Option 6 of 6 · Format: `date-time`
          - `lifecycle_history` · `object[]` · 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.
            Option 6 of 6 · Up to 30 items · Default: `[]`
            Each item: One lifecycle status the tax regime's platform reported for the document. Option 6 of 6
            - `key` · `string` · required
              Where the document is after issue, in GOBL's bill.Status keys.
              Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
            - `code` · `string` · required
              The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
              Option 6 of 6 · 1 to 20 characters
            - `at` · `string` · required
              When the regime's platform reported this status.
              Option 6 of 6 · Format: `date-time`
            - `provider_status` · `string | null` · required
              The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
              Option 6 of 6 · 1 to 64 characters
              Pattern: `^[A-Za-z0-9_.:-]+$`
            - `reason` · `string | null` · required
              The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
              Option 6 of 6 · 1 to 64 characters
              Pattern: `^[A-Za-z0-9_.:-]+$`
          - `error` · `object | null` · required
            Why the document was rejected or failed; null otherwise.
            Option 6 of 6
            - `code` · `string` · required
              Stable machine-readable error code. Branch on this, never on `message`.
              Option 6 of 6 · 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`
            - `message` · `string` · required
              Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
              Option 6 of 6
            - `provider_code` · `string | null` · required
              The provider's own error code, or null when the error did not come from a provider.
              Option 6 of 6
            - `provider_message` · `string | null` · required
              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.
              Option 6 of 6
            - `retryable` · `boolean` · required
              True when the same request may succeed if sent again later.
              Option 6 of 6
            - `provider_raw` · `any`
              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.
              Option 6 of 6
          - `classification` · `object` · required
            How the document was classified for myDATA.
            Option 6 of 6
            - `source` · `string` · required
              default when any line took Tallio's default, else override when any line took the merchant's override, else line.
              Option 6 of 6 · One of: `line`, `override`, `default`
            - `warnings` · `string[]` · required
              What to check before issuing, e.g. that defaults were applied.
              Option 6 of 6
              Each item: Option 6 of 6
          - `external_reference` · `string | null` · required
            Your own reference for the document, or null.
            Option 6 of 6 · Default: `null`
          - `metadata` · `object` · required
            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.
            Option 6 of 6 · Default: `{}`
            - `{key}` · `string`
              A value, up to 500 characters.
              Option 6 of 6 · 1 to 40 characters
          - `original_document` · `string | null` · required
            For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `replaces` · `string | null` · required
            The rejected or failed document this one was issued to replace, or null.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `corrects` · `string | null` · required
            The issued document this one corrects, or null.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `replaced_by` · `string | null` · required
            The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `corrected_by` · `string | null` · required
            The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `credit_notes` · `string[]` · required
            Credit notes made from this document, oldest first, at most 100.
            Option 6 of 6 · Up to 100 items · Default: `[]`
            Each item: Id of the document (doc\_…). Option 6 of 6
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `amount_credited` · `object` · required
            What credit notes made from this document take, pending ones included. Zero when there are none.
            Option 6 of 6 · Default: `{"net":0,"gross":0}`
            - `net` · `integer` · required
              Net amount credited, in cents.
              Option 6 of 6 · From 0 to 9007199254740991
            - `gross` · `integer` · required
              Gross amount credited, in cents.
              Option 6 of 6 · From 0 to 9007199254740991
          - `timeline` · `object[]` · required
            The document's events, oldest first, at most 100.
            Option 6 of 6 · Up to 100 items
            Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 6 of 6
            - `id` · `string` · required
              Id of the event (evt\_…).
              Option 6 of 6
              Pattern: `^evt_[0-9A-Za-z]{22}$`
            - `type` · `string` · required
              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).
              Option 6 of 6 · 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`
            - `created` · `string` · required
              When the event happened.
              Option 6 of 6 · Format: `date-time`
          - `issued_at` · `string | null` · required
            When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
            Option 6 of 6 · Format: `date-time`
          - `created` · `string` · required
            When Tallio accepted the document.
            Option 6 of 6 · Format: `date-time`
          - `updated` · `string` · required
            When the document last changed.
            Option 6 of 6 · Format: `date-time`
        - `warnings` · `object[]` · required
          What the merchant should know about the credit note (a rounding cent); empty when there is nothing.
          Option 6 of 6
          Each item: Something the merchant should know about the document made for the order; the document was still made. Option 6 of 6
          - `code` · `string` · required
            What is worth knowing about the document, as a machine code: the store's method used for an unrecognised payment method, a free line left out, a rounding difference, an invoice request not met, or a registered detail not applied.
            Option 6 of 6 · One of: `payment_method_default`, `free_line_omitted`, `rounding_difference`, `invoice_requested_invalid_vat`, `invoice_requested_incomplete`, `invoice_customer_is_supplier`, `invoice_request_ambiguous`, `invoice_billing_not_greek`, `invoice_name_from_person`, `invoice_field_truncated`, `invoice_registry_address_not_applied`, `invoice_request_too_late`, `delivery_address_omitted`
          - `detail` · `string` · required
            The warning in a sentence for the merchant.
            Option 6 of 6
          - `difference` · `integer | null` · required
            rounding\_difference only: what the customer paid minus the document's gross, in cents (hundredths of the currency), negative when the document is higher; null for every other warning.
            Option 6 of 6 · From -9007199254740991 to 9007199254740991
        - `handled` · `string | null` · required
          When the merchant marked the skipped or failed refund handled (POST /store\_orders/{id}/refunds/{refundId}/mark\_handled); null otherwise.
          Option 6 of 6 · Format: `date-time`
        - `voided_numbers` · `object[]` · required
          > **Greece:** Always empty.
          
          > **France:** The numbers Tallio numbered the refund's credit note with that no document carries, oldest first, with why; empty otherwise. Each stays a gap in its series, never reused: keep this record of why, since the series must be continuous or each gap justified (CGI ann. II art. 242 nonies A).
          
          Option 6 of 6
          Each item: A French number Tallio gave this record that no document carries: kept as a gap in the series. Option 6 of 6
          - `number` · `string` · required
            The French number left unused.
            Option 6 of 6
          - `reason` · `string` · required
            Why the number went unused: handled\_by\_hand (the merchant marked the record handled before an issued document took it: none was made, or the provider rejected the one that carried it), taken (Tallio already held that number for the merchant), not\_issued (the record closed for good, with no document, after it was numbered), replaced (the order was corrected again in place of a correction that was rejected or failed, so never issued under it).
            Option 6 of 6 · One of: `handled_by_hand`, `taken`, `not_issued`, `replaced`
        - `action_needed` · `boolean` · required
          Whether the refund waits for the merchant: skipped or failed, not marked handled, and not a skip that needs nothing. A refund waiting for its order's document (original\_not\_issued) is not while the order itself asks; once the order is marked handled it is, and it is credited if the order's document is made.
          Option 6 of 6
        - `created` · `string` · required
          When Tallio received the refund.
          Option 6 of 6 · Format: `date-time`
      - `handled` · `string | null` · required
        When the merchant marked the skipped or failed order handled (POST /store\_orders/{id}/mark\_handled); null otherwise, and again after a retry.
        Option 6 of 6 · Format: `date-time`
      - `voided_numbers` · `object[]` · required
        > **Greece:** Always empty.
        
        > **France:** The numbers Tallio numbered the order's invoice with that no document carries, oldest first, with why; empty otherwise. Each stays a gap in its series, never reused: keep this record of why, since the series must be continuous or each gap justified (CGI ann. II art. 242 nonies A).
        
        Option 6 of 6
        Each item: A French number Tallio gave this record that no document carries: kept as a gap in the series. Option 6 of 6
        - `number` · `string` · required
          The French number left unused.
          Option 6 of 6
        - `reason` · `string` · required
          Why the number went unused: handled\_by\_hand (the merchant marked the record handled before an issued document took it: none was made, or the provider rejected the one that carried it), taken (Tallio already held that number for the merchant), not\_issued (the record closed for good, with no document, after it was numbered), replaced (the order was corrected again in place of a correction that was rejected or failed, so never issued under it).
          Option 6 of 6 · One of: `handled_by_hand`, `taken`, `not_issued`, `replaced`
      - `action_needed` · `boolean` · required
        Whether the order itself waits for the merchant: skipped or failed, not marked handled, and not a skip that needs nothing (test\_order, no\_lines, sale\_to\_report…). GET /store\_orders?status=action\_needed lists these, and also orders with a refund that waits for the merchant (its own action\_needed).
        Option 6 of 6
      - `retryable` · `boolean` · required
        Whether POST /store\_orders/{id}/retry acts on it now: a skip fixed outside the order (provider\_not\_connected, order\_not\_paid, tallio\_refused, number\_taken…), a failed job, or a failed document Tallio can send again, none marked handled. A rejected document is corrected instead.
        > **France:** An invoice held as fr\_numbering\_pending (kept before Tallio numbered store invoices) is retryable even if marked handled: send it again to issue it.
        
        Option 6 of 6
      - `correctable` · `boolean` · required
        Whether POST /store\_orders/{id}/correct may act on it now: its document is issued, or was cancelled or credited in full, with no correction yet; or its document is a correction that was rejected or failed (correct again). Not for one partly credited.
        > **France:** Not for an invoice the buyer refused (210) or the platform rejected after issue (213).
        
        Option 6 of 6
      - `cancellable` · `boolean` · required
        Whether POST /store\_orders/{id}/cancel may act on it now.
        > **Greece:** Its document is issued, with no correction and no credit note.
        
        > **France:** Never; invoices are never cancelled, only corrected.
        
        Option 6 of 6
      - `created` · `string` · required
        When Tallio received the order; a retry of a skip moves it to the retry, since the document is dated by it. A French invoice is dated by the Paris day its number was given instead, which a retry keeps, so the series stays in date order.
        Option 6 of 6 · Format: `date-time`
  - `request` · `object | null` · required
    The API call that caused the event; null when Tallio caused it, e.g. issuing in the background.
    - `id` · `string` · required
      Request id (the x-request-id response header) of the API call that caused it.
      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})$`
    - `idempotency_key` · `string | null` · required
      The Idempotency-Key that call sent, or null.
      1 to 255 characters
      Pattern: `^[\x21-\x7E]*$`
- `has_more` · `boolean` · required
  Whether more items exist past this page in the direction you paged (starting\_after or ending\_before).

*Example response · 200*

```json
{
  "object": "list",
  "data": [],
  "has_more": false
}
```

*Response headers*

- `x-request-id` · `string`
  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
  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-limit` · `integer`
  Requests allowed in the current window for the bucket this request counted against.
  With 200, 400, 409, 429 · At least 1
- `ratelimit-remaining` · `integer`
  Requests left in the current window; 0 means the next one is refused until the window resets.
  With 200, 400, 409, 429 · At least 0
- `ratelimit-reset` · `integer`
  Seconds until the current window resets.
  With 200, 400, 409, 429 · At least 0
- `www-authenticate` · `string`
  The bearer challenge: send a vendor secret key as `Authorization: Bearer <key>`.
  With 401 · Always `Bearer realm="tallio"`
- `retry-after` · `integer`
  Seconds to wait before retrying a request refused with 429 `rate_limited`.
  With 429 · At least 1

*Errors*

| Code | Status | Retryable | Meaning |
| --- | --- | --- | --- |
| `validation_failed` | 400 | No | Request validation failed. |
| `unauthorized` | 401 | No | Authentication is required. |
| `vendor_suspended` | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
| `restricted_key` | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
| `cursor_not_listed` | 409 | No | ending\_before names an event GET /events has not served yet (a transaction below it may still commit); resume from the id of an event the list returned. |
| `rate_limited` | 429 | Yes | A rate limit was reached. Retry later. |
| `internal_error` | 500 | No | An unexpected server error occurred. |

## Retrieve an event

`GET /api/v1/events/{id}`

Returns one event of your key's mode, with the snapshot of its object taken when it happened.

*Bearer API key*

*Path parameters*

- `id` · `string` · required
  The event's id (evt\_…).

*Request*

*curl*

```bash
curl -X GET 'https://tallio.dev/api/v1/events/evt_02y9O8rh7F50tGi0QcWRrx' \
  -H "Authorization: Bearer $TALLIO_API_KEY"
```

*TypeScript SDK*

```ts
import { createTallioClient, unwrap } from "@tallio-dev/sdk";

const tallio = createTallioClient({
  apiKey: process.env.TALLIO_API_KEY!,
  baseUrl: "https://tallio.dev",
});

const result = await unwrap(tallio.http.GET("/api/v1/events/{id}", {
  params: {
    path: {
      id: "evt_02y9O8rh7F50tGi0QcWRrx",
    },
  },
}));
```

*Responses*

| Status | Description |
| --- | --- |
| `200` | The event. |
| 4XX, 5XX | An error: see Errors below. |

*Response body · 200*

- `data` · `object` · required
  Something that happened in your account. Webhooks deliver these; consumers dedupe on id.
  - `id` · `string` · required
    Id of the event (evt\_…).
    Pattern: `^evt_[0-9A-Za-z]{22}$`
  - `object` · `string` · required
    Always "event".
    Always `event`
  - `type` · `string` · required
    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`
  - `created` · `string` · required
    When the event happened.
    Format: `date-time`
  - `api_version` · `string` · required
    The API version data.object is rendered in, e.g. 0.1.0.
  - `livemode` · `boolean` · required
    True for an event from live mode, false for test mode.
  - `data` · `anyOf` · required
    The object the event is about. Its kind follows from type (document.\* carries a Document, merchant.\* a Merchant, connection.\* a Connection, connect\_session.\* a ConnectSession, webhook\_endpoint.\* a WebhookEndpoint, store\_order.\* a StoreOrder); narrow on data.object.object.
  - `data` · `object` · required
    A document event's data: object is the document right after the event (data.object.object is "document").
    Option 1 of 6
    - `object` · `object` · required
      A fiscal document Tallio issues through a provider, with its status and history.
      Option 1 of 6
      - `id` · `string` · required
        Id of the document (doc\_…).
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "document".
        Option 1 of 6 · Always `document`
      - `merchant` · `string` · required
        Id of the merchant (mer\_…).
        Option 1 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `mode` · `string` · required
        live for a document created with a live key, test for a test key.
        Option 1 of 6 · One of: `live`, `test`
      - `provider` · `string` · required
        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.
        Option 1 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
      - `regime` · `string` · required
        Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
        Option 1 of 6 · One of: `GR`, `FR` · Default: `GR`
      - `type` · `string` · required
        Document type, by regime.
        > **Greece:** An AADE myDATA type (e.g. 1.1).
        
        > **France:** A UNTDID 1001 code (e.g. 380).
        
        Option 1 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
      - `number` · `string | null` · required
        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).
        
        Option 1 of 6 · Default: `null`
      - `status` · `string` · required
        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).
        Option 1 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
      - `stage` · `string | null` · required
        Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
        Option 1 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
      - `issue_date` · `string` · required
        Issue date, YYYY-MM-DD.
        Option 1 of 6 · Format: `date`
      - `currency` · `string` · required
        ISO 4217 currency of the amounts.
        > **Greece:** EUR.
        
        > **France:** Any with cents.
        
        Option 1 of 6
        Pattern: `^[A-Z]{3}$`
      - `net` · `integer` · required
        Sum of the lines' net amounts, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `vat` · `integer` · required
        Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `gross` · `integer` · required
        net + vat, in minor units, at most 1250000000000000.
        Option 1 of 6 · From 0 to 1250000000000000
      - `provider_reference` · `string | null` · required
        The provider's own reference for the document, once it has taken it; null before.
        Option 1 of 6
      - `mydata` · `object | null` · required
        myDATA's identity of the document: an object in GR, null in any other regime.
        Option 1 of 6
        - `mark` · `string | null` · required
          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).
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
        - `uid` · `string | null` · required
          myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
          Option 1 of 6
          Pattern: `^[0-9A-F]{40}$`
        - `qr_url` · `string | null` · required
          URL the document's QR code points to; null until the provider returns one.
          Option 1 of 6 · Format: `uri`
        - `cancellation_mark` · `string | null` · required
          The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
      - `ctc` · `object | null` · required
        The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
        Option 1 of 6
        - `platform_id` · `string | null` · required
          The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
          Option 1 of 6
        - `flow_id` · `string | null` · required
          The platform's id of the flow that carried the document; null until it reports one.
          Option 1 of 6
      - `lifecycle` · `object | null` · required
        The tax regime's status for the document once sent.
        > **Greece:** Always null.
        
        > **France:** Null until the platform reports one.
        
        Option 1 of 6 · Default: `null`
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
      - `lifecycle_history` · `object[]` · 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.
        Option 1 of 6 · Up to 30 items · Default: `[]`
        Each item: One lifecycle status the tax regime's platform reported for the document. Option 1 of 6
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
        - `provider_status` · `string | null` · required
          The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
        - `reason` · `string | null` · required
          The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
      - `error` · `object | null` · required
        Why the document was rejected or failed; null otherwise.
        Option 1 of 6
        - `code` · `string` · required
          Stable machine-readable error code. Branch on this, never on `message`.
          Option 1 of 6 · 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`
        - `message` · `string` · required
          Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
          Option 1 of 6
        - `provider_code` · `string | null` · required
          The provider's own error code, or null when the error did not come from a provider.
          Option 1 of 6
        - `provider_message` · `string | null` · required
          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.
          Option 1 of 6
        - `retryable` · `boolean` · required
          True when the same request may succeed if sent again later.
          Option 1 of 6
        - `provider_raw` · `any`
          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.
          Option 1 of 6
      - `classification` · `object` · required
        How the document was classified for myDATA.
        Option 1 of 6
        - `source` · `string` · required
          default when any line took Tallio's default, else override when any line took the merchant's override, else line.
          Option 1 of 6 · One of: `line`, `override`, `default`
        - `warnings` · `string[]` · required
          What to check before issuing, e.g. that defaults were applied.
          Option 1 of 6
          Each item: Option 1 of 6
      - `external_reference` · `string | null` · required
        Your own reference for the document, or null.
        Option 1 of 6 · Default: `null`
      - `metadata` · `object` · required
        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.
        Option 1 of 6 · Default: `{}`
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 1 of 6 · 1 to 40 characters
      - `original_document` · `string | null` · required
        For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaces` · `string | null` · required
        The rejected or failed document this one was issued to replace, or null.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrects` · `string | null` · required
        The issued document this one corrects, or null.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaced_by` · `string | null` · required
        The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrected_by` · `string | null` · required
        The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
        Option 1 of 6 · Default: `null`
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `credit_notes` · `string[]` · required
        Credit notes made from this document, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items · Default: `[]`
        Each item: Id of the document (doc\_…). Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `amount_credited` · `object` · required
        What credit notes made from this document take, pending ones included. Zero when there are none.
        Option 1 of 6 · Default: `{"net":0,"gross":0}`
        - `net` · `integer` · required
          Net amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
        - `gross` · `integer` · required
          Gross amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
      - `timeline` · `object[]` · required
        The document's events, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items
        Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 1 of 6
        - `id` · `string` · required
          Id of the event (evt\_…).
          Option 1 of 6
          Pattern: `^evt_[0-9A-Za-z]{22}$`
        - `type` · `string` · required
          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).
          Option 1 of 6 · 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`
        - `created` · `string` · required
          When the event happened.
          Option 1 of 6 · Format: `date-time`
      - `issued_at` · `string | null` · required
        When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
        Option 1 of 6 · Format: `date-time`
      - `created` · `string` · required
        When Tallio accepted the document.
        Option 1 of 6 · Format: `date-time`
      - `updated` · `string` · required
        When the document last changed.
        Option 1 of 6 · Format: `date-time`
    - `previous_attributes` · `object`
      The values the changed fields had before the event; absent for an event that changed nothing.
      Option 1 of 6
      - `id` · `string`
        Id of the document (doc\_…).
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `object` · `string`
        Always "document".
        Option 1 of 6 · Always `document`
      - `merchant` · `string`
        Id of the merchant (mer\_…).
        Option 1 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `mode` · `string`
        live for a document created with a live key, test for a test key.
        Option 1 of 6 · One of: `live`, `test`
      - `provider` · `string`
        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.
        Option 1 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
      - `regime` · `string`
        Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
        Option 1 of 6 · One of: `GR`, `FR`
      - `type` · `string`
        Document type, by regime.
        > **Greece:** An AADE myDATA type (e.g. 1.1).
        
        > **France:** A UNTDID 1001 code (e.g. 380).
        
        Option 1 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
      - `number` · `string | null`
        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).
        
        Option 1 of 6
      - `status` · `string`
        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).
        Option 1 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
      - `stage` · `string | null`
        Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
        Option 1 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
      - `issue_date` · `string`
        Issue date, YYYY-MM-DD.
        Option 1 of 6 · Format: `date`
      - `currency` · `string`
        ISO 4217 currency of the amounts.
        > **Greece:** EUR.
        
        > **France:** Any with cents.
        
        Option 1 of 6
        Pattern: `^[A-Z]{3}$`
      - `net` · `integer`
        Sum of the lines' net amounts, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `vat` · `integer`
        Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
        Option 1 of 6 · From 0 to 1000000000000000
      - `gross` · `integer`
        net + vat, in minor units, at most 1250000000000000.
        Option 1 of 6 · From 0 to 1250000000000000
      - `provider_reference` · `string | null`
        The provider's own reference for the document, once it has taken it; null before.
        Option 1 of 6
      - `mydata` · `object | null`
        myDATA's identity of the document: an object in GR, null in any other regime.
        Option 1 of 6
        - `mark` · `string | null` · required
          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).
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
        - `uid` · `string | null` · required
          myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
          Option 1 of 6
          Pattern: `^[0-9A-F]{40}$`
        - `qr_url` · `string | null` · required
          URL the document's QR code points to; null until the provider returns one.
          Option 1 of 6 · Format: `uri`
        - `cancellation_mark` · `string | null` · required
          The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
          Option 1 of 6
          Pattern: `^[1-9]\d{0,18}$`
      - `ctc` · `object | null`
        The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
        Option 1 of 6
        - `platform_id` · `string | null` · required
          The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
          Option 1 of 6
        - `flow_id` · `string | null` · required
          The platform's id of the flow that carried the document; null until it reports one.
          Option 1 of 6
      - `lifecycle` · `object | null`
        The tax regime's status for the document once sent.
        > **Greece:** Always null.
        
        > **France:** Null until the platform reports one.
        
        Option 1 of 6
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
      - `lifecycle_history` · `object[]`
        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.
        Option 1 of 6 · Up to 30 items
        Each item: One lifecycle status the tax regime's platform reported for the document. Option 1 of 6
        - `key` · `string` · required
          Where the document is after issue, in GOBL's bill.Status keys.
          Option 1 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
        - `code` · `string` · required
          The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
          Option 1 of 6 · 1 to 20 characters
        - `at` · `string` · required
          When the regime's platform reported this status.
          Option 1 of 6 · Format: `date-time`
        - `provider_status` · `string | null` · required
          The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
        - `reason` · `string | null` · required
          The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
          Option 1 of 6 · 1 to 64 characters
          Pattern: `^[A-Za-z0-9_.:-]+$`
      - `error` · `object | null`
        Why the document was rejected or failed; null otherwise.
        Option 1 of 6
        - `code` · `string` · required
          Stable machine-readable error code. Branch on this, never on `message`.
          Option 1 of 6 · 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`
        - `message` · `string` · required
          Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
          Option 1 of 6
        - `provider_code` · `string | null` · required
          The provider's own error code, or null when the error did not come from a provider.
          Option 1 of 6
        - `provider_message` · `string | null` · required
          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.
          Option 1 of 6
        - `retryable` · `boolean` · required
          True when the same request may succeed if sent again later.
          Option 1 of 6
        - `provider_raw` · `any`
          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.
          Option 1 of 6
      - `classification` · `object`
        How the document was classified for myDATA.
        Option 1 of 6
        - `source` · `string` · required
          default when any line took Tallio's default, else override when any line took the merchant's override, else line.
          Option 1 of 6 · One of: `line`, `override`, `default`
        - `warnings` · `string[]` · required
          What to check before issuing, e.g. that defaults were applied.
          Option 1 of 6
          Each item: Option 1 of 6
      - `external_reference` · `string | null`
        Your own reference for the document, or null.
        Option 1 of 6
      - `metadata` · `object`
        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.
        Option 1 of 6
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 1 of 6 · 1 to 40 characters
      - `original_document` · `string | null`
        For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaces` · `string | null`
        The rejected or failed document this one was issued to replace, or null.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrects` · `string | null`
        The issued document this one corrects, or null.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `replaced_by` · `string | null`
        The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `corrected_by` · `string | null`
        The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
        Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `credit_notes` · `string[]`
        Credit notes made from this document, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items
        Each item: Id of the document (doc\_…). Option 1 of 6
        Pattern: `^doc_[0-9A-Za-z]{22}$`
      - `amount_credited` · `object`
        What credit notes made from this document take, pending ones included. Zero when there are none.
        Option 1 of 6
        - `net` · `integer` · required
          Net amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
        - `gross` · `integer` · required
          Gross amount credited, in cents.
          Option 1 of 6 · From 0 to 9007199254740991
      - `timeline` · `object[]`
        The document's events, oldest first, at most 100.
        Option 1 of 6 · Up to 100 items
        Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 1 of 6
        - `id` · `string` · required
          Id of the event (evt\_…).
          Option 1 of 6
          Pattern: `^evt_[0-9A-Za-z]{22}$`
        - `type` · `string` · required
          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).
          Option 1 of 6 · 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`
        - `created` · `string` · required
          When the event happened.
          Option 1 of 6 · Format: `date-time`
      - `issued_at` · `string | null`
        When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
        Option 1 of 6 · Format: `date-time`
      - `created` · `string`
        When Tallio accepted the document.
        Option 1 of 6 · Format: `date-time`
      - `updated` · `string`
        When the document last changed.
        Option 1 of 6 · Format: `date-time`
  - `data` · `object` · required
    A merchant event's data: object is the merchant right after the event (data.object.object is "merchant").
    Option 2 of 6
    - `object` · `object` · required
      A business that issues documents under your account.
      Option 2 of 6
      - `id` · `string` · required
        Id of the merchant (mer\_…).
        Option 2 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "merchant".
        Option 2 of 6 · Always `merchant`
      - `external_id` · `string` · required
        Your own id for the merchant, e.g. a shop domain: 1 to 200 characters, trimmed, unique in your account ignoring case (Shop-A and shop-a are the same merchant). Find a merchant by it.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `name` · `string` · required
        The merchant's name, as you show it: 1 to 200 characters, trimmed.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `regime` · `string` · required
        The tax regime the merchant issues under: GR or FR.
        Option 2 of 6 · One of: `GR`, `FR` · Default: `GR`
      - `tax_id` · `object | null` · required
        The merchant's tax registration (GR afm, FR vat), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `legal_id` · `object | null` · required
        The merchant's company registration (FR siren), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `establishment` · `object | null` · required
        The establishment the merchant issues from (GR branch, FR siret), or null for the head office.
        Option 2 of 6
        - `scheme` · `string` · required
          Establishment scheme: branch (AADE) or siret.
          Option 2 of 6 · One of: `branch`, `siret`
        - `code` · `string` · required
          The branch number or the SIRET.
          Option 2 of 6
      - `metadata` · `object` · required
        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.
        Option 2 of 6
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 2 of 6 · 1 to 40 characters
      - `archived` · `boolean` · required
        True once the merchant is archived; it then issues nothing new.
        Option 2 of 6
      - `created` · `string` · required
        When the merchant was created.
        Option 2 of 6 · Format: `date-time`
    - `previous_attributes` · `object`
      The values the changed fields had before the event; absent for an event that changed nothing.
      Option 2 of 6
      - `id` · `string`
        Id of the merchant (mer\_…).
        Option 2 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `object` · `string`
        Always "merchant".
        Option 2 of 6 · Always `merchant`
      - `external_id` · `string`
        Your own id for the merchant, e.g. a shop domain: 1 to 200 characters, trimmed, unique in your account ignoring case (Shop-A and shop-a are the same merchant). Find a merchant by it.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `name` · `string`
        The merchant's name, as you show it: 1 to 200 characters, trimmed.
        Option 2 of 6 · Up to 200 characters
        Pattern: `\S`
      - `regime` · `string`
        The tax regime the merchant issued under: GR or FR.
        Option 2 of 6 · One of: `GR`, `FR`
      - `tax_id` · `object | null`
        The merchant's tax registration (GR afm, FR vat), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `legal_id` · `object | null`
        The merchant's company registration (FR siren), or null when it has none.
        Option 2 of 6
        - `country` · `string` · required
          ISO 3166-1 alpha-2 country of the registration.
          Option 2 of 6
        - `scheme` · `string` · required
          Identifier scheme: afm, vat, tin, siren or siret.
          Option 2 of 6 · One of: `afm`, `vat`, `tin`, `siren`, `siret`
        - `code` · `string` · required
          The identifier itself, as given.
          Option 2 of 6
      - `establishment` · `object | null`
        The establishment the merchant issues from (GR branch, FR siret), or null for the head office.
        Option 2 of 6
        - `scheme` · `string` · required
          Establishment scheme: branch (AADE) or siret.
          Option 2 of 6 · One of: `branch`, `siret`
        - `code` · `string` · required
          The branch number or the SIRET.
          Option 2 of 6
      - `metadata` · `object`
        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.
        Option 2 of 6
        - `{key}` · `string`
          A value, up to 500 characters.
          Option 2 of 6 · 1 to 40 characters
      - `archived` · `boolean`
        True once the merchant is archived; it then issues nothing new.
        Option 2 of 6
      - `created` · `string`
        When the merchant was created.
        Option 2 of 6 · Format: `date-time`
  - `data` · `object` · required
    A connection event's data: object is the connection right after the event (data.object.object is "connection").
    Option 3 of 6
    - `object` · `object` · required
      A merchant's credentials for one provider in one mode. The credentials themselves are never returned.
      Option 3 of 6
      - `id` · `string` · required
        Id of the connection (con\_…).
        Option 3 of 6
        Pattern: `^con_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "connection".
        Option 3 of 6 · Always `connection`
      - `merchant` · `string` · required
        The merchant this connection belongs to (mer\_…).
        Option 3 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `provider` · `string` · required
        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.
        Option 3 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
      - `mode` · `string` · required
        live for a connection made with a live key, test for a test key.
        Option 3 of 6 · One of: `live`, `test`
      - `status` · `string` · required
        active (documents can be routed to it), pending (made on the hosted connect page, but the provider has not confirmed its credentials yet; Tallio verifies it again on a schedule and documents cannot be routed to it until it is active), invalid (the provider refused its credentials; fix and verify again), disconnected (no longer used; its credentials are deleted 30 days later).
        Option 3 of 6 · One of: `active`, `pending`, `invalid`, `disconnected`
      - `verified_at` · `string | null` · required
        When the provider last accepted its credentials; null until then.
        Option 3 of 6 · Format: `date-time`
      - `last_error` · `object | null` · required
        Why the provider last refused it; null otherwise.
        Option 3 of 6
        - `code` · `string` · required
          Stable machine-readable error code. Branch on this, never on `message`.
          Option 3 of 6 · 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`
        - `message` · `string` · required
          Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
          Option 3 of 6
        - `provider_code` · `string | null` · required
          The provider's own error code, or null when the error did not come from a provider.
          Option 3 of 6
        - `provider_message` · `string | null` · required
          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.
          Option 3 of 6
        - `retryable` · `boolean` · required
          True when the same request may succeed if sent again later.
          Option 3 of 6
        - `provider_raw` · `any`
          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.
          Option 3 of 6
      - `config` · `anyOf` · required
        The connection's settings, by provider: series and first\_number (mydata, impact, softone, prosvasis), numbering\_sequences (oxygen), document\_types (elorus), print\_issuer, series and first\_number (timologisi); empty for the others.
        Option 3 of 6
      - `config` · `object` · required
        This provider takes no connection settings.
        Option 3 of 6 › Option 1 of 5
      - `config` · `object` · required
        Numbering settings: the series and first number per document type, where Tallio numbers in myDATA.
        Option 3 of 6 › Option 2 of 5
        - `series` · `object`
          The myDATA series to number each document type in (1 to 50 characters ISO-8859-7 holds: Greek, Latin without accents, digits); a type left out uses TALLIO, a series of Tallio's own.
          Option 3 of 6 › Option 2 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 2 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
            Pattern: `^\S(?:.{0,48}\S)?$`
        - `first_number` · `object`
          The first number (aa) of each type's series, for a series your other software already used: the series starts there, or after the last number Tallio gave in it when that is higher.
          Option 3 of 6 › Option 2 of 5
          - `{key}` · `integer`
            Option 3 of 6 › Option 2 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3` · From 1 to 9999999999
      - `config` · `object` · required
        Oxygen connection settings: the numbering sequence per document type, where the account has a choice.
        Option 3 of 6 › Option 3 of 5
        - `numbering_sequences` · `object`
          The Oxygen numbering sequence id to number each document type in, when the account has several active ones for that type. A type left out takes the account's only active, non-draft sequence for it.
          Option 3 of 6 › Option 3 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 3 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3` · 1 to 64 characters
      - `config` · `object` · required
        Elorus connection settings: the document type per Tallio type, where the organisation has a choice.
        Option 3 of 6 › Option 4 of 5
        - `document_types` · `object`
          The Elorus document type id to issue each document type as, when the organisation has several active ones for its myDATA type. A type left out takes the organisation's default (or only) active one.
          Option 3 of 6 › Option 4 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 4 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
            Pattern: `^\d{1,30}$`
      - `config` · `object` · required
        timologisi.online connection settings: the issuer's print details and the myDATA numbering.
        Option 3 of 6 › Option 5 of 5
        - `print_issuer` · `object`
          The issuer's print details; timologisi.online refuses a document without profession and tax office.
          Option 3 of 6 › Option 5 of 5
          - `name` · `string`
            The printed company name; the document's supplier.name when left out.
            Option 3 of 6 › Option 5 of 5 · 1 to 200 characters
          - `profession` · `string` · required
            The printed business activity (επάγγελμα).
            Option 3 of 6 › Option 5 of 5 · 1 to 200 characters
          - `tax_office` · `string` · required
            The printed tax office (ΔΟΥ).
            Option 3 of 6 › Option 5 of 5 · 1 to 100 characters
          - `address` · `object`
            The printed address, with street and number; the document's supplier.address when left out.
            Option 3 of 6 › Option 5 of 5
            - `street` · `string` · required
              Street name.
              Option 3 of 6 › Option 5 of 5 · 1 to 150 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
            - `number` · `string` · required
              Street number.
              Option 3 of 6 › Option 5 of 5 · 1 to 20 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
            - `postal_code` · `string` · required
              Postal code.
              Option 3 of 6 › Option 5 of 5 · 1 to 20 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
            - `city` · `string` · required
              City.
              Option 3 of 6 › Option 5 of 5 · 1 to 150 characters
              Pattern: `^(?:[^\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$`
          - `phone` · `string`
            Printed phone number.
            Option 3 of 6 › Option 5 of 5 · 1 to 50 characters
          - `email` · `string`
            Printed email address.
            Option 3 of 6 › Option 5 of 5 · Format: `email` · Up to 254 characters
          - `website` · `string`
            Printed website.
            Option 3 of 6 › Option 5 of 5 · 1 to 200 characters
          - `registry_number` · `string`
            Printed ΓΕΜΗ number.
            Option 3 of 6 › Option 5 of 5 · 1 to 50 characters
        - `series` · `object`
          The myDATA series to number each document type in (1 to 50 characters ISO-8859-7 holds: Greek, Latin without accents, digits); a type left out uses TALLIO, a series of Tallio's own.
          Option 3 of 6 › Option 5 of 5
          - `{key}` · `string`
            Option 3 of 6 › Option 5 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
            Pattern: `^\S(?:.{0,48}\S)?$`
        - `first_number` · `object`
          The first number (aa) of each type's series, for a series your other software already used: the series starts there, or after the last number Tallio gave in it when that is higher.
          Option 3 of 6 › Option 5 of 5
          - `{key}` · `integer`
            Option 3 of 6 › Option 5 of 5 · One of: `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3` · From 1 to 9999999999
      - `created` · `string` · required
        When the connection was created.
        Option 3 of 6 · Format: `date-time`
  - `data` · `object` · required
    A connect-session event's data: object is the session right after the event (data.object.object is "connect\_session"); it never carries the link.
    Option 4 of 6
    - `object` · `object` · required
      The connect session right after the event, without its one-time link.
      Option 4 of 6
      - `id` · `string` · required
        Id of the connect session (cs\_…).
        Option 4 of 6
        Pattern: `^cs_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "connect\_session".
        Option 4 of 6 · Always `connect_session`
      - `merchant` · `string` · required
        The merchant being connected (mer\_…).
        Option 4 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `expires_at` · `string` · required
        When the link stops working: 30 minutes after it was made.
        Option 4 of 6 · Format: `date-time`
      - `completed_at` · `string | null` · required
        When the merchant connected through it; null until then.
        Option 4 of 6 · Format: `date-time`
      - `connection` · `string | null` · required
        The connection the merchant made through it (con\_…), or null.
        Option 4 of 6
        Pattern: `^con_[0-9A-Za-z]{22}$`
  - `data` · `object` · required
    A webhook-endpoint event's data: object is the endpoint right after the event (data.object.object is "webhook\_endpoint").
    Option 5 of 6
    - `object` · `object` · required
      A URL that receives your events, signed with its own secret.
      Option 5 of 6
      - `id` · `string` · required
        Id of the webhook endpoint (we\_…).
        Option 5 of 6
        Pattern: `^we_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "webhook\_endpoint".
        Option 5 of 6 · Always `webhook_endpoint`
      - `url` · `string` · required
        Where events are POSTed. In a webhook\_endpoint.\* event, only its origin (any path or query shown as /…), since a token may sit there; GET the endpoint for the whole URL.
        Option 5 of 6
      - `enabled_events` · `anyOf[]` · required
        The event types delivered, or \["\*"\].
        Option 5 of 6
        - `enabled_events[]` · `anyOf` · required
          An event type to deliver, or \* for every type.
          Option 5 of 6
        - `enabled_events[]` · `string` · required
          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).
          Option 5 of 6 › Option 1 of 2 · 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`
        - `enabled_events[]` · `string` · required
          Option 5 of 6 › Option 2 of 2 · Always `*`
      - `description` · `string | null` · required
        Your note about the endpoint, or null.
        Option 5 of 6
      - `mode` · `string` · required
        live for an endpoint made with a live key (live events), test for a test key.
        Option 5 of 6 · One of: `live`, `test`
      - `merchant` · `string | null` · required
        The one merchant whose events the endpoint receives: set on a store's endpoint, made when the store connected (Connect to Tallio); null for an endpoint that receives every merchant's events.
        Option 5 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `status` · `string` · required
        enabled (events are delivered) or disabled (by you, or by Tallio after failing for days).
        Option 5 of 6 · One of: `enabled`, `disabled`
      - `disabled_reason` · `string | null` · required
        Why Tallio disabled it (failing: it failed every delivery for days); null otherwise.
        Option 5 of 6
      - `created` · `string` · required
        When the endpoint was created.
        Option 5 of 6 · Format: `date-time`
  - `data` · `object` · required
    A store-order event's data: object is the store order right after the event (data.object.object is "store\_order"). A hint to read the order again: GET /store\_orders/{id} is the truth.
    Option 6 of 6
    - `object` · `object` · required
      A shop order sent to Tallio, and the document it became.
      Option 6 of 6
      - `id` · `string` · required
        Id of the store order (ord\_…).
        Option 6 of 6
        Pattern: `^ord_[0-9A-Za-z]{22}$`
      - `object` · `string` · required
        Always "store\_order".
        Option 6 of 6 · Always `store_order`
      - `merchant` · `string` · required
        Id of the merchant (mer\_…).
        Option 6 of 6
        Pattern: `^mer_[0-9A-Za-z]{22}$`
      - `mode` · `string` · required
        live for an order sent with a live key, test for a test key.
        Option 6 of 6 · One of: `live`, `test`
      - `platform` · `string` · required
        The platform the order comes from.
        Option 6 of 6 · One of: `shopify`, `woocommerce`
      - `external_id` · `string` · required
        The platform's id of the order.
        Option 6 of 6 · 1 to 64 characters
      - `number` · `string` · required
        The order number the merchant and the buyer see.
        Option 6 of 6
      - `status` · `string` · required
        pending (received, not yet mapped), skipped (it maps to no document: see reason), sent (its document was created and is on its way to the provider), issued (the document was issued), failed (the document was rejected, failed or cancelled, or Tallio could not create it: see reason).
        Option 6 of 6 · One of: `pending`, `skipped`, `sent`, `issued`, `failed`
      - `reason` · `string | null` · required
        Why the order is skipped or failed, as a machine code; null otherwise.
        Option 6 of 6
      - `detail` · `string | null` · required
        The reason in a sentence for the merchant; null when there is no reason.
        Option 6 of 6
      - `document` · `object | null` · required
        The document issued for the order, once one was created; null before.
        Option 6 of 6
        - `id` · `string` · required
          Id of the document (doc\_…).
          Option 6 of 6
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `object` · `string` · required
          Always "document".
          Option 6 of 6 · Always `document`
        - `merchant` · `string` · required
          Id of the merchant (mer\_…).
          Option 6 of 6
          Pattern: `^mer_[0-9A-Za-z]{22}$`
        - `mode` · `string` · required
          live for a document created with a live key, test for a test key.
          Option 6 of 6 · One of: `live`, `test`
        - `provider` · `string` · required
          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.
          Option 6 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
        - `regime` · `string` · required
          Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
          Option 6 of 6 · One of: `GR`, `FR` · Default: `GR`
        - `type` · `string` · required
          Document type, by regime.
          > **Greece:** An AADE myDATA type (e.g. 1.1).
          
          > **France:** A UNTDID 1001 code (e.g. 380).
          
          Option 6 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
        - `number` · `string | null` · required
          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).
          
          Option 6 of 6 · Default: `null`
        - `status` · `string` · required
          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).
          Option 6 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
        - `stage` · `string | null` · required
          Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
          Option 6 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
        - `issue_date` · `string` · required
          Issue date, YYYY-MM-DD.
          Option 6 of 6 · Format: `date`
        - `currency` · `string` · required
          ISO 4217 currency of the amounts.
          > **Greece:** EUR.
          
          > **France:** Any with cents.
          
          Option 6 of 6
          Pattern: `^[A-Z]{3}$`
        - `net` · `integer` · required
          Sum of the lines' net amounts, in minor units, at most 1000000000000000.
          Option 6 of 6 · From 0 to 1000000000000000
        - `vat` · `integer` · required
          Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
          Option 6 of 6 · From 0 to 1000000000000000
        - `gross` · `integer` · required
          net + vat, in minor units, at most 1250000000000000.
          Option 6 of 6 · From 0 to 1250000000000000
        - `provider_reference` · `string | null` · required
          The provider's own reference for the document, once it has taken it; null before.
          Option 6 of 6
        - `mydata` · `object | null` · required
          myDATA's identity of the document: an object in GR, null in any other regime.
          Option 6 of 6
          - `mark` · `string | null` · required
            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).
            Option 6 of 6
            Pattern: `^[1-9]\d{0,18}$`
          - `uid` · `string | null` · required
            myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
            Option 6 of 6
            Pattern: `^[0-9A-F]{40}$`
          - `qr_url` · `string | null` · required
            URL the document's QR code points to; null until the provider returns one.
            Option 6 of 6 · Format: `uri`
          - `cancellation_mark` · `string | null` · required
            The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
            Option 6 of 6
            Pattern: `^[1-9]\d{0,18}$`
        - `ctc` · `object | null` · required
          The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
          Option 6 of 6
          - `platform_id` · `string | null` · required
            The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
            Option 6 of 6
          - `flow_id` · `string | null` · required
            The platform's id of the flow that carried the document; null until it reports one.
            Option 6 of 6
        - `lifecycle` · `object | null` · required
          The tax regime's status for the document once sent.
          > **Greece:** Always null.
          
          > **France:** Null until the platform reports one.
          
          Option 6 of 6 · Default: `null`
          - `key` · `string` · required
            Where the document is after issue, in GOBL's bill.Status keys.
            Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
          - `code` · `string` · required
            The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
            Option 6 of 6 · 1 to 20 characters
          - `at` · `string` · required
            When the regime's platform reported this status.
            Option 6 of 6 · Format: `date-time`
        - `lifecycle_history` · `object[]` · 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.
          Option 6 of 6 · Up to 30 items · Default: `[]`
          Each item: One lifecycle status the tax regime's platform reported for the document. Option 6 of 6
          - `key` · `string` · required
            Where the document is after issue, in GOBL's bill.Status keys.
            Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
          - `code` · `string` · required
            The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
            Option 6 of 6 · 1 to 20 characters
          - `at` · `string` · required
            When the regime's platform reported this status.
            Option 6 of 6 · Format: `date-time`
          - `provider_status` · `string | null` · required
            The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
            Option 6 of 6 · 1 to 64 characters
            Pattern: `^[A-Za-z0-9_.:-]+$`
          - `reason` · `string | null` · required
            The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
            Option 6 of 6 · 1 to 64 characters
            Pattern: `^[A-Za-z0-9_.:-]+$`
        - `error` · `object | null` · required
          Why the document was rejected or failed; null otherwise.
          Option 6 of 6
          - `code` · `string` · required
            Stable machine-readable error code. Branch on this, never on `message`.
            Option 6 of 6 · 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`
          - `message` · `string` · required
            Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
            Option 6 of 6
          - `provider_code` · `string | null` · required
            The provider's own error code, or null when the error did not come from a provider.
            Option 6 of 6
          - `provider_message` · `string | null` · required
            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.
            Option 6 of 6
          - `retryable` · `boolean` · required
            True when the same request may succeed if sent again later.
            Option 6 of 6
          - `provider_raw` · `any`
            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.
            Option 6 of 6
        - `classification` · `object` · required
          How the document was classified for myDATA.
          Option 6 of 6
          - `source` · `string` · required
            default when any line took Tallio's default, else override when any line took the merchant's override, else line.
            Option 6 of 6 · One of: `line`, `override`, `default`
          - `warnings` · `string[]` · required
            What to check before issuing, e.g. that defaults were applied.
            Option 6 of 6
            Each item: Option 6 of 6
        - `external_reference` · `string | null` · required
          Your own reference for the document, or null.
          Option 6 of 6 · Default: `null`
        - `metadata` · `object` · required
          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.
          Option 6 of 6 · Default: `{}`
          - `{key}` · `string`
            A value, up to 500 characters.
            Option 6 of 6 · 1 to 40 characters
        - `original_document` · `string | null` · required
          For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `replaces` · `string | null` · required
          The rejected or failed document this one was issued to replace, or null.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `corrects` · `string | null` · required
          The issued document this one corrects, or null.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `replaced_by` · `string | null` · required
          The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `corrected_by` · `string | null` · required
          The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
          Option 6 of 6 · Default: `null`
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `credit_notes` · `string[]` · required
          Credit notes made from this document, oldest first, at most 100.
          Option 6 of 6 · Up to 100 items · Default: `[]`
          Each item: Id of the document (doc\_…). Option 6 of 6
          Pattern: `^doc_[0-9A-Za-z]{22}$`
        - `amount_credited` · `object` · required
          What credit notes made from this document take, pending ones included. Zero when there are none.
          Option 6 of 6 · Default: `{"net":0,"gross":0}`
          - `net` · `integer` · required
            Net amount credited, in cents.
            Option 6 of 6 · From 0 to 9007199254740991
          - `gross` · `integer` · required
            Gross amount credited, in cents.
            Option 6 of 6 · From 0 to 9007199254740991
        - `timeline` · `object[]` · required
          The document's events, oldest first, at most 100.
          Option 6 of 6 · Up to 100 items
          Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 6 of 6
          - `id` · `string` · required
            Id of the event (evt\_…).
            Option 6 of 6
            Pattern: `^evt_[0-9A-Za-z]{22}$`
          - `type` · `string` · required
            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).
            Option 6 of 6 · 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`
          - `created` · `string` · required
            When the event happened.
            Option 6 of 6 · Format: `date-time`
        - `issued_at` · `string | null` · required
          When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
          Option 6 of 6 · Format: `date-time`
        - `created` · `string` · required
          When Tallio accepted the document.
          Option 6 of 6 · Format: `date-time`
        - `updated` · `string` · required
          When the document last changed.
          Option 6 of 6 · Format: `date-time`
      - `warnings` · `object[]` · required
        What the merchant should know about the order's document (a rounding cent, a free line left off, the store's default payment method); empty when there is nothing, or before the order is mapped.
        Option 6 of 6
        Each item: Something the merchant should know about the document made for the order; the document was still made. Option 6 of 6
        - `code` · `string` · required
          What is worth knowing about the document, as a machine code: the store's method used for an unrecognised payment method, a free line left out, a rounding difference, an invoice request not met, or a registered detail not applied.
          Option 6 of 6 · One of: `payment_method_default`, `free_line_omitted`, `rounding_difference`, `invoice_requested_invalid_vat`, `invoice_requested_incomplete`, `invoice_customer_is_supplier`, `invoice_request_ambiguous`, `invoice_billing_not_greek`, `invoice_name_from_person`, `invoice_field_truncated`, `invoice_registry_address_not_applied`, `invoice_request_too_late`, `delivery_address_omitted`
        - `detail` · `string` · required
          The warning in a sentence for the merchant.
          Option 6 of 6
        - `difference` · `integer | null` · required
          rounding\_difference only: what the customer paid minus the document's gross, in cents (hundredths of the currency), negative when the document is higher; null for every other warning.
          Option 6 of 6 · From -9007199254740991 to 9007199254740991
      - `refunds` · `object[]` · required
        The order's refunds sent with POST /store\_orders/{id}/refunds, oldest first, each with its credit note once one was created; empty when there are none.
        Option 6 of 6
        Each item: A store order's refund sent to Tallio, and the credit note it became. Option 6 of 6
        - `id` · `string` · required
          Id of the store refund (ref\_…).
          Option 6 of 6
          Pattern: `^ref_[0-9A-Za-z]{22}$`
        - `object` · `string` · required
          Always "store\_refund".
          Option 6 of 6 · Always `store_refund`
        - `merchant` · `string` · required
          Id of the merchant (mer\_…).
          Option 6 of 6
          Pattern: `^mer_[0-9A-Za-z]{22}$`
        - `store_order` · `string` · required
          The store order it refunds (ord\_…).
          Option 6 of 6
          Pattern: `^ord_[0-9A-Za-z]{22}$`
        - `external_id` · `string` · required
          The platform's id of the refund.
          Option 6 of 6
        - `status` · `string` · required
          pending (received, or waiting for the order's document to be issued), skipped (it maps to no credit note: see reason), sent (its credit note was created and is on its way to the provider), issued (the credit note was issued), failed (the credit note was rejected, failed or cancelled, or Tallio could not create it: see reason).
          Option 6 of 6 · One of: `pending`, `skipped`, `sent`, `issued`, `failed`
        - `reason` · `string | null` · required
          Why the refund is skipped or failed, as a machine code; null otherwise.
          Option 6 of 6
        - `detail` · `string | null` · required
          The reason in a sentence for the merchant; null when there is no reason.
          Option 6 of 6
        - `document` · `object | null` · required
          The credit note issued for the refund, linked to the order's document, once one was created; null before.
          Option 6 of 6
          - `id` · `string` · required
            Id of the document (doc\_…).
            Option 6 of 6
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `object` · `string` · required
            Always "document".
            Option 6 of 6 · Always `document`
          - `merchant` · `string` · required
            Id of the merchant (mer\_…).
            Option 6 of 6
            Pattern: `^mer_[0-9A-Za-z]{22}$`
          - `mode` · `string` · required
            live for a document created with a live key, test for a test key.
            Option 6 of 6 · One of: `live`, `test`
          - `provider` · `string` · required
            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.
            Option 6 of 6 · One of: `sandbox`, `mydata`, `wrapp`, `impact`, `epsilon`, `softone`, `prosvasis`, `superpdp`, `choruspro`, `b2brouter`, `oxygen`, `iopole`, `qonto`, `elorus`, `timologisi`
          - `regime` · `string` · required
            Tax regime the document is issued under, by country: GR (Greece, myDATA) or FR (France, e-invoicing through a plateforme agréée).
            Option 6 of 6 · One of: `GR`, `FR` · Default: `GR`
          - `type` · `string` · required
            Document type, by regime.
            > **Greece:** An AADE myDATA type (e.g. 1.1).
            
            > **France:** A UNTDID 1001 code (e.g. 380).
            
            Option 6 of 6 · One of: `380`, `381`, `384`, `386`, `1.1`, `2.1`, `5.1`, `5.2`, `11.1`, `11.2`, `11.4`, `2.2`, `2.3`
          - `number` · `string | null` · required
            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).
            
            Option 6 of 6 · Default: `null`
          - `status` · `string` · required
            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).
            Option 6 of 6 · One of: `pending`, `issued`, `rejected`, `failed`, `cancelled`
          - `stage` · `string | null` · required
            Where a pending document is (queued, submitting, awaiting\_confirmation, reconciling); null unless status is pending.
            Option 6 of 6 · One of: `queued`, `submitting`, `awaiting_confirmation`, `reconciling`
          - `issue_date` · `string` · required
            Issue date, YYYY-MM-DD.
            Option 6 of 6 · Format: `date`
          - `currency` · `string` · required
            ISO 4217 currency of the amounts.
            > **Greece:** EUR.
            
            > **France:** Any with cents.
            
            Option 6 of 6
            Pattern: `^[A-Z]{3}$`
          - `net` · `integer` · required
            Sum of the lines' net amounts, in minor units, at most 1000000000000000.
            Option 6 of 6 · From 0 to 1000000000000000
          - `vat` · `integer` · required
            Sum of the lines' VAT, each line rounded half up to the minor unit, in minor units, at most 1000000000000000.
            Option 6 of 6 · From 0 to 1000000000000000
          - `gross` · `integer` · required
            net + vat, in minor units, at most 1250000000000000.
            Option 6 of 6 · From 0 to 1250000000000000
          - `provider_reference` · `string | null` · required
            The provider's own reference for the document, once it has taken it; null before.
            Option 6 of 6
          - `mydata` · `object | null` · required
            myDATA's identity of the document: an object in GR, null in any other regime.
            Option 6 of 6
            - `mark` · `string | null` · required
              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).
              Option 6 of 6
              Pattern: `^[1-9]\d{0,18}$`
            - `uid` · `string | null` · required
              myDATA uid: the SHA-1 (40 upper-case hex digits) AADE derives from the document's identifiers; null until known.
              Option 6 of 6
              Pattern: `^[0-9A-F]{40}$`
            - `qr_url` · `string | null` · required
              URL the document's QR code points to; null until the provider returns one.
              Option 6 of 6 · Format: `uri`
            - `cancellation_mark` · `string | null` · required
              The MARK of the cancellation in myDATA, once an issued document is cancelled; null otherwise.
              Option 6 of 6
              Pattern: `^[1-9]\d{0,18}$`
          - `ctc` · `object | null` · required
            The French e-invoicing platform's identity of the document: an object in FR, null in any other regime.
            Option 6 of 6
            - `platform_id` · `string | null` · required
              The plateforme agréée carrying the document (sandbox in test mode); null until it has taken it.
              Option 6 of 6
            - `flow_id` · `string | null` · required
              The platform's id of the flow that carried the document; null until it reports one.
              Option 6 of 6
          - `lifecycle` · `object | null` · required
            The tax regime's status for the document once sent.
            > **Greece:** Always null.
            
            > **France:** Null until the platform reports one.
            
            Option 6 of 6 · Default: `null`
            - `key` · `string` · required
              Where the document is after issue, in GOBL's bill.Status keys.
              Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
            - `code` · `string` · required
              The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
              Option 6 of 6 · 1 to 20 characters
            - `at` · `string` · required
              When the regime's platform reported this status.
              Option 6 of 6 · Format: `date-time`
          - `lifecycle_history` · `object[]` · 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.
            Option 6 of 6 · Up to 30 items · Default: `[]`
            Each item: One lifecycle status the tax regime's platform reported for the document. Option 6 of 6
            - `key` · `string` · required
              Where the document is after issue, in GOBL's bill.Status keys.
              Option 6 of 6 · One of: `issued`, `acknowledged`, `processing`, `querying`, `rejected`, `accepted`, `paid`, `error`, `other`
            - `code` · `string` · required
              The regime's own status code, e.g. 200 (Déposée) or 213 (Rejetée) in France.
              Option 6 of 6 · 1 to 20 characters
            - `at` · `string` · required
              When the regime's platform reported this status.
              Option 6 of 6 · Format: `date-time`
            - `provider_status` · `string | null` · required
              The provider's own status the code was read from (e.g. refused, REJETEE, fr:210); null if it gave none.
              Option 6 of 6 · 1 to 64 characters
              Pattern: `^[A-Za-z0-9_.:-]+$`
            - `reason` · `string | null` · required
              The platform's reason code for a refusal, dispute or rejection, when it reports one; null otherwise. Free-text reasons are not kept.
              Option 6 of 6 · 1 to 64 characters
              Pattern: `^[A-Za-z0-9_.:-]+$`
          - `error` · `object | null` · required
            Why the document was rejected or failed; null otherwise.
            Option 6 of 6
            - `code` · `string` · required
              Stable machine-readable error code. Branch on this, never on `message`.
              Option 6 of 6 · 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`
            - `message` · `string` · required
              Tallio's own explanation, safe to show to a developer; the provider's words are in provider\_message.
              Option 6 of 6
            - `provider_code` · `string | null` · required
              The provider's own error code, or null when the error did not come from a provider.
              Option 6 of 6
            - `provider_message` · `string | null` · required
              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.
              Option 6 of 6
            - `retryable` · `boolean` · required
              True when the same request may succeed if sent again later.
              Option 6 of 6
            - `provider_raw` · `any`
              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.
              Option 6 of 6
          - `classification` · `object` · required
            How the document was classified for myDATA.
            Option 6 of 6
            - `source` · `string` · required
              default when any line took Tallio's default, else override when any line took the merchant's override, else line.
              Option 6 of 6 · One of: `line`, `override`, `default`
            - `warnings` · `string[]` · required
              What to check before issuing, e.g. that defaults were applied.
              Option 6 of 6
              Each item: Option 6 of 6
          - `external_reference` · `string | null` · required
            Your own reference for the document, or null.
            Option 6 of 6 · Default: `null`
          - `metadata` · `object` · required
            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.
            Option 6 of 6 · Default: `{}`
            - `{key}` · `string`
              A value, up to 500 characters.
              Option 6 of 6 · 1 to 40 characters
          - `original_document` · `string | null` · required
            For a credit note made from a Tallio document: that document (doc\_…). Null otherwise.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `replaces` · `string | null` · required
            The rejected or failed document this one was issued to replace, or null.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `corrects` · `string | null` · required
            The issued document this one corrects, or null.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `replaced_by` · `string | null` · required
            The document created to replace this rejected or failed one, the live one if there were several; null otherwise.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `corrected_by` · `string | null` · required
            The document made to correct this one (POST /documents/{id}/correct), the latest if there were several; null otherwise.
            Option 6 of 6 · Default: `null`
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `credit_notes` · `string[]` · required
            Credit notes made from this document, oldest first, at most 100.
            Option 6 of 6 · Up to 100 items · Default: `[]`
            Each item: Id of the document (doc\_…). Option 6 of 6
            Pattern: `^doc_[0-9A-Za-z]{22}$`
          - `amount_credited` · `object` · required
            What credit notes made from this document take, pending ones included. Zero when there are none.
            Option 6 of 6 · Default: `{"net":0,"gross":0}`
            - `net` · `integer` · required
              Net amount credited, in cents.
              Option 6 of 6 · From 0 to 9007199254740991
            - `gross` · `integer` · required
              Gross amount credited, in cents.
              Option 6 of 6 · From 0 to 9007199254740991
          - `timeline` · `object[]` · required
            The document's events, oldest first, at most 100.
            Option 6 of 6 · Up to 100 items
            Each item: One event in a document's history. GET /events/{id} returns the full Event. Option 6 of 6
            - `id` · `string` · required
              Id of the event (evt\_…).
              Option 6 of 6
              Pattern: `^evt_[0-9A-Za-z]{22}$`
            - `type` · `string` · required
              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).
              Option 6 of 6 · 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`
            - `created` · `string` · required
              When the event happened.
              Option 6 of 6 · Format: `date-time`
          - `issued_at` · `string | null` · required
            When the document was issued (the tax system accepted it); kept if it is cancelled afterwards, null for a document never issued.
            Option 6 of 6 · Format: `date-time`
          - `created` · `string` · required
            When Tallio accepted the document.
            Option 6 of 6 · Format: `date-time`
          - `updated` · `string` · required
            When the document last changed.
            Option 6 of 6 · Format: `date-time`
        - `warnings` · `object[]` · required
          What the merchant should know about the credit note (a rounding cent); empty when there is nothing.
          Option 6 of 6
          Each item: Something the merchant should know about the document made for the order; the document was still made. Option 6 of 6
          - `code` · `string` · required
            What is worth knowing about the document, as a machine code: the store's method used for an unrecognised payment method, a free line left out, a rounding difference, an invoice request not met, or a registered detail not applied.
            Option 6 of 6 · One of: `payment_method_default`, `free_line_omitted`, `rounding_difference`, `invoice_requested_invalid_vat`, `invoice_requested_incomplete`, `invoice_customer_is_supplier`, `invoice_request_ambiguous`, `invoice_billing_not_greek`, `invoice_name_from_person`, `invoice_field_truncated`, `invoice_registry_address_not_applied`, `invoice_request_too_late`, `delivery_address_omitted`
          - `detail` · `string` · required
            The warning in a sentence for the merchant.
            Option 6 of 6
          - `difference` · `integer | null` · required
            rounding\_difference only: what the customer paid minus the document's gross, in cents (hundredths of the currency), negative when the document is higher; null for every other warning.
            Option 6 of 6 · From -9007199254740991 to 9007199254740991
        - `handled` · `string | null` · required
          When the merchant marked the skipped or failed refund handled (POST /store\_orders/{id}/refunds/{refundId}/mark\_handled); null otherwise.
          Option 6 of 6 · Format: `date-time`
        - `voided_numbers` · `object[]` · required
          > **Greece:** Always empty.
          
          > **France:** The numbers Tallio numbered the refund's credit note with that no document carries, oldest first, with why; empty otherwise. Each stays a gap in its series, never reused: keep this record of why, since the series must be continuous or each gap justified (CGI ann. II art. 242 nonies A).
          
          Option 6 of 6
          Each item: A French number Tallio gave this record that no document carries: kept as a gap in the series. Option 6 of 6
          - `number` · `string` · required
            The French number left unused.
            Option 6 of 6
          - `reason` · `string` · required
            Why the number went unused: handled\_by\_hand (the merchant marked the record handled before an issued document took it: none was made, or the provider rejected the one that carried it), taken (Tallio already held that number for the merchant), not\_issued (the record closed for good, with no document, after it was numbered), replaced (the order was corrected again in place of a correction that was rejected or failed, so never issued under it).
            Option 6 of 6 · One of: `handled_by_hand`, `taken`, `not_issued`, `replaced`
        - `action_needed` · `boolean` · required
          Whether the refund waits for the merchant: skipped or failed, not marked handled, and not a skip that needs nothing. A refund waiting for its order's document (original\_not\_issued) is not while the order itself asks; once the order is marked handled it is, and it is credited if the order's document is made.
          Option 6 of 6
        - `created` · `string` · required
          When Tallio received the refund.
          Option 6 of 6 · Format: `date-time`
      - `handled` · `string | null` · required
        When the merchant marked the skipped or failed order handled (POST /store\_orders/{id}/mark\_handled); null otherwise, and again after a retry.
        Option 6 of 6 · Format: `date-time`
      - `voided_numbers` · `object[]` · required
        > **Greece:** Always empty.
        
        > **France:** The numbers Tallio numbered the order's invoice with that no document carries, oldest first, with why; empty otherwise. Each stays a gap in its series, never reused: keep this record of why, since the series must be continuous or each gap justified (CGI ann. II art. 242 nonies A).
        
        Option 6 of 6
        Each item: A French number Tallio gave this record that no document carries: kept as a gap in the series. Option 6 of 6
        - `number` · `string` · required
          The French number left unused.
          Option 6 of 6
        - `reason` · `string` · required
          Why the number went unused: handled\_by\_hand (the merchant marked the record handled before an issued document took it: none was made, or the provider rejected the one that carried it), taken (Tallio already held that number for the merchant), not\_issued (the record closed for good, with no document, after it was numbered), replaced (the order was corrected again in place of a correction that was rejected or failed, so never issued under it).
          Option 6 of 6 · One of: `handled_by_hand`, `taken`, `not_issued`, `replaced`
      - `action_needed` · `boolean` · required
        Whether the order itself waits for the merchant: skipped or failed, not marked handled, and not a skip that needs nothing (test\_order, no\_lines, sale\_to\_report…). GET /store\_orders?status=action\_needed lists these, and also orders with a refund that waits for the merchant (its own action\_needed).
        Option 6 of 6
      - `retryable` · `boolean` · required
        Whether POST /store\_orders/{id}/retry acts on it now: a skip fixed outside the order (provider\_not\_connected, order\_not\_paid, tallio\_refused, number\_taken…), a failed job, or a failed document Tallio can send again, none marked handled. A rejected document is corrected instead.
        > **France:** An invoice held as fr\_numbering\_pending (kept before Tallio numbered store invoices) is retryable even if marked handled: send it again to issue it.
        
        Option 6 of 6
      - `correctable` · `boolean` · required
        Whether POST /store\_orders/{id}/correct may act on it now: its document is issued, or was cancelled or credited in full, with no correction yet; or its document is a correction that was rejected or failed (correct again). Not for one partly credited.
        > **France:** Not for an invoice the buyer refused (210) or the platform rejected after issue (213).
        
        Option 6 of 6
      - `cancellable` · `boolean` · required
        Whether POST /store\_orders/{id}/cancel may act on it now.
        > **Greece:** Its document is issued, with no correction and no credit note.
        
        > **France:** Never; invoices are never cancelled, only corrected.
        
        Option 6 of 6
      - `created` · `string` · required
        When Tallio received the order; a retry of a skip moves it to the retry, since the document is dated by it. A French invoice is dated by the Paris day its number was given instead, which a retry keeps, so the series stays in date order.
        Option 6 of 6 · Format: `date-time`
  - `request` · `object | null` · required
    The API call that caused the event; null when Tallio caused it, e.g. issuing in the background.
    - `id` · `string` · required
      Request id (the x-request-id response header) of the API call that caused it.
      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})$`
    - `idempotency_key` · `string | null` · required
      The Idempotency-Key that call sent, or null.
      1 to 255 characters
      Pattern: `^[\x21-\x7E]*$`

*Example response · 200*

```json
{
  "data": {
    "id": "evt_02y9O8s1a8ymJqpmAy0nLe",
    "object": "event",
    "type": "document.issued",
    "created": "2026-10-11T09:30:02.000Z",
    "api_version": "0.1.0",
    "livemode": false,
    "data": {
      "object": {
        "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"
      },
      "previous_attributes": {
        "status": "pending",
        "stage": "awaiting_confirmation",
        "provider_reference": null,
        "mydata": {
          "mark": null,
          "uid": null,
          "qr_url": null,
          "cancellation_mark": null
        },
        "timeline": [
          {
            "id": "evt_02y9O8rhJ2Z2v1fOH2XiSH",
            "type": "document.created",
            "created": "2026-10-11T09:30:00.000Z"
          }
        ],
        "issued_at": null,
        "updated": "2026-10-11T09:30:00.000Z"
      }
    },
    "request": null
  }
}
```

*Response headers*

- `x-request-id` · `string`
  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
  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-limit` · `integer`
  Requests allowed in the current window for the bucket this request counted against.
  With 200, 404, 429 · At least 1
- `ratelimit-remaining` · `integer`
  Requests left in the current window; 0 means the next one is refused until the window resets.
  With 200, 404, 429 · At least 0
- `ratelimit-reset` · `integer`
  Seconds until the current window resets.
  With 200, 404, 429 · At least 0
- `www-authenticate` · `string`
  The bearer challenge: send a vendor secret key as `Authorization: Bearer <key>`.
  With 401 · Always `Bearer realm="tallio"`
- `retry-after` · `integer`
  Seconds to wait before retrying a request refused with 429 `rate_limited`.
  With 429 · At least 1

*Errors*

| Code | Status | Retryable | Meaning |
| --- | --- | --- | --- |
| `unauthorized` | 401 | No | Authentication is required. |
| `vendor_suspended` | 403 | No | This vendor's access to Tallio is suspended. Its owner can contact Tallio to restore it. |
| `restricted_key` | 403 | No | A restricted (store) key may not call this operation; it needs the vendor's secret key. |
| `not_found` | 404 | No | The requested resource was not found. |
| `rate_limited` | 429 | Yes | A rate limit was reached. Retry later. |
| `internal_error` | 500 | No | An unexpected server error occurred. |
