スキーマとエクスポートのレイアウト

ScanToExcelが抽出するフィールドと、ダウンロードしたファイルでの配置を確認できます。対応フィールドでも、文書に情報が存在することや、必ず値が抽出されることを保証するものではありません。

すべてのプランで、エクスポート用テンプレートの列見出しとフィールド名は英語です。抽出したテキストと元の表の見出しは、通常、文書の言語のまま出力されます。 サイトの表示言語を変えても、ダウンロードするファイルは翻訳されません。JSONキー、あらかじめ定義されたワークシートのラベル、会計用テンプレートの見出しは変わりません。日付、数値、通貨コード、一部の分類値は標準化される場合があるため、出力結果を確認してください。

出力を選ぶ

JSON
JSONは明細や取引のリストなど、入れ子になった文書データを保持します。ダウンロードされるのは文書オブジェクトそのもので、利用上限やファイル転送のメタデータは含みません。フラット設定はJSONに影響しません。
フラット
フラット出力は、行と一貫した列で構成される長方形の表です。各行は1つの明細項目や取引を表し、必要に応じて文書情報を繰り返します。各表は固有の固定列構造を持ちます。Excelには複数のシートが含まれる場合があり、CSVには1つの表が含まれます。
非フラット
非フラットのExcelとCSVでは、文書情報、明細、税金、合計、警告など、目的と列構成が異なる表を横に並べます。全体が同じ構造の1つのデータ表になるわけではありません。Wordでは縦に配置します。給与明細書と表の画像には専用レイアウトを使用します。
出力形式の対応状況
文書JSONレイアウトXero CSVQuickBooks CSV
領収書対応フラット / 非フラット対応非対応
請求書対応フラット / 非フラット対応非対応
銀行取引明細書対応フラット / 非フラット対応対応
クレジットカード明細書対応フラット / 非フラット対応対応
給与明細書対応専用レイアウト非対応非対応
表の画像対応専用レイアウト非対応非対応

会計用CSVは専用テンプレートを使うPremiumの出力オプションです。XeroやQuickBooksへの直接接続ではなく、ダウンロード用ファイルを作成します。インポート前にフィールドと勘定科目の対応を確認してください。 料金プラン

領収書

販売者、日付、通貨、領収書番号、明細ごとの数量と価格、税金、支払方法、合計です。税率は小数で表し、0.20は20%を意味します。

JSONフィールド

型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。

文書
フィールドパスJSONの型フィールドの存在条件
vendorstring | null既定値あり
datestring | null既定値あり
currencystring | null既定値あり
document_numberstring | null既定値あり
subtotalstring | null既定値あり
taxstring | null既定値あり
tax_inclusiveboolean | null既定値あり
tipstring | null既定値あり
payment_methodstring | null既定値あり
totalstring | null既定値あり
line_items
フィールドパスJSONの型フィールドの存在条件
line_itemsarray<object>既定値あり
line_items[].descriptionstring | null既定値あり
line_items[].quantitystring | null既定値あり
line_items[].unit_pricestring | null既定値あり
line_items[].totalstring | null既定値あり
taxes
フィールドパスJSONの型フィールドの存在条件
taxesarray<object>既定値あり
taxes[].namestring | null既定値あり
taxes[].ratestring | null既定値あり
taxes[].basestring | null既定値あり
taxes[].amountstring | null既定値あり
reconciliation_warnings
フィールドパスJSONの型フィールドの存在条件
reconciliation_warningsarray<string>既定値あり

フラット

フラットなExcelには明細行と別の文書要約が含まれます。CSVには明細行のみ含まれます。税金とチップの調整により行が追加される場合があり、そのline_totalはtax、taxes[].amount、tipのいずれかを使用します。descriptionは生成され、quantity、unit_price、line_noは空白になります。

Lines (Excel / CSV)
出力フィールドJSONの参照元または出力ルール
doc_iddoc_id
source_filenamesource_filename
vendorvendor
datedate
currencycurrency
document_numberdocument_number
line_noindex(line_items[]) + 1
descriptionline_items[].description
quantityline_items[].quantity
unit_priceline_items[].unit_price
line_totalline_items[].total
row_typeline | adjustment
Documents (Excel)
出力フィールドJSONの参照元または出力ルール
doc_iddoc_id
source_filenamesource_filename
vendorvendor
datedate
currencycurrency
document_numberdocument_number
subtotalsubtotal
taxtax
tax_inclusivetax_inclusive
tiptip
payment_methodpayment_method
totaltotal
tax_breakdownjoin(taxes[].name, taxes[].rate, taxes[].amount)
warningsjoin(reconciliation_warnings[])

非フラット

非フラットでは以下の表を横に配置します。文書情報と合計はフィールドと値の行を使い、明細と税金は列を使います。警告は存在する場合のみ表示します。非フラットの明細表にはunit_priceを含みません。

明細項目
出力フィールドJSONの参照元または出力ルール
#index(line_items[]) + 1
Descriptionline_items[].description
Qtyline_items[].quantity
Line totalline_items[].total
文書情報
出力フィールドJSONの参照元または出力ルール
Doc IDdoc_id
Sourcesource_filename
Vendorvendor
Datedate
Currencycurrency
Document #document_number
Payment methodpayment_method
税金
出力フィールドJSONの参照元または出力ルール
Nametaxes[].name
Ratetaxes[].rate
Basetaxes[].base
Amounttaxes[].amount
合計
出力フィールドJSONの参照元または出力ルール
Subtotalsubtotal
Taxtax
Tax inclusivetax_inclusive
Tiptip
Totaltotal
警告
出力フィールドJSONの参照元または出力ルール
#index(reconciliation_warnings[]) + 1
Warningreconciliation_warnings[]

Xero CSV

