Skip to main content
POST
/
coa
/
api
/
intercompany-journal-entry
Create Intercompany Journal Entry
curl --request POST \
  --url https://api.meetcampfire.com/coa/api/intercompany-journal-entry \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reversal_date": "2023-12-25",
  "order": "<string>",
  "journals_to_delete": [
    123
  ],
  "exchange_rates": "<unknown>",
  "source": "<string>",
  "source_file": 123,
  "close_task_id": "<string>",
  "chat_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memo": "<string>",
  "currency": "<string>",
  "created_automatically": true,
  "date": "2023-12-25",
  "ref_number": "<string>",
  "reversal_of": 123,
  "entities": [
    123
  ]
}
'
import requests

url = "https://api.meetcampfire.com/coa/api/intercompany-journal-entry"

payload = {
"reversal_date": "2023-12-25",
"order": "<string>",
"journals_to_delete": [123],
"exchange_rates": "<unknown>",
"source": "<string>",
"source_file": 123,
"close_task_id": "<string>",
"chat_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"journal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"currency": "<string>",
"created_automatically": True,
"date": "2023-12-25",
"ref_number": "<string>",
"reversal_of": 123,
"entities": [123]
}
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({
reversal_date: '2023-12-25',
order: '<string>',
journals_to_delete: [123],
exchange_rates: '<unknown>',
source: '<string>',
source_file: 123,
close_task_id: '<string>',
chat_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
journal_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
memo: '<string>',
currency: '<string>',
created_automatically: true,
date: '2023-12-25',
ref_number: '<string>',
reversal_of: 123,
entities: [123]
})
};

