Cancel a reconciliation run
curl --request POST \
--url https://api.endclose.com/v1/reconciliations/{id}/cancel_run \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.endclose.com/v1/reconciliations/{id}/cancel_run"
headers = {"X-API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.endclose.com/v1/reconciliations/{id}/cancel_run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.endclose.com/v1/reconciliations/{id}/cancel_run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.endclose.com/v1/reconciliations/{id}/cancel_run"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.endclose.com/v1/reconciliations/{id}/cancel_run")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.endclose.com/v1/reconciliations/{id}/cancel_run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"reconciliation_id": "<string>",
"run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "batch",
"status": "pending",
"trigger": "manual",
"total_records": 123,
"processed_records": 123,
"matched_records": 123,
"rule_summary": {},
"progress": 123,
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}Reconciliations
Cancel a reconciliation run
Cancels the reconciliation’s batch run that is pending or running. A running run stops at its next checkpoint, between two batches of matches, which can take a few minutes on a large reconciliation. The matches the run has already made stay; unmatch them if you do not want them. The cancelled run no longer appears as current_run or last_run on GET /reconciliations/{id}, and a new run can be started with POST /reconciliations/{id}/run.
POST
/
reconciliations
/
{id}
/
cancel_run
Cancel a reconciliation run
curl --request POST \
--url https://api.endclose.com/v1/reconciliations/{id}/cancel_run \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.endclose.com/v1/reconciliations/{id}/cancel_run"
headers = {"X-API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.endclose.com/v1/reconciliations/{id}/cancel_run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.endclose.com/v1/reconciliations/{id}/cancel_run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.endclose.com/v1/reconciliations/{id}/cancel_run"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.endclose.com/v1/reconciliations/{id}/cancel_run")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.endclose.com/v1/reconciliations/{id}/cancel_run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"reconciliation_id": "<string>",
"run": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "batch",
"status": "pending",
"trigger": "manual",
"total_records": 123,
"processed_records": 123,
"matched_records": 123,
"rule_summary": {},
"progress": 123,
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}