領収書ごとに1つの要約行を作成します。下記に参照元がないフィールドはAccountCodeとTaxTypeも含めて空白で出力します。インポート前に必要な対応付けを補ってください。

Xero CSV
出力フィールドJSONの参照元または出力ルール
*ContactNamevendor || "Unknown vendor"
EmailAddress空白で出力
POAddressLine1空白で出力
POAddressLine2空白で出力
POAddressLine3空白で出力
POAddressLine4空白で出力
POCity空白で出力
PORegion空白で出力
POPostalCode空白で出力
POCountry空白で出力
*InvoiceNumberdocument_number || "RCP-" + doc_id
Reference"Receipt"
*InvoiceDatedate → DD/MM/YYYY
*DueDatedate → DD/MM/YYYY
Total空白で出力
InventoryItemCode空白で出力
*Descriptionjoin(line_items[].description) || vendor || "Receipt"; tip → "(incl. tip)"
*Quantity1
*UnitAmountsubtotal / total / tax / tax_inclusive / tip
Discount空白で出力
*AccountCode空白で出力
*TaxType空白で出力
TaxAmounttax (0 → blank)
TrackingName1空白で出力
TrackingOption1空白で出力
TrackingName2空白で出力
TrackingOption2空白で出力
Currencycurrency
BrandingTheme空白で出力

tax_inclusiveがtrueなら、UnitAmountはtotalを使い、なければsubtotalを使います。それ以外はsubtotalを使い、subtotalがなければtotalからtaxを引きます。金額がない場合は0を使用することがあります。その後、tipを加えます。インポート前に税金とチップの扱いを確認してください。

QuickBooks CSV

非対応

請求書

請求書の日付と参照情報、発行者と受領者の情報、明細項目、税金、割引、源泉徴収額、合計です。unitは文書に印字された単位、tax_rateは小数で表した税率です。

JSONフィールド

型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。

文書
フィールドパスJSONの型フィールドの存在条件
invoice_numberstring | null既定値あり
issue_datestring | null既定値あり
due_datestring | null既定値あり
currencystring | null既定値あり
payment_termsstring | null既定値あり
purchase_orderstring | null既定値あり
notesstring | null既定値あり
subtotalstring | null既定値あり
discountstring | null既定値あり
taxstring | null既定値あり
tax_inclusiveboolean | null既定値あり
withholdingsstring | null既定値あり
totalstring | null既定値あり
sender
フィールドパスJSONの型フィールドの存在条件
senderobject | null既定値あり
sender.namestring | null既定値あり
sender.addressobject | null既定値あり
sender.address.line1string | null既定値あり
sender.address.line2string | null既定値あり
sender.address.citystring | null既定値あり
sender.address.regionstring | null既定値あり
sender.address.postal_codestring | null既定値あり
sender.address.countrystring | null既定値あり
sender.address.rawstring | null既定値あり
sender.tax_idstring | null既定値あり
sender.emailstring | null既定値あり
receiver
フィールドパスJSONの型フィールドの存在条件
receiverobject | null既定値あり
receiver.namestring | null既定値あり
receiver.addressobject | null既定値あり
receiver.address.line1string | null既定値あり
receiver.address.line2string | null既定値あり
receiver.address.citystring | null既定値あり
receiver.address.regionstring | null既定値あり
receiver.address.postal_codestring | null既定値あり
receiver.address.countrystring | null既定値あり
receiver.address.rawstring | null既定値あり
receiver.tax_idstring | null既定値あり
receiver.emailstring | null既定値あり
line_items
フィールドパスJSONの型フィールドの存在条件
line_itemsarray<object>既定値あり
line_items[].descriptionstring | null既定値あり
line_items[].quantitystring | null既定値あり
line_items[].unitstring | null既定値あり
line_items[].unit_pricestring | null既定値あり
line_items[].totalstring | null既定値あり
line_items[].tax_ratestring | null既定値あり
line_items[].tax_amountstring | null既定値あり
taxes
フィールドパスJSONの型フィールドの存在条件
taxesarray<object>既定値あり
taxes[].namestring | null既定値あり
taxes[].ratestring | null既定値あり
taxes[].basestring | null既定値あり
taxes[].amountstring | null既定値あり
reconciliation_warnings
フィールドパスJSONの型フィールドの存在条件
reconciliation_warningsarray<string>既定値あり

各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。

フラット出力は請求書情報を繰り返す1つの明細表です。非フラットでは請求書情報、取引当事者、明細、税金の内訳、合計、警告を分け、Wordでは縦に配置します。

フラット

Linesは明細ごとに1行を作成し、請求書情報を繰り返します。追加の調整行には−discount、tax_inclusiveがtrueでない場合のtaxes[].amount(またはtax)、−withholdingsを使います。摘要は生成され、line_no、quantity、unit、unit_priceは空白になります。明細のない請求書でも文書行を1行作成します。

Lines (Excel / CSV / Word)
出力フィールドJSONの参照元または出力ルール
doc_iddoc_id
source_filenamesource_filename
invoice_numberinvoice_number
issue_dateissue_date
due_datedue_date
currencycurrency
sendersender.name
receiverreceiver.name
line_noindex(line_items[]) + 1
descriptionline_items[].description
quantityline_items[].quantity
unitline_items[].unit
unit_priceline_items[].unit_price
line_totalline_items[].total
tax_rateline_items[].tax_rate
tax_amountline_items[].tax_amount
row_typeline | adjustment

非フラット

ExcelとCSVではこれらの表を横に、Wordでは縦に配置します。現在、Excelの明細表にはLine totalがありません。CSVとWordには含まれます。文書情報と合計はフィールドと値の行を使い、警告は存在する場合のみ表示します。

