Create Bank Transaction
curl --request POST \
--url https://api.meetcampfire.com/ca/api/transaction \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account": 123,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_transaction_id": "<string>",
"currency": "<string>",
"amount": 0,
"amount_native": 0,
"posted_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"note": "<string>",
"bank_description": "<string>",
"external_memo": "<string>",
"merchant_id": "<string>",
"merchant_name": "<string>",
"merchant_nickname": "<string>",
"kind": "<string>",
"excluded": true,
"assigned": true,
"metadata": null
}
'import requests
url = "https://api.meetcampfire.com/ca/api/transaction"
payload = {
"account": 123,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_transaction_id": "<string>",
"currency": "<string>",
"amount": 0,
"amount_native": 0,
"posted_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"note": "<string>",
"bank_description": "<string>",
"external_memo": "<string>",
"merchant_id": "<string>",
"merchant_name": "<string>",
"merchant_nickname": "<string>",
"kind": "<string>",
"excluded": True,
"assigned": True,
"metadata": None
}
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({
account: 123,
transaction_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
external_transaction_id: '<string>',
currency: '<string>',
amount: 0,
amount_native: 0,
posted_at: '2023-11-07T05:31:56Z',
status: '<string>',
note: '<string>',
bank_description: '<string>',
external_memo: '<string>',
merchant_id: '<string>',
merchant_name: '<string>',
merchant_nickname: '<string>',
kind: '<string>',
excluded: true,
assigned: true,
metadata: null
})
};
fetch('https://api.meetcampfire.com/ca/api/transaction', 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/transaction",
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([
'account' => 123,
'transaction_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'external_transaction_id' => '<string>',
'currency' => '<string>',
'amount' => 0,
'amount_native' => 0,
'posted_at' => '2023-11-07T05:31:56Z',
'status' => '<string>',
'note' => '<string>',
'bank_description' => '<string>',
'external_memo' => '<string>',
'merchant_id' => '<string>',
'merchant_name' => '<string>',
'merchant_nickname' => '<string>',
'kind' => '<string>',
'excluded' => true,
'assigned' => true,
'metadata' => null
]),
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/transaction"
payload := strings.NewReader("{\n \"account\": 123,\n \"transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_transaction_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": 0,\n \"amount_native\": 0,\n \"posted_at\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_description\": \"<string>\",\n \"external_memo\": \"<string>\",\n \"merchant_id\": \"<string>\",\n \"merchant_name\": \"<string>\",\n \"merchant_nickname\": \"<string>\",\n \"kind\": \"<string>\",\n \"excluded\": true,\n \"assigned\": true,\n \"metadata\": null\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/transaction")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account\": 123,\n \"transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_transaction_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": 0,\n \"amount_native\": 0,\n \"posted_at\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_description\": \"<string>\",\n \"external_memo\": \"<string>\",\n \"merchant_id\": \"<string>\",\n \"merchant_name\": \"<string>\",\n \"merchant_nickname\": \"<string>\",\n \"kind\": \"<string>\",\n \"excluded\": true,\n \"assigned\": true,\n \"metadata\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/transaction")
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 \"account\": 123,\n \"transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_transaction_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": 0,\n \"amount_native\": 0,\n \"posted_at\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_description\": \"<string>\",\n \"external_memo\": \"<string>\",\n \"merchant_id\": \"<string>\",\n \"merchant_name\": \"<string>\",\n \"merchant_nickname\": \"<string>\",\n \"kind\": \"<string>\",\n \"excluded\": true,\n \"assigned\": true,\n \"metadata\": null\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"account_name": "<string>",
"entity_name": "<string>",
"date_month": "<string>",
"date_year": "<string>",
"journal": 123,
"journal_order": "<string>",
"intercompany_journal": 123,
"reconciliation_report": 123,
"reconciliation_report_ending_date": "2023-12-25",
"last_modified_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"account": 123,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_transaction_id": "<string>",
"currency": "<string>",
"amount": 0,
"amount_native": 0,
"posted_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"note": "<string>",
"bank_description": "<string>",
"external_memo": "<string>",
"merchant_id": "<string>",
"merchant_name": "<string>",
"merchant_nickname": "<string>",
"kind": "<string>",
"excluded": true,
"assigned": true,
"metadata": null
}Cash Management
Create Bank Transaction
Create a new bank transaction
POST
/
ca
/
api
/
transaction
Create Bank Transaction
curl --request POST \
--url https://api.meetcampfire.com/ca/api/transaction \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account": 123,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_transaction_id": "<string>",
"currency": "<string>",
"amount": 0,
"amount_native": 0,
"posted_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"note": "<string>",
"bank_description": "<string>",
"external_memo": "<string>",
"merchant_id": "<string>",
"merchant_name": "<string>",
"merchant_nickname": "<string>",
"kind": "<string>",
"excluded": true,
"assigned": true,
"metadata": null
}
'import requests
url = "https://api.meetcampfire.com/ca/api/transaction"
payload = {
"account": 123,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_transaction_id": "<string>",
"currency": "<string>",
"amount": 0,
"amount_native": 0,
"posted_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"note": "<string>",
"bank_description": "<string>",
"external_memo": "<string>",
"merchant_id": "<string>",
"merchant_name": "<string>",
"merchant_nickname": "<string>",
"kind": "<string>",
"excluded": True,
"assigned": True,
"metadata": None
}
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({
account: 123,
transaction_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
external_transaction_id: '<string>',
currency: '<string>',
amount: 0,
amount_native: 0,
posted_at: '2023-11-07T05:31:56Z',
status: '<string>',
note: '<string>',
bank_description: '<string>',
external_memo: '<string>',
merchant_id: '<string>',
merchant_name: '<string>',
merchant_nickname: '<string>',
kind: '<string>',
excluded: true,
assigned: true,
metadata: null
})
};
fetch('https://api.meetcampfire.com/ca/api/transaction', 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/transaction",
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([
'account' => 123,
'transaction_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'external_transaction_id' => '<string>',
'currency' => '<string>',
'amount' => 0,
'amount_native' => 0,
'posted_at' => '2023-11-07T05:31:56Z',
'status' => '<string>',
'note' => '<string>',
'bank_description' => '<string>',
'external_memo' => '<string>',
'merchant_id' => '<string>',
'merchant_name' => '<string>',
'merchant_nickname' => '<string>',
'kind' => '<string>',
'excluded' => true,
'assigned' => true,
'metadata' => null
]),
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/transaction"
payload := strings.NewReader("{\n \"account\": 123,\n \"transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_transaction_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": 0,\n \"amount_native\": 0,\n \"posted_at\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_description\": \"<string>\",\n \"external_memo\": \"<string>\",\n \"merchant_id\": \"<string>\",\n \"merchant_name\": \"<string>\",\n \"merchant_nickname\": \"<string>\",\n \"kind\": \"<string>\",\n \"excluded\": true,\n \"assigned\": true,\n \"metadata\": null\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/transaction")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account\": 123,\n \"transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_transaction_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": 0,\n \"amount_native\": 0,\n \"posted_at\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_description\": \"<string>\",\n \"external_memo\": \"<string>\",\n \"merchant_id\": \"<string>\",\n \"merchant_name\": \"<string>\",\n \"merchant_nickname\": \"<string>\",\n \"kind\": \"<string>\",\n \"excluded\": true,\n \"assigned\": true,\n \"metadata\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/ca/api/transaction")
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 \"account\": 123,\n \"transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_transaction_id\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": 0,\n \"amount_native\": 0,\n \"posted_at\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_description\": \"<string>\",\n \"external_memo\": \"<string>\",\n \"merchant_id\": \"<string>\",\n \"merchant_name\": \"<string>\",\n \"merchant_nickname\": \"<string>\",\n \"kind\": \"<string>\",\n \"excluded\": true,\n \"assigned\": true,\n \"metadata\": null\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"account_name": "<string>",
"entity_name": "<string>",
"date_month": "<string>",
"date_year": "<string>",
"journal": 123,
"journal_order": "<string>",
"intercompany_journal": 123,
"reconciliation_report": 123,
"reconciliation_report_ending_date": "2023-12-25",
"last_modified_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"customer": 123,
"account": 123,
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_transaction_id": "<string>",
"currency": "<string>",
"amount": 0,
"amount_native": 0,
"posted_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"note": "<string>",
"bank_description": "<string>",
"external_memo": "<string>",
"merchant_id": "<string>",
"merchant_name": "<string>",
"merchant_nickname": "<string>",
"kind": "<string>",
"excluded": true,
"assigned": true,
"metadata": null
}Authorizations
Token-based authentication with required prefix "Token"
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Maximum string length:
200Maximum string length:
3Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-1000000000000000000 < x < 1000000000000000000Maximum string length:
250Maximum string length:
1024Response
201 - application/json
Maximum string length:
200Maximum string length:
3Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-1000000000000000000 < x < 1000000000000000000Maximum string length:
250Maximum string length:
1024⌘I