Delete Intercompany Journal Entry
curl --request DELETE \
--url https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}import requests
url = "https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{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/intercompany-journal-entry/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyCore Accounting
Delete Intercompany Journal Entry
Permanently deletes an intercompany journal entry and all related transactions.
This endpoint performs a comprehensive cleanup when deleting an intercompany journal entry:
- Validates that the entry can be deleted (not in closed period)
- Removes all associated journal entries across entities
- Updates summary tables and account balances
- Handles cascade deletion of related transactions
- Ensures data integrity across the accounting system
Deletion restrictions:
- Cannot delete entries in closed accounting periods
Error conditions:
- 400 Bad Request: Entry date is in a closed period
- 409 Conflict: Entry has protected relationships (e.g., close checklist tasks)
- 404 Not Found: Entry does not exist or user lacks access
On successful deletion, all related journal entries are removed and accounting summaries are recalculated.
DELETE
/
coa
/
api
/
intercompany-journal-entry
/
{id}
Delete Intercompany Journal Entry
curl --request DELETE \
--url https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}import requests
url = "https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{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/intercompany-journal-entry/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/intercompany-journal-entry/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyPath Parameters
Response
204
No response body