curl --request DELETE \
--url https://api.paypulse.io/v1/invoices/retail/inv_abc123 \
--header 'Authorization: Bearer <token>'
{
"message": "Invoice deleted successfully",
"code": 200,
"data": {
"deleted_invoice": {
"invoice_id": "inv_abc123",
"vendor_name": "Domino's Pizza",
"sub_type": "food-delivery",
"invoice_date": "2025-03-10",
"total_amount": 149,
"currency": "SEK"
}
}
}
Permanently delete a retail invoice and its associated data.
curl --request DELETE \
--url https://api.paypulse.io/v1/invoices/retail/inv_abc123 \
--header 'Authorization: Bearer <token>'
{
"message": "Invoice deleted successfully",
"code": 200,
"data": {
"deleted_invoice": {
"invoice_id": "inv_abc123",
"vendor_name": "Domino's Pizza",
"sub_type": "food-delivery",
"invoice_date": "2025-03-10",
"total_amount": 149,
"currency": "SEK"
}
}
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/azfar-imtiaz/PayPulse-Cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header.
Authorization: Bearer <token>
RetailInvoices DynamoDB table.FoodDeliveryInvoices, ClothingInvoices, TechnologyInvoices, SubscriptionInvoices, GroceryInvoices, MiscUtilityInvoices, MiscInvoices, TravelInvoices)."Invoice deleted successfully"200 on success.Hide properties
Hide properties
food-delivery, clothing, technology, subscriptions, grocery, utility, miscellaneous, travel."SEK" if not set.| Status | Error code | Description |
|---|---|---|
400 | MISSING_FIELDS | The invoice_id path parameter is absent. |
401 | INVALID_CREDENTIALS | The Authorization header is missing or the token is invalid. |
401 | TOKEN_EXPIRED | The JWT has expired. |
404 | INVALID_REQUEST | No invoice found for the given invoice_id, or the invoice belongs to a different user. |
502 | DEPENDENCY_FAILURE | A downstream dependency (DynamoDB or S3) returned an error during deletion. |
500 | INTERNAL_SERVER_ERROR | An unexpected server-side error occurred. |
{
"error": {
"code": "INVALID_REQUEST",
"message": "Invoice not found or you don't have permission to delete it"
}
}
curl --request DELETE \
--url https://api.paypulse.io/v1/invoices/retail/inv_abc123 \
--header 'Authorization: Bearer <token>'
{
"message": "Invoice deleted successfully",
"code": 200,
"data": {
"deleted_invoice": {
"invoice_id": "inv_abc123",
"vendor_name": "Domino's Pizza",
"sub_type": "food-delivery",
"invoice_date": "2025-03-10",
"total_amount": 149,
"currency": "SEK"
}
}
}