# invoices.qstReview

Review Quebec sales tax (QST) for a saved invoice or proposed draft. Returns the organization's saved registration facts, qualifying Quebec sales over the rolling 12-month period, the proposed invoice, known expected sales, exact CAD totals, source records, missing evidence and official citations. C$30,000 is a strict greater-than threshold for the specified outside-Quebec system, not a universal exemption. General registration and carrying on business in Quebec have different rules. Show this calculation and its blockers before requesting confirmation; never infer complete books, customer QST registration or government registration from an address or zero tax.

`GET | POST /api/v1/accounting/invoices.qstReview`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_invoices_qst_review`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string (ID) |  | The record's ID. |
| `draft` | object |  | No other fields. |
| `draft.partyId` | string (ID) | Yes | The ID of a customer or vendor account, from parties.list. |
| `draft.title` | string |  | A short title. at most 200 characters. |
| `draft.issueDate` | string or null |  | The date the document was issued, as YYYY-MM-DD. |
| `draft.dueDate` | string or null |  | The date payment is due, as YYYY-MM-DD. |
| `draft.currency` | string |  | Three-letter currency code, such as CAD or USD. |
| `draft.lines` | array of objects |  | at most 100 items. |
| `draft.lines[].id` | string |  | The record's ID. at most 64 characters. |
| `draft.lines[].description` | string | Yes | A short description. 1–500 characters. |
| `draft.lines[].quantity` | string |  |  |
| `draft.lines[].unitAmountMinor` | string |  | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Whole number written as a string, may be negative. |
| `draft.lines[].isHeader` | boolean |  |  |
| `draft.lines[].taxCode` | enum |  | One of: `standard`, `exempt`, `zero_rated`. |
| `draft.taxTreatment` | enum or null |  | One of: `auto`, `unknown`, `hst`, `gst`, `gst_qst`, `zero_rated`, `exempt`, `none`, `custom`. |
| `draft.taxRateCode` | enum or string or null |  |  |
| `draft.paymentMethodIds` | array of strings (ID) |  | A list of record IDs. at most 10 items. |
| `draft.payUrl` | string (uri) or null |  |  |
| `draft.notes` | string |  | Notes kept with the record. at most 4000 characters. |
| `draft.memo` | string |  | at most 4000 characters. |
| `draft.terms` | object |  | No other fields. |
| `draft.terms.code` | enum | Yes | One of: `due_on_receipt`, `net_7`, `net_15`, `net_30`, `net_45`, `net_60`, `custom`, `split_50_50`, `monthly`. |
| `draft.terms.days` | integer or null |  |  |
| `draft.billToContactId` | string or null |  |  |
| `draft.projectId` | string (ID) or null |  |  |
| `facts` | object |  | No other fields. |
| `facts.standardServicesOnly` | boolean |  | Default `false`. |
| `facts.supplierOutsideQuebec` | boolean or null | Yes |  |
| `facts.carriesOnBusinessInQuebec` | boolean or null | Yes |  |
| `facts.registration` | enum | Yes | One of: `unknown`, `none`, `specified`, `general`. |
| `facts.registrationNumber` | string or null | Yes |  |
| `facts.effectiveDate` | string or null | Yes |  |
| `facts.allSalesRecorded` | boolean | Yes |  |
| `facts.additionalSales` | array of objects | Yes | at most 200 items. |
| `facts.additionalSales[].date` | string | Yes | A date, as YYYY-MM-DD. |
| `facts.additionalSales[].amountCadMinor` | string | Yes | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Matches ^\d{1,18}$. |
| `facts.additionalSales[].description` | string | Yes | A short description. 1–200 characters. |
| `facts.expectedAdditionalSalesCadMinor` | string | Yes | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Matches ^\d{1,18}$. |
| `facts.expectedSalesAsOf` | string or null | Yes |  |
| `facts.customerGeneralQstVerifiedOn` | string or null |  | Default `null`. |
| `facts.residencyEvidence` | array of strings |  | at most 5 items; each 1–200 characters. Default `[]`. |
| `facts.customerGeneralQstNumber` | string or null | Yes |  |
| `clearCustomerGeneralQst` | boolean |  | Default `false`. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.qstReview \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d'
```

Reference page: https://app.getoatmilk.com/docs/api/invoices.qstReview
