Invoices
Delete retail invoice
Permanently delete a retail invoice and its associated data.
DELETE
Authentication
All requests to this endpoint must include a valid JWT in theAuthorization header.
Path parameters
string
required
The unique identifier of the retail invoice to delete.
What gets deleted
Deleting a retail invoice removes the following:- The invoice record from the
RetailInvoicesDynamoDB table. - The invoice’s parsed detail record from the corresponding category detail table (e.g.,
FoodDeliveryInvoices,ClothingInvoices,TechnologyInvoices,SubscriptionInvoices,GroceryInvoices,MiscUtilityInvoices,MiscInvoices,TravelInvoices). - The raw HTML invoice file from S3.
Response
string
A human-readable confirmation message. Example:
"Invoice deleted successfully"number
HTTP status code.
200 on success.object
Error responses
Error responses follow this structure: