curl --request PUT \
--url https://api.meetcampfire.com/coa/api/transaction-matches/{id} \
--header 'Content-Type: application/json' \
--data '
{
"object_id": 1073741823,
"customer": 123,
"transaction": 123,
"content_type": 123,
"reviewed_at": "2023-11-07T05:31:56Z",
"confidence_score": 0.5,
"reason": "<string>",
"snapshot": "<unknown>",
"auto_applied": true,
"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
}
'import requests
url = "https://api.meetcampfire.com/coa/api/transaction-matches/{id}"
payload = {
"object_id": 1073741823,
"customer": 123,
"transaction": 123,
"content_type": 123,
"reviewed_at": "2023-11-07T05:31:56Z",
"confidence_score": 0.5,
"reason": "<string>",
"snapshot": "<unknown>",
"auto_applied": True,
"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
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
object_id: 1073741823,
customer: 123,
transaction: 123,
content_type: 123,
reviewed_at: '2023-11-07T05:31:56Z',
confidence_score: 0.5,
reason: '<string>',
snapshot: '<unknown>',
auto_applied: true,
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
})
};
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 => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'object_id' => 1073741823,
'customer' => 123,
'transaction' => 123,
'content_type' => 123,
'reviewed_at' => '2023-11-07T05:31:56Z',
'confidence_score' => 0.5,
'reason' => '<string>',
'snapshot' => '<unknown>',
'auto_applied' => true,
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/transaction-matches/{id}"
payload := strings.NewReader("{\n \"object_id\": 1073741823,\n \"customer\": 123,\n \"transaction\": 123,\n \"content_type\": 123,\n \"reviewed_at\": \"2023-11-07T05:31:56Z\",\n \"confidence_score\": 0.5,\n \"reason\": \"<string>\",\n \"snapshot\": \"<unknown>\",\n \"auto_applied\": true,\n \"applied_payment_id\": 0,\n \"threshold_at_apply\": 0.5,\n \"agent_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"reverted_at\": \"2023-11-07T05:31:56Z\",\n \"reviewed_by\": 123,\n \"reverted_by\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.meetcampfire.com/coa/api/transaction-matches/{id}")
.header("Content-Type", "application/json")
.body("{\n \"object_id\": 1073741823,\n \"customer\": 123,\n \"transaction\": 123,\n \"content_type\": 123,\n \"reviewed_at\": \"2023-11-07T05:31:56Z\",\n \"confidence_score\": 0.5,\n \"reason\": \"<string>\",\n \"snapshot\": \"<unknown>\",\n \"auto_applied\": true,\n \"applied_payment_id\": 0,\n \"threshold_at_apply\": 0.5,\n \"agent_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"reverted_at\": \"2023-11-07T05:31:56Z\",\n \"reviewed_by\": 123,\n \"reverted_by\": 123\n}")
.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::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"object_id\": 1073741823,\n \"customer\": 123,\n \"transaction\": 123,\n \"content_type\": 123,\n \"reviewed_at\": \"2023-11-07T05:31:56Z\",\n \"confidence_score\": 0.5,\n \"reason\": \"<string>\",\n \"snapshot\": \"<unknown>\",\n \"auto_applied\": true,\n \"applied_payment_id\": 0,\n \"threshold_at_apply\": 0.5,\n \"agent_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"reverted_at\": \"2023-11-07T05:31:56Z\",\n \"reviewed_by\": 123,\n \"reverted_by\": 123\n}"
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
}Update Transaction Match
curl --request PUT \
--url https://api.meetcampfire.com/coa/api/transaction-matches/{id} \
--header 'Content-Type: application/json' \
--data '
{
"object_id": 1073741823,
"customer": 123,
"transaction": 123,
"content_type": 123,
"reviewed_at": "2023-11-07T05:31:56Z",
"confidence_score": 0.5,
"reason": "<string>",
"snapshot": "<unknown>",
"auto_applied": true,
"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
}
'import requests
url = "https://api.meetcampfire.com/coa/api/transaction-matches/{id}"
payload = {
"object_id": 1073741823,
"customer": 123,
"transaction": 123,
"content_type": 123,
"reviewed_at": "2023-11-07T05:31:56Z",
"confidence_score": 0.5,
"reason": "<string>",
"snapshot": "<unknown>",
"auto_applied": True,
"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
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
object_id: 1073741823,
customer: 123,
transaction: 123,
content_type: 123,
reviewed_at: '2023-11-07T05:31:56Z',
confidence_score: 0.5,
reason: '<string>',
snapshot: '<unknown>',
auto_applied: true,
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
})
};
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 => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'object_id' => 1073741823,
'customer' => 123,
'transaction' => 123,
'content_type' => 123,
'reviewed_at' => '2023-11-07T05:31:56Z',
'confidence_score' => 0.5,
'reason' => '<string>',
'snapshot' => '<unknown>',
'auto_applied' => true,
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/transaction-matches/{id}"
payload := strings.NewReader("{\n \"object_id\": 1073741823,\n \"customer\": 123,\n \"transaction\": 123,\n \"content_type\": 123,\n \"reviewed_at\": \"2023-11-07T05:31:56Z\",\n \"confidence_score\": 0.5,\n \"reason\": \"<string>\",\n \"snapshot\": \"<unknown>\",\n \"auto_applied\": true,\n \"applied_payment_id\": 0,\n \"threshold_at_apply\": 0.5,\n \"agent_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"reverted_at\": \"2023-11-07T05:31:56Z\",\n \"reviewed_by\": 123,\n \"reverted_by\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.meetcampfire.com/coa/api/transaction-matches/{id}")
.header("Content-Type", "application/json")
.body("{\n \"object_id\": 1073741823,\n \"customer\": 123,\n \"transaction\": 123,\n \"content_type\": 123,\n \"reviewed_at\": \"2023-11-07T05:31:56Z\",\n \"confidence_score\": 0.5,\n \"reason\": \"<string>\",\n \"snapshot\": \"<unknown>\",\n \"auto_applied\": true,\n \"applied_payment_id\": 0,\n \"threshold_at_apply\": 0.5,\n \"agent_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"reverted_at\": \"2023-11-07T05:31:56Z\",\n \"reviewed_by\": 123,\n \"reverted_by\": 123\n}")
.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::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"object_id\": 1073741823,\n \"customer\": 123,\n \"transaction\": 123,\n \"content_type\": 123,\n \"reviewed_at\": \"2023-11-07T05:31:56Z\",\n \"confidence_score\": 0.5,\n \"reason\": \"<string>\",\n \"snapshot\": \"<unknown>\",\n \"auto_applied\": true,\n \"applied_payment_id\": 0,\n \"threshold_at_apply\": 0.5,\n \"agent_run_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"reverted_at\": \"2023-11-07T05:31:56Z\",\n \"reviewed_by\": 123,\n \"reverted_by\": 123\n}"
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
Body
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.
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.