Purchase order template
A purchase order with delivery date, delivery location, payment terms and inspection conditions, plus approval stamp boxes. Line items continue onto the next page when needed.
- 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
- Purchasing materials and supplies
- Automatic issuance after approval in procurement workflows
- Ordering work from subcontractors
Merge fields
The data fields you send to the API. Fields inside an array are shown as array.field.
| Field | Description |
|---|---|
number | PO number |
ordered_at | Order date (YYYY-MM-DD) |
supplier.name | Supplier company name |
supplier.person | Supplier contact name |
total | Total including tax |
buyer.name | Buyer company name |
buyer.postal_code | Buyer postal code |
buyer.address | Buyer address |
buyer.tel | Buyer phone number |
buyer.contact | Buyer contact person |
due_date | Delivery date (YYYY-MM-DD) |
place | Delivery location |
payment_terms | Payment terms |
inspection | Inspection terms |
items | Line items (array) |
items.no | Line number |
items.code | Product code |
items.name | Item and specification |
items.qty | Quantity |
items.unit | Unit |
items.price | Unit price |
items.amount | Amount |
subtotal | Subtotal |
tax_rate | Tax rate (e.g. 10%) |
tax | Consumption tax |
note | Notes |
How to use it
- In the dashboard, choose Create template, select "Start from a template" and pick "Purchase order". 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 (purchase-order) in POST /v1/templates, then send the template name and data to POST /v1/renders.
1. Create a template from the ready-made one
curl https://api.docrelay.jp/v1/templates \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Purchase order", "from": "purchase-order" }'2. Send data and issue a 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 (sample data; arrays show the first item and long text is shortened)
{
"template": "Purchase order",
"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": "・納品時に納品書を添付してください。…"
}
}Early access is open
We are preparing for launch. Pre-register and we will notify you when the service becomes available.


