Skip to main content

Debt payment schedule

A debt in the Debt Center owns when it is paid. Its paymentSchedule generates and maintains the debt's bill, so the payment appears in upcoming payments, the calendar and the funding plan. Two additions make the schedule easier to set up: a first payment date for a debt whose payments start later, and a default source for the payment so a debt needs no category.

Both changes are additive. A debt that sets neither behaves exactly as before.

OperationMethod and pathScope
add-debt-plan-memberPOST /v1/workspaces/{workspaceID}/debt-plan/membersdebt:write
update-debt-plan-memberPATCH /v1/workspaces/{workspaceID}/debt-plan/members/{memberID}debt:write
list-debt-plan-members, get-debt-planGET /v1/workspaces/{workspaceID}/debt-plan/members, GET .../debt-plandebt:read
get-debt-plan-fundingGET /v1/workspaces/{workspaceID}/debt-plan/fundingdebt:read

The paymentSchedule object​

FieldTypeNotes
typestringmonthly.
dayintegerDay of the month the payment is due, 1 to 31. A month without that day uses its last day.
categoryIdstring, optionalCategory the payment is budgeted from. Leave it out for the default (see below).
firstPaymentDatestring or null, optionalYYYY-MM-DD. The earliest date the schedule may produce a payment.
paymentAccountIdstring or null, optionalThe account you plan to pay the debt from. See Payment account.

Debts report the same object, plus nextDueDate, which is the first due date on or after today and on or after firstPaymentDate.

First payment date​

Use firstPaymentDate when a debt's payments start later than the schedule alone implies, for example a loan whose first installment is next month, or a debt the household has already paid this month. The schedule produces no payment dated before it. The first payment is the first due date on or after the date, so a client normally sends the due date of the first month to pay.

{
"accountId": "acct_...",
"aprBasisPoints": 499,
"minimumPayment": {"type": "fixed", "amountMinor": 40000},
"paymentSchedule": {"type": "monthly", "day": 14, "firstPaymentDate": "2027-01-14"}
}

What the date changes:

  • Bill and calendar. The debt's bill has no occurrence before the date, so nothing shows as due or overdue earlier, in Bills, the calendar or upcoming payments.
  • Funding and planning. A period that ends before the first payment requires nothing for this debt, so there is nothing to assign or cover for it in that period, and the plan's extra payment goes to the debts that are being paid.
  • Projection. Interest still accrues on the debt before the first payment, and the projection has no scheduled payment for it in those months.
  • nextDueDate starts from the later of today and firstPaymentDate.

Dates are read against the workspace's time zone. A date that is today or earlier means the debt has already started and changes nothing; it is still stored and returned as sent.

Updating and clearing​

PATCH replaces the whole paymentSchedule, with one exception: leaving firstPaymentDate out keeps the stored date, and sending "firstPaymentDate": null clears it. Clearing the whole schedule with clearPaymentSchedule clears the date too.

  • Moving the date forward removes the unpaid occurrences it now skips, including ones whose due date has already passed. Occurrences with a payment matched to them, and ones the user has edited or skipped, are never removed.
  • Moving it back, or clearing it, lets the occurrences from the new date (never earlier than today) come back.

Validation​

ConditionResponse
Not a YYYY-MM-DD date422, debtFirstPaymentDateIsInvalid
More than 24 months after today422, debtFirstPaymentDateIsTooFarAhead

Default payment source​

categoryId is optional. When it is left out, the payment is budgeted from:

  1. the account's own payment category, for a managed credit card (unchanged);
  2. otherwise the Debt Paydown category, which is created if the workspace has none yet.

An explicit categoryId is still honored and stored. Naming the Debt Paydown category explicitly is accepted and stored as the default, so a read then omits categoryId, and a debt keeps following the default if its account later gains or loses a payment category. debtPaymentCategoryIsRequired is no longer returned for a schedule; clients that handled it can drop that branch.

Payment account​

paymentAccountId names the account you plan to pay the debt from. It is optional; without it the debt's bill has no account, and the account balance forecast leaves the payment out of every balance.

When it is set, the debt's generated bill gets that account, so Bill center shows it and account-balance-forecast subtracts each unpaid payment from that account on its due date. Paid (matched) bill payments are never changed.

The account must be an open account in the same workspace that money can be paid from (checking, savings, cash, digital wallet, asset or investment), and never the debt's own account. A credit card, a loan or another liability is refused with a 422 debtPaymentAccountIsNotEligible. The same error covers an archived or closed account and an ID from another workspace, so the response never says whether an ID exists elsewhere.

