Invoice (Japanese Tax)
A standard Japanese invoice sample covering multiple line items, consumption tax and rounding. Clone the template into your own workspace, pass the published input JSON to POST /v1/file/sync/single as content.params, and you reproduce the same output as the finished PDF on GitHub.
- What it exercises: Multiple line items (line-item array) / consumption tax / rounding / Japanese text
- Expected pages: 1
- Supported API version:
v1(POST /v1/file/sync/single) - GitHub: examples/invoice
When should I use this invoice sample?
Use it when you want to confirm that the API can produce an invoice with several line items where consumption tax and rounding are involved. It exercises amount calculation and Japanese text together, which makes it a good first sample to try.
1. Clone the template
Clone "請求書" from the template gallery into your own Re:port Flow workspace. After cloning, look up your own design ID.
2. Finished PDF (expected output)
The verified finished PDF is available on GitHub.
3. Input JSON
This is the input data you pass to the API as content.params (view on GitHub).
{
"請求書番号": "INV-2026-0042",
"発行日": "2026-07-05 00:00:00",
"お支払期限": "2026-08-31 00:00:00",
"適格請求書発行事業者登録番号": "T1234567890123",
"件名": "システム開発および保守運用費用",
"請求先名": "株式会社サンプル商事",
"小計": 402000,
"税率": "10%",
"消費税": 40200,
"合計金額": 442200,
"備考": "上記の通りご請求申し上げます。ご不明点がございましたらお問い合わせください。\nお支払期限までにご入金いただけますようお願い申し上げます。",
"明細": [
{ "No": 1, "品目": "システム開発(要件定義・設計)", "数量": 1, "単価": 300000, "税率": "10%", "金額": 300000 },
{ "No": 2, "品目": "保守運用サポート(月額)", "数量": 3, "単価": 30000, "税率": "10%", "金額": 90000 },
{ "No": 3, "品目": "交通費(実費)", "数量": 1, "単価": 12000, "税率": "10%", "金額": 12000 }
]
}
4. Call the API
Run the request with your appkey and the design ID and version of your clone.
curl -X POST https://api.re-port-flow.com/v1/file/sync/single \
-H "appkey: ak_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"designId": "(your cloned design ID)",
"version": 1,
"content": { "fileName": "invoice", "params": { /* the input.json above */ } }
}' \
--output output.pdf
curl / Node.js / Python request examples are on GitHub.
The keys in params must match the parameter definition of the template you cloned. You can fetch that definition with Design Parameters (GET /v1/file/design/parameter/{designId}?version=1).