jaz-clio 9.7.2 → 9.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-api
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill whenever you call, debug, or review code that touches the Jaz
6
6
  REST API. Covers field names, response shapes, 148 production gotchas, error
@@ -3187,6 +3187,7 @@ Rules that hold on every route below:
3187
3187
  - **Using up the balance converts the record into an ordinary batch payment, one-way** (attributions or attach). The response cannot say so (it has no `origin`): detect it from `unappliedBalance` reaching 0. Its `origin` becomes `BATCH`, so the `UNAPPLIED` search no longer returns it: a record missing from that search may have become a batch payment, so check the batch-payment search with `origin` `BATCH` or `ALL` before concluding it is gone.
3188
3188
  - `paymentMethod` is the same 11-value enum as payments; lowercase or unknown values are 422.
3189
3189
  - Not idempotent. Clio sends every one of these once and reports a lost answer as UNCONFIRMED with the read-back, never as success.
3190
+ - **Search filters** (`BatchPaymentFilter`): `resourceId`, `type` (`AR` received / `AP` paid), `reference`, `organizationAccountResourceId`, `bankStatementEntryResourceId`, `paymentMethod`, `currencyCode`, `status`, `valueDate`, `createdAt`, `totalAmount`. Every one is an expression: `{"totalAmount": {"eq": 500}}`, never a bare `500` (400). There is **no contact filter**: a `contactResourceId` key is dropped, not refused, and every row comes back, so read the contact on the rows. `sortBy` takes `resourceId`, `reference`, `status`, `type`, `paymentMethod`, `valueDate`, `totalAmount`, `currencyCode`, `createdAt`; anything else (e.g. `amount`) is a 422. `search_unapplied_payments` sends these as `amount` / `minAmount` / `maxAmount` and `currencyCode`.
3190
3191
 
3191
3192
  ### POST /api/v1/unapplied-payments
3192
3193
 
