Retrieve Allocation Sync Run
curl --request GET \
--url https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}import requests
url = "https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}', 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/cost-allocations/{id}/sync-runs/{run_pk}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/cost-allocations/{id}/sync-runs/{run_pk}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 123,
"allocation": 123,
"allocation_name": "<string>",
"trigger": "definition_edit",
"caused_by": 123,
"caused_by_name": "<string>",
"weights_used": null,
"periods_affected": "<unknown>",
"transactions_updated": 123,
"status": "queued",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"journal_entry": 123,
"created_at": "2023-11-07T05:31:56Z"
}Company Objects
Retrieve Allocation Sync Run
GET
/
coa
/
api
/
cost-allocations
/
{id}
/
sync-runs
/
{run_pk}
Retrieve Allocation Sync Run
curl --request GET \
--url https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}import requests
url = "https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}', 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/cost-allocations/{id}/sync-runs/{run_pk}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/cost-allocations/{id}/sync-runs/{run_pk}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/cost-allocations/{id}/sync-runs/{run_pk}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 123,
"allocation": 123,
"allocation_name": "<string>",
"trigger": "definition_edit",
"caused_by": 123,
"caused_by_name": "<string>",
"weights_used": null,
"periods_affected": "<unknown>",
"transactions_updated": 123,
"status": "queued",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"journal_entry": 123,
"created_at": "2023-11-07T05:31:56Z"
}Response
200 - application/json
definition_edit- Definition Editbalance_post- Balance Postfinalize- Finalizereopen- Reopenmanual- Manual
Available options:
definition_edit, balance_post, finalize, reopen, manual queued- Queuedrunning- Runningdone- Donefailed- Failed
Available options:
queued, running, done, failed