注文書テンプレート
希望納期・納品先・支払方法、
- 見本の
会社名・氏名・住所・金額は 架空の ものです。

主な用途
- 取引先への
商品・資材の 注文 - 受発注システム・EC の
管理画面からの 注文書の 発行 - 注文請書の
返送に よる 受注の 確認
差し込み項目
API で配列名.項目名 の
| 項目 | 内容 |
|---|---|
number | 注文番号 |
ordered_at | 注文日 |
supplier.name | 注文先の |
supplier.person | 注文先の |
total | 注文金額 |
buyer.name | 注文者の |
buyer.postal_code | 注文者の |
buyer.address | 注文者の |
buyer.tel | 注文者の |
buyer.fax | 注文者の |
buyer.contact | 注文の |
due_date | 希望納期 |
place | 納品先 |
payment_terms | 支払方法 |
shipping | 運賃の |
items | 明細の |
items.no | 明細の |
items.code | 品番 |
items.name | 品名・規格 |
items.qty | 数量 |
items.unit | 単位 |
items.price | 単価 |
items.amount | 金額 |
subtotal | 小計 |
tax_rate | 消費税率 |
tax | 消費税額 |
note | 備考 |
使い方
- 管理画面の
[テンプレートを 作成]で、 作成方法に 「ひな型から 作成」 を 選び、 「注文書」 を 選択します。 レイアウトと サンプルデータが プロジェクトに 複製されます。 - テンプレートエディターで、
社名・ロゴ・項目の 配置などを 自社の 書式に 合わせて 編集します。 - API の
POST /v1/rendersにテンプレート名と データを 送信すると、 PDF を 発行します。
テスト環境のsk_test_)create_template のfrom に
API での作成と発行
POST /v1/templates のfrom にorder-form)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": "order-form" }'2. データを送信して PDF を発行
curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @order-form.json \
-o order-form.pdforder-form.json(サンプルデータ。配列は先頭の 1 件、長い文は省略)
{
"template": "注文書",
"format": "pdf",
"data": {
"number": "OR-2026-0587",
"ordered_at": "2026-10-27",
"supplier": {
"name": "サンプル商事株式会社",
"person": "営業部 佐藤 一郎"
},
"buyer": {
"name": "株式会社見本製作所",
"postal_code": "530-0000",
"address": "大阪府大阪市北区例示町4-5-6 見本ビル3F",
"tel": "06-0000-0000",
"fax": "06-0000-0001",
"contact": "資材部 鈴木 花子"
},
"due_date": "2026-11-10",
"place": "貴社指定の運送便にて 弊社第二工場 資材倉庫",
"payment_terms": "月末締め 翌月末 銀行振込",
"shipping": "貴社ご負担",
"items": [
{
"no": 1,
"code": "BL-M8-30",
"name": "六角ボルト M8×30 ステンレス",
"qty": 2000,
"unit": "本",
"price": 18,
"amount": 36000
}
],
"subtotal": 169500,
"tax_rate": "10%",
"tax": 16950,
"total": 186450,
"note": "納品時に納品書を 2 部ご同封ください。…"
}
}

