Delete Documents Attached To Invoices via API

Hello,

Is it possible to delete documents attached to an invoice via the API?

Thank you,

Cameron Williams

Hi,

Yes, you’d want to send a DELETE request to api/v1/documents/<document_id>

Note: it can be helpful to inspect the browser console in the admin portal to debug API requests sent by the app.

I tried that but I get a Invalid Password message back from the API. Is it possible to turn the password requirement off for deleting documents via the API?

Thank you,

Cameron Williams

It must be a password protected route, you can include your password with the request by setting the X-API-PASSWORD header (or X-API-PASSWORD-BASE64 if it has special chars)