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

ParameterTypeDescription
idstringStatement 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

CodeDescription
401Invalid or missing API credentials
403API key lacks transactions:delete permission
404Statement not found