Create a budget

Creates a budget for a given accountId.

SecurityCommonAuth
Request
query Parameters
accountId
required
string

The ID of the account to work with.

Example: accountId=F50091
Request Body schema: application/json

Body

parentId
string or null <uuid> <= 36 characters

The ID of the budget to work with.

boxId
string

The ID of the box to work with.

name
string <= 75 characters

The name of the budget.

features
required
Array of strings
Enum: "payments" "peopleCards" "budgetCards"
currencies
Array of strings
Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BOV" "BRL" "BSD" "BTN" "BWP" "BYN" "BZD" "CAD" "CDF" "CHF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "INR" "IQD" "IRR" "ISK" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SEK" "SGD" "SHN" "SLL" "SOS" "SRD" "SSP" "STN" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XOF" "XPD" "XPF" "XPT" "YER" "ZAR" "ZMK" "ZMW" "ZWD"
type
required
string or null

The budget type.

Enum: "accountBalance" "forwardDeposits" "shared" "individual"
status
string
Enum: "active" "archived" "hidden"
personaId
string or null <uuid> <= 36 characters

The ID of the persona that must be assigned to the budget. Required only forindividual budgets.

Responses
201

Created

post/budgets
Request samples
application/json
{
  • "parentId": "775596ae-2624-40af-a9dc-9756110a4a03",
  • "boxId": "a43231c221",
  • "name": "Team Party",
  • "features": [
    ],
  • "currencies": [
    ],
  • "type": "accountBalance",
  • "status": "active",
  • "personaId": "0387819c-a33e-454c-ad84-570bf53cd75f"
}
Response samples
application/json
{
  • "id": "775596ae-2624-40af-a9dc-9756110a4a03",
  • "boxId": "a43231c221",
  • "name": "Team Party",
  • "accountId": "F50091",
  • "parentId": "775596ae-2624-40af-a9dc-9756110a4a03",
  • "feature": [
    ],
  • "currency": [
    ],
  • "balance": [
    ],
  • "totalBalance": [
    ],
  • "children": [
    ],
  • "details": [
    ],
  • "settlementDetails": {
    },
  • "individualBudgetHolder": {
    },
  • "priority": 1,
  • "level": 1,
  • "type": "accountBalance",
  • "status": "active",
  • "allowCurrencyAlignment": true,
  • "lowBalanceAlertEnabled": true,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}