SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Invoices

POST

Change A Sent Invoice's Date

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.

Parameters

params.invoice_idString!required

The invoice (sent, viewed or overdue, nothing paid)

params.issue_dateDate!required

The new issue date (YYYY-MM-DD). Pass it on its own: nothing else on a sent invoice can change

params.fx_rateString

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

applyBoolean

true to change it. Without it you get the preview

Request
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "update_invoice", apply: true,
        params: { invoice_id: "9f3c...", issue_date: "2026-11-13" }) { success result }
}
Response
{
  "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" }
          }
        }
      }
    }
  }
}