Skip to main content

Quotation (Estimate)

A quotation sample covering subtotal / consumption tax / total aggregation, a quotation validity date and a long remarks field. 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: Line-item array / subtotal, tax and total / validity date / long remarks / Japanese text
  • Expected pages: 1
  • Supported API version: v1 (POST /v1/file/sync/single)
  • GitHub: examples/quotation

When should I use this quotation sample?​

Use it when you want to check — on top of amount aggregation — that a date field such as a validity date and a long remarks field do not break the layout. It also suits verifying how long text wraps.

1. Clone the template​

Clone "見積もり" from the template gallery into your own Re:port Flow workspace. After cloning, look up your own template 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).

{
"見積番号": "EST-2026-0007",
"見積日": "2026-07-08 00:00:00",
"有効期限": "2026-08-07 00:00:00",
"件名": "コーポレートサイト リニューアル",
"宛先名": "株式会社サンプル商事",
"小計": 300000,
"税率": "10%",
"消費税": 30000,
"合計金額": 330000,
"納期": "ご発注後 約6週間",
"支払条件": "検収後 翌月末 銀行振込",
"備考": "上記金額には別途出張費が発生する場合がございます。\n仕様変更が生じた場合は改めてお見積りいたします。",
"明細": [
{ "No": 1, "品目": "デザイン・UI設計 一式", "数量": 1, "単価": 200000, "金額": 200000 },
{ "No": 2, "品目": "CMS構築・年間ライセンス", "数量": 2, "単価": 50000, "金額": 100000 }
]
}

4. Call the API​

Run the request with your appkey and the template 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 template ID)",
"version": 1,
"content": { "fileName": "quotation", "params": { /* the input.json above */ } }
}' \
--output output.pdf

curl / Node.js / Python request examples are on GitHub.

note

The keys in params must match the parameter definition of the template you cloned. You can fetch that definition with Template Parameters (GET /v1/file/design/parameter/{designId}?version=1).