明細項目
出力フィールドJSONの参照元または出力ルール
#index(line_items[]) + 1
Descriptionline_items[].description
Qtyline_items[].quantity
Unitline_items[].unit
Unit priceline_items[].unit_price
Tax rateline_items[].tax_rate
Tax amountline_items[].tax_amount
Line totalline_items[].total
文書情報
出力フィールドJSONの参照元または出力ルール
Doc IDdoc_id
Sourcesource_filename
Invoice #invoice_number
Issue dateissue_date
Due datedue_date
Currencycurrency
Payment termspayment_terms
PO #purchase_order
Sendersender.name
Sender tax IDsender.tax_id
Sender addresssender.address.raw || join(sender.address.line1, line2, city, region, postal_code, country)
Receiverreceiver.name
Receiver tax IDreceiver.tax_id
Receiver addressreceiver.address.raw || join(receiver.address.line1, line2, city, region, postal_code, country)
税金
出力フィールドJSONの参照元または出力ルール
Nametaxes[].name
Ratetaxes[].rate
Basetaxes[].base
Amounttaxes[].amount
合計
出力フィールドJSONの参照元または出力ルール
Subtotalsubtotal
Discountdiscount
Taxtax
Tax inclusivetax_inclusive
Withholdingswithholdings
Totaltotal
警告
出力フィールドJSONの参照元または出力ルール
#index(reconciliation_warnings[]) + 1
Warningreconciliation_warnings[]

Xero CSV

明細項目ごとに1行を出力し、受取人の情報を各行に繰り返します。項目がない場合は代替の1行を作成し、Description に notes(なければ「Invoice」)、Quantity に 1、UnitAmount に total(なければ subtotal)、TaxAmount に tax を使用します。TaxAmount がゼロの場合は空欄になります。対応する値のない列は空欄のままで、割引や源泉徴収の調整行は別途追加しません。

Xero CSV
出力フィールドJSONの参照元または出力ルール
*ContactNamereceiver.name || "Unknown customer"
EmailAddressreceiver.email
POAddressLine1receiver.address.line1
POAddressLine2receiver.address.line2
POAddressLine3空白で出力
POAddressLine4空白で出力
POCityreceiver.address.city
PORegionreceiver.address.region
POPostalCodereceiver.address.postal_code
POCountryreceiver.address.country
*InvoiceNumberinvoice_number || "INV-" + doc_id
Referencepurchase_order
*InvoiceDateissue_date → DD/MM/YYYY
*DueDate(due_date || issue_date) → DD/MM/YYYY
Total空白で出力
InventoryItemCode空白で出力
*Descriptionline_items[].description
*Quantityline_items[].quantity ?? 1
*UnitAmountline_items[].unit_price ?? (line_items[].total / (line_items[].quantity || 1))
Discount空白で出力
*AccountCode空白で出力
*TaxType空白で出力
TaxAmountline_items[].tax_amount (0 → "")
TrackingName1空白で出力
TrackingOption1空白で出力
TrackingName2空白で出力
TrackingOption2空白で出力
Currencycurrency
BrandingTheme空白で出力

QuickBooks CSV

非対応

銀行取引明細書

発行機関、明細期間、各口座の識別情報・残高・合計・取引です。trnamtは符号付きで、出金が負、入金が正です。dtpostedは記帳日、dtuserは起算日です。

JSONフィールド

型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。

issuer
フィールドパスJSONの型フィールドの存在条件
issuerobject既定値あり
issuer.namestring | null既定値あり
statement
フィールドパスJSONの型フィールドの存在条件
statementobject既定値あり
statement.statement_datestring | null既定値あり
statement.period_startstring | null既定値あり
statement.period_endstring | null既定値あり
statement.currency_defaultstring | null既定値あり
statement.page_countinteger | null既定値あり
accounts
フィールドパスJSONの型フィールドの存在条件
accountsarray<object>既定値あり
accounts[].holderobject既定値あり
accounts[].holder.namestring | null既定値あり
accounts[].accountobject既定値あり
accounts[].account.account_numberstring | null既定値あり
accounts[].account.account_number_maskedstring | null既定値あり
accounts[].account.ibanstring | null既定値あり
accounts[].account.bicstring | null既定値あり
accounts[].account.sort_codestring | null既定値あり
accounts[].account.account_typestring | null既定値あり
accounts[].account.account_namestring | null既定値あり
accounts[].account.currencystring | null既定値あり
accounts[].account.card_last4string | null既定値あり
accounts[].balancesobject既定値あり
accounts[].balances.openingobject既定値あり
accounts[].balances.opening.amountstring | null既定値あり
accounts[].balances.opening.as_ofstring | null既定値あり
accounts[].balances.closingobject既定値あり
accounts[].balances.closing.amountstring | null既定値あり
accounts[].balances.closing.as_ofstring | null既定値あり
accounts[].balances.availablestring | null既定値あり
accounts[].totalsobject既定値あり
accounts[].totals.credits_countinteger | null既定値あり
accounts[].totals.credits_amountstring | null既定値あり
accounts[].totals.debits_countinteger | null既定値あり
accounts[].totals.debits_amountstring | null既定値あり
accounts[].totals.fees_chargedstring | null既定値あり
accounts[].totals.interest_paidstring | null既定値あり
accounts[].totals.interest_chargedstring | null既定値あり
accounts[].transactionsarray<object>既定値あり
accounts[].transactions[].trntypestring | null既定値あり
accounts[].transactions[].dtpostedstring | null既定値あり
accounts[].transactions[].dtuserstring | null既定値あり
accounts[].transactions[].trnamtstring | null既定値あり
accounts[].transactions[].namestring | null既定値あり
accounts[].transactions[].memostring | null既定値あり
accounts[].transactions[].running_balancestring | null既定値あり
accounts[].transactions[].fitidstring | null既定値あり
accounts[].transactions[].refnumstring | null既定値あり
accounts[].transactions[].checknumstring | null既定値あり
accounts[].transactions[].card_last4string | null既定値あり
accounts[].transactions[].feestring | null既定値あり
reconciliation_warnings
フィールドパスJSONの型フィールドの存在条件
reconciliation_warningsarray<string>既定値あり

