# Send An Invoice

> Solarium docs, Invoices. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

Numbers it, books the A/R, and emails the PDF and view link. Sending again just emails it again.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.invoice_id` | `String!` | Yes | The invoice |
| `params.to` | `String` | No | Emails to send to, comma-separated (default: the customer's). A customer with no email keeps these |
| `params.fx_rate` | `String` | No | Other currencies: the rate to book at, if not the Bank of Canada's |

### Request

```graphql
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "send_invoice", apply: true,
        params: { invoice_id: "9f3c..." }) { success result }
}
```

### Response

```json
{
  "data": {
    "runOp": {
      "success": true,
      "result": {
        "summary": "Sent INV-00024 To milda@example.com: CAD 1130.00, Booked To Milda K's A/R.",
        "data": { "number": "INV-00024", "status": "sent", "public_url": "https://mcp.trysolarium.com/i/...", "balance_due": "1130.00" }
      }
    }
  }
}
```
