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!requiredOrganization ID
startDateDate!requiredStart of the filing period (YYYY-MM-DD)
endDateDate!requiredEnd of the filing period (YYYY-MM-DD)