各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。

フラット出力には明細書と口座の情報を繰り返す取引行が含まれます。非フラットでは明細書情報と各口座の取引、残高、合計を分けて表示します。口座セクションは文書によって異なります。

フラット

Transactions では、各取引行に文書と口座の詳細を繰り返します。取引や口座がない場合も、フラット出力には識別情報の行を作成し、取引フィールドを空欄にします。

Transactions (Excel / CSV / Word)
出力フィールドJSONの参照元または出力ルール
doc_iddoc_id
source_filenamesource_filename
bankissuer.name
account_holderaccounts[].holder.name
account_numberaccounts[].account.account_number_masked || accounts[].account.account_number || accounts[].account.iban
account_typeaccounts[].account.account_type
currencyaccounts[].account.currency || statement.currency_default
period_startstatement.period_start
period_endstatement.period_end
txn_noindex(accounts[].transactions[]) + 1
dateaccounts[].transactions[].dtposted
value_dateaccounts[].transactions[].dtuser
descriptionjoinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ")
referenceaccounts[].transactions[].refnum
check_numberaccounts[].transactions[].checknum
typeaccounts[].transactions[].trntype
amountaccounts[].transactions[].trnamt
feeaccounts[].transactions[].fee
running_balanceaccounts[].transactions[].running_balance

非フラット

口座ごとに取引表と詳細表を作成し、Excel と CSV では横に並べます。明細書の詳細は最初の口座に添え、警告は存在する場合のみ表示します。Word では各セクションを縦に並べます。以下にフィールドと値の各行を示します。

取引
出力フィールドJSONの参照元または出力ルール
#index(accounts[].transactions[]) + 1
Dateaccounts[].transactions[].dtposted
Value dateaccounts[].transactions[].dtuser
DescriptionjoinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ")
Referenceaccounts[].transactions[].refnum
Check #accounts[].transactions[].checknum
Typeaccounts[].transactions[].trntype
Amountaccounts[].transactions[].trnamt
Running balanceaccounts[].transactions[].running_balance
口座またはカード情報
出力フィールドJSONの参照元または出力ルール
Holderaccounts[].holder.name
Account nameaccounts[].account.account_name
Account numberaccounts[].account.account_number_masked || accounts[].account.account_number
IBANaccounts[].account.iban
BICaccounts[].account.bic
Sort codeaccounts[].account.sort_code
Card last 4accounts[].account.card_last4
Account typeaccounts[].account.account_type
Currencyaccounts[].account.currency
残高
出力フィールドJSONの参照元または出力ルール
Openingaccounts[].balances.opening.amount
Opening as ofaccounts[].balances.opening.as_of
Closingaccounts[].balances.closing.amount
Closing as ofaccounts[].balances.closing.as_of
Availableaccounts[].balances.available
合計
出力フィールドJSONの参照元または出力ルール
Credits countaccounts[].totals.credits_count
Credits amountaccounts[].totals.credits_amount
Debits countaccounts[].totals.debits_count
Debits amountaccounts[].totals.debits_amount
Fees chargedaccounts[].totals.fees_charged
Interest paidaccounts[].totals.interest_paid
Interest chargedaccounts[].totals.interest_charged
明細書情報
出力フィールドJSONの参照元または出力ルール
Doc IDdoc_id
Sourcesource_filename
Bankissuer.name
Statement datestatement.statement_date
Period startstatement.period_start
Period endstatement.period_end
Page countstatement.page_count
警告
出力フィールドJSONの参照元または出力ルール
#index(reconciliation_warnings[]) + 1
Warningreconciliation_warnings[]

どちらのエクスポートも、すべての口座の取引をまとめます。Xero は金額が null の取引を除き、QuickBooks は金額が null またはゼロの取引を除きます。QuickBooks は name より memo を優先し、数字のみの説明には trntype、name、または「Txn」を前置します。クレジットカードの金額は符号を反転します。口座を識別するための独立した列は含まれません。

Xero CSV

Xero CSV
出力フィールドJSONの参照元または出力ルール
*Dateaccounts[].transactions[].dtposted → DD/MM/YYYY
*Amountaccounts[].transactions[].trnamt
Payeeaccounts[].transactions[].name
DescriptionjoinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ")
Referenceaccounts[].transactions[].refnum
Cheque Numberaccounts[].transactions[].checknum
Account code*空白で出力
Tax Rate (Display Name)*空白で出力
Tracking1空白で出力
Tracking2空白で出力
Transaction Typeaccounts[].transactions[].trntype
Analysis code空白で出力

QuickBooks CSV

QuickBooks CSV
出力フィールドJSONの参照元または出力ルール
Dateaccounts[].transactions[].dtposted → DD/MM/YYYY
Descriptionaccounts[].transactions[].memo || accounts[].transactions[].name || accounts[].transactions[].trntype || "Transaction"
Amountaccounts[].transactions[].trnamt

クレジットカード明細書

発行機関、明細期間、口座情報、残高、利用限度額、利用状況の概要、取引です。trnamtは銀行取引明細書とは逆の購入符号を使い、請求が正、支払いと返金が負になります。

JSONフィールド

型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。

