Filing periods and locks

Generate statutory due-date schedules, snapshot committed ledger totals into persistent return periods, lock filed periods against retroactive changes, and manage linked amendments.

Return period lifecycle

Each persistent return period moves through a controlled audit workflow: draft → ready → filed → amended. All filing endpoints require Starter or Growth and never consume monthly request quota.

StatusBehavior
draftInitial state after snapshotting ledger totals. Editable (notes, confirmation number, metadata) and snapshot-refreshable via refreshSnapshot: true.
readyReviewed and prepared for submission. Can still be refreshed or returned to draft before filing.
filedRecords filedAt and lockedAt. Return becomes read-only (409 filing_locked on PATCH) and locks the underlying period against commits and voids.
amendedSet automatically on a filed return when a linked draft amendment is created via POST /filings/{filingId}/amend.

Statutory due-date calendar

GET /filings/calendarFree · Starter+

Builds upcoming, open, overdue, and filed return slots from your entities' active state registrations (monthly, quarterly, or annual) and existing filing records. Statutory due dates model standard monthly schedules (for example, the 15th for ME; the 20th for most states including FL, TX, NY, CO, IL, PA, MN, NJ, MI, AZ, and NV; the 23rd for OH; the 25th for WA, KS, NM, and VT; the 30th for MA; and month-end for CA, CT, IA, MO, ND, UT, WI, WY, and AK—note that DOR-designated WI early-monthly filers use the 20th), rolling Saturday and Sunday due dates forward to the next Monday. State and federal holidays and non-monthly statutory exceptions are not modeled.

Filter with optional query parameters: entityId, state (or stateCode), from, to, and asOf (optional YYYY-MM-DD date used to evaluate isOverdue, defaulting to today UTC). To filter saved returns by status, use GET /filings.

200 OK (GET /filings/calendar)
{
  "from": "2026-10-01",
  "to": "2026-12-31",
  "asOf": "2026-11-29",
  "count": 2,
  "items": [
    {
      "entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
      "stateCode": "FL",
      "stateName": "Florida",
      "filingFrequency": "monthly",
      "periodStart": "2026-10-01",
      "periodEnd": "2026-10-31",
      "dueDate": "2026-11-20",
      "status": "filed",
      "filingId": "flg_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
      "isOverdue": false
    },
    {
      "entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
      "stateCode": "FL",
      "stateName": "Florida",
      "filingFrequency": "monthly",
      "periodStart": "2026-11-01",
      "periodEnd": "2026-11-30",
      "dueDate": "2026-12-21",
      "status": "unstarted",
      "filingId": null,
      "isOverdue": false
    }
  ]
}

Snapshot, list, and update filings

POST /filingsFree · Starter+
GET /filingsFree · Starter+
GET /filings/{filingId}Free · Starter+
PATCH /filings/{filingId}Free · Starter+

Calling POST /filings snapshots committed transactions for (entityId, state, periodStart..periodEnd) in exact integer cents (totalGrossSalesCents, totalTaxableSalesCents, totalExemptSalesCents, totalTaxCollectedCents, totalTaxRefundedCents, netTaxDueCents, and jurisdiction splits in summary) and creates a draft return (flg_...). Subsidiaries configured with taxReportingMode: "consolidated_with_parent" automatically roll into their separate_filer parent's filing snapshots. Creating a duplicate or overlapping non-amended filing for the same entity and state returns HTTP 409 (filing_already_exists). Filter saved returns on GET /filings by entityId, state, status, periodStart, periodEnd, and limit.

