Skip to content

Budget

A Budget is the amount a Startup plans to spend or earn on one account in one Period, read against actual Entries.

Properties

PropertyTypeRequiredDescription
accountstringrequiredThe chart-of-accounts code it plans, such as expense.ads.
periodPeriodrequiredThe Period it plans.
amountmoneyrequiredThe amount set for the account in the Period.
actualmoneyWhat the Entries in the Period add up to so far.

Object

JSON
{
  "$id": "https://api.sb/patentpad.com/budgets/budget_1",
  "$type": "Budget",
  "account": "expense.ads",
  "period": "period_1",
  "amount": {
    "amount": 499,
    "currency": "USD"
  },
  "actual": {
    "amount": 499,
    "currency": "USD"
  }
}

Relationships

Verbs

  1. createCreates a Budget.
    POST /{namespace}/budgetsdoBudget.created
  2. getReturns one Budget by id.
    GET /{namespace}/budgets/{id}readNo Event
  3. listReturns Budgets, newest first, one page at a time.
    GET /{namespace}/budgetsreadNo Event
  4. updateChanges the given properties of a Budget.
    PATCH /{namespace}/budgets/{id}doBudget.updated
  5. deleteDeletes a Budget; its history is kept.
    DELETE /{namespace}/budgets/{id}doBudget.deleted

Permissions

Which Access level may call each Verb. One-way Verbs wait their delay window.

Operationowneradminmemberviewer
Budget.createYesYesYesNo
Budget.getYesYesYesYes
Budget.listYesYesYesYes
Budget.updateYesYesYesNo
Budget.deleteYesYesYesNo

Call it

Text
Add a budget to ShiftNote with a period.

Example

A tutoring marketplace sets a $4,000 Budget on expense.ads for one month. By the 18th its Entries add up to $3,100, so actual reads $3,100 and the remaining $900 bounds the month's ad spend.