Remove Attachment from Receivable
DELETE/receivables/:receivableId/attachments/:attachmentId
Removes an active PDF attachment from a receivable (invoice). The receivable record is not deleted or voided.
What this call does
- Marks the attachment inactive so it no longer appears as a used attachment on the receivable
- The attachment is no longer downloadable via the download endpoints
- Returns 204 No Content on success
What this call does not do
- Does not cancel or hard-delete the receivable — use Cancel Receivable to void an invoice
- Does not permanently purge the stored PDF on this request — Paystand may retain the file internally for audit and operational purposes; treat this as remove from invoice, not guaranteed erasure
ERP sync: After a successful call, stop presenting the attachment on that invoice in your ERP. Re-upload with Upload Attachment if the merchant adds a replacement PDF.
Request
Responses
- 204
- 400
- 401
- 403
- 404
Attachment removed from the receivable (no longer active or downloadable)
Bad request
Unauthorized
Forbidden
Attachment not found, or attachment is not active on this receivable