SolariumSolariumDocs
Browse The Docs

Docs/Guides/Country & Tax Setup

POST

Update Country Settings

Any organization: its sales tax registration number and fiscal year end. A Canadian organization's registrationNumber is its GST/HST number, checked as 9 digits, RT and 4 digits (spaces ignored) and saved as "123456789 RT0001". A Quebec QST registrant can also set qstRegistrationNumber (usually 10 digits, TQ and 4 digits; another format is kept with a warning). Both print on invoices. A Canadian organization can also set entityType, its business structure (sole_proprietor, partnership or corporation, or empty for not set). It decides where an owner's draw goes on the financial statements and when a sole proprietor's GST/HST is due. Saving it moves no account. When an owner's draw is still waiting to move to its new code, jurisdiction.ownerDrawNeedsReview is true. Solarium's team moves it by hand when they next review the chart. For an organization outside Canada, also its region and either its own sales tax rates (generic countries) or its business type (US). The currency (generic countries) and the business type (US) can only change before any transactions are booked. Changing the business type re-codes every account to the new form's lines. Requires the owner or admin role. A Canadian organization's province and filing frequency are set with updateOrganization.

Parameters

organizationIdUUID!required

Organization ID

regionString

US: a state code. Elsewhere: free text

currencyString

Generic countries, before any transactions

taxRates[TaxRateInput!]

Generic countries: replaces the rates. Each has name, ratePercent and recoverable (tax paid on purchases is claimed back)

registrationNumberString

Canada: the GST/HST number, like 123456789 RT0001. Elsewhere: any sales tax registration number. Empty clears it

qstRegistrationNumberString

Canada (Quebec QST registrants): the QST number, like 1234567890 TQ 0001. Saved as "1234567890 TQ 0001" when standard; any other format is kept as typed and jurisdiction.qstRegistrationWarning says to check it

businessTypeString

US, before any transactions: sch_c, 1065, 1120 or 1120s

entityTypeString

Canada: the business structure, sole_proprietor, partnership or corporation. Empty clears it

Request
mutation {
  updateJurisdiction(
    organizationId: "a1b2c3d4-..."
    taxRates: [
      { name: "VAT", ratePercent: "20", recoverable: true }
      { name: "Reduced VAT", ratePercent: "5", recoverable: true }
    ]
  ) {
    success
    error
    jurisdiction { currency taxRates { code name ratePercent recoverable } }
  }
}
Response
{
  "data": {
    "updateJurisdiction": {
      "success": true,
      "error": null,
      "jurisdiction": {
        "currency": "GBP",
        "taxRates": [
          { "code": "vat", "name": "VAT", "ratePercent": "20", "recoverable": true },
          { "code": "reduced_vat", "name": "Reduced VAT", "ratePercent": "5", "recoverable": true }
        ]
      }
    }
  }
}