issuer
フィールドパスJSONの型フィールドの存在条件
issuerobject既定値あり
issuer.namestring | null既定値あり
statement
フィールドパスJSONの型フィールドの存在条件
statementobject既定値あり
statement.statement_datestring | null既定値あり
statement.period_startstring | null既定値あり
statement.period_endstring | null既定値あり
statement.currency_defaultstring | null既定値あり
statement.page_countinteger | null既定値あり
accounts
フィールドパスJSONの型フィールドの存在条件
accountsarray<object>既定値あり
accounts[].holderobject既定値あり
accounts[].holder.namestring | null既定値あり
accounts[].accountobject既定値あり
accounts[].account.account_numberstring | null既定値あり
accounts[].account.account_number_maskedstring | null既定値あり
accounts[].account.card_last4string | null既定値あり
accounts[].account.binstring | null既定値あり
accounts[].account.card_networkstring | null既定値あり
accounts[].account.card_brandstring | null既定値あり
accounts[].account.card_productstring | null既定値あり
accounts[].account.card_typestring | null既定値あり
accounts[].account.currencystring | null既定値あり
accounts[].balancesobject既定値あり
accounts[].balances.previous_balanceobject既定値あり
accounts[].balances.previous_balance.amountstring | null既定値あり
accounts[].balances.previous_balance.as_ofstring | null既定値あり
accounts[].balances.new_balanceobject既定値あり
accounts[].balances.new_balance.amountstring | null既定値あり
accounts[].balances.new_balance.as_ofstring | null既定値あり
accounts[].balances.statement_balancestring | null既定値あり
accounts[].balances.minimum_payment_duestring | null既定値あり
accounts[].balances.payment_due_datestring | null既定値あり
accounts[].balances.past_due_amountstring | null既定値あり
accounts[].credit_limitsobject既定値あり
accounts[].credit_limits.credit_limitstring | null既定値あり
accounts[].credit_limits.available_creditstring | null既定値あり
accounts[].credit_limits.cash_advance_limitstring | null既定値あり
accounts[].credit_limits.available_cashstring | null既定値あり
accounts[].credit_limits.over_limit_amountstring | null既定値あり
accounts[].summaryobject既定値あり
accounts[].summary.previous_balancestring | null既定値あり
accounts[].summary.paymentsstring | null既定値あり
accounts[].summary.credits_returnsstring | null既定値あり
accounts[].summary.purchasesstring | null既定値あり
accounts[].summary.cash_advancesstring | null既定値あり
accounts[].summary.balance_transfersstring | null既定値あり
accounts[].summary.fees_chargedstring | null既定値あり
accounts[].summary.interest_chargedstring | null既定値あり
accounts[].summary.adjustmentsstring | null既定値あり
accounts[].summary.new_balancestring | null既定値あり
accounts[].transactionsarray<object>既定値あり
accounts[].transactions[].trntypestring | null既定値あり
accounts[].transactions[].dtpostedstring | null既定値あり
accounts[].transactions[].dtuserstring | null既定値あり
accounts[].transactions[].trnamtstring | null既定値あり
accounts[].transactions[].namestring | null既定値あり
accounts[].transactions[].memostring | null既定値あり
accounts[].transactions[].fitidstring | null既定値あり
accounts[].transactions[].refnumstring | null既定値あり
accounts[].transactions[].card_last4string | null既定値あり
accounts[].transactions[].cardholder_namestring | null既定値あり
accounts[].transactions[].is_foreignboolean | null既定値あり
reconciliation_warnings
フィールドパスJSONの型フィールドの存在条件
reconciliation_warningsarray<string>既定値あり

各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。

フラット出力には明細書と口座のフィールドを繰り返す取引行が含まれます。非フラットには取引、残高、限度額、概要の口座別セクションがあります。口座が複数ある場合はセクション数も変わります。

フラット

Transactions では、各取引行に文書と口座の詳細を繰り返します。取引や口座がない場合も、フラット出力には識別情報の行を作成し、取引フィールドを空欄にします。

Transactions (Excel / CSV / Word)
出力フィールドJSONの参照元または出力ルール
doc_iddoc_id
source_filenamesource_filename
issuerissuer.name
cardholderaccounts[].transactions[].cardholder_name || accounts[].holder.name
card_last4accounts[].transactions[].card_last4 || accounts[].account.card_last4
card_networkaccounts[].account.card_network
card_brandaccounts[].account.card_brand
currencyaccounts[].account.currency || statement.currency_default
period_startstatement.period_start
period_endstatement.period_end
txn_noindex(accounts[].transactions[]) + 1
dateaccounts[].transactions[].dtposted
posted_dateaccounts[].transactions[].dtuser
descriptionjoinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ")
referenceaccounts[].transactions[].refnum
typeaccounts[].transactions[].trntype
amountaccounts[].transactions[].trnamt
is_foreignaccounts[].transactions[].is_foreign → Yes / No / ""

非フラット

口座ごとに取引表と詳細表を作成し、Excel と CSV では横に並べます。明細書の詳細は最初の口座に添え、警告は存在する場合のみ表示します。Word では各セクションを縦に並べます。以下にフィールドと値の各行を示します。

