Monego
create_invoice
Create a draft invoice for a customer: allocates the next sequential invoice number, computes per-line and total amounts server-side (EN 16931 group-by-rate rounding; prices are net EUR), and returns the draft including eInvoiceIssues — anything that would block finalize_invoice. The draft is editable via update_invoice until finalize_invoice freezes it. Pass externalId (any stable key from your system) to make creation idempotent: retries and repeat calls with the same externalId return the existing invoice (alreadyExisted=true) instead of creating a duplicate. Response: { invoice { id, invoiceNumber, status:'draft', lineItems[], netTotal, taxTotal, grossTotal, effectiveFormat, eInvoiceIssues[], ... }, alreadyExisted? }. Errors: { error: { code: 'not_found' | 'bad_input' | 'subscription_required', ... } }.
Remote (network-hosted) · Requires an account with the vendor · OAuth
Other tools also called create_invoice?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"customerId": {
"description": "Id of the customer to invoice (from list_customers or create_customer).",
"type": "string"
},
"lineItems": {
"description": "Invoice line items. At least one. Amounts are computed server-side from quantity × unitPrice.",
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"quantity": {
"type": "number"
},
"unit": {
"type": [
"string",
"null"
]
},
"unitPrice": {
"type": [
"number",
"null"
]
},
"taxRate": {
"type": "number"
}
}
}
},
"invoiceDate": {
"description": "Invoice date (ISO 8601). Defaults to today.",
"type": [
"string",
"null"
],
"format": "date-time",
"default": null
},
"dueDate": {
"description": "Due date (ISO 8601). Defaults to invoice date + the tenant's default payment terms.",
"type": [
"string",
"null"
],
"format": "date-time",
"default": null
},
"deliveryDate": {
"description": "Delivery / service date (ISO 8601, Leistungsdatum). Defaults to the invoice date in the e-invoice XML.",
"type": [
"string",
"null"
],
"format": "date-time",
"default": null
},
"paymentTerms": {
"description": "Payment terms text printed on the invoice (e.g. 'Zahlbar innerhalb von 14 Tagen').",
"type": [
"string",
"null"
],
"default": null
},
"notes": {
"description": "Notes printed on the invoice.",
"type": [
"string",
"null"
],
"default": null
},
"isReverseCharge": {
"description": "Reverse-charge invoice (§13b UStG / intra-EU B2B): forces 0% tax on all lines and requires the customer's VAT ID.",
"type": "boolean",
"default": false
},
"externalId": {
"description": "Idempotency key from the calling system. Repeat calls with the same externalId return the existing invoice instead of creating a new one.",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"customerId",
"lineItems"
]
}