# Invoice Settings

> 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

Reads or changes what every invoice says: the number series, how to pay, your address and email, a trade name, days to pay and reminders. Pass nothing to just read them.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.payment_instructions` | `String` | No | How to pay. Name an Interac e-Transfer address and the invoice page offers to copy it |
| `params.business_address` | `String` | No | Your address, one line per line |
| `params.business_email` | `String` | No | Printed on invoices. Customers' replies go here |
| `params.trade_name` | `String` | No | The name you trade under, if it isn't your legal name. Invoices lead with it and read "A trade name of" your legal name under it. Empty clears it |
| `params.prefix` | `String` | No | The number prefix (INV-) |
| `params.next_number` | `Int` | No | To continue an existing series |
| `apply` | `Boolean` | No | true to save changes |

### Request

```graphql
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "invoice_settings", apply: true,
        params: { trade_name: "Harbour Design Co.", payment_instructions: "Interac e-Transfer to pay@harbourdesign.ca" }) { success result }
}
```

### Response

```json
{
  "data": {
    "runOp": {
      "success": true,
      "result": {
        "summary": "Next Invoice Number INV-00042. Changed: payment_instructions, trade_name.",
        "data": { "trade_name": "Harbour Design Co.", "legal_name": "Harbour Studio Inc.", "next_invoice_number": "INV-00042" }
      }
    }
  }
}
```
