> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.ntropy.com/documentation/api/account-holders/delete-account-holder-transactions-v-3-account-holders-id-transactions-delete-post/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ntropy.com/_mcp/server. # Deletes a list of the account holder's transactions POST https://api.ntropy.com/v3/account_holders/{id}/transactions/delete Content-Type: application/json Deletes up to 1000 of the account holder's transactions by id in one call. Ids that belong to another account holder are ignored. Deleted transactions no longer appear in any listing, history or recurrence result. Reference: https://docs.ntropy.com/documentation/api/account-holders/delete-account-holder-transactions-v-3-account-holders-id-transactions-delete-post ## Authentication - `X-Api-Key` header (required) — API Key authentication via header ## Request ### Path parameters - `id` (string, required) ### Body (application/json) This endpoint expects an AccountHolderTransactionsDelete. - `transaction_ids` (list of string, required) — Ids of the account holder's transactions to delete, at most 1000 per call. ## Response ### 204 Deletion successful ## Errors ### 404 Not Found Error Account holder with the provided id not found. - `any` ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### ValidationErrorLocItems ### ValidationErrorCtx ## Examples **Request** ```json { "transaction_ids": [ "txn_1", "txn_2" ] } ``` **Response** ```json {} ``` **SDK Code** ```python import requests url = "https://api.ntropy.com/v3/account_holders/id/transactions/delete" payload = { "transaction_ids": ["txn_1", "txn_2"] } headers = { "X-Api-Key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.ntropy.com/v3/account_holders/id/transactions/delete'; const options = { method: 'POST', headers: {'X-Api-Key': '', 'Content-Type': 'application/json'}, body: '{"transaction_ids":["txn_1","txn_2"]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.ntropy.com/v3/account_holders/id/transactions/delete" payload := strings.NewReader("{\n \"transaction_ids\": [\n \"txn_1\",\n \"txn_2\"\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-Api-Key", "") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.ntropy.com/v3/account_holders/id/transactions/delete") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["X-Api-Key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"transaction_ids\": [\n \"txn_1\",\n \"txn_2\"\n ]\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.ntropy.com/v3/account_holders/id/transactions/delete") .header("X-Api-Key", "") .header("Content-Type", "application/json") .body("{\n \"transaction_ids\": [\n \"txn_1\",\n \"txn_2\"\n ]\n}") .asString(); ``` ```php request('POST', 'https://api.ntropy.com/v3/account_holders/id/transactions/delete', [ 'body' => '{ "transaction_ids": [ "txn_1", "txn_2" ] }', 'headers' => [ 'Content-Type' => 'application/json', 'X-Api-Key' => '', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.ntropy.com/v3/account_holders/id/transactions/delete"); var request = new RestRequest(Method.POST); request.AddHeader("X-Api-Key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"transaction_ids\": [\n \"txn_1\",\n \"txn_2\"\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "X-Api-Key": "", "Content-Type": "application/json" ] let parameters = ["transaction_ids": ["txn_1", "txn_2"]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.ntropy.com/v3/account_holders/id/transactions/delete")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```