Skip to navigation

write_invoice

Create one-off invoices line by line, finalize, pay, credit, refund and send

Live server: test server (test.mcp.solvimon.com) only.

Creates and manages invoices, payments and payment schedules. Solvimon generates invoices automatically at the end of each billing period. Use create for one-off manual invoices.

Actions by resource type:

  • invoices: create, add_line, delete_line, update, pay, refund, credit, archive, send_by_email
  • payments: authorize, refund
  • payment_schedules: create, update, activate, cancel, pause

One-off invoice. create with a type, customer_id and billing_currency makes an empty DRAFT invoice on hold. Add lines with add_line: a fixed amount is FIXED with fixed_amount, a unit price is FLAT with amount and volume. delete_line takes the line id. Both work on DRAFT invoices only and return the new totals.

Finalize with update and {"on_hold": false, "status": "FINAL"}. This assigns a permanent invoice number; after that the invoice can only be credited, so confirm first.

pay and refund need a PSP integration. send_by_email needs a Mailgun or SendGrid integration. credit issues a credit note against a finalized invoice.

Finalize a one-off invoice
{"action": "update", "resource_type": "invoices", "id": "invo_Tq3mVx7RnW2kLb9YcHd45", "body": {"on_hold": false, "status": "FINAL"}}

Example prompts

  • “Draft a one-off invoice for Acme Inc. for a €2,500 implementation fee.”
  • “Add 3 extra licences at €100 each to that draft.”
  • “Remove the training line from the draft and show me the new total.”
  • “Credit invoice INV-2026-10-000003 in full.”
  • “I’ve checked the draft for Acme Inc. Finalize it.”

Example output

Prompt: “Draft a one-off invoice for Acme Inc. for a €2,500 implementation fee.”

Tool call:

{
"action": "add_line",
"resource_type": "invoices",
"id": "invo_nwDp7r0vA1bJj6Colb1v",
"body": {
"pricing_type": "FIXED",
"pricing_name": "Implementation fee",
"pricing_band": {"fixed_amount": {"quantity": "2500.00", "currency": "EUR"}}
}
}

Response (trimmed):

{
"id": "invo_nwDp7r0vA1bJj6Colb1v",
"status": "DRAFT",
"on_hold": true,
"line_added": {
"id": "invl_pwDp7r0vA1bKiGCbCl1E",
"description": "Implementation fee",
"amount_excluding_tax": {"quantity": "2500.00", "currency": "EUR"}
},
"line_count": 1,
"totals": {
"excluding_tax": {"quantity": "2500.00", "currency": "EUR"},
"tax": {"quantity": "525.00", "currency": "EUR"},
"including_tax": {"quantity": "3025.00", "currency": "EUR"}
},
"desk_url": "https://test.desk.solvimon.com/plat_YwDsM40vxDPmp2CYio1I/invoices/invo_nwDp7r0vA1bJj6Colb1v"
}

Claude’s answer: I created a draft one-off invoice for Acme Inc. and added the implementation fee: EUR 2,500.00 plus EUR 525.00 VAT (21%), EUR 3,025.00 in total. It stays a draft on hold, without an invoice number, until you ask me to finalize it. Review it in Desk first.