Overview
- Category
- Business Tools
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/invoice-generator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/invoice-generator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
seller_name· string · required- Enter the business or seller name to process.
seller_details· string · required- Enter the seller contact details to process.
customer_name· string · required- Enter the customer name to process.
customer_details· string · required- Enter the customer contact details to process.
invoice_number· string · required- Enter the invoice number to process.
issue_date· string · required- Choose the issue date used in the date calculation.
due_date· string · required- Choose the due date used in the date calculation.
line_items· string · required- Enter one line item per line as description | quantity | unit price.
tax_percent· number · required- Enter the tax percentage used in the calculation.
discount_amount· number · optional- Enter the discount amount used in the calculation.
amount_paid· number · optional- Enter the amount already paid used in the calculation.
notes· string · optional- Enter the payment notes to process.
{
"type": "object",
"properties": {
"seller_name": {
"type": "string",
"description": "Enter the business or seller name to process."
},
"seller_details": {
"type": "string",
"description": "Enter the seller contact details to process."
},
"customer_name": {
"type": "string",
"description": "Enter the customer name to process."
},
"customer_details": {
"type": "string",
"description": "Enter the customer contact details to process."
},
"invoice_number": {
"type": "string",
"description": "Enter the invoice number to process."
},
"issue_date": {
"type": "string",
"description": "Choose the issue date used in the date calculation."
},
"due_date": {
"type": "string",
"description": "Choose the due date used in the date calculation."
},
"line_items": {
"type": "string",
"description": "Enter one line item per line as description | quantity | unit price."
},
"tax_percent": {
"type": "number",
"description": "Enter the tax percentage used in the calculation."
},
"discount_amount": {
"type": "number",
"description": "Enter the discount amount used in the calculation.",
"minimum": 0
},
"amount_paid": {
"type": "number",
"description": "Enter the amount already paid used in the calculation.",
"minimum": 0
},
"notes": {
"type": "string",
"description": "Enter the payment notes to process."
}
},
"required": [
"seller_name",
"seller_details",
"customer_name",
"customer_details",
"invoice_number",
"issue_date",
"due_date",
"line_items",
"tax_percent"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
invoice· string- Invoice preview produced by the calculation.
subtotal· number- Subtotal produced by the calculation.
tax_amount· number- Tax amount produced by the calculation.
total· number- Invoice total produced by the calculation.
balance_due· number- Balance due produced by the calculation.
items· array- Invoice line items produced by the calculation.
{
"type": "object",
"properties": {
"invoice": {
"type": "string",
"description": "Invoice preview produced by the calculation."
},
"subtotal": {
"type": "number",
"description": "Subtotal produced by the calculation."
},
"tax_amount": {
"type": "number",
"description": "Tax amount produced by the calculation."
},
"total": {
"type": "number",
"description": "Invoice total produced by the calculation."
},
"balance_due": {
"type": "number",
"description": "Balance due produced by the calculation."
},
"items": {
"type": "array",
"description": "Invoice line items produced by the calculation."
}
},
"additionalProperties": false
}
Invoice Generator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/invoice-generator/execute" \
-H "Content-Type: application/json" \
-d '{
"seller_name": "UtilityPages Studio",
"seller_details": "100 Main Street\nChicago, IL 60601\[email protected]",
"customer_name": "Example Client",
"customer_details": "200 Market Avenue\nAustin, TX 78701",
"invoice_number": "INV-2026-001",
"issue_date": "2026-07-13",
"due_date": "2026-08-12",
"line_items": "Website consultation | 4 | 125\nSEO content review | 1 | 350",
"tax_percent": 0,
"discount_amount": 0,
"amount_paid": 0,
"notes": "Thank you for your business. Payment is due by the date shown."
}'
{
"ok": true,
"data": {
"slug": "invoice-generator",
"result": {
"values": {
"invoice": "<article class=\"phase2-invoice\"><header><div><h2>UtilityPages Studio</h2><p>100 Main Street<br>Chicago, IL 60601<br>[email protected]</p></div><div><strong>INVOICE</strong><p>INV-2026-001</p><p>Issued 2026-07-13<br>Due 2026-08-12</p></div></header><section><small>BILL TO</small><h3>Example Client</h3><p>200 Market Avenue<br>Austin, TX 78701</p></section><table><thead><tr><th>Description</th><th>Qty</th><th>Rate</th><th>Amount</th></tr></thead><tbody><tr><td>Website consultation</td><td>4</td><td>$125.00</td><td>$500.00</td></tr><tr><td>SEO content review</td><td>1</td><td>$350.00</td><td>...",
"subtotal": 850,
"tax_amount": 0,
"total": 850,
"balance_due": 850,
"items": [
{
"description": "Website consultation",
"quantity": 4,
"unit_price": 125,
"amount": 500
},
{
"description": "SEO content review",
"quantity": 1,
"unit_price": 350,
"amount": 350
}
]
},
"display": {
"display": "<article class=\"phase2-invoice\"><header><div><h2>UtilityPages Studio</h2><p>100 Main Street<br>Chicago, IL 60601<br>[email protected]</p></div><div><strong>INVOICE</strong><p>INV-2026-001</p><p>Issued 2026-07-13<br>Due 2026-08-12</p></div></header><section><small>BILL TO</small><h3>Example Client</h3><p>200 Market Avenue<br>Austin, TX 78701</p></section><table><thead><tr><th>Description</th><th>Qty</th><th>Rate</th><th>Amount</th></tr></thead><tbody><tr><td>Website consultation</td><td>4</td><td>$125.00</td><td>$500.00</td></tr><tr><td>SEO content review</td><td>1</td><td>$350.00</td><td>..."
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.