Receipt template
An A5 landscape receipt with description, transaction date, amounts and consumption tax by rate, issuer registration number, and a box for a revenue stamp. A layout example that includes fields for the items required on a qualified invoice in Japan.
- Company names, people, addresses and amounts in the sample are fictional.
- The sample layout is in Japanese. You can change any text in the template editor.

Use cases
- Payments received at a counter or store
- Downloadable receipts for e-commerce customers
- Receipts for event and seminar fees
Merge fields
The data fields you send to the API. Fields inside an array are shown as array.field.
| Field | Description |
|---|---|
number | Receipt number |
issued_at | Issue date (YYYY-MM-DD) |
customer.name | Recipient name |
total | Amount including tax |
description | Description of the transaction |
transaction_date | Transaction date (YYYY-MM-DD) |
payment_method | Payment method |
tax.rate10.total | Amount subject to 10% (including tax) |
tax.rate10.tax | Consumption tax at 10% |
tax.rate8.total | Amount subject to 8% (including tax) |
tax.rate8.tax | Consumption tax at 8% |
issuer.name | Issuer name |
issuer.registration_number | Issuer registration number (T + 13 digits) |
issuer.postal_code | Issuer postal code |
issuer.address | Issuer address |
issuer.tel | Issuer phone number |
issuer.contact | Contact person |
How to use it
- In the dashboard, choose Create template, select "Start from a template" and pick "Receipt". The layout and sample data are copied into your project.
- Edit the company name, logo and field positions in the template editor to match your own format.
- Send the template name and data to
POST /v1/rendersto issue a PDF.
With a test API key (sk_test_) you can issue documents from the draft. Publish a version before issuing with a production API key. From an AI assistant, specify the same template in the from of the MCP create_template tool.
Create and issue via the API
Create a template by setting from to the template ID (receipt) in POST /v1/templates, then send the template name and data to POST /v1/renders.
curl https://api.docrelay.jp/v1/templates \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Receipt", "from": "receipt" }'curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @receipt.json \
-o receipt.pdf{
"template": "Receipt",
"format": "pdf",
"data": {
"number": "R-2026-00384",
"issued_at": "2026-10-24",
"customer": {
"name": "株式会社見本製作所"
},
"total": 33480,
"description": "セミナー参加費および昼食代",
"transaction_date": "2026-10-24",
"payment_method": "クレジットカード",
"tax": {
"rate10": {
"total": 27500,
"tax": 2500
},
"rate8": {
"total": 5980,
"tax": 442
}
},
"issuer": {
"name": "サンプル商事株式会社",
"registration_number": "T1234567890123",
"postal_code": "100-0000",
"address": "東京都千代田区見本町1-2-3 サンプルビル5F",
"tel": "03-0000-0000",
"contact": "研修事業部 伊藤 直子"
}
}
}Early access is open
We are preparing for launch. Pre-register and we will notify you when the service becomes available.



