Restore a parked attachment into the invoice flow
POST/inbound-attachments/:id/restore
Creates the invoice from the stored file of an attachment the intake classifier set aside, skipping classification (the human has overruled it), and marks the attachment ingested. The invoice lands at PENDING_EXTRACTION in the normal flow as an invoice without purchase order. Allowed for an accountant on any parked attachment, or for the attachment's own recipient on theirs; only classifier set-asides are parked, and a duplicate of an already-invoiced document is refused by the checksum guard.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
Success response
Attachment ID missing or malformed
Unauthorized
Caller is neither an accountant nor the attachment's recipient (type inbound-attachment-restore-forbidden)
Attachment not found or dismissed
Attachment is not a classifier set-aside (type inbound-attachment-not-parked), or the stored file duplicates an already-invoiced document (type invoice-duplicate-file)
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Delay in seconds a client must wait before retrying the request
Internal server error