スキーマとエクスポートのレイアウト
ScanToExcelが抽出するフィールドと、ダウンロードしたファイルでの配置を確認できます。対応フィールドでも、文書に情報が存在することや、必ず値が抽出されることを保証するものではありません。
すべてのプランで、エクスポート用テンプレートの列見出しとフィールド名は英語です。抽出したテキストと元の表の見出しは、通常、文書の言語のまま出力されます。 サイトの表示言語を変えても、ダウンロードするファイルは翻訳されません。JSONキー、あらかじめ定義されたワークシートのラベル、会計用テンプレートの見出しは変わりません。日付、数値、通貨コード、一部の分類値は標準化される場合があるため、出力結果を確認してください。
出力を選ぶ
- JSON
- JSONは明細や取引のリストなど、入れ子になった文書データを保持します。ダウンロードされるのは文書オブジェクトそのもので、利用上限やファイル転送のメタデータは含みません。フラット設定はJSONに影響しません。
- フラット
- フラット出力は、行と一貫した列で構成される長方形の表です。各行は1つの明細項目や取引を表し、必要に応じて文書情報を繰り返します。各表は固有の固定列構造を持ちます。Excelには複数のシートが含まれる場合があり、CSVには1つの表が含まれます。
- 非フラット
- 非フラットのExcelとCSVでは、文書情報、明細、税金、合計、警告など、目的と列構成が異なる表を横に並べます。全体が同じ構造の1つのデータ表になるわけではありません。Wordでは縦に配置します。給与明細書と表の画像には専用レイアウトを使用します。
| 文書 | JSON | レイアウト | Xero CSV | QuickBooks CSV |
|---|---|---|---|---|
| 領収書 | 対応 | フラット / 非フラット | 対応 | 非対応 |
| 請求書 | 対応 | フラット / 非フラット | 対応 | 非対応 |
| 銀行取引明細書 | 対応 | フラット / 非フラット | 対応 | 対応 |
| クレジットカード明細書 | 対応 | フラット / 非フラット | 対応 | 対応 |
| 給与明細書 | 対応 | 専用レイアウト | 非対応 | 非対応 |
| 表の画像 | 対応 | 専用レイアウト | 非対応 | 非対応 |
会計用CSVは専用テンプレートを使うPremiumの出力オプションです。XeroやQuickBooksへの直接接続ではなく、ダウンロード用ファイルを作成します。インポート前にフィールドと勘定科目の対応を確認してください。 料金プラン
領収書
販売者、日付、通貨、領収書番号、明細ごとの数量と価格、税金、支払方法、合計です。税率は小数で表し、0.20は20%を意味します。
JSONフィールド
型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
vendor | string | null | 既定値あり |
date | string | null | 既定値あり |
currency | string | null | 既定値あり |
document_number | string | null | 既定値あり |
subtotal | string | null | 既定値あり |
tax | string | null | 既定値あり |
tax_inclusive | boolean | null | 既定値あり |
tip | string | null | 既定値あり |
payment_method | string | null | 既定値あり |
total | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
line_items | array<object> | 既定値あり |
line_items[].description | string | null | 既定値あり |
line_items[].quantity | string | null | 既定値あり |
line_items[].unit_price | string | null | 既定値あり |
line_items[].total | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
taxes | array<object> | 既定値あり |
taxes[].name | string | null | 既定値あり |
taxes[].rate | string | null | 既定値あり |
taxes[].base | string | null | 既定値あり |
taxes[].amount | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
reconciliation_warnings | array<string> | 既定値あり |
フラット
フラットなExcelには明細行と別の文書要約が含まれます。CSVには明細行のみ含まれます。税金とチップの調整により行が追加される場合があり、そのline_totalはtax、taxes[].amount、tipのいずれかを使用します。descriptionは生成され、quantity、unit_price、line_noは空白になります。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| doc_id | doc_id |
| source_filename | source_filename |
| vendor | vendor |
| date | date |
| currency | currency |
| document_number | document_number |
| line_no | index(line_items[]) + 1 |
| description | line_items[].description |
| quantity | line_items[].quantity |
| unit_price | line_items[].unit_price |
| line_total | line_items[].total |
| row_type | line | adjustment |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| doc_id | doc_id |
| source_filename | source_filename |
| vendor | vendor |
| date | date |
| currency | currency |
| document_number | document_number |
| subtotal | subtotal |
| tax | tax |
| tax_inclusive | tax_inclusive |
| tip | tip |
| payment_method | payment_method |
| total | total |
| tax_breakdown | join(taxes[].name, taxes[].rate, taxes[].amount) |
| warnings | join(reconciliation_warnings[]) |
非フラット
非フラットでは以下の表を横に配置します。文書情報と合計はフィールドと値の行を使い、明細と税金は列を使います。警告は存在する場合のみ表示します。非フラットの明細表にはunit_priceを含みません。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(line_items[]) + 1 |
| Description | line_items[].description |
| Qty | line_items[].quantity |
| Line total | line_items[].total |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Doc ID | doc_id |
| Source | source_filename |
| Vendor | vendor |
| Date | date |
| Currency | currency |
| Document # | document_number |
| Payment method | payment_method |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Name | taxes[].name |
| Rate | taxes[].rate |
| Base | taxes[].base |
| Amount | taxes[].amount |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Subtotal | subtotal |
| Tax | tax |
| Tax inclusive | tax_inclusive |
| Tip | tip |
| Total | total |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(reconciliation_warnings[]) + 1 |
| Warning | reconciliation_warnings[] |
Xero CSV
領収書ごとに1つの要約行を作成します。下記に参照元がないフィールドはAccountCodeとTaxTypeも含めて空白で出力します。インポート前に必要な対応付けを補ってください。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| *ContactName | vendor || "Unknown vendor" |
| EmailAddress | 空白で出力 |
| POAddressLine1 | 空白で出力 |
| POAddressLine2 | 空白で出力 |
| POAddressLine3 | 空白で出力 |
| POAddressLine4 | 空白で出力 |
| POCity | 空白で出力 |
| PORegion | 空白で出力 |
| POPostalCode | 空白で出力 |
| POCountry | 空白で出力 |
| *InvoiceNumber | document_number || "RCP-" + doc_id |
| Reference | "Receipt" |
| *InvoiceDate | date → DD/MM/YYYY |
| *DueDate | date → DD/MM/YYYY |
| Total | 空白で出力 |
| InventoryItemCode | 空白で出力 |
| *Description | join(line_items[].description) || vendor || "Receipt"; tip → "(incl. tip)" |
| *Quantity | 1 |
| *UnitAmount | subtotal / total / tax / tax_inclusive / tip |
| Discount | 空白で出力 |
| *AccountCode | 空白で出力 |
| *TaxType | 空白で出力 |
| TaxAmount | tax (0 → blank) |
| TrackingName1 | 空白で出力 |
| TrackingOption1 | 空白で出力 |
| TrackingName2 | 空白で出力 |
| TrackingOption2 | 空白で出力 |
| Currency | currency |
| BrandingTheme | 空白で出力 |
tax_inclusiveがtrueなら、UnitAmountはtotalを使い、なければsubtotalを使います。それ以外はsubtotalを使い、subtotalがなければtotalからtaxを引きます。金額がない場合は0を使用することがあります。その後、tipを加えます。インポート前に税金とチップの扱いを確認してください。
QuickBooks CSV
非対応
請求書
請求書の日付と参照情報、発行者と受領者の情報、明細項目、税金、割引、源泉徴収額、合計です。unitは文書に印字された単位、tax_rateは小数で表した税率です。
JSONフィールド
型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
invoice_number | string | null | 既定値あり |
issue_date | string | null | 既定値あり |
due_date | string | null | 既定値あり |
currency | string | null | 既定値あり |
payment_terms | string | null | 既定値あり |
purchase_order | string | null | 既定値あり |
notes | string | null | 既定値あり |
subtotal | string | null | 既定値あり |
discount | string | null | 既定値あり |
tax | string | null | 既定値あり |
tax_inclusive | boolean | null | 既定値あり |
withholdings | string | null | 既定値あり |
total | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
sender | object | null | 既定値あり |
sender.name | string | null | 既定値あり |
sender.address | object | null | 既定値あり |
sender.address.line1 | string | null | 既定値あり |
sender.address.line2 | string | null | 既定値あり |
sender.address.city | string | null | 既定値あり |
sender.address.region | string | null | 既定値あり |
sender.address.postal_code | string | null | 既定値あり |
sender.address.country | string | null | 既定値あり |
sender.address.raw | string | null | 既定値あり |
sender.tax_id | string | null | 既定値あり |
sender.email | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
receiver | object | null | 既定値あり |
receiver.name | string | null | 既定値あり |
receiver.address | object | null | 既定値あり |
receiver.address.line1 | string | null | 既定値あり |
receiver.address.line2 | string | null | 既定値あり |
receiver.address.city | string | null | 既定値あり |
receiver.address.region | string | null | 既定値あり |
receiver.address.postal_code | string | null | 既定値あり |
receiver.address.country | string | null | 既定値あり |
receiver.address.raw | string | null | 既定値あり |
receiver.tax_id | string | null | 既定値あり |
receiver.email | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
line_items | array<object> | 既定値あり |
line_items[].description | string | null | 既定値あり |
line_items[].quantity | string | null | 既定値あり |
line_items[].unit | string | null | 既定値あり |
line_items[].unit_price | string | null | 既定値あり |
line_items[].total | string | null | 既定値あり |
line_items[].tax_rate | string | null | 既定値あり |
line_items[].tax_amount | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
taxes | array<object> | 既定値あり |
taxes[].name | string | null | 既定値あり |
taxes[].rate | string | null | 既定値あり |
taxes[].base | string | null | 既定値あり |
taxes[].amount | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
reconciliation_warnings | array<string> | 既定値あり |
各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。
フラット出力は請求書情報を繰り返す1つの明細表です。非フラットでは請求書情報、取引当事者、明細、税金の内訳、合計、警告を分け、Wordでは縦に配置します。
フラット
Linesは明細ごとに1行を作成し、請求書情報を繰り返します。追加の調整行には−discount、tax_inclusiveがtrueでない場合のtaxes[].amount(またはtax)、−withholdingsを使います。摘要は生成され、line_no、quantity、unit、unit_priceは空白になります。明細のない請求書でも文書行を1行作成します。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| doc_id | doc_id |
| source_filename | source_filename |
| invoice_number | invoice_number |
| issue_date | issue_date |
| due_date | due_date |
| currency | currency |
| sender | sender.name |
| receiver | receiver.name |
| line_no | index(line_items[]) + 1 |
| description | line_items[].description |
| quantity | line_items[].quantity |
| unit | line_items[].unit |
| unit_price | line_items[].unit_price |
| line_total | line_items[].total |
| tax_rate | line_items[].tax_rate |
| tax_amount | line_items[].tax_amount |
| row_type | line | adjustment |
非フラット
ExcelとCSVではこれらの表を横に、Wordでは縦に配置します。現在、Excelの明細表にはLine totalがありません。CSVとWordには含まれます。文書情報と合計はフィールドと値の行を使い、警告は存在する場合のみ表示します。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(line_items[]) + 1 |
| Description | line_items[].description |
| Qty | line_items[].quantity |
| Unit | line_items[].unit |
| Unit price | line_items[].unit_price |
| Tax rate | line_items[].tax_rate |
| Tax amount | line_items[].tax_amount |
| Line total | line_items[].total |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Doc ID | doc_id |
| Source | source_filename |
| Invoice # | invoice_number |
| Issue date | issue_date |
| Due date | due_date |
| Currency | currency |
| Payment terms | payment_terms |
| PO # | purchase_order |
| Sender | sender.name |
| Sender tax ID | sender.tax_id |
| Sender address | sender.address.raw || join(sender.address.line1, line2, city, region, postal_code, country) |
| Receiver | receiver.name |
| Receiver tax ID | receiver.tax_id |
| Receiver address | receiver.address.raw || join(receiver.address.line1, line2, city, region, postal_code, country) |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Name | taxes[].name |
| Rate | taxes[].rate |
| Base | taxes[].base |
| Amount | taxes[].amount |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Subtotal | subtotal |
| Discount | discount |
| Tax | tax |
| Tax inclusive | tax_inclusive |
| Withholdings | withholdings |
| Total | total |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(reconciliation_warnings[]) + 1 |
| Warning | reconciliation_warnings[] |
Xero CSV
明細項目ごとに1行を出力し、受取人の情報を各行に繰り返します。項目がない場合は代替の1行を作成し、Description に notes(なければ「Invoice」)、Quantity に 1、UnitAmount に total(なければ subtotal)、TaxAmount に tax を使用します。TaxAmount がゼロの場合は空欄になります。対応する値のない列は空欄のままで、割引や源泉徴収の調整行は別途追加しません。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| *ContactName | receiver.name || "Unknown customer" |
| EmailAddress | receiver.email |
| POAddressLine1 | receiver.address.line1 |
| POAddressLine2 | receiver.address.line2 |
| POAddressLine3 | 空白で出力 |
| POAddressLine4 | 空白で出力 |
| POCity | receiver.address.city |
| PORegion | receiver.address.region |
| POPostalCode | receiver.address.postal_code |
| POCountry | receiver.address.country |
| *InvoiceNumber | invoice_number || "INV-" + doc_id |
| Reference | purchase_order |
| *InvoiceDate | issue_date → DD/MM/YYYY |
| *DueDate | (due_date || issue_date) → DD/MM/YYYY |
| Total | 空白で出力 |
| InventoryItemCode | 空白で出力 |
| *Description | line_items[].description |
| *Quantity | line_items[].quantity ?? 1 |
| *UnitAmount | line_items[].unit_price ?? (line_items[].total / (line_items[].quantity || 1)) |
| Discount | 空白で出力 |
| *AccountCode | 空白で出力 |
| *TaxType | 空白で出力 |
| TaxAmount | line_items[].tax_amount (0 → "") |
| TrackingName1 | 空白で出力 |
| TrackingOption1 | 空白で出力 |
| TrackingName2 | 空白で出力 |
| TrackingOption2 | 空白で出力 |
| Currency | currency |
| BrandingTheme | 空白で出力 |
QuickBooks CSV
非対応
銀行取引明細書
発行機関、明細期間、各口座の識別情報・残高・合計・取引です。trnamtは符号付きで、出金が負、入金が正です。dtpostedは記帳日、dtuserは起算日です。
JSONフィールド
型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
issuer | object | 既定値あり |
issuer.name | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
statement | object | 既定値あり |
statement.statement_date | string | null | 既定値あり |
statement.period_start | string | null | 既定値あり |
statement.period_end | string | null | 既定値あり |
statement.currency_default | string | null | 既定値あり |
statement.page_count | integer | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
accounts | array<object> | 既定値あり |
accounts[].holder | object | 既定値あり |
accounts[].holder.name | string | null | 既定値あり |
accounts[].account | object | 既定値あり |
accounts[].account.account_number | string | null | 既定値あり |
accounts[].account.account_number_masked | string | null | 既定値あり |
accounts[].account.iban | string | null | 既定値あり |
accounts[].account.bic | string | null | 既定値あり |
accounts[].account.sort_code | string | null | 既定値あり |
accounts[].account.account_type | string | null | 既定値あり |
accounts[].account.account_name | string | null | 既定値あり |
accounts[].account.currency | string | null | 既定値あり |
accounts[].account.card_last4 | string | null | 既定値あり |
accounts[].balances | object | 既定値あり |
accounts[].balances.opening | object | 既定値あり |
accounts[].balances.opening.amount | string | null | 既定値あり |
accounts[].balances.opening.as_of | string | null | 既定値あり |
accounts[].balances.closing | object | 既定値あり |
accounts[].balances.closing.amount | string | null | 既定値あり |
accounts[].balances.closing.as_of | string | null | 既定値あり |
accounts[].balances.available | string | null | 既定値あり |
accounts[].totals | object | 既定値あり |
accounts[].totals.credits_count | integer | null | 既定値あり |
accounts[].totals.credits_amount | string | null | 既定値あり |
accounts[].totals.debits_count | integer | null | 既定値あり |
accounts[].totals.debits_amount | string | null | 既定値あり |
accounts[].totals.fees_charged | string | null | 既定値あり |
accounts[].totals.interest_paid | string | null | 既定値あり |
accounts[].totals.interest_charged | string | null | 既定値あり |
accounts[].transactions | array<object> | 既定値あり |
accounts[].transactions[].trntype | string | null | 既定値あり |
accounts[].transactions[].dtposted | string | null | 既定値あり |
accounts[].transactions[].dtuser | string | null | 既定値あり |
accounts[].transactions[].trnamt | string | null | 既定値あり |
accounts[].transactions[].name | string | null | 既定値あり |
accounts[].transactions[].memo | string | null | 既定値あり |
accounts[].transactions[].running_balance | string | null | 既定値あり |
accounts[].transactions[].fitid | string | null | 既定値あり |
accounts[].transactions[].refnum | string | null | 既定値あり |
accounts[].transactions[].checknum | string | null | 既定値あり |
accounts[].transactions[].card_last4 | string | null | 既定値あり |
accounts[].transactions[].fee | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
reconciliation_warnings | array<string> | 既定値あり |
各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。
フラット出力には明細書と口座の情報を繰り返す取引行が含まれます。非フラットでは明細書情報と各口座の取引、残高、合計を分けて表示します。口座セクションは文書によって異なります。
フラット
Transactions では、各取引行に文書と口座の詳細を繰り返します。取引や口座がない場合も、フラット出力には識別情報の行を作成し、取引フィールドを空欄にします。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| doc_id | doc_id |
| source_filename | source_filename |
| bank | issuer.name |
| account_holder | accounts[].holder.name |
| account_number | accounts[].account.account_number_masked || accounts[].account.account_number || accounts[].account.iban |
| account_type | accounts[].account.account_type |
| currency | accounts[].account.currency || statement.currency_default |
| period_start | statement.period_start |
| period_end | statement.period_end |
| txn_no | index(accounts[].transactions[]) + 1 |
| date | accounts[].transactions[].dtposted |
| value_date | accounts[].transactions[].dtuser |
| description | joinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ") |
| reference | accounts[].transactions[].refnum |
| check_number | accounts[].transactions[].checknum |
| type | accounts[].transactions[].trntype |
| amount | accounts[].transactions[].trnamt |
| fee | accounts[].transactions[].fee |
| running_balance | accounts[].transactions[].running_balance |
非フラット
口座ごとに取引表と詳細表を作成し、Excel と CSV では横に並べます。明細書の詳細は最初の口座に添え、警告は存在する場合のみ表示します。Word では各セクションを縦に並べます。以下にフィールドと値の各行を示します。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(accounts[].transactions[]) + 1 |
| Date | accounts[].transactions[].dtposted |
| Value date | accounts[].transactions[].dtuser |
| Description | joinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ") |
| Reference | accounts[].transactions[].refnum |
| Check # | accounts[].transactions[].checknum |
| Type | accounts[].transactions[].trntype |
| Amount | accounts[].transactions[].trnamt |
| Running balance | accounts[].transactions[].running_balance |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Holder | accounts[].holder.name |
| Account name | accounts[].account.account_name |
| Account number | accounts[].account.account_number_masked || accounts[].account.account_number |
| IBAN | accounts[].account.iban |
| BIC | accounts[].account.bic |
| Sort code | accounts[].account.sort_code |
| Card last 4 | accounts[].account.card_last4 |
| Account type | accounts[].account.account_type |
| Currency | accounts[].account.currency |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Opening | accounts[].balances.opening.amount |
| Opening as of | accounts[].balances.opening.as_of |
| Closing | accounts[].balances.closing.amount |
| Closing as of | accounts[].balances.closing.as_of |
| Available | accounts[].balances.available |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Credits count | accounts[].totals.credits_count |
| Credits amount | accounts[].totals.credits_amount |
| Debits count | accounts[].totals.debits_count |
| Debits amount | accounts[].totals.debits_amount |
| Fees charged | accounts[].totals.fees_charged |
| Interest paid | accounts[].totals.interest_paid |
| Interest charged | accounts[].totals.interest_charged |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Doc ID | doc_id |
| Source | source_filename |
| Bank | issuer.name |
| Statement date | statement.statement_date |
| Period start | statement.period_start |
| Period end | statement.period_end |
| Page count | statement.page_count |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(reconciliation_warnings[]) + 1 |
| Warning | reconciliation_warnings[] |
どちらのエクスポートも、すべての口座の取引をまとめます。Xero は金額が null の取引を除き、QuickBooks は金額が null またはゼロの取引を除きます。QuickBooks は name より memo を優先し、数字のみの説明には trntype、name、または「Txn」を前置します。クレジットカードの金額は符号を反転します。口座を識別するための独立した列は含まれません。
Xero CSV
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| *Date | accounts[].transactions[].dtposted → DD/MM/YYYY |
| *Amount | accounts[].transactions[].trnamt |
| Payee | accounts[].transactions[].name |
| Description | joinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ") |
| Reference | accounts[].transactions[].refnum |
| Cheque Number | accounts[].transactions[].checknum |
| Account code* | 空白で出力 |
| Tax Rate (Display Name)* | 空白で出力 |
| Tracking1 | 空白で出力 |
| Tracking2 | 空白で出力 |
| Transaction Type | accounts[].transactions[].trntype |
| Analysis code | 空白で出力 |
QuickBooks CSV
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Date | accounts[].transactions[].dtposted → DD/MM/YYYY |
| Description | accounts[].transactions[].memo || accounts[].transactions[].name || accounts[].transactions[].trntype || "Transaction" |
| Amount | accounts[].transactions[].trnamt |
クレジットカード明細書
発行機関、明細期間、口座情報、残高、利用限度額、利用状況の概要、取引です。trnamtは銀行取引明細書とは逆の購入符号を使い、請求が正、支払いと返金が負になります。
JSONフィールド
型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
issuer | object | 既定値あり |
issuer.name | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
statement | object | 既定値あり |
statement.statement_date | string | null | 既定値あり |
statement.period_start | string | null | 既定値あり |
statement.period_end | string | null | 既定値あり |
statement.currency_default | string | null | 既定値あり |
statement.page_count | integer | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
accounts | array<object> | 既定値あり |
accounts[].holder | object | 既定値あり |
accounts[].holder.name | string | null | 既定値あり |
accounts[].account | object | 既定値あり |
accounts[].account.account_number | string | null | 既定値あり |
accounts[].account.account_number_masked | string | null | 既定値あり |
accounts[].account.card_last4 | string | null | 既定値あり |
accounts[].account.bin | string | null | 既定値あり |
accounts[].account.card_network | string | null | 既定値あり |
accounts[].account.card_brand | string | null | 既定値あり |
accounts[].account.card_product | string | null | 既定値あり |
accounts[].account.card_type | string | null | 既定値あり |
accounts[].account.currency | string | null | 既定値あり |
accounts[].balances | object | 既定値あり |
accounts[].balances.previous_balance | object | 既定値あり |
accounts[].balances.previous_balance.amount | string | null | 既定値あり |
accounts[].balances.previous_balance.as_of | string | null | 既定値あり |
accounts[].balances.new_balance | object | 既定値あり |
accounts[].balances.new_balance.amount | string | null | 既定値あり |
accounts[].balances.new_balance.as_of | string | null | 既定値あり |
accounts[].balances.statement_balance | string | null | 既定値あり |
accounts[].balances.minimum_payment_due | string | null | 既定値あり |
accounts[].balances.payment_due_date | string | null | 既定値あり |
accounts[].balances.past_due_amount | string | null | 既定値あり |
accounts[].credit_limits | object | 既定値あり |
accounts[].credit_limits.credit_limit | string | null | 既定値あり |
accounts[].credit_limits.available_credit | string | null | 既定値あり |
accounts[].credit_limits.cash_advance_limit | string | null | 既定値あり |
accounts[].credit_limits.available_cash | string | null | 既定値あり |
accounts[].credit_limits.over_limit_amount | string | null | 既定値あり |
accounts[].summary | object | 既定値あり |
accounts[].summary.previous_balance | string | null | 既定値あり |
accounts[].summary.payments | string | null | 既定値あり |
accounts[].summary.credits_returns | string | null | 既定値あり |
accounts[].summary.purchases | string | null | 既定値あり |
accounts[].summary.cash_advances | string | null | 既定値あり |
accounts[].summary.balance_transfers | string | null | 既定値あり |
accounts[].summary.fees_charged | string | null | 既定値あり |
accounts[].summary.interest_charged | string | null | 既定値あり |
accounts[].summary.adjustments | string | null | 既定値あり |
accounts[].summary.new_balance | string | null | 既定値あり |
accounts[].transactions | array<object> | 既定値あり |
accounts[].transactions[].trntype | string | null | 既定値あり |
accounts[].transactions[].dtposted | string | null | 既定値あり |
accounts[].transactions[].dtuser | string | null | 既定値あり |
accounts[].transactions[].trnamt | string | null | 既定値あり |
accounts[].transactions[].name | string | null | 既定値あり |
accounts[].transactions[].memo | string | null | 既定値あり |
accounts[].transactions[].fitid | string | null | 既定値あり |
accounts[].transactions[].refnum | string | null | 既定値あり |
accounts[].transactions[].card_last4 | string | null | 既定値あり |
accounts[].transactions[].cardholder_name | string | null | 既定値あり |
accounts[].transactions[].is_foreign | boolean | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
reconciliation_warnings | array<string> | 既定値あり |
各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。
フラット出力には明細書と口座のフィールドを繰り返す取引行が含まれます。非フラットには取引、残高、限度額、概要の口座別セクションがあります。口座が複数ある場合はセクション数も変わります。
フラット
Transactions では、各取引行に文書と口座の詳細を繰り返します。取引や口座がない場合も、フラット出力には識別情報の行を作成し、取引フィールドを空欄にします。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| doc_id | doc_id |
| source_filename | source_filename |
| issuer | issuer.name |
| cardholder | accounts[].transactions[].cardholder_name || accounts[].holder.name |
| card_last4 | accounts[].transactions[].card_last4 || accounts[].account.card_last4 |
| card_network | accounts[].account.card_network |
| card_brand | accounts[].account.card_brand |
| currency | accounts[].account.currency || statement.currency_default |
| period_start | statement.period_start |
| period_end | statement.period_end |
| txn_no | index(accounts[].transactions[]) + 1 |
| date | accounts[].transactions[].dtposted |
| posted_date | accounts[].transactions[].dtuser |
| description | joinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ") |
| reference | accounts[].transactions[].refnum |
| type | accounts[].transactions[].trntype |
| amount | accounts[].transactions[].trnamt |
| is_foreign | accounts[].transactions[].is_foreign → Yes / No / "" |
非フラット
口座ごとに取引表と詳細表を作成し、Excel と CSV では横に並べます。明細書の詳細は最初の口座に添え、警告は存在する場合のみ表示します。Word では各セクションを縦に並べます。以下にフィールドと値の各行を示します。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(accounts[].transactions[]) + 1 |
| Date | accounts[].transactions[].dtposted |
| Posted | accounts[].transactions[].dtuser |
| Description | joinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ") |
| Reference | accounts[].transactions[].refnum |
| Type | accounts[].transactions[].trntype |
| Card last 4 | accounts[].transactions[].card_last4 || accounts[].account.card_last4 |
| Amount | accounts[].transactions[].trnamt |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Holder | accounts[].holder.name |
| Card last 4 | accounts[].account.card_last4 |
| Card network | accounts[].account.card_network |
| Card brand | accounts[].account.card_brand |
| Card product | accounts[].account.card_product |
| Card type | accounts[].account.card_type |
| Account number | accounts[].account.account_number_masked || accounts[].account.account_number |
| Currency | accounts[].account.currency |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Previous balance | accounts[].balances.previous_balance.amount |
| Previous balance as of | accounts[].balances.previous_balance.as_of |
| New balance | accounts[].balances.new_balance.amount |
| New balance as of | accounts[].balances.new_balance.as_of |
| Statement balance | accounts[].balances.statement_balance |
| Minimum payment | accounts[].balances.minimum_payment_due |
| Payment due date | accounts[].balances.payment_due_date |
| Past due | accounts[].balances.past_due_amount |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Credit limit | accounts[].credit_limits.credit_limit |
| Available credit | accounts[].credit_limits.available_credit |
| Cash advance limit | accounts[].credit_limits.cash_advance_limit |
| Available cash | accounts[].credit_limits.available_cash |
| Over limit | accounts[].credit_limits.over_limit_amount |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Previous balance | accounts[].summary.previous_balance |
| Payments | accounts[].summary.payments |
| Credits / returns | accounts[].summary.credits_returns |
| Purchases | accounts[].summary.purchases |
| Cash advances | accounts[].summary.cash_advances |
| Balance transfers | accounts[].summary.balance_transfers |
| Fees charged | accounts[].summary.fees_charged |
| Interest charged | accounts[].summary.interest_charged |
| Adjustments | accounts[].summary.adjustments |
| New balance | accounts[].summary.new_balance |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Doc ID | doc_id |
| Source | source_filename |
| Issuer | issuer.name |
| Statement date | statement.statement_date |
| Period start | statement.period_start |
| Period end | statement.period_end |
| Page count | statement.page_count |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(reconciliation_warnings[]) + 1 |
| Warning | reconciliation_warnings[] |
どちらのエクスポートも、すべての口座の取引をまとめます。Xero は金額が null の取引を除き、QuickBooks は金額が null またはゼロの取引を除きます。QuickBooks は name より memo を優先し、数字のみの説明には trntype、name、または「Txn」を前置します。クレジットカードの金額は符号を反転します。口座を識別するための独立した列は含まれません。
Xero CSV
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| *Date | accounts[].transactions[].dtposted → DD/MM/YYYY |
| *Amount | −accounts[].transactions[].trnamt |
| Payee | accounts[].transactions[].name |
| Description | joinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ") |
| Reference | accounts[].transactions[].refnum |
| Cheque Number | 空白で出力 |
| Account code* | 空白で出力 |
| Tax Rate (Display Name)* | 空白で出力 |
| Tracking1 | 空白で出力 |
| Tracking2 | 空白で出力 |
| Transaction Type | accounts[].transactions[].trntype |
| Analysis code | 空白で出力 |
QuickBooks CSV
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Date | accounts[].transactions[].dtposted → DD/MM/YYYY |
| Description | accounts[].transactions[].memo || accounts[].transactions[].name || accounts[].transactions[].trntype || "Transaction" |
| Amount | −accounts[].transactions[].trnamt |
給与明細書
給与対象期間、従業員と雇用主、単価、支給額、控除、税金、雇用主負担額、合計です。current_amountは当期の金額、ytd_amountは年初来累計です。
JSONフィールド
型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
statement | object | 既定値あり |
statement.issue_date | string | null | 既定値あり |
statement.pay_date | string | null | 既定値あり |
statement.period_start | string | null | 既定値あり |
statement.period_end | string | null | 既定値あり |
statement.period_type | string | null | 既定値あり |
statement.tax_year | integer | null | 既定値あり |
statement.currency | string | null | 既定値あり |
statement.country | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
employee | object | 既定値あり |
employee.name | string | null | 既定値あり |
employee.pay_frequency | string | null | 既定値あり |
employee.employment_type | string | null | 既定値あり |
employee.employment_status | string | null | 既定値あり |
employee.filing_status | string | null | 既定値あり |
employee.tax_code | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
employer | object | 既定値あり |
employer.name | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
rates | object | 既定値あり |
rates.base_pay_rate | string | null | 既定値あり |
rates.base_pay_unit | string | null | 既定値あり |
rates.annual_salary | string | null | 既定値あり |
rates.regular_hours_per_period | string | null | 既定値あり |
rates.overtime_multiplier | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
earnings | array<object> | 既定値あり |
earnings[].code | string | null | 既定値あり |
earnings[].description | string | null | 既定値あり |
earnings[].category | string | null | 既定値あり |
earnings[].jurisdiction | string | null | 既定値あり |
earnings[].hours | string | null | 既定値あり |
earnings[].rate | string | null | 既定値あり |
earnings[].current_amount | string | null | 既定値あり |
earnings[].ytd_amount | string | null | 既定値あり |
earnings[].employer_match | string | null | 既定値あり |
earnings[].employer_match_ytd | string | null | 既定値あり |
earnings[].is_taxable | boolean | null | 既定値あり |
earnings[].is_imputed | boolean | null | 既定値あり |
earnings[].memo | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
pre_tax_deductions | array<object> | 既定値あり |
pre_tax_deductions[].code | string | null | 既定値あり |
pre_tax_deductions[].description | string | null | 既定値あり |
pre_tax_deductions[].category | string | null | 既定値あり |
pre_tax_deductions[].jurisdiction | string | null | 既定値あり |
pre_tax_deductions[].hours | string | null | 既定値あり |
pre_tax_deductions[].rate | string | null | 既定値あり |
pre_tax_deductions[].current_amount | string | null | 既定値あり |
pre_tax_deductions[].ytd_amount | string | null | 既定値あり |
pre_tax_deductions[].employer_match | string | null | 既定値あり |
pre_tax_deductions[].employer_match_ytd | string | null | 既定値あり |
pre_tax_deductions[].is_taxable | boolean | null | 既定値あり |
pre_tax_deductions[].is_imputed | boolean | null | 既定値あり |
pre_tax_deductions[].memo | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
taxes | array<object> | 既定値あり |
taxes[].code | string | null | 既定値あり |
taxes[].description | string | null | 既定値あり |
taxes[].category | string | null | 既定値あり |
taxes[].jurisdiction | string | null | 既定値あり |
taxes[].hours | string | null | 既定値あり |
taxes[].rate | string | null | 既定値あり |
taxes[].current_amount | string | null | 既定値あり |
taxes[].ytd_amount | string | null | 既定値あり |
taxes[].employer_match | string | null | 既定値あり |
taxes[].employer_match_ytd | string | null | 既定値あり |
taxes[].is_taxable | boolean | null | 既定値あり |
taxes[].is_imputed | boolean | null | 既定値あり |
taxes[].memo | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
post_tax_deductions | array<object> | 既定値あり |
post_tax_deductions[].code | string | null | 既定値あり |
post_tax_deductions[].description | string | null | 既定値あり |
post_tax_deductions[].category | string | null | 既定値あり |
post_tax_deductions[].jurisdiction | string | null | 既定値あり |
post_tax_deductions[].hours | string | null | 既定値あり |
post_tax_deductions[].rate | string | null | 既定値あり |
post_tax_deductions[].current_amount | string | null | 既定値あり |
post_tax_deductions[].ytd_amount | string | null | 既定値あり |
post_tax_deductions[].employer_match | string | null | 既定値あり |
post_tax_deductions[].employer_match_ytd | string | null | 既定値あり |
post_tax_deductions[].is_taxable | boolean | null | 既定値あり |
post_tax_deductions[].is_imputed | boolean | null | 既定値あり |
post_tax_deductions[].memo | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
employer_contributions | array<object> | 既定値あり |
employer_contributions[].code | string | null | 既定値あり |
employer_contributions[].description | string | null | 既定値あり |
employer_contributions[].category | string | null | 既定値あり |
employer_contributions[].jurisdiction | string | null | 既定値あり |
employer_contributions[].hours | string | null | 既定値あり |
employer_contributions[].rate | string | null | 既定値あり |
employer_contributions[].current_amount | string | null | 既定値あり |
employer_contributions[].ytd_amount | string | null | 既定値あり |
employer_contributions[].employer_match | string | null | 既定値あり |
employer_contributions[].employer_match_ytd | string | null | 既定値あり |
employer_contributions[].is_taxable | boolean | null | 既定値あり |
employer_contributions[].is_imputed | boolean | null | 既定値あり |
employer_contributions[].memo | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
totals | object | 既定値あり |
totals.gross_pay_current | string | null | 既定値あり |
totals.gross_pay_ytd | string | null | 既定値あり |
totals.taxable_gross_current | string | null | 既定値あり |
totals.taxable_gross_ytd | string | null | 既定値あり |
totals.total_pre_tax_deductions_current | string | null | 既定値あり |
totals.total_pre_tax_deductions_ytd | string | null | 既定値あり |
totals.total_taxes_current | string | null | 既定値あり |
totals.total_taxes_ytd | string | null | 既定値あり |
totals.total_post_tax_deductions_current | string | null | 既定値あり |
totals.total_post_tax_deductions_ytd | string | null | 既定値あり |
totals.total_deductions_current | string | null | 既定値あり |
totals.total_deductions_ytd | string | null | 既定値あり |
totals.total_employer_contributions_current | string | null | 既定値あり |
totals.total_employer_contributions_ytd | string | null | 既定値あり |
totals.net_pay_current | string | null | 既定値あり |
totals.net_pay_ytd | string | null | 既定値あり |
totals.hours_worked_current | string | null | 既定値あり |
totals.hours_worked_ytd | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
reconciliation_warnings | array<string> | 既定値あり |
各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。
フラット・非フラットの選択はありません。Paystubシートは明細書、従業員、雇用主、単価、支給額、控除、税金、負担額、合計のセクションで構成されます。CSVはセクションに分かれた表で、Wordは縦に配置します。
専用レイアウト
給与明細レイアウトの各セクションです。Excel と CSV では横に、Word では縦に並べます。説明には description または code を使用し、is_imputed が true の場合は「imputed」、is_taxable が false の場合は「non-taxable」を付加します。Rate 列はパーセント形式です。合計では、各 Metric に Current と YTD の値を対応させます。警告は存在する場合のみ表示します。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Gross pay / Current | totals.gross_pay_current |
| Gross pay / YTD | totals.gross_pay_ytd |
| Taxable gross / Current | totals.taxable_gross_current |
| Taxable gross / YTD | totals.taxable_gross_ytd |
| Pre-tax deductions / Current | totals.total_pre_tax_deductions_current |
| Pre-tax deductions / YTD | totals.total_pre_tax_deductions_ytd |
| Taxes / Current | totals.total_taxes_current |
| Taxes / YTD | totals.total_taxes_ytd |
| Post-tax deductions / Current | totals.total_post_tax_deductions_current |
| Post-tax deductions / YTD | totals.total_post_tax_deductions_ytd |
| Total deductions / Current | totals.total_deductions_current |
| Total deductions / YTD | totals.total_deductions_ytd |
| Employer contributions / Current | totals.total_employer_contributions_current |
| Employer contributions / YTD | totals.total_employer_contributions_ytd |
| Net pay / Current | totals.net_pay_current |
| Net pay / YTD | totals.net_pay_ytd |
| Hours worked / Current | totals.hours_worked_current |
| Hours worked / YTD | totals.hours_worked_ytd |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Doc ID | doc_id |
| Source | source_filename |
| Issue date | statement.issue_date |
| Pay date | statement.pay_date |
| Period start | statement.period_start |
| Period end | statement.period_end |
| Period type | statement.period_type |
| Tax year | statement.tax_year |
| Currency | statement.currency |
| Country | statement.country |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Name | employee.name |
| Pay frequency | employee.pay_frequency |
| Employment type | employee.employment_type |
| Employment status | employee.employment_status |
| Filing status | employee.filing_status |
| Tax code | employee.tax_code |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Name | employer.name |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| Base pay rate | rates.base_pay_rate |
| Base pay unit | rates.base_pay_unit |
| Annual salary | rates.annual_salary |
| Regular hours/period | rates.regular_hours_per_period |
| Overtime multiplier | rates.overtime_multiplier |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(earnings[]) + 1 |
| Description | earnings[].description || earnings[].code |
| Code | earnings[].code |
| Hours | earnings[].hours |
| Rate | earnings[].rate |
| Current | earnings[].current_amount |
| YTD | earnings[].ytd_amount |
| Memo | earnings[].memo |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(pre_tax_deductions[]) + 1 |
| Description | pre_tax_deductions[].description || pre_tax_deductions[].code |
| Code | pre_tax_deductions[].code |
| Current | pre_tax_deductions[].current_amount |
| YTD | pre_tax_deductions[].ytd_amount |
| Memo | pre_tax_deductions[].memo |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(taxes[]) + 1 |
| Description | taxes[].description || taxes[].code |
| Code | taxes[].code |
| Jurisdiction | taxes[].jurisdiction |
| Rate | taxes[].rate |
| Current | taxes[].current_amount |
| YTD | taxes[].ytd_amount |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(post_tax_deductions[]) + 1 |
| Description | post_tax_deductions[].description || post_tax_deductions[].code |
| Code | post_tax_deductions[].code |
| Current | post_tax_deductions[].current_amount |
| YTD | post_tax_deductions[].ytd_amount |
| Memo | post_tax_deductions[].memo |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(employer_contributions[]) + 1 |
| Description | employer_contributions[].description || employer_contributions[].code |
| Code | employer_contributions[].code |
| Current | employer_contributions[].current_amount |
| YTD | employer_contributions[].ytd_amount |
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| # | index(reconciliation_warnings[]) + 1 |
| Warning | reconciliation_warnings[] |
Xero CSV
非対応
QuickBooks CSV
非対応
表の画像
表のタイトル、見出し行、本文セル、注記です。headersとrows[].cellsは原本の列に従い、固定の財務スキーマではありません。行タイプはデータや小計など、行の役割を表します。
JSONフィールド
型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
title | string | null | 既定値あり |
caption | string | null | 既定値あり |
source_type | string | null | 既定値あり |
border_style | string | null | 既定値あり |
language | string | null | 既定値あり |
header_rows | integer | null | 既定値あり |
notes | string | null | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
headers | array<array<any>> | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
rows | array<object> | 既定値あり |
rows[].type | string | null | 既定値あり |
rows[].cells | array<any> | 既定値あり |
| フィールドパス | JSONの型 | フィールドの存在条件 |
|---|---|---|
reconciliation_warnings | array<string> | 既定値あり |
各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。
フラット・非フラットの選択はありません。1つのTableシートに抽出した見出しとセルを配置します。列数は可変で、タイトル、注記、警告により行が追加される場合があります。CSVはExcelのセル結合や書式を保持できません。
専用レイアウト
列名は固定リストではなく headers から取得します。本文のセルは元の順序を保ち、短い行は補完し、null のセルは空欄にします。title と caption は表の上、notes と warnings は下に表示します。Excel では隣接する同じ見出し値を結合します。rows[].type は Excel と Word の表示形式を制御し、追加の出力列にはなりません。CSV に装飾はありません。データ表が1列でも、警告行は2列を使用する場合があります。
| 出力フィールド | JSONの参照元または出力ルール |
|---|---|
| title | title |
| caption | caption |
| headers[][] | headers[][] |
| rows[].cells[] | rows[].cells[] |
| 行の書式(Excel / Word) | rows[].type → DATA | HEADER | SECTION | SUBTOTAL | GRAND_TOTAL |
| 表の幅 | max(length(headers[]), length(rows[].cells)) || 1 |
| Notes | notes |
| # | index(reconciliation_warnings[]) + 1 |
| Reconciliation warnings | reconciliation_warnings[] |
Xero CSV
非対応
QuickBooks CSV
非対応
欠損値と結果の確認
nullを許可するフィールドにはnullが入り、存在しないリストの既定値は[]です。入れ子のオブジェクトにも独自の既定値を持つフィールドがあります。スプレッドシート出力では欠損値を通常は空白セルで表示します。日付や金額が正規化され、照合時に不足する合計が算出されたり、警告が追加されたりする場合があります。doc_idとsource_filenameは抽出された財務フィールドではなく、エクスポート用メタデータです。
原本と出力された値を確認してください。reconciliation_warningsリストが空でも、正確さが証明されたわけではありません。