Receipt template

An A5 landscape receipt with description, transaction date, amounts and consumption tax by rate, issuer registration number, and a box for a revenue stamp. A layout example that includes fields for the items required on a qualified invoice in Japan.

  • A5 landscape
  • 17 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 receipt template (first page of a PDF issued with DocRelay)

Use cases

  • Payments received at a counter or store
  • Downloadable receipts for e-commerce customers
  • Receipts for event and seminar fees

Merge fields

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

FieldDescription
numberReceipt number
issued_atIssue date (YYYY-MM-DD)
customer.nameRecipient name
totalAmount including tax
descriptionDescription of the transaction
transaction_dateTransaction date (YYYY-MM-DD)
payment_methodPayment method
tax.rate10.totalAmount subject to 10% (including tax)
tax.rate10.taxConsumption tax at 10%
tax.rate8.totalAmount subject to 8% (including tax)
tax.rate8.taxConsumption tax at 8%
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

How to use it

  1. In the dashboard, choose Create template, select "Start from a template" and pick "Receipt". 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 (receipt) 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": "Receipt", "from": "receipt" }'
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 @receipt.json \
  -o receipt.pdf
receipt.json (sample data; arrays show the first item and long text is shortened)
{
  "template": "Receipt",
  "format": "pdf",
  "data": {
    "number": "R-2026-00384",
    "issued_at": "2026-10-24",
    "customer": {
      "name": "株式会社見本製作所"
    },
    "total": 33480,
    "description": "セミナー参加費および昼食代",
    "transaction_date": "2026-10-24",
    "payment_method": "クレジットカード",
    "tax": {
      "rate10": {
        "total": 27500,
        "tax": 2500
      },
      "rate8": {
        "total": 5980,
        "tax": 442
      }
    },
    "issuer": {
      "name": "サンプル商事株式会社",
      "registration_number": "T1234567890123",
      "postal_code": "100-0000",
      "address": "東京都千代田区見本町1-2-3 サンプルビル5F",
      "tel": "03-0000-0000",
      "contact": "研修事業部 伊藤 直子"
    }
  }
}

API reference

Early access is open

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