Send an invoice
invoices_sendSend one invoice of a company by email and answer it whole as it reads after. A FreeAgent company's goes from FreeAgent with the email given - a draft, which then reads open, or one already sent, sent again; one set to be collected by GoCardless Direct Debit is refused with nothing sent, since sending it would start collecting the money. A Xero organisation's goes by Xero's own email to the invoice's contact, from the person who connected it and by the organisation's own template, so no email is given; only an approved invoice is sent. Xero caps the invoice emails an organisation sends in a day by how Xero holds it - its demo company sends none, a trial organisation few - and a send past the cap, or one Xero refuses for an organisation it has restricted, is not_written with what Xero said: the cap is raised in Xero itself, and a restriction lifts with time or through Xero Support. A Xero email whose answer never came is unknown, answered with the invoice as read before it. A Zoho Books organisation's goes by Zoho's own email, its subject and words as Zoho drafts them, to the address given as to, else to the customer's contacts Zoho picks; one already sent is sent again, as a reminder. A QuickBooks company's goes by QuickBooks' own email to the address given as to, else to the address the invoice holds, else to its customer's own - QuickBooks puts none on an invoice made here - and an address given becomes the invoice's own, so a later send without one goes there; one already sent is sent again, as a reminder. An email given for a Xero, Zoho Books or QuickBooks invoice, none for a FreeAgent one, an address given as to for a FreeAgent or Xero one, or an invoice not approved on Xero, is refused with nothing sent. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each call is one write, sent to the company's program once - to FreeAgent, or to Xero under a request key of its own, so Xero never takes it twice. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in another program's names, or naming an id of another program's form, is not_written with reason refused, nothing sent; one Xero keeps from the person's Xero role, with reason xero_role. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld with why. A QuickBooks company's write goes to QuickBooks under a request key of its own, so QuickBooks never takes it twice. A FreeAgent or Zoho Books send whose answer never came is told by the record as read just before it: a draft is written once it reads as a draft no longer and not_written while it still does; one already sent is unknown, answered with the record as read, since sending it again leaves no mark in the books. QuickBooks stamps each email's delivery on the record, so a QuickBooks send whose answer never came is written where that stamp moved and not_written where it did not.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company": "<company>",
"invoice": "<invoice>"
},
"name": "invoices_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | On Zoho Books or QuickBooks, the address it is emailed to. Where omitted, on Zoho Books the customer's contacts Zoho picks. Where omitted on QuickBooks, the address the record holds, else the customer's. On QuickBooks an address given becomes the record's own, so a later send without one goes there. | |
| No | The email FreeAgent sends it with; none on Xero, Zoho Books or QuickBooks, where the program's own email sends it. | ||
| company | Yes | The id companies_list gives the company. | |
| invoice | Yes | The invoice's id, as invoices_list answers it. |