
210 × 297 mm
Delivery notes
Standard delivery note
An A4 delivery note with a consignment barcode, delivery address, order and carrier details, lines comparing ordered and delivered quantities with a back-ordered badge and expected date, a list of items to follow, and received-by and driver signature blocks.
PDFA4 portraitLocale en-GBHTML + JinjaHeader & footer
Opens Dynamic Document API with this template preloaded in a free workspace.
Template language features
- Loops
- Conditionals
- Macros
- Filters
- Number formatting
- Date formatting
- Barcode
- Repeating table headers
- Header & footer
- Page numbers
Filters such as format_currency and qrcode are described in the template language reference.
Variables
Derived from the sample data: 5 top-level fields, 31 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| supplier | object | |
| supplier.name | string | "Calderbank Office Interiors Ltd" |
| supplier.address | string | "Calder Works, 2 Tanyard Road ⏎ Halifax HX3 5AL…" |
| supplier.phone | string | "+44 20 7946 0615" |
| supplier.email | string | "deliveries@calderbank.example.com" |
| supplier.vat_id | string | "GB 135 7924 68" |
| customer | object | |
| customer.name | string | "Tarnside Architects LLP" |
| customer.account | string | "C-10457" |
| customer.delivery_address | string | "3rd Floor, Wharfside House ⏎ 18 Navigation Wal…" |
| customer.contact | string | "Farida Ellingham" |
| customer.phone | string | "+44 20 7946 0642" |
| delivery | object | |
| delivery.note_number | string | "DN-240613" |
| delivery.consignment_number | string | "CBK4471093026GB" |
| delivery.date | date | "2026-09-16" |
| delivery.order_number | string | "SO-58217" |
| delivery.customer_reference | string | "TA-PO-1193" |
| delivery.carrier | string | "Brackenfield Logistics" |
| delivery.service | string | "Two-person delivery and installation" |
| delivery.vehicle | string | "Van 12" |
| delivery.driver | string | "Kwame Holloway" |
| delivery.packages | number | 14 |
| delivery.total_weight_kg | number | 412.5 |
| items | array<object> · 9 | |
| items[].code | string | "CB-DSK-1600-OAK" |
| items[].description | string | "Sit-stand desk, 1600 × 800 mm, oak-effect top" |
| items[].ordered | number | 6 |
| items[].delivered | number | 6 |
| items[].back_order_date | date | "2026-09-30" |
| notes | string | "Installation team on site from 08:00 to 13:00.…" |
Render it with the API
After adding the template to your workspace, render it by ID and pass your data. Arrays are shortened here.
curl -X POST https://api-eu.dynamicdocumentapi.com/v1/renders \
-H "Authorization: Bearer $DYNAMIC_DOCUMENT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"supplier": {
"name": "Calderbank Office Interiors Ltd",
"address": "Calder Works, 2 Tanyard Road\nHalifax HX3 5AL\nUnited Kingdom",
"phone": "+44 20 7946 0615",
"email": "deliveries@calderbank.example.com",
"vat_id": "GB 135 7924 68"
},
"customer": {
"name": "Tarnside Architects LLP",
"account": "C-10457",
"delivery_address": "3rd Floor, Wharfside House\n18 Navigation Walk\nLeeds LS10 1JR\nUnited Kingdom",
"contact": "Farida Ellingham",
"phone": "+44 20 7946 0642"
},
"delivery": {
"note_number": "DN-240613",
"consignment_number": "CBK4471093026GB",
"date": "2026-09-16",
"order_number": "SO-58217",
"customer_reference": "TA-PO-1193",
"carrier": "Brackenfield Logistics",
"service": "Two-person delivery and installation",
"vehicle": "Van 12",
"driver": "Kwame Holloway",
"packages": 14,
"total_weight_kg": 412.5
},
"items": [
{
"code": "CB-DSK-1600-OAK",
"description": "Sit-stand desk, 1600 × 800 mm, oak-effect top",
"ordered": 6,
"delivered": 6,
"back_order_date": null
},
{
"code": "CB-CHR-ERG-GRY",
"description": "Ergonomic task chair, grey mesh back",
"ordered": 8,
"delivered": 5,
"back_order_date": "2026-09-30"
}
],
"notes": "Installation team on site from 08:00 to 13:00. All packaging taken away for recycling. Back-ordered items are delivered free of charge and do not need a new order."
},
"output": {
"format": "pdf",
"filename": "delivery-note-standard.pdf"
}
}'const response = await fetch("https://api-eu.dynamicdocumentapi.com/v1/renders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DYNAMIC_DOCUMENT_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"supplier": {
"name": "Calderbank Office Interiors Ltd",
"address": "Calder Works, 2 Tanyard Road\nHalifax HX3 5AL\nUnited Kingdom",
"phone": "+44 20 7946 0615",
"email": "deliveries@calderbank.example.com",
"vat_id": "GB 135 7924 68"
},
"customer": {
"name": "Tarnside Architects LLP",
"account": "C-10457",
"delivery_address": "3rd Floor, Wharfside House\n18 Navigation Walk\nLeeds LS10 1JR\nUnited Kingdom",
"contact": "Farida Ellingham",
"phone": "+44 20 7946 0642"
},
"delivery": {
"note_number": "DN-240613",
"consignment_number": "CBK4471093026GB",
"date": "2026-09-16",
"order_number": "SO-58217",
"customer_reference": "TA-PO-1193",
"carrier": "Brackenfield Logistics",
"service": "Two-person delivery and installation",
"vehicle": "Van 12",
"driver": "Kwame Holloway",
"packages": 14,
"total_weight_kg": 412.5
},
"items": [
{
"code": "CB-DSK-1600-OAK",
"description": "Sit-stand desk, 1600 × 800 mm, oak-effect top",
"ordered": 6,
"delivered": 6,
"back_order_date": null
},
{
"code": "CB-CHR-ERG-GRY",
"description": "Ergonomic task chair, grey mesh back",
"ordered": 8,
"delivered": 5,
"back_order_date": "2026-09-30"
}
],
"notes": "Installation team on site from 08:00 to 13:00. All packaging taken away for recycling. Back-ordered items are delivered free of charge and do not need a new order."
},
"output": {
"format": "pdf",
"filename": "delivery-note-standard.pdf"
}
}),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const result = await response.json();
console.log(result);import os
import uuid
import requests
response = requests.post(
"https://api-eu.dynamicdocumentapi.com/v1/renders",
headers={
"Authorization": f"Bearer {os.environ['DYNAMIC_DOCUMENT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C",
},
"data": {
"supplier": {
"name": "Calderbank Office Interiors Ltd",
"address": "Calder Works, 2 Tanyard Road\nHalifax HX3 5AL\nUnited Kingdom",
"phone": "+44 20 7946 0615",
"email": "deliveries@calderbank.example.com",
"vat_id": "GB 135 7924 68",
},
"customer": {
"name": "Tarnside Architects LLP",
"account": "C-10457",
"delivery_address": "3rd Floor, Wharfside House\n18 Navigation Walk\nLeeds LS10 1JR\nUnited Kingdom",
"contact": "Farida Ellingham",
"phone": "+44 20 7946 0642",
},
"delivery": {
"note_number": "DN-240613",
"consignment_number": "CBK4471093026GB",
"date": "2026-09-16",
"order_number": "SO-58217",
"customer_reference": "TA-PO-1193",
"carrier": "Brackenfield Logistics",
"service": "Two-person delivery and installation",
"vehicle": "Van 12",
"driver": "Kwame Holloway",
"packages": 14,
"total_weight_kg": 412.5,
},
"items": [
{
"code": "CB-DSK-1600-OAK",
"description": "Sit-stand desk, 1600 × 800 mm, oak-effect top",
"ordered": 6,
"delivered": 6,
"back_order_date": None,
},
{
"code": "CB-CHR-ERG-GRY",
"description": "Ergonomic task chair, grey mesh back",
"ordered": 8,
"delivered": 5,
"back_order_date": "2026-09-30",
},
],
"notes": "Installation team on site from 08:00 to 13:00. All packaging taken away for recycling. Back-ordered items are delivered free of charge and do not need a new order.",
},
"output": {
"format": "pdf",
"filename": "delivery-note-standard.pdf",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())