Skip to main content

Invoice (English Layout)

An English-language invoice sample covering alphanumeric display, currency and two decimal places. 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: Alphanumeric display / currency with 2 decimals / line-item array (Detail)
  • Expected pages: 1
  • Supported API version: v1 (POST /v1/file/sync/single)
  • GitHub: examples/invoice-en

When should I use this English invoice sample?

Use it for documents aimed at an overseas audience, when you want to confirm that alphanumeric display and currency with two decimal places hold up. Comparing it against the Japanese invoice sample also shows the differences when Japanese and Western text are mixed.

1. Clone the template

Clone "Invoice (English)" 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).

{
"InvoiceNumber": "INV-0eDdGXRm2U8eBuRq",
"IssueDate": "2026-01-01 12:00:00",
"BillToName": "ABC.Inc",
"PersonInCharge": "Tom",
"Address": "x-x-x ◯ street NewYork",
"TEL": "00-0000-0000",
"SubTotal": 6480,
"Tax": 648,
"Amount": 7128,
"Detail": [
{ "No": 1, "Item": "ItemA", "Quantity": 1, "Unit": 4980, "Amount": 5478, "Tax": 498 },
{ "No": 2, "Item": "ItemB", "Quantity": 3, "Unit": 500, "Amount": 1650, "Tax": 150 }
],
"Note": "Nothing"
}

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.

note

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).