Crea un presupuesto recurrente para una categoría (BUD-001)
curl --request POST \
--url https://api.finzaria.com/v1/v1/budgets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"categoryId": "<string>",
"amount": "4000.00",
"repeat": "month",
"startDate": "2026-07-01",
"budgetType": "expense",
"repeatUntil": "2026-12-31",
"rolloverEnabled": false,
"accountId": "<string>"
}
'import requests
url = "https://api.finzaria.com/v1/v1/budgets"
payload = {
"categoryId": "<string>",
"amount": "4000.00",
"repeat": "month",
"startDate": "2026-07-01",
"budgetType": "expense",
"repeatUntil": "2026-12-31",
"rolloverEnabled": False,
"accountId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
categoryId: '<string>',
amount: '4000.00',
repeat: 'month',
startDate: '2026-07-01',
budgetType: 'expense',
repeatUntil: '2026-12-31',
rolloverEnabled: false,
accountId: '<string>'
})
};
fetch('https://api.finzaria.com/v1/v1/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.finzaria.com/v1/v1/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([
'categoryId' => '<string>',
'amount' => '4000.00',
'repeat' => 'month',
'startDate' => '2026-07-01',
'budgetType' => 'expense',
'repeatUntil' => '2026-12-31',
'rolloverEnabled' => false,
'accountId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.finzaria.com/v1/v1/budgets"
payload := strings.NewReader("{\n \"categoryId\": \"<string>\",\n \"amount\": \"4000.00\",\n \"repeat\": \"month\",\n \"startDate\": \"2026-07-01\",\n \"budgetType\": \"expense\",\n \"repeatUntil\": \"2026-12-31\",\n \"rolloverEnabled\": false,\n \"accountId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.finzaria.com/v1/v1/budgets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"categoryId\": \"<string>\",\n \"amount\": \"4000.00\",\n \"repeat\": \"month\",\n \"startDate\": \"2026-07-01\",\n \"budgetType\": \"expense\",\n \"repeatUntil\": \"2026-12-31\",\n \"rolloverEnabled\": false,\n \"accountId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.finzaria.com/v1/v1/budgets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"categoryId\": \"<string>\",\n \"amount\": \"4000.00\",\n \"repeat\": \"month\",\n \"startDate\": \"2026-07-01\",\n \"budgetType\": \"expense\",\n \"repeatUntil\": \"2026-12-31\",\n \"rolloverEnabled\": false,\n \"accountId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"category": {
"id": "<string>",
"name": "<string>",
"parentId": "<string>"
},
"budgetType": "expense",
"amount": "4000.00",
"repeat": "month",
"startDate": "2026-07-01",
"repeatUntil": "<string>",
"rolloverEnabled": true,
"accountId": "<string>",
"period": {
"start": "2026-07-01",
"end": "2026-07-31"
},
"spent": "3500.00",
"rollover": "500.00",
"available": "1000.00",
"createdAt": "<string>"
}budgets
Crea un presupuesto recurrente para una categoría (BUD-001)
POST
/
v1
/
budgets
Crea un presupuesto recurrente para una categoría (BUD-001)
curl --request POST \
--url https://api.finzaria.com/v1/v1/budgets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"categoryId": "<string>",
"amount": "4000.00",
"repeat": "month",
"startDate": "2026-07-01",
"budgetType": "expense",
"repeatUntil": "2026-12-31",
"rolloverEnabled": false,
"accountId": "<string>"
}
'import requests
url = "https://api.finzaria.com/v1/v1/budgets"
payload = {
"categoryId": "<string>",
"amount": "4000.00",
"repeat": "month",
"startDate": "2026-07-01",
"budgetType": "expense",
"repeatUntil": "2026-12-31",
"rolloverEnabled": False,
"accountId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
categoryId: '<string>',
amount: '4000.00',
repeat: 'month',
startDate: '2026-07-01',
budgetType: 'expense',
repeatUntil: '2026-12-31',
rolloverEnabled: false,
accountId: '<string>'
})
};
fetch('https://api.finzaria.com/v1/v1/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.finzaria.com/v1/v1/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([
'categoryId' => '<string>',
'amount' => '4000.00',
'repeat' => 'month',
'startDate' => '2026-07-01',
'budgetType' => 'expense',
'repeatUntil' => '2026-12-31',
'rolloverEnabled' => false,
'accountId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.finzaria.com/v1/v1/budgets"
payload := strings.NewReader("{\n \"categoryId\": \"<string>\",\n \"amount\": \"4000.00\",\n \"repeat\": \"month\",\n \"startDate\": \"2026-07-01\",\n \"budgetType\": \"expense\",\n \"repeatUntil\": \"2026-12-31\",\n \"rolloverEnabled\": false,\n \"accountId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.finzaria.com/v1/v1/budgets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"categoryId\": \"<string>\",\n \"amount\": \"4000.00\",\n \"repeat\": \"month\",\n \"startDate\": \"2026-07-01\",\n \"budgetType\": \"expense\",\n \"repeatUntil\": \"2026-12-31\",\n \"rolloverEnabled\": false,\n \"accountId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.finzaria.com/v1/v1/budgets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"categoryId\": \"<string>\",\n \"amount\": \"4000.00\",\n \"repeat\": \"month\",\n \"startDate\": \"2026-07-01\",\n \"budgetType\": \"expense\",\n \"repeatUntil\": \"2026-12-31\",\n \"rolloverEnabled\": false,\n \"accountId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"category": {
"id": "<string>",
"name": "<string>",
"parentId": "<string>"
},
"budgetType": "expense",
"amount": "4000.00",
"repeat": "month",
"startDate": "2026-07-01",
"repeatUntil": "<string>",
"rolloverEnabled": true,
"accountId": "<string>",
"period": {
"start": "2026-07-01",
"end": "2026-07-31"
},
"spent": "3500.00",
"rollover": "500.00",
"available": "1000.00",
"createdAt": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Categoría a la que aplica el presupuesto (agrega su subárbol).
Monto por ciclo.
Example:
"4000.00"
Available options:
month, year, once Example:
"2026-07-01"
Available options:
expense, income Example:
"2026-12-31"
Cuenta opcional (sólo afina el Forecast).
Response
200 - application/json
Show child attributes
Show child attributes
Available options:
expense, income Example:
"4000.00"
Available options:
month, year, once, week, two_weeks Example:
"2026-07-01"
Show child attributes
Show child attributes
Gasto (o ingreso) real del ciclo.
Example:
"3500.00"
Rollover acumulado de ciclos previos (0 si off).
Example:
"500.00"
amount + rollover − spent.
Example:
"1000.00"