# POST /invoice-templates

**Resource:** [INVOICE_TEMPLATES](./invoice-templates.md)  
**MCP tool:** `create_invoice_template`  
**Scopes:** `invoices:write`  
**Write operation:** yes

Create a designed invoice page. Pass name, optionally a description, a starting_design (the builder's own starting layouts, default clean) and a partial config to switch sections on or off, set their text, order the cards, place the payment card and set brand colours. The page is saved exactly as the Invoice Builder would save it. Then use set_invoice_page, or template_id on create_invoice or send_invoice, to put it on an invoice.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `name` | body | string | yes | Template name: how this template shows up when you pick it on an invoice. Matches the "Template name" field in the Invoice Builder. |
| `description` | body | string | no | Description: a note about what this template is for. Matches the "Description" field in the Invoice Builder. |
| `xero_integration_id` | body | string,null | no | Xero organisation - the connected Xero organisation invoices made on this design go into (its id from list_integrations, platform xero). A design is effectively one company’s invoice, so a workspace with several Xero organisations sets it on each design; left unset, the workspace default organisation applies. null clears it. |
| `config` | body | object | no | A partial change to the page design. Send only what you want to change; everything else keeps its setting. Read get_invoice_template first to see every section, field key and current value. An unknown section or field key is rejected with the list of valid keys. |
| `config.style` | body | string | no | The look of the page (the builder's Design > Style): clean ("Clean": Light and simple: white cards on a soft grey page.); bold ("Bold": A full-width headline band in your colour, with big numbers.); letter ("Letter": A personal note on one sheet: centred, no boxes, signed off.); warm ("Warm": Soft rounded cards on a tint of your colour. Friendly and relaxed.); editorial ("Editorial": A large serif headline and numbered sections down one column.); statement ("Statement": The amount and Pay button first, with the details under them.). The same sections and words in a different look; the brand colours and logo apply in every style. Send null for clean. |
| `config.sections` | body | object | no | Switch sections on or off and set their text. The Headline and "Your invoice" sections are always on. |
| `config.sections.hero` | body | object | no | "Headline": The big opening: your headline and why they can trust you. Always at the top. |
| `config.sections.hero.on` | body | boolean | no | Always on. "Headline" cannot be switched off. |
| `config.sections.hero.fields` | body | object | no | The text in the "Headline" section, by field key. |
| `config.sections.hero.fields.h1a` | body | string | no | "Headline, first line". Text. |
| `config.sections.hero.fields.h1b` | body | string | no | "Headline, second line (shown in your colour)". Text. |
| `config.sections.hero.fields.sub` | body | string | no | "Welcome line". Text. |
| `config.sections.hero.fields.tag` | body | string | no | "About you, one line". Text. |
| `config.sections.hero.fields.t1` | body | string | no | "Trust point 1". Text. |
| `config.sections.hero.fields.t2` | body | string | no | "Trust point 2". Text. |
| `config.sections.hero.fields.t3` | body | string | no | "Trust point 3". Text. |
| `config.sections.story` | body | object | no | "Your story": Where they are now, how they got here and where they want to go. |
| `config.sections.story.on` | body | boolean | no | Switch the "Your story" section on or off. |
| `config.sections.story.fields` | body | object | no | The text in the "Your story" section, by field key. |
| `config.sections.story.fields.heading` | body | string | no | "Section heading". Text. |
| `config.sections.story.fields.s1t` | body | string | no | "Part 1 title". Text. |
| `config.sections.story.fields.s1b` | body | string | no | "Part 1 text". Text. |
| `config.sections.story.fields.s2t` | body | string | no | "Part 2 title". Text. |
| `config.sections.story.fields.s2b` | body | string | no | "Part 2 text". Text. |
| `config.sections.story.fields.s3t` | body | string | no | "Part 3 title". Text. |
| `config.sections.story.fields.s3b` | body | string | no | "Part 3 text". Text. |
| `config.sections.video` | body | object | no | "Video": A short welcome or explainer video. |
| `config.sections.video.on` | body | boolean | no | Switch the "Video" section on or off. |
| `config.sections.video.fields` | body | object | no | The text in the "Video" section, by field key. |
| `config.sections.video.fields.title` | body | string | no | "Title". Text. |
| `config.sections.video.fields.src` | body | string | no | "Video link" (A Streamless video (streamless.video, or a Studio video shared as a Streamless link), or a YouTube, Vimeo or video file link (https). It plays on the page.). Text. |
| `config.sections.video.fields.talk` | body | string | no | "Talk it through booking" (Interactive films only. The booking page offered when the customer wants to talk before going ahead: its short name, for example crm-setup. Empty skips that stop.). Text. |
| `config.sections.video.fields.kickoff` | body | string | no | "Kick-off call booking" (Interactive films only. The booking page for the kick-off call at the end of the film: its short name, for example kick-off. Empty skips that stop.). Text. |
| `config.sections.lines` | body | object | no | "Your invoice": The lines, GST and total. This section is always on. |
| `config.sections.lines.on` | body | boolean | no | Always on. "Your invoice" cannot be switched off. |
| `config.sections.lines.fields` | body | object | no | The text in the "Your invoice" section, by field key. |
| `config.sections.lines.fields.heading` | body | string | no | "Heading". Text. |
| `config.sections.lines.fields.gst` | body | boolean | no | "Show GST line". true or false. |
| `config.sections.lines.fields.job` | body | boolean | no | "Show the job summary on progress invoices" (Progress invoices and retention releases only: the contract value, work done to date, what was invoiced before, this invoice and retention held, under the lines.). true or false. |
| `config.sections.features` | body | object | no | "What you get": A grid of what is included, with an icon for each item. |
| `config.sections.features.on` | body | boolean | no | Switch the "What you get" section on or off. |
| `config.sections.features.fields` | body | object | no | The text in the "What you get" section, by field key. |
| `config.sections.features.fields.heading` | body | string | no | "Heading". Text. |
| `config.sections.features.fields.f1t` | body | string | no | "Item 1 title". Text. |
| `config.sections.features.fields.f1d` | body | string | no | "Item 1 text". Text. |
| `config.sections.features.fields.f2t` | body | string | no | "Item 2 title". Text. |
| `config.sections.features.fields.f2d` | body | string | no | "Item 2 text". Text. |
| `config.sections.features.fields.f3t` | body | string | no | "Item 3 title". Text. |
| `config.sections.features.fields.f3d` | body | string | no | "Item 3 text". Text. |
| `config.sections.features.fields.f4t` | body | string | no | "Item 4 title". Text. |
| `config.sections.features.fields.f4d` | body | string | no | "Item 4 text". Text. |
| `config.sections.features.fields.f5t` | body | string | no | "Item 5 title". Text. |
| `config.sections.features.fields.f5d` | body | string | no | "Item 5 text". Text. |
| `config.sections.features.fields.f6t` | body | string | no | "Item 6 title". Text. |
| `config.sections.features.fields.f6d` | body | string | no | "Item 6 text". Text. |
| `config.sections.guarantee` | body | object | no | "Our promise": A short promise that makes paying feel safe. |
| `config.sections.guarantee.on` | body | boolean | no | Switch the "Our promise" section on or off. |
| `config.sections.guarantee.fields` | body | object | no | The text in the "Our promise" section, by field key. |
| `config.sections.guarantee.fields.heading` | body | string | no | "Heading". Text. |
| `config.sections.guarantee.fields.text` | body | string | no | "Text". Text. |
| `config.sections.steps` | body | object | no | "What happens next": Three steps that tell them what comes after paying. |
| `config.sections.steps.on` | body | boolean | no | Switch the "What happens next" section on or off. |
| `config.sections.steps.fields` | body | object | no | The text in the "What happens next" section, by field key. |
| `config.sections.steps.fields.heading` | body | string | no | "Heading". Text. |
| `config.sections.steps.fields.p1t` | body | string | no | "Step 1 title". Text. |
| `config.sections.steps.fields.p1d` | body | string | no | "Step 1 text". Text. |
| `config.sections.steps.fields.p2t` | body | string | no | "Step 2 title". Text. |
| `config.sections.steps.fields.p2d` | body | string | no | "Step 2 text". Text. |
| `config.sections.steps.fields.p3t` | body | string | no | "Step 3 title". Text. |
| `config.sections.steps.fields.p3d` | body | string | no | "Step 3 text". Text. |
| `config.sections.faq` | body | object | no | "Common questions": Answers that unblock payment. |
| `config.sections.faq.on` | body | boolean | no | Switch the "Common questions" section on or off. |
| `config.sections.faq.fields` | body | object | no | The text in the "Common questions" section, by field key. |
| `config.sections.faq.fields.heading` | body | string | no | "Heading". Text. |
| `config.sections.faq.fields.q1` | body | string | no | "Question 1". Text. |
| `config.sections.faq.fields.a1` | body | string | no | "Answer 1". Text. |
| `config.sections.faq.fields.q2` | body | string | no | "Question 2". Text. |
| `config.sections.faq.fields.a2` | body | string | no | "Answer 2". Text. |
| `config.sections.faq.fields.q3` | body | string | no | "Question 3". Text. |
| `config.sections.faq.fields.a3` | body | string | no | "Answer 3". Text. |
| `config.sections.terms` | body | object | no | "Terms": Payment terms in small print. |
| `config.sections.terms.on` | body | boolean | no | Switch the "Terms" section on or off. |
| `config.sections.terms.fields` | body | object | no | The text in the "Terms" section, by field key. |
| `config.sections.terms.fields.heading` | body | string | no | "Heading". Text. |
| `config.sections.terms.fields.text` | body | string | no | "Text" (Your full terms. Leave a blank line between paragraphs. Long terms show their first lines, with Read the full terms to open the rest.). Text. |
| `config.order` | body | array | no | The order of the cards under the headline, top to bottom (the "Sections" list in the builder). "pay" is the Payment card: when pay.pos is inline it sits at its place here. Cards you leave out keep their place after the ones you list. |
| `config.proposal` | body | object | no | The Proposal cards filled from the opportunity's proposal: which are on, their headings, and the Needs card's small labels. |
| `config.proposal.on` | body | object | no |  |
| `config.proposal.on.summary` | body | boolean | no | Show the Proposal "Summary" card. The opening narrative from the proposal: what the client's world looks like after you deliver. |
| `config.proposal.on.callout` | body | boolean | no | Show the Proposal "Callout" card. One powerful sentence from the proposal, shown as a statement in your colours. |
| `config.proposal.on.needs` | body | boolean | no | Show the Proposal "Needs" card. What the client told you they need, each paired with how you solve it. |
| `config.proposal.on.products` | body | boolean | no | Show the Proposal "Recommended" card. The products recommended in the proposal and what each one solves. |
| `config.proposal.on.deliverables` | body | boolean | no | Show the Proposal "Guarantees" card. Concrete commitments from the proposal the client can hold you to. |
| `config.proposal.on.timeline` | body | boolean | no | Show the Proposal "Timeline" card. The phases the client moves through after paying, from the opportunity's timeline. |
| `config.proposal.titles` | body | object | no |  |
| `config.proposal.titles.summary` | body | string | no | Heading of the Proposal "Summary" card. |
| `config.proposal.titles.callout` | body | string | no | Heading of the Proposal "Callout" card. |
| `config.proposal.titles.needs` | body | string | no | Heading of the Proposal "Needs" card. |
| `config.proposal.titles.products` | body | string | no | Heading of the Proposal "Recommended" card. |
| `config.proposal.titles.deliverables` | body | string | no | Heading of the Proposal "Guarantees" card. |
| `config.proposal.titles.timeline` | body | string | no | Heading of the Proposal "Timeline" card. |
| `config.proposal.labels` | body | object | no |  |
| `config.proposal.labels.need` | body | string | no | "Above each need" on the Proposal "Needs" card (default "You need"). An empty string hides it. |
| `config.proposal.labels.solve` | body | string | no | "Before each solution" on the Proposal "Needs" card (default "How we solve it"). An empty string hides it. |
| `config.proposal.solutions` | body | boolean | no | Show how you solve each need: the right-hand column of the Proposal "Needs" card (and its line in the email). On by default; false shows just the needs, full width. A need with no solution never shows an empty box. |
| `config.pay` | body | object | no | The payment card with the amount due and the pay button. It is always on. |
| `config.pay.pos` | body | string | no | "Where it sits": inline puts it in with the sections, at the place of "pay" in order (move it there to place it); side is the Sidebar, beside the sections. Every style can use both. |
| `config.pay.label` | body | string | no | "Button label". The amount is added after it, for example "Pay $2,475.00". |
| `config.pay.secure` | body | boolean | no | Under "Reassurance under the button": "Secure card payment". |
| `config.pay.gst` | body | boolean | no | Under "Reassurance under the button": "GST note". |
| `config.pay.receipt` | body | boolean | no | Under "Reassurance under the button": "Receipt note". |
| `config.pay.due` | body | boolean | no | Under "Reassurance under the button": "Due date". |
| `config.pay.pdf` | body | boolean | no | Under "Reassurance under the button": "Download PDF link". |
| `config.pay.bank` | body | boolean | no | "Bank transfer": offer bank transfer on this design at all. On by default (when the workspace has bank details). Off leaves the bank details out of the invoice page and the invoice email, and bankButton and bankFirst then do nothing. |
| `config.pay.bankButton` | body | boolean | no | "Bank transfer as its own option": show the bank transfer details as their own titled "Pay by Bank Transfer" option on the invoice page. Off by default. |
| `config.pay.bankFirst` | body | boolean | no | "Bank transfer first": make bank transfer the highlighted way to pay. The titled "Pay by Bank Transfer" option shows first and the card button sits under it in a plain outline style, on the invoice page and the invoice email's Payment block (that block has its own matching switch, flags.bankFirst). Use it when the business prefers transfers, e.g. to avoid card fees on large invoices. Needs bank details in Invoices Settings; without them nothing changes. Off by default (card is the main option). |
| `config.brand` | body | object | no | The page's colours and business name (the builder's Brand settings). |
| `config.brand.name` | body | string | no | "Business name" shown across the page. |
| `config.brand.main` | body | string | no | "Main" colour as a hex code like #0f766e. Send null to use the workspace colours. |
| `config.brand.accent` | body | string | no | "Accent" colour as a hex code like #14b8a6. Send null to use the workspace colours. |
| `config.brand.color` | body | string | no | An older colour preset, used only when the workspace has no brand colour. |
| `config.brand.platform` | body | boolean | no | "Show Powered by TrustPager" at the very bottom of the page. |
| `config.email` | body | object | no | The email TrustPager Mail sends with invoices on this design (the builder's Email view): its subject and its blocks, top to bottom. Read get_invoice_template for the current blocks, change what you need and send the whole list back. Send null for a key to go back to the standard email. |
| `config.email.subject` | body | string | no | "Subject". Placeholders: {{invoice.number}}, {{company.name}}. |
| `config.email.blocks` | body | array | no | The email, top to bottom. Each block: { id (letters, numbers, - or _), type, on (shown or not), name (the builder list label), variant (its look), align ("left" or "center"), content }. Types and their content: headline {eyebrow, title, highlight, sub}; text {heading, body}; quote {text, by}; list {heading, intro, items:[{title, body}]}; button {heading, sub, label, link, url} (link "page" goes to the web page of this invoice, the same page the Pay button opens, and needs no url: use it for a "View your invoice" or "View Full Proposal" button with the pay block switched off; link "url" goes to the url you give); image {src, alt, href}; divider {}; signature {signoff, name, role, ps}; invoice {heading} (variant "lines" shows every line, "total" just the amount and due date); pay {label, sub} (the Pay button to the invoice page, or bank details when there is no pay page; label is the button words, empty for "Pay by Card"); contact {heading} (the phone, email and website box). Selling blocks hold no words of their own (content {}, variant "standard"): they show the same words as the web page of this design, so change them through sections and proposal.titles. Proposal types fill from the opportunity proposal on the invoice and are left out when it has none: "proposal:summary", "proposal:callout", "proposal:needs", "proposal:products", "proposal:deliverables", "proposal:timeline". Web page types show the words of that section: story, features, guarantee, steps, faq, video (a Watch button to the video link in that section), terms (small print). Words can use {{invoice.number}}, {{invoice.amount_due}}, {{invoice.total}}, {{invoice.due_date}}, {{contact.first_name\|there}}, {{company.name}}. Up to 30 blocks. |
| `config.email.message` | body | string | no | Older single message (HTML), from before blocks. Blocks are used when both are set. |
| `config.email.reminder` | body | object | no | The overdue reminder: this email, with the message block saying the reminder, sent once at 9am (business time) "days" after the due date while the invoice is still unpaid. Off until on is true. null switches it off. |
| `config.email.reminder.on` | body | boolean | no |  |
| `config.email.reminder.days` | body | integer | no | Days after the due date, 0 (the due date) to 60. Default 3. |
| `config.email.reminder.subject` | body | string | no | Default "Reminder: invoice {{invoice.number}} from {{company.name}}". |
| `config.email.reminder.message` | body | string | no | The message block's words in the reminder. Placeholders as in blocks. |
| `config.email.receipt` | body | object | no | The "thanks, you have paid" receipt: this email with no Pay button and the message block saying thank you, sent for each card payment taken on the invoice page (each payment of a plan too). On unless on is false. null switches it off. |
| `config.email.receipt.on` | body | boolean | no |  |
| `config.email.receipt.subject` | body | string | no | Default "Receipt: invoice {{invoice.number}} from {{company.name}}". |
| `config.email.receipt.message` | body | string | no | The message block's words in the receipt. |
| `config.kind` | body | string | no | "Call it" (the builder's Template details): what the customer sees this called, one of invoice, proposal, quote. A proposal or quote shows "Proposal for <customer>" on the web page, "Proposal from <business>" as the standard email subject, and the word in the email's number row, buttons, links and overdue reminder. The price card keeps "Tax Invoice" and the paid receipt stays an invoice. Send null for invoice. |
| `config.billing` | body | object | no | The builder's Billing settings: what an invoice made from this design bills, when it is due, and how GST is charged. They are part of the design, not chosen when sending. A "deposit" design (Deposit + Balance) also makes its final balance invoice (create_invoice with portion "balance"), with its own sections, words and email edited through update_invoice_template with stage "balance". Send null for a key (or for billing) to go back to its default. |
| `config.billing.portion` | body | string | no | "What it bills": full ("Full amount": Bills every product in full. Products billed monthly (or weekly, yearly) bill their first period and then repeat.); deposit ("Deposit": Bills the deposit share of each product (set on the product or the opportunity line).); balance ("Final balance": Bills what is left after the deposit.); recurring ("Recurring": Bills only the products billed monthly (or weekly, yearly), on repeat. Customers can pay automatically.). Default full. A product is billed monthly (or weekly, fortnightly, quarterly, yearly) when its unit is month (week, fortnight, quarter, year). |
| `config.billing.due` | body | object | no | "Due": mode none (no due date), receipt (due on receipt) or days (a number of days after it is sent, 1 to 365, in days). Default 14 days. A proposal or quote shows it as "Valid until". |
| `config.billing.due.mode` | body | string | no |  |
| `config.billing.due.days` | body | integer | no | Days after it is sent, only with mode days. |
| `config.billing.gst` | body | string | no | "GST": include ("Prices include GST"), exclude ("GST added on top"), none ("No GST"). Default (null) follows Invoices Settings. A workspace that is not GST registered in Invoices Settings never charges GST. |
| `config.provider` | body | string | no | "How customers pay" (the builder's Settings tab): trustpager is "TrustPager Invoice" (shown as "TrustPager & Stripe Invoice" when card payments are connected): Customers pay on your branded invoice page, by card, bank transfer or a payment plan. xero is "Xero Invoice": Customers pay through Xero, with Xero's PDF of the invoice attached to your branded email. xero needs Xero connected. Send null to let the workspace choose (Xero with no card payments of its own means xero, otherwise trustpager). get_invoice_template returns invoice_type with the type in use and the choices. |
| `starting_design` | body | string | no | The layout to start from, the same list the builder offers: clean ("Clean invoice": Just the lines and a pay button); trade ("Trade job": Amount first, then the scope, steps and terms); services ("Monthly services": A bold headline band, what you get and the next steps); story ("Story style": A serif headline, your story, a video and your promise); warm ("Warm and short": Soft cards, a thank you, a promise and questions); note ("Personal note": A short signed letter with the invoice in it); everything ("Everything on": Every section switched on, in the clean style). Defaults to clean. Any "config" you send is applied on top of it. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/invoice-templates"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"name":"...","description":"...","config":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`