取引
出力フィールドJSONの参照元または出力ルール
#index(accounts[].transactions[]) + 1
Dateaccounts[].transactions[].dtposted
Postedaccounts[].transactions[].dtuser
DescriptionjoinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ")
Referenceaccounts[].transactions[].refnum
Typeaccounts[].transactions[].trntype
Card last 4accounts[].transactions[].card_last4 || accounts[].account.card_last4
Amountaccounts[].transactions[].trnamt
口座またはカード情報
出力フィールドJSONの参照元または出力ルール
Holderaccounts[].holder.name
Card last 4accounts[].account.card_last4
Card networkaccounts[].account.card_network
Card brandaccounts[].account.card_brand
Card productaccounts[].account.card_product
Card typeaccounts[].account.card_type
Account numberaccounts[].account.account_number_masked || accounts[].account.account_number
Currencyaccounts[].account.currency
残高
出力フィールドJSONの参照元または出力ルール
Previous balanceaccounts[].balances.previous_balance.amount
Previous balance as ofaccounts[].balances.previous_balance.as_of
New balanceaccounts[].balances.new_balance.amount
New balance as ofaccounts[].balances.new_balance.as_of
Statement balanceaccounts[].balances.statement_balance
Minimum paymentaccounts[].balances.minimum_payment_due
Payment due dateaccounts[].balances.payment_due_date
Past dueaccounts[].balances.past_due_amount
利用限度額
出力フィールドJSONの参照元または出力ルール
Credit limitaccounts[].credit_limits.credit_limit
Available creditaccounts[].credit_limits.available_credit
Cash advance limitaccounts[].credit_limits.cash_advance_limit
Available cashaccounts[].credit_limits.available_cash
Over limitaccounts[].credit_limits.over_limit_amount
利用状況の概要
出力フィールドJSONの参照元または出力ルール
Previous balanceaccounts[].summary.previous_balance
Paymentsaccounts[].summary.payments
Credits / returnsaccounts[].summary.credits_returns
Purchasesaccounts[].summary.purchases
Cash advancesaccounts[].summary.cash_advances
Balance transfersaccounts[].summary.balance_transfers
Fees chargedaccounts[].summary.fees_charged
Interest chargedaccounts[].summary.interest_charged
Adjustmentsaccounts[].summary.adjustments
New balanceaccounts[].summary.new_balance
明細書情報
出力フィールドJSONの参照元または出力ルール
Doc IDdoc_id
Sourcesource_filename
Issuerissuer.name
Statement datestatement.statement_date
Period startstatement.period_start
Period endstatement.period_end
Page countstatement.page_count
警告
出力フィールドJSONの参照元または出力ルール
#index(reconciliation_warnings[]) + 1
Warningreconciliation_warnings[]

どちらのエクスポートも、すべての口座の取引をまとめます。Xero は金額が null の取引を除き、QuickBooks は金額が null またはゼロの取引を除きます。QuickBooks は name より memo を優先し、数字のみの説明には trntype、name、または「Txn」を前置します。クレジットカードの金額は符号を反転します。口座を識別するための独立した列は含まれません。

Xero CSV

Xero CSV
出力フィールドJSONの参照元または出力ルール
*Dateaccounts[].transactions[].dtposted → DD/MM/YYYY
*Amount−accounts[].transactions[].trnamt
Payeeaccounts[].transactions[].name
DescriptionjoinDistinct(accounts[].transactions[].name, accounts[].transactions[].memo, " - ")
Referenceaccounts[].transactions[].refnum
Cheque Number空白で出力
Account code*空白で出力
Tax Rate (Display Name)*空白で出力
Tracking1空白で出力
Tracking2空白で出力
Transaction Typeaccounts[].transactions[].trntype
Analysis code空白で出力

QuickBooks CSV

QuickBooks CSV
出力フィールドJSONの参照元または出力ルール
Dateaccounts[].transactions[].dtposted → DD/MM/YYYY
Descriptionaccounts[].transactions[].memo || accounts[].transactions[].name || accounts[].transactions[].trntype || "Transaction"
Amount−accounts[].transactions[].trnamt

給与明細書

給与対象期間、従業員と雇用主、単価、支給額、控除、税金、雇用主負担額、合計です。current_amountは当期の金額、ytd_amountは年初来累計です。

JSONフィールド

型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。

