Create Budget
curl --request POST \
--url https://api.meetcampfire.com/coa/api/budgets \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"start_date": "2023-12-25",
"description": "<string>",
"cadence": "<string>",
"end_date": "2023-12-25",
"periods": 16383,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"currency": "<string>",
"entity": 123,
"department": 123
}
'import requests
url = "https://api.meetcampfire.com/coa/api/budgets"
payload = {
"name": "<string>",
"start_date": "2023-12-25",
"description": "<string>",
"cadence": "<string>",
"end_date": "2023-12-25",
"periods": 16383,
"tag_ids": [0],
"tag_group_ids": [0],
"currency": "<string>",
"entity": 123,
"department": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
start_date: '2023-12-25',
description: '<string>',
cadence: '<string>',
end_date: '2023-12-25',
periods: 16383,
tag_ids: [0],
tag_group_ids: [0],
currency: '<string>',
entity: 123,
department: 123
})
};
fetch('https://api.meetcampfire.com/coa/api/budgets', 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/budgets",
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([
'name' => '<string>',
'start_date' => '2023-12-25',
'description' => '<string>',
'cadence' => '<string>',
'end_date' => '2023-12-25',
'periods' => 16383,
'tag_ids' => [
0
],
'tag_group_ids' => [
0
],
'currency' => '<string>',
'entity' => 123,
'department' => 123
]),
CURLOPT_HTTPHEADER => [
"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/budgets"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"start_date\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"cadence\": \"<string>\",\n \"end_date\": \"2023-12-25\",\n \"periods\": 16383,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"currency\": \"<string>\",\n \"entity\": 123,\n \"department\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
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/budgets")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"start_date\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"cadence\": \"<string>\",\n \"end_date\": \"2023-12-25\",\n \"periods\": 16383,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"currency\": \"<string>\",\n \"entity\": 123,\n \"department\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/budgets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"start_date\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"cadence\": \"<string>\",\n \"end_date\": \"2023-12-25\",\n \"periods\": 16383,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"currency\": \"<string>\",\n \"entity\": 123,\n \"department\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"entity_name": "<string>",
"prior_start_date": "<string>",
"prior_end_date": "<string>",
"department_name": "<string>",
"tags": [
{}
],
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"start_date": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"description": "<string>",
"cadence": "<string>",
"end_date": "2023-12-25",
"periods": 16383,
"breakdown_type": "standard",
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"currency": "<string>",
"entity": 123,
"department": 123
}Core Accounting
Create Budget
Complete mixin for history filtering with pagination support. Returns either active OR deleted records based on include_deleted parameter.
POST
/
coa
/
api
/
budgets
Create Budget
curl --request POST \
--url https://api.meetcampfire.com/coa/api/budgets \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"start_date": "2023-12-25",
"description": "<string>",
"cadence": "<string>",
"end_date": "2023-12-25",
"periods": 16383,
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"currency": "<string>",
"entity": 123,
"department": 123
}
'import requests
url = "https://api.meetcampfire.com/coa/api/budgets"
payload = {
"name": "<string>",
"start_date": "2023-12-25",
"description": "<string>",
"cadence": "<string>",
"end_date": "2023-12-25",
"periods": 16383,
"tag_ids": [0],
"tag_group_ids": [0],
"currency": "<string>",
"entity": 123,
"department": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
start_date: '2023-12-25',
description: '<string>',
cadence: '<string>',
end_date: '2023-12-25',
periods: 16383,
tag_ids: [0],
tag_group_ids: [0],
currency: '<string>',
entity: 123,
department: 123
})
};
fetch('https://api.meetcampfire.com/coa/api/budgets', 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/budgets",
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([
'name' => '<string>',
'start_date' => '2023-12-25',
'description' => '<string>',
'cadence' => '<string>',
'end_date' => '2023-12-25',
'periods' => 16383,
'tag_ids' => [
0
],
'tag_group_ids' => [
0
],
'currency' => '<string>',
'entity' => 123,
'department' => 123
]),
CURLOPT_HTTPHEADER => [
"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/budgets"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"start_date\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"cadence\": \"<string>\",\n \"end_date\": \"2023-12-25\",\n \"periods\": 16383,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"currency\": \"<string>\",\n \"entity\": 123,\n \"department\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
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/budgets")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"start_date\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"cadence\": \"<string>\",\n \"end_date\": \"2023-12-25\",\n \"periods\": 16383,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"currency\": \"<string>\",\n \"entity\": 123,\n \"department\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/budgets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"start_date\": \"2023-12-25\",\n \"description\": \"<string>\",\n \"cadence\": \"<string>\",\n \"end_date\": \"2023-12-25\",\n \"periods\": 16383,\n \"tag_ids\": [\n 0\n ],\n \"tag_group_ids\": [\n 0\n ],\n \"currency\": \"<string>\",\n \"entity\": 123,\n \"department\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"entity_name": "<string>",
"prior_start_date": "<string>",
"prior_end_date": "<string>",
"department_name": "<string>",
"tags": [
{}
],
"is_deleted": false,
"deleted_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"start_date": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"last_modified_at": "2023-11-07T05:31:56Z",
"customer": 123,
"description": "<string>",
"cadence": "<string>",
"end_date": "2023-12-25",
"periods": 16383,
"breakdown_type": "standard",
"tag_ids": [
0
],
"tag_group_ids": [
0
],
"currency": "<string>",
"entity": 123,
"department": 123
}Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Required range:
0 <= x <= 32767standard- Standard (Account-based)department_row- Department (Row)
Available options:
standard, department_row Required range:
-9223372036854776000 <= x <= 9223372036854776000Required range:
-9223372036854776000 <= x <= 9223372036854776000Maximum string length:
3Response
201 - application/json
Show child attributes
Show child attributes
Required range:
0 <= x <= 32767standard- Standard (Account-based)department_row- Department (Row)
Available options:
standard, department_row Required range:
-9223372036854776000 <= x <= 9223372036854776000Required range:
-9223372036854776000 <= x <= 9223372036854776000Maximum string length:
3