# Change A Sent Invoice's Date

> 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

Moves a sent invoice with nothing paid on it to another issue date. Same number, due date from its terms, and its A/R entry moved and (in another currency) translated again at the new date's rate. Nothing is emailed.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.invoice_id` | `String!` | Yes | The invoice (sent, viewed or overdue, nothing paid) |
| `params.issue_date` | `Date!` | Yes | The new issue date (YYYY-MM-DD). Pass it on its own: nothing else on a sent invoice can change |
| `params.fx_rate` | `String` | No | Other currencies: your own rate for the new date. Default: the Bank of Canada rate on the new date, which replaces a rate you set before |
| `apply` | `Boolean` | No | true to change it. Without it you get the preview |

### Request

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

### Response

```json
{
  "data": {
    "runOp": {
      "success": true,
      "result": {
        "summary": "INV-00027: Issue Date Oct 29 → Nov 13, Due Nov 28 → Dec 13. Rate 1.3684 → 1.4012, CAD 3421.00 → 3503.00.",
        "data": {
          "number": "INV-00027",
          "issue_date": "2026-11-13",
          "due_date": "2026-12-13",
          "date_change": {
            "issue_date": { "before": "2026-10-29", "after": "2026-11-13" },
            "fx_rate": { "before": "1.36840000", "after": "1.40120000" },
            "home_total": { "before": "3421.00", "after": "3503.00" }
          }
        }
      }
    }
  }
}
```