statement
フィールドパスJSONの型フィールドの存在条件
statementobject既定値あり
statement.issue_datestring | null既定値あり
statement.pay_datestring | null既定値あり
statement.period_startstring | null既定値あり
statement.period_endstring | null既定値あり
statement.period_typestring | null既定値あり
statement.tax_yearinteger | null既定値あり
statement.currencystring | null既定値あり
statement.countrystring | null既定値あり
employee
フィールドパスJSONの型フィールドの存在条件
employeeobject既定値あり
employee.namestring | null既定値あり
employee.pay_frequencystring | null既定値あり
employee.employment_typestring | null既定値あり
employee.employment_statusstring | null既定値あり
employee.filing_statusstring | null既定値あり
employee.tax_codestring | null既定値あり
employer
フィールドパスJSONの型フィールドの存在条件
employerobject既定値あり
employer.namestring | null既定値あり
rates
フィールドパスJSONの型フィールドの存在条件
ratesobject既定値あり
rates.base_pay_ratestring | null既定値あり
rates.base_pay_unitstring | null既定値あり
rates.annual_salarystring | null既定値あり
rates.regular_hours_per_periodstring | null既定値あり
rates.overtime_multiplierstring | null既定値あり
earnings
フィールドパスJSONの型フィールドの存在条件
earningsarray<object>既定値あり
earnings[].codestring | null既定値あり
earnings[].descriptionstring | null既定値あり
earnings[].categorystring | null既定値あり
earnings[].jurisdictionstring | null既定値あり
earnings[].hoursstring | null既定値あり
earnings[].ratestring | null既定値あり
earnings[].current_amountstring | null既定値あり
earnings[].ytd_amountstring | null既定値あり
earnings[].employer_matchstring | null既定値あり
earnings[].employer_match_ytdstring | null既定値あり
earnings[].is_taxableboolean | null既定値あり
earnings[].is_imputedboolean | null既定値あり
earnings[].memostring | null既定値あり
pre_tax_deductions
フィールドパスJSONの型フィールドの存在条件
pre_tax_deductionsarray<object>既定値あり
pre_tax_deductions[].codestring | null既定値あり
pre_tax_deductions[].descriptionstring | null既定値あり
pre_tax_deductions[].categorystring | null既定値あり
pre_tax_deductions[].jurisdictionstring | null既定値あり
pre_tax_deductions[].hoursstring | null既定値あり
pre_tax_deductions[].ratestring | null既定値あり
pre_tax_deductions[].current_amountstring | null既定値あり
pre_tax_deductions[].ytd_amountstring | null既定値あり
pre_tax_deductions[].employer_matchstring | null既定値あり
pre_tax_deductions[].employer_match_ytdstring | null既定値あり
pre_tax_deductions[].is_taxableboolean | null既定値あり
pre_tax_deductions[].is_imputedboolean | null既定値あり
pre_tax_deductions[].memostring | null既定値あり
taxes
フィールドパスJSONの型フィールドの存在条件
taxesarray<object>既定値あり
taxes[].codestring | null既定値あり
taxes[].descriptionstring | null既定値あり
taxes[].categorystring | null既定値あり
taxes[].jurisdictionstring | null既定値あり
taxes[].hoursstring | null既定値あり
taxes[].ratestring | null既定値あり
taxes[].current_amountstring | null既定値あり
taxes[].ytd_amountstring | null既定値あり
taxes[].employer_matchstring | null既定値あり
taxes[].employer_match_ytdstring | null既定値あり
taxes[].is_taxableboolean | null既定値あり
taxes[].is_imputedboolean | null既定値あり
taxes[].memostring | null既定値あり
post_tax_deductions
フィールドパスJSONの型フィールドの存在条件
post_tax_deductionsarray<object>既定値あり
post_tax_deductions[].codestring | null既定値あり
post_tax_deductions[].descriptionstring | null既定値あり
post_tax_deductions[].categorystring | null既定値あり
post_tax_deductions[].jurisdictionstring | null既定値あり
post_tax_deductions[].hoursstring | null既定値あり
post_tax_deductions[].ratestring | null既定値あり
post_tax_deductions[].current_amountstring | null既定値あり
post_tax_deductions[].ytd_amountstring | null既定値あり
post_tax_deductions[].employer_matchstring | null既定値あり
post_tax_deductions[].employer_match_ytdstring | null既定値あり
post_tax_deductions[].is_taxableboolean | null既定値あり
post_tax_deductions[].is_imputedboolean | null既定値あり
post_tax_deductions[].memostring | null既定値あり
employer_contributions
フィールドパスJSONの型フィールドの存在条件
employer_contributionsarray<object>既定値あり
employer_contributions[].codestring | null既定値あり
employer_contributions[].descriptionstring | null既定値あり
employer_contributions[].categorystring | null既定値あり
employer_contributions[].jurisdictionstring | null既定値あり
employer_contributions[].hoursstring | null既定値あり
employer_contributions[].ratestring | null既定値あり
employer_contributions[].current_amountstring | null既定値あり
employer_contributions[].ytd_amountstring | null既定値あり
employer_contributions[].employer_matchstring | null既定値あり
employer_contributions[].employer_match_ytdstring | null既定値あり
employer_contributions[].is_taxableboolean | null既定値あり
employer_contributions[].is_imputedboolean | null既定値あり
employer_contributions[].memostring | null既定値あり
totals
フィールドパスJSONの型フィールドの存在条件
totalsobject既定値あり
totals.gross_pay_currentstring | null既定値あり
totals.gross_pay_ytdstring | null既定値あり
totals.taxable_gross_currentstring | null既定値あり
totals.taxable_gross_ytdstring | null既定値あり
totals.total_pre_tax_deductions_currentstring | null既定値あり
totals.total_pre_tax_deductions_ytdstring | null既定値あり
totals.total_taxes_currentstring | null既定値あり
totals.total_taxes_ytdstring | null既定値あり
totals.total_post_tax_deductions_currentstring | null既定値あり
totals.total_post_tax_deductions_ytdstring | null既定値あり
totals.total_deductions_currentstring | null既定値あり
totals.total_deductions_ytdstring | null既定値あり
totals.total_employer_contributions_currentstring | null既定値あり
totals.total_employer_contributions_ytdstring | null既定値あり
totals.net_pay_currentstring | null既定値あり
totals.net_pay_ytdstring | null既定値あり
totals.hours_worked_currentstring | null既定値あり
totals.hours_worked_ytdstring | null既定値あり
reconciliation_warnings
フィールドパスJSONの型フィールドの存在条件
reconciliation_warningsarray<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 / Currenttotals.gross_pay_current
Gross pay / YTDtotals.gross_pay_ytd
Taxable gross / Currenttotals.taxable_gross_current
Taxable gross / YTDtotals.taxable_gross_ytd
Pre-tax deductions / Currenttotals.total_pre_tax_deductions_current
Pre-tax deductions / YTDtotals.total_pre_tax_deductions_ytd
Taxes / Currenttotals.total_taxes_current
Taxes / YTDtotals.total_taxes_ytd
Post-tax deductions / Currenttotals.total_post_tax_deductions_current
Post-tax deductions / YTDtotals.total_post_tax_deductions_ytd
Total deductions / Currenttotals.total_deductions_current
Total deductions / YTDtotals.total_deductions_ytd
Employer contributions / Currenttotals.total_employer_contributions_current
Employer contributions / YTDtotals.total_employer_contributions_ytd
Net pay / Currenttotals.net_pay_current
Net pay / YTDtotals.net_pay_ytd
Hours worked / Currenttotals.hours_worked_current
Hours worked / YTDtotals.hours_worked_ytd
明細書情報
出力フィールドJSONの参照元または出力ルール
Doc IDdoc_id
Sourcesource_filename
Issue datestatement.issue_date
Pay datestatement.pay_date
Period startstatement.period_start
Period endstatement.period_end
Period typestatement.period_type
Tax yearstatement.tax_year
Currencystatement.currency
Countrystatement.country
従業員
出力フィールドJSONの参照元または出力ルール
Nameemployee.name
Pay frequencyemployee.pay_frequency
Employment typeemployee.employment_type
Employment statusemployee.employment_status
Filing statusemployee.filing_status
Tax codeemployee.tax_code
雇用主
出力フィールドJSONの参照元または出力ルール
Nameemployer.name
給与単価
出力フィールドJSONの参照元または出力ルール
Base pay raterates.base_pay_rate
Base pay unitrates.base_pay_unit
Annual salaryrates.annual_salary
Regular hours/periodrates.regular_hours_per_period
Overtime multiplierrates.overtime_multiplier
支給額
出力フィールドJSONの参照元または出力ルール
#index(earnings[]) + 1
Descriptionearnings[].description || earnings[].code
Codeearnings[].code
Hoursearnings[].hours
Rateearnings[].rate
Currentearnings[].current_amount
YTDearnings[].ytd_amount
Memoearnings[].memo
税引前控除
出力フィールドJSONの参照元または出力ルール
#index(pre_tax_deductions[]) + 1
Descriptionpre_tax_deductions[].description || pre_tax_deductions[].code
Codepre_tax_deductions[].code
Currentpre_tax_deductions[].current_amount
YTDpre_tax_deductions[].ytd_amount
Memopre_tax_deductions[].memo
税金
出力フィールドJSONの参照元または出力ルール
#index(taxes[]) + 1
Descriptiontaxes[].description || taxes[].code
Codetaxes[].code
Jurisdictiontaxes[].jurisdiction
Ratetaxes[].rate
Currenttaxes[].current_amount
YTDtaxes[].ytd_amount
税引後控除
出力フィールドJSONの参照元または出力ルール
#index(post_tax_deductions[]) + 1
Descriptionpost_tax_deductions[].description || post_tax_deductions[].code
Codepost_tax_deductions[].code
Currentpost_tax_deductions[].current_amount
YTDpost_tax_deductions[].ytd_amount
Memopost_tax_deductions[].memo
雇用主負担額
出力フィールドJSONの参照元または出力ルール
#index(employer_contributions[]) + 1
Descriptionemployer_contributions[].description || employer_contributions[].code
Codeemployer_contributions[].code
Currentemployer_contributions[].current_amount
YTDemployer_contributions[].ytd_amount
警告
出力フィールドJSONの参照元または出力ルール
#index(reconciliation_warnings[]) + 1
Warningreconciliation_warnings[]

