jaz-clio 9.5.6 → 9.5.8
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.
- package/assets/skills/api/SKILL.md +1 -1
- package/assets/skills/api/references/endpoints.md +2 -0
- package/assets/skills/api/references/errors.md +4 -0
- package/assets/skills/cli/SKILL.md +1 -1
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-kit/SKILL.md +1 -1
- package/assets/skills/jaz-pseudo-sql/SKILL.md +1 -1
- package/assets/skills/jobs/SKILL.md +1 -1
- package/assets/skills/transaction-recipes/SKILL.md +1 -1
- package/cli.mjs +352 -352
- package/package.json +1 -1
|
@@ -1182,6 +1182,8 @@ Response (non-standard shape):
|
|
|
1182
1182
|
|
|
1183
1183
|
Upload a file attachment. Multipart form-data with `file` field (binary, `application/pdf` or `image/*`). Returns the parent transaction with updated `attachments` array.
|
|
1184
1184
|
|
|
1185
|
+
Optional form field `attachmentType`: `INTERNAL` or `EXTERNAL`; left out, the attachment is stored as Internal. Only invoices, customer credit notes, sale quotes, sale orders, purchase orders and purchase requests take it, and only the attachment lists of those six return `attachmentType` for each attachment. Every other record type answers 400 `attachmentType is not supported on <record type>`, whatever the value.
|
|
1186
|
+
|
|
1185
1187
|
### DELETE /api/v1/:type/:resourceId/attachments/:attachmentResourceId
|
|
1186
1188
|
|
|
1187
1189
|
Delete an attachment. Returns the parent transaction with the attachment removed from the `attachments` array. HTTP 200 on success.
|
|
@@ -634,6 +634,10 @@ account. Full model: SKILL.md Rule 47a, `endpoints.md` → Deposits, `feature-gl
|
|
|
634
634
|
**Cause**: Uploading `text/plain` files to `POST /:type/:id/attachments`.
|
|
635
635
|
**Fix**: API only accepts PDF and image types. Use `application/pdf` or `image/png`. The multipart field name must be `file` (NOT `sourceFile`).
|
|
636
636
|
|
|
637
|
+
### "attachmentType is not supported on bills" (400)
|
|
638
|
+
**Cause**: Sending the `attachmentType` form field to `POST /:type/:id/attachments` on a record type that does not take it. The message names the record type.
|
|
639
|
+
**Fix**: Only invoices, customer credit notes, sale quotes, sale orders, purchase orders and purchase requests take `attachmentType`. Leave the field out on every other record type.
|
|
640
|
+
|
|
637
641
|
---
|
|
638
642
|
|
|
639
643
|
## Jaz Magic / Document-Source Errors
|