curl --request PATCH \
--url https://api.breezing.io/v1/company \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp",
"accountingMethod": "fifo",
"balanceSheetSetup": "wallet-token",
"accountingIsPerWallet": true,
"isControlAccount": true,
"isCompact": true,
"xeroSyncJournalsAsPosted": true,
"feeAccount": "33",
"netGainAccount": "80",
"netLossAccount": "80",
"fiatFeeAccount": "6050",
"fxGainAccount": "8200",
"fxLossAccount": "8300",
"apAccount": "2000",
"apClearingAccount": "1250",
"booksLockDate": "2026-09-30",
"lockTransactions": true,
"financialYearEndMonth": 6,
"fullAccounting": true,
"accounts": [
{
"code": "6600",
"name": "Transaction fees",
"type": "Expense"
}
]
}
'import requests
url = "https://api.breezing.io/v1/company"
payload = {
"name": "Acme Corp",
"accountingMethod": "fifo",
"balanceSheetSetup": "wallet-token",
"accountingIsPerWallet": True,
"isControlAccount": True,
"isCompact": True,
"xeroSyncJournalsAsPosted": True,
"feeAccount": "33",
"netGainAccount": "80",
"netLossAccount": "80",
"fiatFeeAccount": "6050",
"fxGainAccount": "8200",
"fxLossAccount": "8300",
"apAccount": "2000",
"apClearingAccount": "1250",
"booksLockDate": "2026-09-30",
"lockTransactions": True,
"financialYearEndMonth": 6,
"fullAccounting": True,
"accounts": [
{
"code": "6600",
"name": "Transaction fees",
"type": "Expense"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Corp',
accountingMethod: 'fifo',
balanceSheetSetup: 'wallet-token',
accountingIsPerWallet: true,
isControlAccount: true,
isCompact: true,
xeroSyncJournalsAsPosted: true,
feeAccount: '33',
netGainAccount: '80',
netLossAccount: '80',
fiatFeeAccount: '6050',
fxGainAccount: '8200',
fxLossAccount: '8300',
apAccount: '2000',
apClearingAccount: '1250',
booksLockDate: '2026-09-30',
lockTransactions: true,
financialYearEndMonth: 6,
fullAccounting: true,
accounts: [{code: '6600', name: 'Transaction fees', type: 'Expense'}]
})
};
fetch('https://api.breezing.io/v1/company', 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.breezing.io/v1/company",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Corp',
'accountingMethod' => 'fifo',
'balanceSheetSetup' => 'wallet-token',
'accountingIsPerWallet' => true,
'isControlAccount' => true,
'isCompact' => true,
'xeroSyncJournalsAsPosted' => true,
'feeAccount' => '33',
'netGainAccount' => '80',
'netLossAccount' => '80',
'fiatFeeAccount' => '6050',
'fxGainAccount' => '8200',
'fxLossAccount' => '8300',
'apAccount' => '2000',
'apClearingAccount' => '1250',
'booksLockDate' => '2026-09-30',
'lockTransactions' => true,
'financialYearEndMonth' => 6,
'fullAccounting' => true,
'accounts' => [
[
'code' => '6600',
'name' => 'Transaction fees',
'type' => 'Expense'
]
]
]),
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.breezing.io/v1/company"
payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"accountingMethod\": \"fifo\",\n \"balanceSheetSetup\": \"wallet-token\",\n \"accountingIsPerWallet\": true,\n \"isControlAccount\": true,\n \"isCompact\": true,\n \"xeroSyncJournalsAsPosted\": true,\n \"feeAccount\": \"33\",\n \"netGainAccount\": \"80\",\n \"netLossAccount\": \"80\",\n \"fiatFeeAccount\": \"6050\",\n \"fxGainAccount\": \"8200\",\n \"fxLossAccount\": \"8300\",\n \"apAccount\": \"2000\",\n \"apClearingAccount\": \"1250\",\n \"booksLockDate\": \"2026-09-30\",\n \"lockTransactions\": true,\n \"financialYearEndMonth\": 6,\n \"fullAccounting\": true,\n \"accounts\": [\n {\n \"code\": \"6600\",\n \"name\": \"Transaction fees\",\n \"type\": \"Expense\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.breezing.io/v1/company")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"accountingMethod\": \"fifo\",\n \"balanceSheetSetup\": \"wallet-token\",\n \"accountingIsPerWallet\": true,\n \"isControlAccount\": true,\n \"isCompact\": true,\n \"xeroSyncJournalsAsPosted\": true,\n \"feeAccount\": \"33\",\n \"netGainAccount\": \"80\",\n \"netLossAccount\": \"80\",\n \"fiatFeeAccount\": \"6050\",\n \"fxGainAccount\": \"8200\",\n \"fxLossAccount\": \"8300\",\n \"apAccount\": \"2000\",\n \"apClearingAccount\": \"1250\",\n \"booksLockDate\": \"2026-09-30\",\n \"lockTransactions\": true,\n \"financialYearEndMonth\": 6,\n \"fullAccounting\": true,\n \"accounts\": [\n {\n \"code\": \"6600\",\n \"name\": \"Transaction fees\",\n \"type\": \"Expense\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breezing.io/v1/company")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp\",\n \"accountingMethod\": \"fifo\",\n \"balanceSheetSetup\": \"wallet-token\",\n \"accountingIsPerWallet\": true,\n \"isControlAccount\": true,\n \"isCompact\": true,\n \"xeroSyncJournalsAsPosted\": true,\n \"feeAccount\": \"33\",\n \"netGainAccount\": \"80\",\n \"netLossAccount\": \"80\",\n \"fiatFeeAccount\": \"6050\",\n \"fxGainAccount\": \"8200\",\n \"fxLossAccount\": \"8300\",\n \"apAccount\": \"2000\",\n \"apClearingAccount\": \"1250\",\n \"booksLockDate\": \"2026-09-30\",\n \"lockTransactions\": true,\n \"financialYearEndMonth\": 6,\n \"fullAccounting\": true,\n \"accounts\": [\n {\n \"code\": \"6600\",\n \"name\": \"Transaction fees\",\n \"type\": \"Expense\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"updated": 123,
"lockTaskId": 123
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Update Company API
Update Breezing company accounting settings, including cost-basis method, balance sheet setup, and default fee, gain, and loss account mappings via the API.
curl --request PATCH \
--url https://api.breezing.io/v1/company \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp",
"accountingMethod": "fifo",
"balanceSheetSetup": "wallet-token",
"accountingIsPerWallet": true,
"isControlAccount": true,
"isCompact": true,
"xeroSyncJournalsAsPosted": true,
"feeAccount": "33",
"netGainAccount": "80",
"netLossAccount": "80",
"fiatFeeAccount": "6050",
"fxGainAccount": "8200",
"fxLossAccount": "8300",
"apAccount": "2000",
"apClearingAccount": "1250",
"booksLockDate": "2026-09-30",
"lockTransactions": true,
"financialYearEndMonth": 6,
"fullAccounting": true,
"accounts": [
{
"code": "6600",
"name": "Transaction fees",
"type": "Expense"
}
]
}
'import requests
url = "https://api.breezing.io/v1/company"
payload = {
"name": "Acme Corp",
"accountingMethod": "fifo",
"balanceSheetSetup": "wallet-token",
"accountingIsPerWallet": True,
"isControlAccount": True,
"isCompact": True,
"xeroSyncJournalsAsPosted": True,
"feeAccount": "33",
"netGainAccount": "80",
"netLossAccount": "80",
"fiatFeeAccount": "6050",
"fxGainAccount": "8200",
"fxLossAccount": "8300",
"apAccount": "2000",
"apClearingAccount": "1250",
"booksLockDate": "2026-09-30",
"lockTransactions": True,
"financialYearEndMonth": 6,
"fullAccounting": True,
"accounts": [
{
"code": "6600",
"name": "Transaction fees",
"type": "Expense"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Corp',
accountingMethod: 'fifo',
balanceSheetSetup: 'wallet-token',
accountingIsPerWallet: true,
isControlAccount: true,
isCompact: true,
xeroSyncJournalsAsPosted: true,
feeAccount: '33',
netGainAccount: '80',
netLossAccount: '80',
fiatFeeAccount: '6050',
fxGainAccount: '8200',
fxLossAccount: '8300',
apAccount: '2000',
apClearingAccount: '1250',
booksLockDate: '2026-09-30',
lockTransactions: true,
financialYearEndMonth: 6,
fullAccounting: true,
accounts: [{code: '6600', name: 'Transaction fees', type: 'Expense'}]
})
};
fetch('https://api.breezing.io/v1/company', 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.breezing.io/v1/company",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Corp',
'accountingMethod' => 'fifo',
'balanceSheetSetup' => 'wallet-token',
'accountingIsPerWallet' => true,
'isControlAccount' => true,
'isCompact' => true,
'xeroSyncJournalsAsPosted' => true,
'feeAccount' => '33',
'netGainAccount' => '80',
'netLossAccount' => '80',
'fiatFeeAccount' => '6050',
'fxGainAccount' => '8200',
'fxLossAccount' => '8300',
'apAccount' => '2000',
'apClearingAccount' => '1250',
'booksLockDate' => '2026-09-30',
'lockTransactions' => true,
'financialYearEndMonth' => 6,
'fullAccounting' => true,
'accounts' => [
[
'code' => '6600',
'name' => 'Transaction fees',
'type' => 'Expense'
]
]
]),
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.breezing.io/v1/company"
payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"accountingMethod\": \"fifo\",\n \"balanceSheetSetup\": \"wallet-token\",\n \"accountingIsPerWallet\": true,\n \"isControlAccount\": true,\n \"isCompact\": true,\n \"xeroSyncJournalsAsPosted\": true,\n \"feeAccount\": \"33\",\n \"netGainAccount\": \"80\",\n \"netLossAccount\": \"80\",\n \"fiatFeeAccount\": \"6050\",\n \"fxGainAccount\": \"8200\",\n \"fxLossAccount\": \"8300\",\n \"apAccount\": \"2000\",\n \"apClearingAccount\": \"1250\",\n \"booksLockDate\": \"2026-09-30\",\n \"lockTransactions\": true,\n \"financialYearEndMonth\": 6,\n \"fullAccounting\": true,\n \"accounts\": [\n {\n \"code\": \"6600\",\n \"name\": \"Transaction fees\",\n \"type\": \"Expense\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.breezing.io/v1/company")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"accountingMethod\": \"fifo\",\n \"balanceSheetSetup\": \"wallet-token\",\n \"accountingIsPerWallet\": true,\n \"isControlAccount\": true,\n \"isCompact\": true,\n \"xeroSyncJournalsAsPosted\": true,\n \"feeAccount\": \"33\",\n \"netGainAccount\": \"80\",\n \"netLossAccount\": \"80\",\n \"fiatFeeAccount\": \"6050\",\n \"fxGainAccount\": \"8200\",\n \"fxLossAccount\": \"8300\",\n \"apAccount\": \"2000\",\n \"apClearingAccount\": \"1250\",\n \"booksLockDate\": \"2026-09-30\",\n \"lockTransactions\": true,\n \"financialYearEndMonth\": 6,\n \"fullAccounting\": true,\n \"accounts\": [\n {\n \"code\": \"6600\",\n \"name\": \"Transaction fees\",\n \"type\": \"Expense\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breezing.io/v1/company")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp\",\n \"accountingMethod\": \"fifo\",\n \"balanceSheetSetup\": \"wallet-token\",\n \"accountingIsPerWallet\": true,\n \"isControlAccount\": true,\n \"isCompact\": true,\n \"xeroSyncJournalsAsPosted\": true,\n \"feeAccount\": \"33\",\n \"netGainAccount\": \"80\",\n \"netLossAccount\": \"80\",\n \"fiatFeeAccount\": \"6050\",\n \"fxGainAccount\": \"8200\",\n \"fxLossAccount\": \"8300\",\n \"apAccount\": \"2000\",\n \"apClearingAccount\": \"1250\",\n \"booksLockDate\": \"2026-09-30\",\n \"lockTransactions\": true,\n \"financialYearEndMonth\": 6,\n \"fullAccounting\": true,\n \"accounts\": [\n {\n \"code\": \"6600\",\n \"name\": \"Transaction fees\",\n \"type\": \"Expense\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"updated": 123,
"lockTaskId": 123
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Query Parameters
Body
Cost-basis method used to compute realized net gain/loss when crypto is disposed: • "fifo" = First In, First Out: the earliest-acquired units are treated as sold first. • "average" = Weighted Average Cost (WAC): cost basis is the running average cost of all units held. • "lifo" = Last In, First Out: the most recently-acquired units are treated as sold first. • "hifo" = Highest In, First Out: the highest-cost units are treated as sold first. Changing the method does NOT retroactively rewrite past figures; run an NGL recompute (POST /ngl/calculate) afterward to apply it.
average, fifo, lifo, hifo "fifo"
Determines how crypto holdings are mapped to balance-sheet (asset) GL accounts: • "token" = Token Based: one GL account per token, aggregated across all wallets (e.g. all ETH rolls into "Crypto Assets - ETH"). Token→account mappings are managed via PATCH /assets/{id}. • "wallet" = Wallet Based: one GL account per custody location (wallet). Asset accounts are assigned per-transaction, typically automated with Rules. • "wallet-token" = Wallet-Token Based: one GL account per wallet+token pair (e.g. "Treasury Wallet - ETH"). Assigned per-transaction, typically with multi-condition Rules. "wallet" and "wallet-token" both require Rules to automate asset-account assignment.
token, wallet, wallet-token "wallet-token"
Per-Wallet cost basis. When true, realized net gain/loss is computed separately per wallet (each wallet keeps its own cost-basis pool). When false, a token's holdings are pooled across all wallets for cost-basis purposes. Affects NGL only; recompute NGL (POST /ngl/calculate) after changing.
Default GL account for on-chain gas / transaction fees. Provide an account CODE from the chart of accounts (call GET /company to list codes); the server resolves the code to its name and type automatically and stores the full mapping. Pass null to clear the mapping.
127"33"
Accounts Payable account: what the company owes suppliers. An approved received invoice books its expense against it. Provide an account CODE. Null clears it, and approved invoices then post no journals. Cannot be cleared while apClearingAccount is set.
127"2000"
AP Clearing account, needed by the QuickBooks bill payment loop only: transactions that pay an invoice are coded here and the bill payment is recorded from it (a Bank type account in QuickBooks). Provide an account CODE, or null to clear it. Rejected with 400 unless the company also has an apAccount.
127"1250"
Books Lock Date: the last locked day as yyyy-MM-dd (UTC), or null to unlock the books. A manual journal dated on or before it can no longer be posted, edited or voided, and the opening balances can no longer be replaced or removed. Only an Owner or a Manager of the company may move it: a key owned by an Editor gets 403.
10"2026-09-30"
When true, also lock every unlocked transaction dated on or before the books lock date (the one sent in this request, else the stored one) in a background task, whose id comes back as lockTaskId. A locked transaction dated in the locked period cannot be unlocked until the lock date moves back.
true
Financial year end: the month the financial year ends in, 1 (January) to 12 (December, the calendar year); the year ends on the last day of that month. It moves the year and quarter period presets of the dashboard (new reports and the VAT Report). Existing reports keep their dates.
1 <= x <= 126
Full Accounting switch. Display only: true shows the fiat accounting screens in the dashboard (Invoices & Tax, Journals, the financial statement tabs, the fiat settings), false hides them unless the company already uses them. It never changes a figure and never limits this API.
true
Replace the whole chart of accounts with this list (the dashboard CSV upload). Every code the transactions, rules and default account mappings reference must still be present or those references stop resolving at sync time. The previous chart is kept as a version in GET /company/accounts/history, so a mistake can be restored by re-sending that version. On a company connected to Xero, QuickBooks or Bexio, prefer the accounts refresh endpoints, which pull the chart from the platform.
5000Show child attributes
Show child attributes