Skip to main content
DELETE
This action is irreversible. The invoice record, its parsed details, and the source HTML file in S3 are all permanently deleted.

Authentication

All requests to this endpoint must include a valid JWT in the Authorization 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 RetailInvoices DynamoDB 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.
Ownership is validated before deletion — you can only delete invoices that belong to the authenticated user.

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: