Bulk Delete by Filters
Bulk Delete by Filters
Delete all invoices matching filter criteria with concurrency guard
POST
Bulk Delete by Filters
Bulk Delete by Filters
Delete all invoices that match the given filter criteria. Uses the same filters as the list endpoint plus afilter_hash for optimistic concurrency — ensuring you delete exactly what the user saw.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
At least one filter parameter (beyondfacility_id and type) is required.
UUID of the facility
Invoice type:
electricity, heat, water, rechargeFilter invoices on or after this date
Filter invoices on or before this date
Filter by status
Filter by CO2e calculation status
Filter by CUPS identifier
Filter by supplier UUID
Body Parameters
Hash from the list endpoint response. Must match the current filter set.
Example
Successful Response
Response
Number of invoices successfully deleted
UUIDs of successfully deleted invoices
Number of invoices that failed to delete
UUIDs of invoices that failed to delete
Human-readable summary message
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization409 Conflict
Cause:filter_hash doesn’t match — filters changed since the list was loaded
422 Unprocessable Entity
Cause: No narrowing filter provided beyondfacility_id and type
Related Endpoints
Bulk Delete
Delete specific invoices by ID
Bulk Delete Preview
Preview what will be deleted

