合計請求書テンプレート
締め日までの
- 見本の
会社名・氏名・住所・金額は 架空の ものです。

主な用途
- 月末締めの
掛売りの 請求 - 卸・
小売の 得意先ごとの 月次の 請求書の 一括発行 - 入金と
繰越を 含めた 売掛金の 残高の 通知
差し込み項目
API で配列名.項目名 の
| 項目 | 内容 |
|---|---|
number | 請求書番号 |
issued_at | 請求日 |
period.to | 締め日 |
customer.code | お客様コード |
customer.name | 請求先の |
customer.postal_code | 請求先の |
customer.address | 請求先の |
due_date | お支払期限 |
issuer.name | 発行者の |
issuer.registration_number | 発行者の |
issuer.postal_code | 発行者の |
issuer.address | 発行者の |
issuer.tel | 発行者の |
issuer.contact | 担当者名 |
summary.previous | 前回御請求額 |
summary.paid | 御入金額 |
summary.carried | 繰越金額 |
summary.sales | 今回御買上額 |
summary.tax | 消費税額 |
summary.total | 今回御請求額 |
period.from | 対象期間の |
items | 明細の |
items.date | 日付 |
items.slip | 伝票番号 |
items.name | 品名・摘要 |
items.qty | 数量 |
items.unit | 単位 |
items.price | 単価 |
items.tax_rate | 税率 |
items.amount | 金額 |
tax.rate10.base | 10% 対象の |
tax.rate10.tax | 10% 対象の |
tax.rate8.base | 8% 対象の |
tax.rate8.tax | 8% 対象の |
bank.name | 振込先の |
bank.branch | 支店名 |
bank.type | 口座の |
bank.number | 口座番号 |
bank.holder | 口座名義 |
note | 備考 |
使い方
- 管理画面の
[テンプレートを 作成]で、 作成方法に 「ひな型から 作成」 を 選び、 「合計請求書」 を 選択します。 レイアウトと サンプルデータが プロジェクトに 複製されます。 - テンプレートエディターで、
社名・ロゴ・項目の 配置などを 自社の 書式に 合わせて 編集します。 - API の
POST /v1/rendersにテンプレート名と データを 送信すると、 PDF を 発行します。
テスト環境のsk_test_)create_template のfrom に
API での作成と発行
POST /v1/templates のfrom にstatement-invoice)POST /v1/renders に
1. ひな型からテンプレートを作成
curl https://api.docrelay.jp/v1/templates \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "合計請求書", "from": "statement-invoice" }'2. データを送信して PDF を発行
curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @statement-invoice.json \
-o statement-invoice.pdfstatement-invoice.json(サンプルデータ。配列は先頭の 1 件、長い文は省略)
{
"template": "合計請求書",
"format": "pdf",
"data": {
"number": "ST-2026-10-0142",
"issued_at": "2026-10-31",
"period": {
"from": "2026-10-01",
"to": "2026-10-31"
},
"due_date": "2026-11-30",
"customer": {
"code": "C-1024",
"name": "株式会社見本製作所",
"postal_code": "530-0000",
"address": "大阪府大阪市北区例示町4-5-6 見本ビル3F"
},
"issuer": {
"name": "サンプル商事株式会社",
"registration_number": "T1234567890123",
"postal_code": "100-0000",
"address": "東京都千代田区見本町1-2-3 サンプルビル5F",
"tel": "03-0000-0000",
"contact": "営業部 佐藤 一郎"
},
"summary": {
"previous": 248600,
"paid": 248600,
"carried": 0,
"sales": 196500,
"tax": 19026,
"total": 215526
},
"items": [
{
"date": "2026-10-03",
"slip": "DN-2026-1007",
"name": "コピー用紙 A4(500 枚×5 冊)",
"qty": 20,
"unit": "箱",
"price": 2980,
"tax_rate": "10%",
"amount": 59600
}
],
"tax": {
"rate10": {
"base": 165300,
"tax": 16530
},
"rate8": {
"base": 31200,
"tax": 2496
}
},
"bank": {
"name": "見本銀行",
"branch": "本店営業部",
"type": "普通",
"number": "1234567",
"holder": "サンプルシヨウジ(カ)"
},
"note": "※ 税率欄の「8%※」は軽減税率の対象品目です。お振込手数料は貴社にてご負担くださいますようお願いいたします。"
}
}


