Products · DocFlow app

JSON and CSV output

Preview the final JSON, metadata and CSV before paying.

Version 1 · The app that connects the servicesDesigned, not builtModule 6 of 15

DesignUI ComponentsSections

UI Components Live gallery

DocFlow's own page sections. Everything else on DocFlow's pages comes from the services' component packages.

Each built component is shown live, from its package, in each of its states. Pick a state to see it; every state has its own stand-in for the service's API, with made-up data (CORE-V1-E0-19).

  • DocFlow's pages are built from the services' components; DocFlow adds only the documents list and the results views.
  • Same accessibility and size rules as every 01scale page.

DocumentsList

My documents with name, date, status chip and the next action; an empty state with a sample invoice.

Inputs

pageSizenumber, optional
Default 20.

States

  • Loading
  • Empty: 'Upload your first invoice' and the sample
  • Loaded
  • Failed: Retry

Calls

  • GET /documents

JsonPreview

The JSON with syntax highlighting and folding; usable on a phone.

Inputs

documentIdstring
The document.

States

  • Loading
  • Shown, folded at the first level on phones
  • Not ready
  • Failed: Retry

Calls

  • GET /documents/{documentId}/outputs/json/preview

CsvPreview

The CSV as a table that scrolls inside its own box.

Inputs

documentIdstring
The document.

States

  • Loading
  • Shown
  • Not ready
  • Failed: Retry

Calls

  • GET /documents/{documentId}/outputs/csv/preview

ResultsFieldEditor

The results page's Edit beside each value. It places Review's `FieldDecision` component for that field, then refreshes the previews and checks. DocFlow adds no editing logic of its own.

Inputs

documentIdstring
The document.
taskIdstring
Its Review task.
lockedboolean
From the outputs request. While locked, only the flagged fields are listed.

States

  • Before payment: the flagged fields only, and how many more fields unlock after payment
  • Viewing
  • Editing (Review's component)
  • Saved: previews refreshed
  • Check failed after saving: the warning
  • Failed: Retry

Calls

  • GET /documents/{documentId}/outputs
  • Review PATCH /tasks/{taskId}/fields/{fieldId}, through Review's component

DownloadButtons

Download JSON and Download CSV; 'Pay to download' while locked.

Inputs

documentIdstring
The document.
lockedboolean
From the outputs request.

States

  • Locked
  • Unlocked
  • Working

Calls

  • GET /documents/{documentId}/outputs/{format}/download