Delete Attachment
You can use this endpoint to delete an attachment of a receipt.
Request
DELETE /api/v1/receipts/:id/attachments
curl --request DELETE \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/receipts/123/attachments' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Parameters
- id (integer, required): The ID of the receipt whose attachment should be deleted
Response
Successful Deletion
{
"success": true
}A successful deletion returns an object with success: true.
Error Codes
- 401 Unauthorized: Invalid or missing authentication
- 404 Not Found: Receipt with the specified ID was not found
- 500 Internal Server Error: Deletion failed
Notes
- Deleting an attachment is a permanent action and cannot be undone
- Make sure you are using the correct receipt ID before executing the deletion
- The attachment will be permanently removed from the system
- Verify that the user has the necessary permissions to delete attachments
Example
DELETE /api/v1/receipts/123/attachmentsResponse:
{
"success": true
}