SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Invoices

POST

Invoice Settings

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.

Parameters

params.payment_instructionsString

How to pay. Name an Interac e-Transfer address and the invoice page offers to copy it

params.business_addressString

Your address, one line per line

params.business_emailString

Printed on invoices. Customers' replies go here

params.trade_nameString

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.prefixString

The number prefix (INV-)

params.next_numberInt

To continue an existing series

applyBoolean

true to save changes

Request
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "invoice_settings", apply: true,
        params: { trade_name: "Harbour Design Co.", payment_instructions: "Interac e-Transfer to [email protected]" }) { success result }
}
Response
{
  "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" }
      }
    }
  }
}