納品書兼請求書テンプレート
納品と
- 見本の
会社名・氏名・住所・金額は 架空の ものです。

主な用途
- 納品と
同時に 請求する 都度 払いの 取引 - 小売・卸の
配送時の 同梱書類 - 販売管理システムからの
納品書兼請求書の 一括発行
差し込み項目
API で配列名.項目名 の
| 項目 | 内容 |
|---|---|
number | 伝票番号 |
issued_at | 発行日 |
customer.name | 納品先・請求先の |
customer.postal_code | 納品先の |
customer.address | 納品先の |
total | 請求金額 |
issuer.name | 発行者の |
issuer.registration_number | 発行者の |
issuer.postal_code | 発行者の |
issuer.address | 発行者の |
issuer.tel | 発行者の |
issuer.contact | 担当者名 |
delivered_at | 納品日 |
place | 納品場所 |
order_number | 注文番号 |
due_date | お支払期限 |
items | 明細の |
items.date | 納品日 |
items.code | 品番 |
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% 対象の |
subtotal | 小計 |
tax_total | 消費税の |
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 にdelivery-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": "delivery-invoice" }'2. データを送信して PDF を発行
curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @delivery-invoice.json \
-o delivery-invoice.pdfdelivery-invoice.json(サンプルデータ。配列は先頭の 1 件、長い文は省略)
{
"template": "納品書兼請求書",
"format": "pdf",
"data": {
"number": "DI-2026-0815",
"issued_at": "2026-11-05",
"customer": {
"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": "営業部 佐藤 一郎"
},
"delivered_at": "2026-11-05",
"place": "貴社 本社 3 階 総務部",
"order_number": "OR-2026-0602",
"due_date": "2026-11-30",
"items": [
{
"date": "2026-11-05",
"code": "ST-CP-A4",
"name": "コピー用紙 A4(500 枚×5 冊)",
"qty": 20,
"unit": "箱",
"price": 2980,
"tax_rate": "10%",
"amount": 59600
}
],
"tax": {
"rate10": {
"base": 121800,
"tax": 12180
},
"rate8": {
"base": 17280,
"tax": 1382
}
},
"subtotal": 139080,
"tax_total": 13562,
"total": 152642,
"bank": {
"name": "見本銀行",
"branch": "本店営業部",
"type": "普通",
"number": "1234567",
"holder": "サンプルシヨウジ(カ)"
},
"note": "本書は納品書と請求書を兼ねております。…"
}
}