fetch('https://api.meetcampfire.com/coa/api/intercompany-journal-entry', 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/intercompany-journal-entry",
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([
'reversal_date' => '2023-12-25',
'order' => '<string>',
'journals_to_delete' => [
123
],
'exchange_rates' => '<unknown>',
'source' => '<string>',
'source_file' => 123,
'close_task_id' => '<string>',
'chat_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'journal_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'memo' => '<string>',
'currency' => '<string>',
'created_automatically' => true,
'date' => '2023-12-25',
'ref_number' => '<string>',
'reversal_of' => 123,
'entities' => [
123
]
]),
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/coa/api/intercompany-journal-entry"

payload := strings.NewReader("{\n \"reversal_date\": \"2023-12-25\",\n \"order\": \"<string>\",\n \"journals_to_delete\": [\n 123\n ],\n \"exchange_rates\": \"<unknown>\",\n \"source\": \"<string>\",\n \"source_file\": 123,\n \"close_task_id\": \"<string>\",\n \"chat_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"journal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"memo\": \"<string>\",\n \"currency\": \"<string>\",\n \"created_automatically\": true,\n \"date\": \"2023-12-25\",\n \"ref_number\": \"<string>\",\n \"reversal_of\": 123,\n \"entities\": [\n 123\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/coa/api/intercompany-journal-entry")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reversal_date\": \"2023-12-25\",\n \"order\": \"<string>\",\n \"journals_to_delete\": [\n 123\n ],\n \"exchange_rates\": \"<unknown>\",\n \"source\": \"<string>\",\n \"source_file\": 123,\n \"close_task_id\": \"<string>\",\n \"chat_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"journal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"memo\": \"<string>\",\n \"currency\": \"<string>\",\n \"created_automatically\": true,\n \"date\": \"2023-12-25\",\n \"ref_number\": \"<string>\",\n \"reversal_of\": 123,\n \"entities\": [\n 123\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.meetcampfire.com/coa/api/intercompany-journal-entry")

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 \"reversal_date\": \"2023-12-25\",\n \"order\": \"<string>\",\n \"journals_to_delete\": [\n 123\n ],\n \"exchange_rates\": \"<unknown>\",\n \"source\": \"<string>\",\n \"source_file\": 123,\n \"close_task_id\": \"<string>\",\n \"chat_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"journal_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"memo\": \"<string>\",\n \"currency\": \"<string>\",\n \"created_automatically\": true,\n \"date\": \"2023-12-25\",\n \"ref_number\": \"<string>\",\n \"reversal_of\": 123,\n \"entities\": [\n 123\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "id": 331,
  "attachments": [],
  "reversals": [
    {
      "id": 332,
      "order": "0004361"
    }
  ],
  "order": "0004360",
  "type": "journal_entry",
  "journal_id": "bf3fb423-12a9-47cb-9dca-18e6b9d8296b",
  "memo": "Example Inter-company Journal",
  "currency": "USD",
  "created_automatically": false,
  "date": "2025-07-25",
  "ref_number": null,
  "created_at": "2025-07-25T03:45:59+0000",
  "last_modified_at": "2025-07-25T03:45:59+0000",
  "reversal_of": null,
  "transactions": [
    {
      "id": 24429466,
      "entity_name": "Top Level",
      "entity_currency": "USD",
      "account_name": "1000 - Cash and Cash Equivalents",
      "account_number": "1000",
      "vendor_name": "ABC Bead Supply",
      "department_name": "Executive",
      "parent_department_name": "General and Administrative",
      "parent_department": 108,
      "tags": [
        {
          "id": 8304,
          "group_name": "Region",
          "parent_name": null,
          "parent": null,
          "name": "North America",
          "created_at": "2025-07-10T20:50:45+0000",
          "last_modified_at": "2025-07-10T20:50:45+0000",
          "group": 669
        }
      ],
      "journal": 7491947,
      "journal_order": "0004360",
      "journal_memo": "Example Inter-company Journal",
      "journal_type": "journal_entry",
      "intercompany_journal": 331,
      "created_automatically": false,
      "journal_attachments": [],
      "journal_type_name": "Journal Entry",
      "invoice": null,
      "bill": null,
      "date_month": "07",
      "date_year": "2025",
      "balance_after_transaction": 9876.54,
      "account": 180564,
      "last_modified_by_name": "Zack Moss",
      "account_type": "ASSET",
      "files": [],
      "file_names": [],
      "amount": 9876.54,
      "amount_native": 9876.54,
      "amount_book": 9876.54,
      "amortization_schedule": [],
      "transaction_id": "393478d2-b523-4b42-bbd1-5952a7fd5eb1",
      "debit_amount": 9876.54,
      "credit_amount": null,
      "debit_amount_book": 9876.54,
      "credit_amount_book": null,
      "debit_amount_native": 9876.54,
      "credit_amount_native": null,
      "currency": "USD",
      "exchange_rate": 1,
      "exchange_rate_book": 1,
      "posted_at": "2025-07-25",
      "merchant_name": null,
      "bank_description": "Example Inter-company Journal ",
      "note": null,
      "balance_before_transaction": null,
      "created_at": "2025-07-25T03:45:59+0000",
      "external_id": null,
      "needs_review": false,
      "last_modified_at": "2025-07-25T03:45:59+0000",
      "draft_matches": null,
      "entity": 54,
      "parent_bank_transaction": null,
      "vendor": 34182,
      "department": 364,
      "last_modified_by": 904
    },
    {
      "id": 24429467,
      "entity_name": "Top Level",
      "entity_currency": "USD",
      "account_name": "1900 - Intercompany Accounts Receivable",
      "account_number": "1900",
      "tags": [],
      "journal": 7491947,
      "journal_order": "0004360",
      "journal_memo": "Example Inter-company Journal",
      "journal_type": "journal_entry",
      "intercompany_journal": 331,
      "created_automatically": false,
      "journal_attachments": [],
      "journal_type_name": "Journal Entry",
      "invoice": null,
      "bill": null,
      "date_month": "07",
      "date_year": "2025",
      "balance_after_transaction": -9876.54,
      "account": 14239,
      "last_modified_by_name": "Zack Moss",
      "account_type": "ASSET",
      "files": [],
      "file_names": [],
      "amount": 9876.54,
      "amount_native": 9876.54,
      "amount_book": 9876.54,
      "amortization_schedule": [],
      "transaction_id": "daeefb8c-b548-47dc-8546-cac1e3e745b3",
      "debit_amount": null,
      "credit_amount": 9876.54,
      "debit_amount_book": null,
      "credit_amount_book": 9876.54,
      "debit_amount_native": null,
      "credit_amount_native": 9876.54,
      "currency": "USD",
      "exchange_rate": 1,
      "exchange_rate_book": 1,
      "posted_at": "2025-07-25",
      "merchant_name": null,
      "bank_description": "Example Inter-company Journal ",
      "note": null,
      "balance_before_transaction": null,
      "created_at": "2025-07-25T03:45:59+0000",
      "external_id": null,
      "needs_review": false,
      "last_modified_at": "2025-07-25T03:45:59+0000",
      "draft_matches": null,
      "entity": 54,
      "parent_bank_transaction": null,
      "vendor": null,
      "department": null,
      "last_modified_by": 904
    },
    {
      "id": 24429470,
      "entity_name": "Eliminations",
      "entity_currency": "USD",
      "account_name": "1014 - JPMC Cash",
      "account_number": "1014",
      "tags": [],
      "journal": 7491949,
      "journal_order": "0004360",
      "journal_memo": "Example Inter-company Journal",
      "journal_type": "journal_entry",
      "intercompany_journal": 331,
      "created_automatically": false,
      "journal_attachments": [],
      "journal_type_name": "Journal Entry",
      "invoice": null,
      "bill": null,
      "date_month": "07",
      "date_year": "2025",
      "balance_after_transaction": -9876.54,
      "account": 8855,
      "last_modified_by_name": "Zack Moss",
      "account_type": "ASSET",
      "parent_account_name": "Cash and Cash Equivalents",
      "files": [],
      "file_names": [],
      "amount": 9876.54,
      "amount_native": 9876.54,
      "amount_book": 9876.54,
      "amortization_schedule": [],
      "transaction_id": "058c8386-3a78-4477-97aa-2fe2427a982a",
      "debit_amount": null,
      "credit_amount": 9876.54,
      "debit_amount_book": null,
      "credit_amount_book": 9876.54,
      "debit_amount_native": null,
      "credit_amount_native": 9876.54,
      "currency": "USD",
      "exchange_rate": 1,
      "exchange_rate_book": 1,
      "posted_at": "2025-07-25",
      "merchant_name": null,
      "bank_description": "Example Inter-company Journal ",
      "note": null,
      "balance_before_transaction": null,
      "created_at": "2025-07-25T03:46:00+0000",
      "external_id": null,
      "needs_review": false,
      "last_modified_at": "2025-07-25T03:46:00+0000",
      "draft_matches": null,
      "entity": 55,
      "parent_bank_transaction": null,
      "vendor": null,
      "department": null,
      "last_modified_by": 904
    },
    {
      "id": 24429471,
      "entity_name": "Eliminations",
      "entity_currency": "USD",
      "account_name": "2020 - Intercompany Accounts Payable",
      "account_number": "2020",
      "tags": [],
      "journal": 7491949,
      "journal_order": "0004360",
      "journal_memo": "Example Inter-company Journal",
      "journal_type": "journal_entry",
      "intercompany_journal": 331,
      "created_automatically": false,
      "journal_attachments": [],
      "journal_type_name": "Journal Entry",
      "invoice": null,
      "bill": null,
      "date_month": "07",
      "date_year": "2025",
      "balance_after_transaction": -9876.54,
      "account": 14240,
      "last_modified_by_name": "Zack Moss",
      "account_type": "LIABILITY",
      "files": [],
      "file_names": [],
      "amount": 9876.54,
      "amount_native": 9876.54,
      "amount_book": 9876.54,
      "amortization_schedule": [],
      "transaction_id": "04e16db2-5df1-4a7d-8d13-be0bad45ccdf",
      "debit_amount": 9876.54,
      "credit_amount": null,
      "debit_amount_book": 9876.54,
      "credit_amount_book": null,
      "debit_amount_native": 9876.54,
      "credit_amount_native": null,
      "currency": "USD",
      "exchange_rate": 1,
      "exchange_rate_book": 1,
      "posted_at": "2025-07-25",
      "merchant_name": null,
      "bank_description": "Example Inter-company Journal ",
      "note": null,
      "balance_before_transaction": null,
      "created_at": "2025-07-25T03:46:00+0000",
      "external_id": null,
      "needs_review": false,
      "last_modified_at": "2025-07-25T03:46:00+0000",
      "draft_matches": null,
      "entity": 55,
      "parent_bank_transaction": null,
      "vendor": null,
      "department": null,
      "last_modified_by": 904
    }
  ],
  "exchange_rates": [
    {
      "entity": 54,
      "entity_name": "Top Level",
      "originating_currency": "USD",
      "target_currency": "USD",
      "exchange_rate": 1
    },
    {
      "entity": 55,
      "entity_name": "Eliminations",
      "originating_currency": "USD",
      "target_currency": "USD",
      "exchange_rate": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

reversal_date
string<date> | null
write-only
order
string
journals_to_delete
integer[]
write-only
exchange_rates
any
source
string | null
source_file
integer | null
close_task_id
string
chat_uuid
string<uuid>
write-only
type
enum<string>
  • bill - Bill
  • bill_payment - Bill Payment
  • bill_prepayment - Bill Prepayment
  • check - Check
  • credit_card - Credit Card
  • credit_memo - Credit Memo
  • credit_memo_payment - Credit Memo Payment
  • debit_memo - Debit Memo
  • debit_memo_payment - Debit Memo Payment
  • deposit - Deposit
  • expense - Expense
  • invoice - Invoice
  • intercompany_journal - Intercompany Journal
  • invoice_payment - Invoice Payment
  • journal_entry - Journal Entry
  • lease - Lease
  • payment - Payment
  • receive_payment - Receive Payment
  • refund - Refund
  • revenue_recognition - Revenue Recognition
  • sales_receipt - Sales Receipt
  • transfer - Transfer
  • vendor_credit - Vendor Credit
  • void_bill - Void Bill
  • void_bill_payment - Void Bill Payment
  • void_invoice_payment - Void Invoice Payment
  • void_credit_memo - Void Credit Memo
  • void_credit_memo_payment - Void Credit Memo Payment
  • void_debit_memo_payment - Void Debit Memo Payment
  • void_invoice - Void Invoice
  • elimination - Elimination
  • revaluation - Revaluation
  • asset_reclassification - Asset Reclassification
Available options:
bill,
bill_payment,
bill_prepayment,
check,
credit_card,
credit_memo,
credit_memo_payment,
debit_memo,
debit_memo_payment,
deposit,
expense,
invoice,
intercompany_journal,
invoice_payment,
journal_entry,
lease,
payment,
receive_payment,
refund,
revenue_recognition,
sales_receipt,
transfer,
vendor_credit,
void_bill,
void_bill_payment,
void_invoice_payment,
void_credit_memo,
void_credit_memo_payment,
void_debit_memo_payment,
void_invoice,
elimination,
revaluation,
asset_reclassification
journal_id
string<uuid>
memo
string | null
Maximum string length: 1024
currency
string
Maximum string length: 3
created_automatically
boolean
date
string<date>
ref_number
string | null
Maximum string length: 100
reversal_of
integer | null
entities
integer[]

Entities involved in this intercompany journal entry. Used for consolidation filtering.

Response

201 - application/json
id
integer
required
read-only
transactions
object[]
required
read-only
attachments
object[]
required
read-only
reversal_of_order
string
required
read-only
reversals
object[]
required
read-only
is_deleted
boolean
default:false
required
read-only
deleted_at
string<date-time> | null
required
read-only
created_at
string<date-time>
required
read-only
last_modified_at
string<date-time>
required
read-only
customer
integer
required
read-only
order
string
source
string | null
source_file
integer | null
close_task_id
string
type
enum<string>
  • bill - Bill
  • bill_payment - Bill Payment
  • bill_prepayment - Bill Prepayment
  • check - Check
  • credit_card - Credit Card
  • credit_memo - Credit Memo
  • credit_memo_payment - Credit Memo Payment
  • debit_memo - Debit Memo
  • debit_memo_payment - Debit Memo Payment
  • deposit - Deposit
  • expense - Expense
  • invoice - Invoice
  • intercompany_journal - Intercompany Journal
  • invoice_payment - Invoice Payment
  • journal_entry - Journal Entry
  • lease - Lease
  • payment - Payment
  • receive_payment - Receive Payment
  • refund - Refund
  • revenue_recognition - Revenue Recognition
  • sales_receipt - Sales Receipt
  • transfer - Transfer
  • vendor_credit - Vendor Credit
  • void_bill - Void Bill
  • void_bill_payment - Void Bill Payment
  • void_invoice_payment - Void Invoice Payment
  • void_credit_memo - Void Credit Memo
  • void_credit_memo_payment - Void Credit Memo Payment
  • void_debit_memo_payment - Void Debit Memo Payment
  • void_invoice - Void Invoice
  • elimination - Elimination
  • revaluation - Revaluation
  • asset_reclassification - Asset Reclassification
Available options:
bill,
bill_payment,
bill_prepayment,
check,
credit_card,
credit_memo,
credit_memo_payment,
debit_memo,
debit_memo_payment,
deposit,
expense,
invoice,
intercompany_journal,
invoice_payment,
journal_entry,
lease,
payment,
receive_payment,
refund,
revenue_recognition,
sales_receipt,
transfer,
vendor_credit,
void_bill,
void_bill_payment,
void_invoice_payment,
void_credit_memo,
void_credit_memo_payment,
void_debit_memo_payment,
void_invoice,
elimination,
revaluation,
asset_reclassification
journal_id
string<uuid>
memo
string | null
Maximum string length: 1024
currency
string
Maximum string length: 3
created_automatically
boolean
date
string<date>
ref_number
string | null
Maximum string length: 100
reversal_of
integer | null
entities
integer[]

Entities involved in this intercompany journal entry. Used for consolidation filtering.