Delivery note and invoice template

A combined delivery note and invoice with delivery date and location, payment due date, dated line items with tax rates, totals and consumption tax by rate, bank details, and a receipt stamp box. A layout example that includes fields for the items required on a qualified invoice in Japan.

  • A4 portrait
  • 37 merge fields
  • Issued as PDF
  • 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.
Sample of the delivery note and invoice template (first page of a PDF issued with DocRelay)

Use cases

  • Billing at the time of delivery
  • Documents enclosed with retail or wholesale deliveries
  • Bulk issuance from sales management systems

Merge fields

The data fields you send to the API. Fields inside an array are shown as array.field.

FieldDescription
numberDocument number
issued_atIssue date (YYYY-MM-DD)
customer.nameCustomer name
customer.postal_codeCustomer postal code
customer.addressCustomer address
totalTotal amount including tax
issuer.nameIssuer name
issuer.registration_numberIssuer registration number (T + 13 digits)
issuer.postal_codeIssuer postal code
issuer.addressIssuer address
issuer.telIssuer phone number
issuer.contactContact person
delivered_atDelivery date (YYYY-MM-DD)
placeDelivery location
order_numberOrder number
due_datePayment due date (YYYY-MM-DD)
itemsLine items (array)
items.dateDelivery date (transaction date)
items.codeProduct code
items.nameItem name
items.qtyQuantity
items.unitUnit
items.priceUnit price excluding tax
items.tax_rateTax rate (e.g. 10%, 8%※)
items.amountAmount excluding tax
tax.rate10.baseAmount subject to 10% (excluding tax)
tax.rate10.taxConsumption tax at 10%
tax.rate8.baseAmount subject to 8% (excluding tax)
tax.rate8.taxConsumption tax at 8%
subtotalSubtotal excluding tax
tax_totalTotal consumption tax
bank.nameBank name
bank.branchBranch
bank.typeAccount type
bank.numberAccount number
bank.holderAccount holder
noteNotes

How to use it

  1. In the dashboard, choose Create template, select "Start from a template" and pick "Delivery note and invoice". The layout and sample data are copied into your project.
  2. Edit the company name, logo and field positions in the template editor to match your own format.
  3. Send the template name and data to POST /v1/renders to 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 (delivery-invoice) 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": "Delivery note and invoice", "from": "delivery-invoice" }'
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 @delivery-invoice.json \
  -o delivery-invoice.pdf
delivery-invoice.json (sample data; arrays show the first item and long text is shortened)
{
  "template": "Delivery note and invoice",
  "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": "本書は納品書と請求書を兼ねております。…"
  }
}

API reference

Early access is open

We are preparing for launch. Pre-register and we will notify you when the service becomes available.