Search reconciliation relationships
curl --request GET \
--url https://api.getlemma.com/v1/recon-search/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getlemma.com/v1/recon-search/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlemma.com/v1/recon-search/{id}', 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.getlemma.com/v1/recon-search/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.getlemma.com/v1/recon-search/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getlemma.com/v1/recon-search/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getlemma.com/v1/recon-search/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{ "type": "remittance", "id": "canonical_payment_Wp5mRx3nKv8bTh2d" },
{ "type": "inbound_ach_transfer", "id": "inbound_ach_transfer_Kd8mNx2pRv5cTh9b" }
]
[{ "type": "remittance", "id": "canonical_payment_Wp5mRx3nKv8bTh2d" }]
{
"statusCode": 404,
"error": "Not Found",
"message": "Not found"
}
Remittances
Search reconciliation relationships
Look up a remittance, ACH transfer, check deposit, or card payment by ID and get back everything Lemma has reconciled it against.
GET
/
v1
/
recon-search
/
{id}
Search reconciliation relationships
curl --request GET \
--url https://api.getlemma.com/v1/recon-search/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getlemma.com/v1/recon-search/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlemma.com/v1/recon-search/{id}', 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.getlemma.com/v1/recon-search/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.getlemma.com/v1/recon-search/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getlemma.com/v1/recon-search/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getlemma.com/v1/recon-search/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{ "type": "remittance", "id": "canonical_payment_Wp5mRx3nKv8bTh2d" },
{ "type": "inbound_ach_transfer", "id": "inbound_ach_transfer_Kd8mNx2pRv5cTh9b" }
]
[{ "type": "remittance", "id": "canonical_payment_Wp5mRx3nKv8bTh2d" }]
{
"statusCode": 404,
"error": "Not Found",
"message": "Not found"
}
/v1 remittance IDs (
canonical_payment_…) are different from /v0 IDs (remittance_…) and are
not interchangeable. A /v0 remittance ID returns 404 here; look it up on the /v0 endpoint.Path parameters
The ID to look up, prefixed with its type: a /v1 remittance (
canonical_payment_…),
inbound ACH transfer (inbound_ach_transfer_…), check deposit
(check_deposit_…), or inbound card payment (inbound_card_payment_…).Response
Returns an array of reconciliation entries. The first entry is the object you queried; any further entry is a reconciled counterpart you can read. Each entry has the following fields.The kind of object this ID refers to. One of
remittance,
inbound_ach_transfer, check_deposit, inbound_card_payment.[
{ "type": "remittance", "id": "canonical_payment_Wp5mRx3nKv8bTh2d" },
{ "type": "inbound_ach_transfer", "id": "inbound_ach_transfer_Kd8mNx2pRv5cTh9b" }
]
[{ "type": "remittance", "id": "canonical_payment_Wp5mRx3nKv8bTh2d" }]
{
"statusCode": 404,
"error": "Not Found",
"message": "Not found"
}