Toggle whether a supporting document is bundled with the invoice PDF
PATCH/api/v1/invoices/:invoice_id/supporting_documents/:id/toggle_attachable
Toggles the attachable_to_invoice flag on the supporting document. Only applicable to sales invoice documents with EN 16931 compliant MIME types.
Request
Responses
- 200
- 401
- 403
- 404
- 422
Returns the supporting document with its attachable_to_invoice flag toggled
The request did not include a valid OAuth 2.0 access token
The OAuth 2.0 client's access token is missing the write scope
No supporting document exists with the given ID on that invoice, or the invoice belongs to another workspace
The document cannot be flagged as attachable: it does not hang off a sales invoice, or its file type is not one EN 16931 allows to be embedded