Delete Statement Transactions
DELETE /api/v1/statements/:id/transactions
Deletes all transactions linked to this statement. The statement and its parsed_data are preserved, so the transactions can be recreated by retrying processing (see Retry Statement Processing).
Path Parameters
| Parameter | Type | Description |
|---|
| id | string | Statement ID |
Example Request
curl -X DELETE "https://statements.finopsbricks.com/api/v1/statements/stmt123xyz/transactions" \
-H "api-key: fob_stm_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Response
{
"data": {
"deleted": 47
}
}
Errors
| Code | Description |
|---|
| 401 | Invalid or missing API credentials |
| 403 | API key lacks transactions:delete permission |
| 404 | Statement not found |