Skip to main content
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

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

account
integer
required
transaction_id
string<uuid>
external_transaction_id
string | null
Maximum string length: 200
currency
string
Maximum string length: 3
amount
number<double> | null
Required range: -1000000000000000000 < x < 1000000000000000000
amount_native
number<double> | null
Required range: -1000000000000000000 < x < 1000000000000000000
posted_at
string<date-time> | null
status
string | null
Maximum string length: 250
note
string | null
Maximum string length: 1024
bank_description
string | null
external_memo
string | null
merchant_id
string | null
merchant_name
string | null
merchant_nickname
string | null
kind
string | null
excluded
boolean
assigned
boolean
metadata
unknown

Response

201 - application/json
id
integer
required
read-only
is_deleted
boolean
default:false
required
read-only
deleted_at
string<date-time> | null
required
read-only
account_name
string
required
read-only
entity_name
string | null
required
read-only
date_month
string | null
required
read-only
date_year
string | null
required
read-only
journal
integer | null
required
read-only
journal_order
string | null
required
read-only
intercompany_journal
integer | null
required
read-only
reconciliation_report
integer
required
read-only
reconciliation_report_ending_date
string<date>
required
read-only
last_modified_at
string<date-time>
required
read-only
created_at
string<date-time>
required
read-only
customer
integer
required
read-only
account
integer
required
transaction_id
string<uuid>
external_transaction_id
string | null
Maximum string length: 200
currency
string
Maximum string length: 3
amount
number<double> | null
Required range: -1000000000000000000 < x < 1000000000000000000
amount_native
number<double> | null
Required range: -1000000000000000000 < x < 1000000000000000000
posted_at
string<date-time> | null
status
string | null
Maximum string length: 250
note
string | null
Maximum string length: 1024
bank_description
string | null
external_memo
string | null
merchant_id
string | null
merchant_name
string | null
merchant_nickname
string | null
kind
string | null
excluded
boolean
assigned
boolean
metadata
unknown