発注書テンプレート
納期・納入場所・支払条件・検収の
- 見本の
会社名・氏名・住所・金額は 架空の ものです。

主な用途
- 資材・備品の
購買 - 購買管理・ワークフローシステムでの
承認後の 自動発行 - 外注先への
作業の 発注
差し込み項目
API で配列名.項目名 の
| 項目 | 内容 |
|---|---|
number | 発注番号 |
ordered_at | 発注日 |
supplier.name | 発注先の |
supplier.person | 発注先の |
total | 発注金額 |
buyer.name | 発注者の |
buyer.postal_code | 発注者の |
buyer.address | 発注者の |
buyer.tel | 発注者の |
buyer.contact | 発注担当者名 |
due_date | 納期 |
place | 納入場所 |
payment_terms | 支払条件 |
inspection | 検収の |
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 にpurchase-order)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": "purchase-order" }'2. データを送信して PDF を発行
curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @purchase-order.json \
-o purchase-order.pdfpurchase-order.json(サンプルデータ。配列は先頭の 1 件、長い文は省略)
{
"template": "発注書",
"format": "pdf",
"data": {
"number": "PO-2026-0931",
"ordered_at": "2026-10-15",
"supplier": {
"name": "サンプル商事株式会社",
"person": "法人営業部 鈴木 一郎"
},
"buyer": {
"name": "株式会社見本製作所",
"postal_code": "530-0000",
"address": "大阪府大阪市北区例示町4-5-6 見本ビル3F",
"tel": "06-0000-0000",
"contact": "購買部 佐藤 花子"
},
"due_date": "2026-11-02",
"place": "本社 3 階 総務部(大阪府大阪市北区例示町4-5-6)",
"payment_terms": "月末締め 翌月末 銀行振込",
"inspection": "納品後 5 営業日以内に検収",
"items": [
{
"no": 1,
"code": "OF-CH-1020",
"name": "オフィスチェア(ハイバック・肘付)",
"qty": 10,
"unit": "脚",
"price": 32000,
"amount": 320000
}
],
"subtotal": 724000,
"tax_rate": "10%",
"tax": 72400,
"total": 796400,
"note": "・納品時に納品書を添付してください。…"
}
}