@@ -129,7 +129,9 @@ Purchase side is symmetric: `create -t request --finalize` (→ ACTIVE) → (opt
129
129
 
130
130
  ## Search
131
131
 
132
- `search_sale_orders` / `search_purchase_orders` take `documentType` plus the standard filter set (reference, status, contact, contactResourceId, currencyCode, date range, amount range, tag). The `status` enum is the per-side union (sales: DRAFT/PENDING/CREATED/ACCEPTED/CONFIRMED/VOID; purchases: DRAFT/PENDING/ACTIVE/ACCEPTED/CONFIRMED/VOID). For advanced/nested queries (e.g. filter by `saleQuoteResourceId`), pass the raw `filter` object. See `search-reference.md` §24-25 and `search-enums.md` §25-26.
132
+ `search_sale_orders` / `search_purchase_orders` take `documentType` plus the standard filter set (reference, status, contact, contactResourceId, currencyCode, date range, amount range, tag). The `status` enum is the per-side union (sales: DRAFT/PENDING/CREATED/ACCEPTED/CONFIRMED/VOID; purchases: DRAFT/PENDING/ACTIVE/ACCEPTED/CONFIRMED/VOID). For advanced/nested queries, pass the raw `filter` object. See `search-reference.md` §24-25 and `search-enums.md` §25-26.
133
+
134
+ **Linked documents.** Each search reads the documents created from another by their link: `search_sale_orders` `saleQuoteId` (the orders made from a quote, documentType `SALE_ORDER`), `search_purchase_orders` `purchaseRequestId` (the orders made from a request, documentType `PURCHASE_ORDER`), `search_invoices` `saleOrderId` (the invoices made from a sales order) and `search_bills` `purchaseOrderId` (the bills made from a purchase order). Asked what covers or fulfils a document, read its linked documents first, and match look-alikes (contact, amount, date) only for documents with no link.
133
135
 
134
136
  Search behaves exactly like the other entities: `sortBy` is an array, `order` is `ASC`/`DESC`, and an `offset` must be paired with a sort. Duplicate `sortBy` values are rejected (`422: must contain unique values`).
135
137
 
@@ -109,6 +109,7 @@ org has no such account". `search_accounts` does not normalise; only
109
109
 
110
110
  **Amount fields**: `totalAmount`, `balanceAmount`, `reconciledAmount`, `paymentRecordedAmount`, `creditAppliedAmount`
111
111
  **Date fields**: `valueDate`, `dueDate`, `createdAt` (DateTime), `updatedAt` (DateTime), `approvedAt`, `submittedAt`
112
+ **Link field**: `saleOrderResourceId` (the sales order the invoice was created from)
112
113
 
113
114
  > **Note**: `OVERDUE` is not a status value (a list with it returns 422, a search matches nothing). To find overdue invoices, filter `{"status": {"in": ["UNPAID", "PARTIALLY_PAID"]}, "dueDate": {"lt": "<today in the organization's timezone>"}}`. With `search_invoices`: `status: "UNPAID,PARTIALLY_PAID"` and `dueDateTo` set to yesterday in the organization's timezone. Same for bills.
114
115
 
@@ -125,6 +126,7 @@ org has no such account". `search_accounts` does not normalise; only
125
126
 
126
127
  **Amount fields**: `totalAmount`, `balanceAmount`, `reconciledAmount`, `paymentRecordedAmount`, `creditAppliedAmount`
127
128
  **Date fields**: `valueDate`, `dueDate`, `createdAt` (DateTime), `updatedAt` (DateTime), `approvedAt`, `submittedAt`
129
+ **Link field**: `purchaseOrderResourceId` (the purchase order the bill was created from)
128
130
 
129
131
  > Same status values and structure as invoices. Same overdue caveat applies.
130
132
 
@@ -217,6 +217,7 @@ To convert response dates: `new Date(epochMs).toISOString().slice(0, 10)` → `Y
217
217
  |-------|------|-------|
218
218
  | `resourceId` | StringExpression | |
219
219
  | `contactResourceId` | StringExpression | |
220
+ | `saleOrderResourceId` | StringExpression | The sales order the invoice was created from (`search_invoices` `saleOrderId`) |
220
221
  | `status` | StringExpression | DRAFT, UNPAID, PAID, ACTIVE, VOID, etc. (per type, Rule 67) |
221
222
  | `reference` | StringExpression | Invoice number |
222
223
  | `terms` | IntExpression | Payment terms (days) |
@@ -254,6 +255,7 @@ To convert response dates: `new Date(epochMs).toISOString().slice(0, 10)` → `Y
254
255
  |-------|------|-------|
255
256
  | `resourceId` | StringExpression | |
256
257
  | `contactResourceId` | StringExpression | |
258
+ | `purchaseOrderResourceId` | StringExpression | The purchase order the bill was created from (`search_bills` `purchaseOrderId`) |
257
259
  | `contact` | ContactNestedFilter | |
258
260
  | `status` | StringExpression | |
259
261
  | `reference` | StringExpression | |
@@ -726,7 +728,7 @@ Also covers `POST /api/v1/sale-quotes/search`, same filter shape (`SaleOrderFilt
726
728
  | `status` | StringExpression | DRAFT, PENDING, CREATED, ACCEPTED, CONFIRMED, VOID |
727
729
  | `contactResourceId` | StringExpression | |
728
730
  | `contact` | ContactNestedFilter | Nested: name, resourceId, status |
729
- | `saleQuoteResourceId` | StringExpression | (Sale Orders) source quote link |
731
+ | `saleQuoteResourceId` | StringExpression | (Sale Orders only) source quote link (`search_sale_orders` `saleQuoteId`) |
730
732
  | `currencyCode` | StringExpression | |
731
733
  | `valueDate` | DateExpression | |
732
734
  | `dueDate` | DateExpression | |
@@ -758,7 +760,7 @@ Also covers `POST /api/v1/purchase-requests/search`, same filter shape (`Purchas
758
760
  | `status` | StringExpression | DRAFT, PENDING, ACTIVE, ACCEPTED, CONFIRMED, VOID |
759
761
  | `contactResourceId` | StringExpression | Supplier |
760
762
  | `contact` | ContactNestedFilter | Nested: name, resourceId, status |
761
- | `purchaseRequestResourceId` | StringExpression | (Purchase Orders) source request link |
763
+ | `purchaseRequestResourceId` | StringExpression | (Purchase Orders only) source request link (`search_purchase_orders` `purchaseRequestId`) |
762
764
  | `currencyCode` | StringExpression | |
763
765
  | `valueDate` | DateExpression | |
764
766
  | `dueDate` | DateExpression | |
@@ -842,6 +844,21 @@ POST /api/v1/cashflow-transactions/search
842
844
  }
843
845
  ```
844
846
 
847
+ ### Find a specific cash transfer (e.g. a possible duplicate)
848
+ `GET /cash-transfers` takes no filters, so a busy organization's list runs to hundreds of rows. Search the ledger by type, account, direction and date instead:
849
+ ```json
850
+ POST /api/v1/cashflow-transactions/search
851
+ {
852
+ "filter": {
853
+ "businessTransactionType": { "eq": "JOURNAL_CASH_TRANSFER" },
854
+ "organizationAccountResourceId": { "eq": "bank-uuid" },
855
+ "direction": { "eq": "PAYOUT" },
856
+ "valueDate": { "between": ["2026-11-01", "2026-11-30"] }
857
+ },
858
+ "sort": { "sortBy": ["valueDate"], "order": "DESC" }
859
+ }
860
+ ```
861
+
845
862
  ---
846
863
 
847
864
  *Derived from Go structs in the API backend (`models/*.go`); filter/sort fields extracted from struct validation tags and verified against the live production API. **Hand-maintained and not regenerated; nothing detects it going stale**; provenance and precedence rules: `search-enums.md` → Provenance and staleness. Last re-derived: 2026-02-14. All search/list responses standardized to flat shape. Capsules/capsuleTypes sort now array. Purchase-items sort fields corrected. Tax-profiles max fixed. Catalogs search returns paginated response.*
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-cli
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill when running Clio CLI commands, building shell scripts with
6
6
  Clio, debugging auth issues, understanding --json output, paginating results,
@@ -11,7 +11,7 @@ Complete reference for all 80 command groups. Organized by domain.
11
11
  |------------|-----------|
12
12
  | `list` | `--limit`, `--offset`, `--all`, `--format`, `--json` |
13
13
  | `get <id>` | `--json` |
14
- | `search` | `--reference`, `--contact-name`, `--status`, `--from`, `--to`, `--tag`, `--sort`, `--order` |
14
+ | `search` | `--reference`, `--contact-name`, `--status`, `--from`, `--to`, `--tag`, `--sale-order-id` (invoices created from that order), `--sort`, `--order` |
15
15
  | `create` | `--contact`, `--date`, `--due`, `--ref` or `--auto-ref`, `--currency`, `--exchange-rate`, `--lines`, `--finalize`, `--input` |
16
16
  | `update <id>` | `--date`, `--due`, `--ref`, `--lines`, `--input` |
17
17
  | `delete <id>` | |
@@ -28,7 +28,7 @@ Complete reference for all 80 command groups. Organized by domain.
28
28
  |------------|-----------|
29
29
  | `list` | `--limit`, `--offset`, `--all`, `--format`, `--json` |
30
30
  | `get <id>` | `--json` |
31
- | `search` | `--reference`, `--contact-name`, `--status`, `--from`, `--to`, `--tag`, `--sort`, `--order` |
31
+ | `search` | `--reference`, `--contact-name`, `--status`, `--from`, `--to`, `--tag`, `--purchase-order-id` (bills created from that order), `--sort`, `--order` |
32
32
  | `create` | `--contact`, `--date`, `--due`, `--ref` or `--auto-ref`, `--currency`, `--exchange-rate`, `--lines`, `--finalize`, `--input` |
33
33
  | `update <id>` | `--date`, `--due`, `--ref`, `--lines`, `--input` |
34
34
  | `delete <id>` | |
@@ -734,7 +734,7 @@ Every write after `record` takes `--hash` (from `search` or the last write). A l
734
734
 
735
735
  | Subcommand | Key flags |
736
736
  |------------|-----------|
737
- | `search` | `--id`, `--type` (`AR`/`AP`), `--ref`, `--account`, `--from`, `--to`, `--limit`, `--all`, `--json` |
737
+ | `search` | `--id`, `--type` (`AR`/`AP`), `--ref`, `--account`, `--from`, `--to`, `--amount` (exact), `--min-amount`, `--max-amount`, `--currency-code`, `--sort` (`valueDate`, `totalAmount`, `reference`, `currencyCode`, `type`, `status`, `paymentMethod`, `createdAt`, `resourceId`), `--limit`, `--all`, `--json`. No contact filter |
738
738
  | `record` | `--type` (`SALE`/`PURCHASE`), `--account`, `--method`, `--amount`, `--date`, `--currency`, `--rate`, `--contact`, `--reference`, `--notes`, `--draft`, `--input` |
739
739
  | `update <id>` | `--hash`, `--reference`, `--notes`, `--method`, `--amount`, `--account`, `--date`, `--input` (for `children`) |
740
740
  | `activate <id>` | `--hash`. Posts the draft |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-conversion
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill when migrating accounting data into Jaz, importing from Xero,
6
6
  QuickBooks, Sage, MYOB, or Excel exports. Covers the full conversion pipeline:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-kit
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill when an accountant, bookkeeper, or owner is running real books
6
6
  in Jaz across one or more organizations from the terminal: setting up a
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-pseudo-sql
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill when answering ad-hoc data questions that aren't covered by
6
6
  download_export (canonical reports: anomaly, audit, aging, P&L, BS, GL,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-jobs
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill for recurring accounting workflows: month/quarter/year-end
6
6
  close, bank reconciliation, GST/VAT filing, payment runs, credit control,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-recipes
3
- version: 9.7.2
3
+ version: 9.7.3
4
4
  description: >-
5
5
  Use this skill when modeling complex multi-step accounting transactions:
6
6
  anything that spans multiple periods, involves changing amounts, or requires