Xero CSV

非対応

QuickBooks CSV

非対応

表の画像

表のタイトル、見出し行、本文セル、注記です。headersとrows[].cellsは原本の列に従い、固定の財務スキーマではありません。行タイプはデータや小計など、行の役割を表します。

JSONフィールド

型はシリアライズ後のJSONを表します。親オブジェクトと配列を子フィールドより先に表示し、[]は繰り返し項目を示します。既定値のあるフィールドは抽出時に指定しなくても構いません。Decimal値は文字列としてシリアライズされます。ダウンロードにも既定値のあるフィールドが残ります。値が抽出されないこととJSONキー自体の省略は異なります。

文書
フィールドパスJSONの型フィールドの存在条件
titlestring | null既定値あり
captionstring | null既定値あり
source_typestring | null既定値あり
border_stylestring | null既定値あり
languagestring | null既定値あり
header_rowsinteger | null既定値あり
notesstring | null既定値あり
headers
フィールドパスJSONの型フィールドの存在条件
headersarray<array<any>>既定値あり
rows
フィールドパスJSONの型フィールドの存在条件
rowsarray<object>既定値あり
rows[].typestring | null既定値あり
rows[].cellsarray<any>既定値あり
reconciliation_warnings
フィールドパスJSONの型フィールドの存在条件
reconciliation_warningsarray<string>既定値あり

各表は出力フィールドとJSONパスの対応を示します。||は最初の空でない値、??はnullの場合の代替値を意味します。番号付け、摘要の結合、書式は出力ルールです。欠損値は通常、空白セルになります。

フラット・非フラットの選択はありません。1つのTableシートに抽出した見出しとセルを配置します。列数は可変で、タイトル、注記、警告により行が追加される場合があります。CSVはExcelのセル結合や書式を保持できません。

専用レイアウト

列名は固定リストではなく headers から取得します。本文のセルは元の順序を保ち、短い行は補完し、null のセルは空欄にします。title と caption は表の上、notes と warnings は下に表示します。Excel では隣接する同じ見出し値を結合します。rows[].type は Excel と Word の表示形式を制御し、追加の出力列にはなりません。CSV に装飾はありません。データ表が1列でも、警告行は2列を使用する場合があります。

表の構造
出力フィールドJSONの参照元または出力ルール
titletitle
captioncaption
headers[][]headers[][]
rows[].cells[]rows[].cells[]
行の書式(Excel / Word)rows[].type → DATA | HEADER | SECTION | SUBTOTAL | GRAND_TOTAL
表の幅max(length(headers[]), length(rows[].cells)) || 1
Notesnotes
#index(reconciliation_warnings[]) + 1
Reconciliation warningsreconciliation_warnings[]

Xero CSV

非対応

QuickBooks CSV

非対応

欠損値と結果の確認

nullを許可するフィールドにはnullが入り、存在しないリストの既定値は[]です。入れ子のオブジェクトにも独自の既定値を持つフィールドがあります。スプレッドシート出力では欠損値を通常は空白セルで表示します。日付や金額が正規化され、照合時に不足する合計が算出されたり、警告が追加されたりする場合があります。doc_idとsource_filenameは抽出された財務フィールドではなく、エクスポート用メタデータです。

原本と出力された値を確認してください。reconciliation_warningsリストが空でも、正確さが証明されたわけではありません。

スキーマとエクスポートのレイアウト | ScanToExcel