POST /filings request
{
  "entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
  "state": "FL",
  "periodStart": "2026-11-01",
  "periodEnd": "2026-11-30",
  "filingFrequency": "monthly",
  "notes": "November 2026 DR-15 preparation"
}
201 Created
{
  "filing": {
    "filingId": "flg_8f7e6d5c4b3a29180716253443526170",
    "entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
    "stateCode": "FL",
    "stateName": "Florida",
    "periodStart": "2026-11-01",
    "periodEnd": "2026-11-30",
    "filingFrequency": "monthly",
    "dueDate": "2026-12-21",
    "status": "draft",
    "amendedFromFilingId": null,
    "summary": {
      "saleCount": 140,
      "refundCount": 2,
      "totalGrossSalesCents": 4825000,
      "totalRefundedSalesCents": 100000,
      "totalTaxableSalesCents": 4500000,
      "totalExemptSalesCents": 325000,
      "totalShippingCents": 0,
      "totalTaxCollectedCents": 337500,
      "totalTaxRefundedCents": 7500,
      "netTaxDueCents": 330000,
      "transactionCount": 142,
      "truncated": false,
      "jurisdictions": [
        {
          "jurisdictionName": "Florida",
          "rateName": "Florida",
          "jurisdictionType": "state",
          "rate": 0.06,
          "saleCount": 140,
          "refundCount": 2,
          "taxCollectedCents": 270000,
          "taxRefundedCents": 6000,
          "netTaxCents": 264000
        }
      ],
      "generatedAt": "2026-12-01T00:00:00.000Z"
    },
    "totalGrossSalesCents": 4825000,
    "totalTaxableSalesCents": 4500000,
    "totalExemptSalesCents": 325000,
    "totalTaxCollectedCents": 337500,
    "totalTaxRefundedCents": 7500,
    "netTaxDueCents": 330000,
    "deltaTaxDueCents": null,
    "transactionCount": 142,
    "truncated": false,
    "confirmationNumber": null,
    "notes": "November 2026 DR-15 preparation",
    "metadata": null,
    "lockedAt": null,
    "filedAt": null,
    "createdAt": 1796083200000,
    "updatedAt": 1796083200000
  }
}

Use PATCH /filings/{filingId} to update status, confirmationNumber, notes, or metadata, or pass refreshSnapshot: true while in draft or ready. Transitioning a return to filed automatically refreshes its snapshot inside the same mutation and rejects truncated snapshots with HTTP 409 (invalid_filing_state) so incomplete totals can never be locked as filed. Patching an already-filed or amended return fails with HTTP 409 (filing_locked).

PATCH /filings/{filingId} (mark filed)
{
  "status": "filed",
  "confirmationNumber": "FL-DR15-20261218-4491"
}

Period locks on filed returns

When a filing transitions to filed, Net Amount locks the (entityId, stateCode, periodStart..periodEnd) period to preserve filed return numbers:

  • Blocked commits and voids: POST /tax/calculate with commit: true and POST /transactions/{transactionId}/void return HTTP 409 (filing_period_locked) when the transaction's transactionDate falls inside a locked period.
  • Consolidated subsidiary locks: consolidated_with_parent subsidiaries inherit their separate_filer parent's period locks, so subsidiary commits or voids inside a locked parent return period are also rejected with 409 filing_period_locked.
  • Entity scope requirement: Workspace-wide transactions committed without an entityId are not period-locked because filing periods are scoped to a legal entity.
  • Refunds in open periods remain allowed: Issuing a refund against a sale from a locked period succeeds whenever the refund's own transactionDate lands in an open (unlocked) period, keeping historical filed totals intact while crediting tax in the current return period.

Linked amendments

POST /filings/{filingId}/amendFree · Starter+

When an already-filed return needs correction, call POST /filings/{filingId}/amend with Content-Type: application/json (send {} or optional notes / metadata). Net Amount marks the original return amended, creates a new linked draft filing with amendedFromFilingId, re-snapshots the ledger, and returns { filing, originalFiling, deltaTaxDueCents }. While the amendment is open in draft or ready, adjustment transactions for that period can be recorded until the amended filing is marked filed, which re-locks the period. Calling /amend on a non-filed return returns HTTP 409 (invalid_filing_state).

POST /filings/{filingId}/amend request
{
  "notes": "Amended to include late marketplace adjustment"
}
201 Created
{
  "filing": {
    "filingId": "flg_2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e",
    "entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
    "stateCode": "FL",
    "stateName": "Florida",
    "periodStart": "2026-11-01",
    "periodEnd": "2026-11-30",
    "filingFrequency": "monthly",
    "dueDate": "2026-12-21",
    "status": "draft",
    "amendedFromFilingId": "flg_8f7e6d5c4b3a29180716253443526170",
    "netTaxDueCents": 345000,
    "deltaTaxDueCents": 15000,
    "summary": {
      "priorNetTaxDueCents": 330000,
      "deltaTaxDueCents": 15000
    }
  },
  "originalFiling": {
    "filingId": "flg_8f7e6d5c4b3a29180716253443526170",
    "status": "amended",
    "netTaxDueCents": 330000
  },
  "deltaTaxDueCents": 15000
}