SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Reports

POST

GST/HST Return

Canadian organizations. GST/HST return summary for a filing period: tax collected on sales, input tax credits (ITCs) claimable on expenses, ITC adjustments (e.g. the 50% meals & entertainment restriction), and the net amount owing or refundable. The province, rate, and filing frequency/deadline are derived from the organization's tax configuration. paymentDeadlineDate is when the balance is due: the filing deadline, except a sole proprietor with a December 31 year-end files by June 15 and pays by April 30. When the business's legal form isn't set, deadlineNote says so for an annual December 31 return. Each collected/ITC line carries its accountId and revenueAccountIds lists the revenue accounts, so accountLines can list the entries behind any line. instalmentsPaid is line 110: GST/HST instalments paid from a bank in the period, booked to a GST/HST Instalments account by the record_tax_payment op (runOp, or the MCP tool). When the payment is already on the bank feed, tax_payment_matches finds the withdrawal and record_tax_payment books it with event_id, so it isn't counted twice. Before filing, check unbookedCount / unbookedTotal (transactions in the period still in review — not counted yet), receiptsMissingTaxCount (receipts in the period with no tax read), stripeChargesUntaxedCount (booked Stripe charges with no GST/HST line, so any tax in them counts as sales) and stripePayoutDepositsCount (bank deposits that look like Stripe payouts but were booked as sales, so those sales count twice). Use filingPeriod to get the period dates.

Parameters

organizationIdUUID!required

Organization ID

startDateDate!required

Start of the filing period (YYYY-MM-DD)

endDateDate!required

End of the filing period (YYYY-MM-DD)

Request
query {
  gstHstReturn(
    organizationId: "a1b2c3d4-..."
    startDate: "2026-01-01"
    endDate: "2026-03-31"
  ) {
    province
    provinceName
    taxRate
    filingFrequency
    filingDeadline
    filingDeadlineDate
    paymentDeadlineDate
    deadlineNote
    collectedLines { accountId accountName amount }
    itcLines { accountId accountName amount }
    itcAdjustmentLines { accountName amount }
    revenueAccountIds
    totalRevenue
    totalCollected
    totalItcs
    totalItcAdjustment
    netClaimableItcs
    netOwing
    isRefund
    hasTaxAccounts
    unbookedCount
    unbookedTotal
    receiptsMissingTaxCount
    stripeChargesUntaxedCount
    stripePayoutDepositsCount
    stripePayoutDepositIds
    instalmentsPaid
    instalmentAccountIds
  }
}
Response
{
  "data": {
    "gstHstReturn": {
      "province": "ON",
      "provinceName": "Ontario",
      "taxRate": "13%",
      "filingFrequency": "quarterly",
      "filingDeadline": "2026-04-30",
      "filingDeadlineDate": "2026-04-30",
      "paymentDeadlineDate": "2026-04-30",
      "deadlineNote": "",
      "collectedLines": [
        { "accountId": "5c1e...", "accountName": "HST Payable", "amount": "10985.00" }
      ],
      "itcLines": [
        { "accountId": "9d2a...", "accountName": "GST/HST Receivable", "amount": "4212.55" }
      ],
      "revenueAccountIds": ["7f3e..."],
      "unbookedCount": 3,
      "unbookedTotal": "412.80",
      "receiptsMissingTaxCount": 2,
      "stripeChargesUntaxedCount": 14,
      "stripePayoutDepositsCount": 1,
      "stripePayoutDepositIds": ["3b8c..."],
      "instalmentsPaid": "1500.00",
      "instalmentAccountIds": ["c41f..."],
      "itcAdjustmentLines": [
        { "accountName": "Meals & Entertainment (50%)", "amount": "-96.20" }
      ],
      "totalRevenue": "84500.00",
      "totalCollected": "10985.00",
      "totalItcs": "4212.55",
      "totalItcAdjustment": "-96.20",
      "netClaimableItcs": "4116.35",
      "netOwing": "6868.65",
      "isRefund": false,
      "hasTaxAccounts": true
    }
  }
}