This is the JSON I use to send to the Notion API.
Every word in [brackets] will be replaced either as a one-time setup by your data, or a variable:
{
"parent": { "type": "database_id", "database_id": "[Insert-your-database-id-here]" },
"cover": {
"type": "external",
"external": {
"url": "[https://imgelink]"
}
},
"icon": {
"type": "external",
"external":
"url": "[https://imgelink]"
},
"properties": {
"title": [
{
"type": "text",
"text": {
"content": "[Title of the Invoice]"
}
}
]
},
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "Invoice-number: [NVO-01011901-01]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}
]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "Date of Creation: [1. Jan, 1901]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}
]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": []
}
},
{
"object": "block",
"type": "column_list",
"column_list": {
"children": [
{
"object": "block",
"type": "column",
"column": {
"children": [
{
"object": "block",
"type": "heading_2",
"heading_2": {
"rich_text": [{
"type": "text",
"text": {"content": "[Client Name]"}}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Address]"}
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[PLZ, City]"}
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Email]"}
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Website]"}
}]
}
}
]
}
},
{
"object": "block",
"type": "column",
"column": {
"children": [
{
"object": "block",
"type": "heading_2",
"heading_2": {
"rich_text": [{
"type": "text",
"text": {"content": "[Nevio]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Your Address goes here]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Your-ZIP-Code-and-city-go-here]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Your-email-goes-here]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{
"type": "text",
"text": {"content": "[Input-your-website-here]"},
"annotations": { "bold": false, "italic": false, "color": "gray" }
}]
}
}
]
}
}
]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": []
}
},
{
"object": "block",
"type": "table",
"table": {
"table_width": 4,
"has_column_header": true,
"has_row_header": false,
"children": [
{
"object": "block",
"type": "table_row",
"table_row": {
"cells": [
[{ "type": "text", "text": { "content": "Description" } }],
[{ "type": "text", "text": { "content": "Amount" } }],
[{ "type": "text", "text": { "content": "Date of Event" } }],
[{ "type": "text", "text": { "content": "Price" } }]
]
}
},
{
"object": "block",
"type": "table_row",
"table_row": {
"cells": [
[{ "type": "text", "text": { "content": "[Name of Product]" } }],
[{ "type": "text", "text": { "content": "1" } }],
[{ "type": "text", "text": { "content": "" } }],
[{ "type": "text", "text": { "content": "[CHF 630.00]" } }]
]
}
},
{
"object": "block",
"type": "table_row",
"table_row": {
"cells": [
[{ "type": "text", "text": { "content": "__________________________________" } }],
[{ "type": "text", "text": { "content": "_________________" } }],
[{ "type": "text", "text": { "content": "____________________________" } }],
[{ "type": "text", "text": { "content": "_________________" } }]
]
}
},
{
"object": "block",
"type": "table_row",
"table_row": {
"cells": [
[{ "type": "text", "text": { "content": "- Total -" }, "annotations": { "italic": false } }],
[{ "type": "text", "text": { "content": "" } }],
[{ "type": "text", "text": { "content": "" } }],
[{ "type": "text", "text": { "content": "[630.00 CHF]" }, "annotations": { "bold": true } }]
]
}
}
]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": []
}
},
{
"object": "block",
"type": "column_list",
"column_list": {
"children": [
{
"object": "block",
"type": "column",
"column": {
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{ "type": "text", "text": { "content": "Payment Due Date: " }, "annotations": { "bold": true, "italic": false, "color": "default" } },
{ "type": "text", "text": { "content": " [2. Jan 1901] " }, "annotations": { "bold": false, "italic": false, "color": "gray_background" } }]}
}
]}},
{
"object": "block",
"type": "column",
"column": {
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{ "type": "text", "text": { "content": "Total: " } },
{ "type": "text", "text": { "content": " [630.00 CHF] " }, "annotations": { "bold": false, "italic": false, "color": "red_background" } }
]}
}
]}}
]}
},
{
"object": "block",
"type": "callout",
"callout": {"rich_text": [{
"text": {"content": "The invoice must be paid by the day after the event using the bank details provided." }}],
"icon": {"type": "emoji", "emoji": "➡️"},
"color": "gray_background"
}
},
{
"object": "block",
"type": "divider",
"divider": {}
},
{
"object": "block",
"type": "column_list",
"column_list": {
"children": [
{
"object": "block",
"type": "column",
"column": {
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{ "type": "text",
"text": { "content": "QR Code:" } }]}
},
{
"object": "block",
"type": "image",
"image": {"type": "external",
"external": { "url": "[https://notion-image-link-to-qrcode.com]" }}
}
]}},
{
"object": "block",
"type": "column",
"column": {
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{ "type": "text", "text": { "content": "Bank details:" }, "annotations": { "bold": true, "italic": false, "color": "default" }} ]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{ "type": "text", "text": { "content": "Account holder: " }, "annotations": { "bold": true, "italic": false, "color": "default" }},
{ "type": "text", "text": { "content": "[Nevio]" }} ]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{ "type": "text", "text": { "content": "Bank: " }, "annotations": { "bold": true, "italic": false, "color": "default" }},
{ "type": "text", "text": { "content": "[Your-bank]" }} ]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{"type": "text", "text": {"content": "SWIFT-BIC: "}, "annotations": { "bold": true, "italic": false, "color": "default" }},
{"type": "text", "text": {"content": "[Your-SWIFT-BIC]"}} ]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{"type": "text", "text": {"content": "IBAN: "}, "annotations": { "bold": true, "italic": false, "color": "default" }},
{"type": "text", "text": {"content": "[CH-------------------]"}} ]
}
}
]}}
]}
}
]
}