PATCH keeps the stored account when you leave paymentAccountId out, and clears it when you send "paymentAccountId": null. Clearing the whole schedule with clearPaymentSchedule clears it too. If the account is later archived, closed or deleted, the API clears it from the debt and from its bill; nothing fails. Debts that already had an account on their bill before this field existed report that account as paymentAccountId.

This only changes the account the payment leaves. The forecast does not yet credit the card's or loan's own balance for the payment.

The debt_paydown_pool destination​

get-debt-plan-funding reports, for each debt and payment, a destinationKind. It gains a value:

destinationKindMeaning
card_payment_reserveA credit card's payment reserve.
bill_categoryThe category the debt's bill is budgeted from.
debt_paydown_poolNew. The debt is held in the Debt Paydown category itself.
noneNo destination yet.

A debt held in the pool has nowhere to send money. Its requirement is a reservation inside the pool: allocation never makes a transfer for it, and what it holds is no longer available to give to debts that have a destination. Allocation is idempotent. After it runs the pool still holds exactly the reservations, so the next read shows those debts covered, nothing further to assign and no new movements.

The plan owns the bill for planning purposes, so the Debt Paydown requirement counts the payment once and Bills does not ask for it a second time.

MCP tools​

add_debt_plan_member and update_debt_plan_member take the same paymentSchedule object, including firstPaymentDate and paymentAccountId, and get_debt_plan and list_debts report it. The tool descriptions document the optional category and the update rule for firstPaymentDate.

Payment categories are managed by the Debt Center​

The payment category of every active debt (the paymentSchedule.categoryId you set, or the card's payment category) is managed by the Debt Center, the same way the Debt Paydown category already is. A debt that is removed, paid off or archived stops managing its category.

  • Marker. get-planning-period, get-planning-range and the funding screen return systemTarget ({"managed": true, "source": "debt_plan"}) on the category, in every period whether or not a payment falls due in it. It is absent on every other category. systemTarget on a debt's payment category means the planned amount and the target are both read-only, and it carries no target of its own: targetStatus.hasTarget is false.
  • Writes are refused. Setting a non-zero planned amount on it through replace-planning-period or replace-planning-range returns 422 INVALID_PLANNING_CATEGORY, with the entry's reason set to category_is_debt_managed and source set to debt_plan. A zero amount is accepted. Setting or deleting its target through set-category-target or delete-category-target returns 409 CATEGORY_TARGET_SYSTEM_MANAGED, with categoryId and source: debt_plan in the details. The MCP tools for these operations return the same errors.
  • Saved figures are ignored, not deleted. A planned amount or target saved before the debt existed no longer counts toward recommendedAmount, the planned total, or the funding screen's needed amount, and plannedAmount reads 0. Nothing is deleted, so the figures count again if the debt stops being active.

Payment breakdown for credit cards​

Every debt returned by get-debt-plan, list-debt-plan-members, and the add and update responses reports what the plan asks the household to pay this month, split into the payoff payment and funded new spending. The change is additive: existing fields are unchanged.

FieldTypeNotes
planPaymentMinorintegerPayoff payment the plan asks for this month: the debt's base payment plus the share of the plan's extra payment the strategy directs at it. Funded new spending is not included. 0 for a debt that is not active.
newSpendingDueMinorintegerFunded new spending not yet paid: the money budgeted purchases reserved in the card's payment category that is still there. Money moved out of the category no longer counts. Always 0 for a debt without a payment reserve, such as a loan, and for a debt that is paid off, removed or owes nothing beyond funded spending: its bill is dormant and asks for nothing.
paymentDueMinorintegerplanPaymentMinor plus newSpendingDueMinor.

Amounts are in the workspace's minor unit (cents at precision 2), like the minor value of a money object. The fields are set whether or not the debt has a payment schedule, so a card with no due day reports the breakdown too.

Funded new spending is not part of the payoff principal: currentBalance, the projection and minimum payments are unchanged by it. For a card with a payment schedule, the generated bill's next unpaid occurrence asks for paymentDueMinor while the debt is active. If the next due date already has a payment matched to it, that occurrence keeps its amount and the new spending is asked on the following due date instead. Funding (get-debt-plan-funding, apply funding) is unchanged: it never moves Debt Paydown money for the new-spending part.