
210 × 297 mm
Contracts
Freelance services agreement
An A4 freelance services agreement layout with a parties block, numbered clauses and lettered points rendered from data, a milestone fee schedule with payment dates, a separate signature page and a header and footer with the document reference and page numbers. Sample wording only, not legal advice.
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
- Currency formatting
- Date formatting
- Page breaks
- 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: 8 top-level fields, 46 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| document | object | |
| document.title | string | "Freelance Services Agreement" |
| document.reference | string | "FSA-2026-031" |
| document.version | string | "1.2" |
| document.date | date | "2026-09-14" |
| document.governing_law | string | "England and Wales" |
| document.sample_notice | string | "This template is provided for demonstration on…" |
| client | object | |
| client.name | string | "Wickerbay Studios Ltd" |
| client.description | string | "a company registered in England and Wales with…" |
| client.address | string | "4th Floor, Pennant House ⏎ 22 Weaver Street ⏎ …" |
| client.contact_name | string | "Imogen Castellow" |
| client.contact_title | string | "Head of Production" |
| client.email | string | "imogen.castellow@wickerbay.example.com" |
| contractor | object | |
| contractor.name | string | "Idris Pellegrino-Shaw" |
| contractor.description | string | "a sole trader trading as Pellegrino Motion" |
| contractor.address | string | "Studio 11, Foundry Yard ⏎ 8 Mill Lane ⏎ Stockp…" |
| contractor.contact_name | string | "Idris Pellegrino-Shaw" |
| contractor.contact_title | string | "Animator and director" |
| contractor.email | string | "hello@pellegrinomotion.example.net" |
| project | object | |
| project.name | string | "Explainer animation series" |
| project.summary | string | "Scripts, storyboards and animation for three 6…" |
| project.start_date | date | "2026-10-01" |
| project.duration_weeks | number | 11 |
| fees | object | |
| fees.currency | string | "GBP" |
| fees.payment_terms_days | number | 14 |
| fees.day_rate | number | 450 |
| fees.vat_note | string | "The Contractor is not registered for VAT, so n…" |
| fee_schedule | array<object> · 4 | |
| fee_schedule[].milestone | string | "Kick-off and scripts" |
| fee_schedule[].deliverable | string | "Approved scripts for all three videos" |
| fee_schedule[].due | date | "2026-10-16" |
| fee_schedule[].amount | number | 1800 |
| clauses | array<object> · 10 | |
| clauses[].title | string | "Services" |
| clauses[].subclauses | array<object> · 3 | |
| clauses[].subclauses[].text | string | "The Contractor will provide the work described…" |
| clauses[].show_fee_schedule? | boolean | true |
| signatories | array<object> · 2 | |
| signatories[].party | string | "For the Client" |
| signatories[].organisation | string | "Wickerbay Studios Ltd" |
| signatories[].name | string | "Imogen Castellow" |
| signatories[].title | string | "Head of Production" |
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": {
"document": {
"title": "Freelance Services Agreement",
"reference": "FSA-2026-031",
"version": "1.2",
"date": "2026-09-14",
"governing_law": "England and Wales",
"sample_notice": "This template is provided for demonstration only. It is not legal advice and has not been reviewed for any jurisdiction. Have any agreement you plan to use checked by a qualified adviser."
},
"client": {
"name": "Wickerbay Studios Ltd",
"description": "a company registered in England and Wales with company number 01234567",
"address": "4th Floor, Pennant House\n22 Weaver Street\nManchester M4 6AB\nUnited Kingdom",
"contact_name": "Imogen Castellow",
"contact_title": "Head of Production",
"email": "imogen.castellow@wickerbay.example.com"
},
"contractor": {
"name": "Idris Pellegrino-Shaw",
"description": "a sole trader trading as Pellegrino Motion",
"address": "Studio 11, Foundry Yard\n8 Mill Lane\nStockport SK1 3QT\nUnited Kingdom",
"contact_name": "Idris Pellegrino-Shaw",
"contact_title": "Animator and director",
"email": "hello@pellegrinomotion.example.net"
},
"project": {
"name": "Explainer animation series",
"summary": "Scripts, storyboards and animation for three 60-second explainer videos about the Client'\''s scheduling product, with burned-in subtitles and six short cut-downs for social media.",
"start_date": "2026-10-01",
"duration_weeks": 11
},
"fees": {
"currency": "GBP",
"payment_terms_days": 14,
"day_rate": 450,
"vat_note": "The Contractor is not registered for VAT, so no VAT is added to these fees."
},
"fee_schedule": [
{
"milestone": "Kick-off and scripts",
"deliverable": "Approved scripts for all three videos",
"due": "2026-10-16",
"amount": 1800
},
{
"milestone": "Storyboards and style frames",
"deliverable": "Storyboards plus two style frames per video",
"due": "2026-11-06",
"amount": 2400
}
],
"clauses": [
{
"title": "Services",
"subclauses": [
{
"text": "The Contractor will provide the work described in the project summary and the fee schedule (the \"Services\")."
},
{
"text": "The Contractor decides how, where and when the Services are carried out, as long as each deliverable is supplied by the due date in the fee schedule."
}
]
},
{
"title": "Timing",
"subclauses": [
{
"text": "This agreement starts on the start date and continues until the final deliverable has been accepted and paid for, unless it ends earlier under clause 9."
},
{
"text": "If feedback or approvals from the Client arrive later than agreed, any due date that depends on them moves back by the same number of working days."
}
]
}
],
"signatories": [
{
"party": "For the Client",
"organisation": "Wickerbay Studios Ltd",
"name": "Imogen Castellow",
"title": "Head of Production"
},
{
"party": "For the Contractor",
"organisation": "Pellegrino Motion",
"name": "Idris Pellegrino-Shaw",
"title": "Sole trader"
}
]
},
"output": {
"format": "pdf",
"filename": "contract-freelance-services.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": {
"document": {
"title": "Freelance Services Agreement",
"reference": "FSA-2026-031",
"version": "1.2",
"date": "2026-09-14",
"governing_law": "England and Wales",
"sample_notice": "This template is provided for demonstration only. It is not legal advice and has not been reviewed for any jurisdiction. Have any agreement you plan to use checked by a qualified adviser."
},
"client": {
"name": "Wickerbay Studios Ltd",
"description": "a company registered in England and Wales with company number 01234567",
"address": "4th Floor, Pennant House\n22 Weaver Street\nManchester M4 6AB\nUnited Kingdom",
"contact_name": "Imogen Castellow",
"contact_title": "Head of Production",
"email": "imogen.castellow@wickerbay.example.com"
},
"contractor": {
"name": "Idris Pellegrino-Shaw",
"description": "a sole trader trading as Pellegrino Motion",
"address": "Studio 11, Foundry Yard\n8 Mill Lane\nStockport SK1 3QT\nUnited Kingdom",
"contact_name": "Idris Pellegrino-Shaw",
"contact_title": "Animator and director",
"email": "hello@pellegrinomotion.example.net"
},
"project": {
"name": "Explainer animation series",
"summary": "Scripts, storyboards and animation for three 60-second explainer videos about the Client's scheduling product, with burned-in subtitles and six short cut-downs for social media.",
"start_date": "2026-10-01",
"duration_weeks": 11
},
"fees": {
"currency": "GBP",
"payment_terms_days": 14,
"day_rate": 450,
"vat_note": "The Contractor is not registered for VAT, so no VAT is added to these fees."
},
"fee_schedule": [
{
"milestone": "Kick-off and scripts",
"deliverable": "Approved scripts for all three videos",
"due": "2026-10-16",
"amount": 1800
},
{
"milestone": "Storyboards and style frames",
"deliverable": "Storyboards plus two style frames per video",
"due": "2026-11-06",
"amount": 2400
}
],
"clauses": [
{
"title": "Services",
"subclauses": [
{
"text": "The Contractor will provide the work described in the project summary and the fee schedule (the \"Services\")."
},
{
"text": "The Contractor decides how, where and when the Services are carried out, as long as each deliverable is supplied by the due date in the fee schedule."
}
]
},
{
"title": "Timing",
"subclauses": [
{
"text": "This agreement starts on the start date and continues until the final deliverable has been accepted and paid for, unless it ends earlier under clause 9."
},
{
"text": "If feedback or approvals from the Client arrive later than agreed, any due date that depends on them moves back by the same number of working days."
}
]
}
],
"signatories": [
{
"party": "For the Client",
"organisation": "Wickerbay Studios Ltd",
"name": "Imogen Castellow",
"title": "Head of Production"
},
{
"party": "For the Contractor",
"organisation": "Pellegrino Motion",
"name": "Idris Pellegrino-Shaw",
"title": "Sole trader"
}
]
},
"output": {
"format": "pdf",
"filename": "contract-freelance-services.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": {
"document": {
"title": "Freelance Services Agreement",
"reference": "FSA-2026-031",
"version": "1.2",
"date": "2026-09-14",
"governing_law": "England and Wales",
"sample_notice": "This template is provided for demonstration only. It is not legal advice and has not been reviewed for any jurisdiction. Have any agreement you plan to use checked by a qualified adviser.",
},
"client": {
"name": "Wickerbay Studios Ltd",
"description": "a company registered in England and Wales with company number 01234567",
"address": "4th Floor, Pennant House\n22 Weaver Street\nManchester M4 6AB\nUnited Kingdom",
"contact_name": "Imogen Castellow",
"contact_title": "Head of Production",
"email": "imogen.castellow@wickerbay.example.com",
},
"contractor": {
"name": "Idris Pellegrino-Shaw",
"description": "a sole trader trading as Pellegrino Motion",
"address": "Studio 11, Foundry Yard\n8 Mill Lane\nStockport SK1 3QT\nUnited Kingdom",
"contact_name": "Idris Pellegrino-Shaw",
"contact_title": "Animator and director",
"email": "hello@pellegrinomotion.example.net",
},
"project": {
"name": "Explainer animation series",
"summary": "Scripts, storyboards and animation for three 60-second explainer videos about the Client's scheduling product, with burned-in subtitles and six short cut-downs for social media.",
"start_date": "2026-10-01",
"duration_weeks": 11,
},
"fees": {
"currency": "GBP",
"payment_terms_days": 14,
"day_rate": 450,
"vat_note": "The Contractor is not registered for VAT, so no VAT is added to these fees.",
},
"fee_schedule": [
{
"milestone": "Kick-off and scripts",
"deliverable": "Approved scripts for all three videos",
"due": "2026-10-16",
"amount": 1800,
},
{
"milestone": "Storyboards and style frames",
"deliverable": "Storyboards plus two style frames per video",
"due": "2026-11-06",
"amount": 2400,
},
],
"clauses": [
{
"title": "Services",
"subclauses": [
{
"text": "The Contractor will provide the work described in the project summary and the fee schedule (the \"Services\").",
},
{
"text": "The Contractor decides how, where and when the Services are carried out, as long as each deliverable is supplied by the due date in the fee schedule.",
},
],
},
{
"title": "Timing",
"subclauses": [
{
"text": "This agreement starts on the start date and continues until the final deliverable has been accepted and paid for, unless it ends earlier under clause 9.",
},
{
"text": "If feedback or approvals from the Client arrive later than agreed, any due date that depends on them moves back by the same number of working days.",
},
],
},
],
"signatories": [
{
"party": "For the Client",
"organisation": "Wickerbay Studios Ltd",
"name": "Imogen Castellow",
"title": "Head of Production",
},
{
"party": "For the Contractor",
"organisation": "Pellegrino Motion",
"name": "Idris Pellegrino-Shaw",
"title": "Sole trader",
},
],
},
"output": {
"format": "pdf",
"filename": "contract-freelance-services.pdf",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())