curl --request GET \
--url https://api.meetcampfire.com/coa/api/transaction-matches/{id}import requests
url = "https://api.meetcampfire.com/coa/api/transaction-matches/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/transaction-matches/{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.meetcampfire.com/coa/api/transaction-matches/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.meetcampfire.com/coa/api/transaction-matches/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.meetcampfire.com/coa/api/transaction-matches/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/transaction-matches/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 123,
"matched_object": "<string>",
"app_label": "<string>",
"model": "<string>",
"drafts": "<string>",
"object_id": 1073741823,
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"transaction": 123,
"content_type": 123,
"reviewed_at": "2023-11-07T05:31:56Z",
"status": "pending",
"confidence_score": 0.5,
"reason": "<string>",
"snapshot": "<unknown>",
"auto_applied": true,
"applied_payment_kind": "AIP",
"applied_payment_id": 0,
"threshold_at_apply": 0.5,
"agent_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reverted_at": "2023-11-07T05:31:56Z",
"reviewed_by": 123,
"reverted_by": 123
}Retrieve Transaction Match
curl --request GET \
--url https://api.meetcampfire.com/coa/api/transaction-matches/{id}import requests
url = "https://api.meetcampfire.com/coa/api/transaction-matches/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/transaction-matches/{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.meetcampfire.com/coa/api/transaction-matches/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.meetcampfire.com/coa/api/transaction-matches/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.meetcampfire.com/coa/api/transaction-matches/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/transaction-matches/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 123,
"matched_object": "<string>",
"app_label": "<string>",
"model": "<string>",
"drafts": "<string>",
"object_id": 1073741823,
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"transaction": 123,
"content_type": 123,
"reviewed_at": "2023-11-07T05:31:56Z",
"status": "pending",
"confidence_score": 0.5,
"reason": "<string>",
"snapshot": "<unknown>",
"auto_applied": true,
"applied_payment_kind": "AIP",
"applied_payment_id": 0,
"threshold_at_apply": 0.5,
"agent_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reverted_at": "2023-11-07T05:31:56Z",
"reviewed_by": 123,
"reverted_by": 123
}Path Parameters
Response
0 <= x <= 2147483647pending- Pendingdraft- Draftaccepted- Acceptedrejected- Rejectedreverted- Reverted
pending, draft, accepted, rejected, reverted 0 <= x <= 1Why the matcher assigned this status (e.g. reference_surfaced, reference_auto_approved, needs_review, auto_approved). Display/observability only.
64Snapshot of transaction data preserved for training data when the transaction is deleted.
True when the matcher committed this match as accepted without human review. The durable auto-vs-human discriminator: reviewed_by is unreliable for this because the apply flow attributes the payment to the agent's attributed user.
Kind of payment created when this match was applied.
AIP- Invoice paymentABP- Bill payment
AIP, ABP ID of the AccountingInvoicePayment/AccountingBillPayment created when this match was applied. Plain integer, not a FK: the match record must outlive the payment.
-9223372036854776000 <= x <= 9223372036854776000The agent's auto-approve confidence threshold at the moment this match auto-applied.
0 <= x <= 1AgentRun that produced this match. Plain UUID, not a FK: the audit record must outlive the run. Enables group-by-run views and bulk undo.
User whose undo (or payment void/delete) reverted this applied match.