Post Bank Feed
curl --request POST \
--url https://api.meetcampfire.com/ca/api/bank-feed/{account_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"balance": 0,
"available_balance": 0,
"balance_as_of_date": "2023-12-25",
"transactions": [
{}
]
}
'import requests
url = "https://api.meetcampfire.com/ca/api/bank-feed/{account_id}"
payload = {
"balance": 0,
"available_balance": 0,
"balance_as_of_date": "2023-12-25",
"transactions": [{}]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
balance: 0,
available_balance: 0,
balance_as_of_date: '2023-12-25',
transactions: [{}]
})
};
fetch('https://api.meetcampfire.com/ca/api/bank-feed/{account_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/ca/api/bank-feed/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'balance' => 0,
'available_balance' => 0,
'balance_as_of_date' => '2023-12-25',
'transactions' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/ca/api/bank-feed/{account_id}"
payload := strings.NewReader("{\n \"balance\": 0,\n \"available_balance\": 0,\n \"balance_as_of_date\": \"2023-12-25\",\n \"transactions\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meetcampfire.com/ca/api/bank-feed/{account_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"balance\": 0,\n \"available_balance\": 0,\n \"balance_as_of_date\": \"2023-12-25\",\n \"transactions\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/bank-feed/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"balance\": 0,\n \"available_balance\": 0,\n \"balance_as_of_date\": \"2023-12-25\",\n \"transactions\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Bank feed processed successfully",
"account_id": 123,
"submitted_count": 123,
"created_count": 123,
"skipped_count": 123,
"skipped_transactions": [
{
"external_transaction_id": "<string>",
"reason": "<string>"
}
],
"failed_count": 123,
"failed_transactions": [
{
"external_transaction_id": "<string>",
"reason": "<string>"
}
]
}Cash Management
Post Bank Feed
Ingest bank feed data for a specific bank account. Creates bank transactions with corresponding journal entries, updates account balances, and triggers auto-categorization.
POST
/
ca
/
api
/
bank-feed
/
{account_id}
Post Bank Feed
curl --request POST \
--url https://api.meetcampfire.com/ca/api/bank-feed/{account_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"balance": 0,
"available_balance": 0,
"balance_as_of_date": "2023-12-25",
"transactions": [
{}
]
}
'import requests
url = "https://api.meetcampfire.com/ca/api/bank-feed/{account_id}"
payload = {
"balance": 0,
"available_balance": 0,
"balance_as_of_date": "2023-12-25",
"transactions": [{}]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
balance: 0,
available_balance: 0,
balance_as_of_date: '2023-12-25',
transactions: [{}]
})
};
fetch('https://api.meetcampfire.com/ca/api/bank-feed/{account_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/ca/api/bank-feed/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'balance' => 0,
'available_balance' => 0,
'balance_as_of_date' => '2023-12-25',
'transactions' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/ca/api/bank-feed/{account_id}"
payload := strings.NewReader("{\n \"balance\": 0,\n \"available_balance\": 0,\n \"balance_as_of_date\": \"2023-12-25\",\n \"transactions\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meetcampfire.com/ca/api/bank-feed/{account_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"balance\": 0,\n \"available_balance\": 0,\n \"balance_as_of_date\": \"2023-12-25\",\n \"transactions\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/bank-feed/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"balance\": 0,\n \"available_balance\": 0,\n \"balance_as_of_date\": \"2023-12-25\",\n \"transactions\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Bank feed processed successfully",
"account_id": 123,
"submitted_count": 123,
"created_count": 123,
"skipped_count": 123,
"skipped_transactions": [
{
"external_transaction_id": "<string>",
"reason": "<string>"
}
],
"failed_count": 123,
"failed_transactions": [
{
"external_transaction_id": "<string>",
"reason": "<string>"
}
]
}Authorizations
Token-based authentication with required prefix "Token"
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
⌘I