Skip to main content

Spending Plan Overview

Use the Spending Plan endpoints to create your own version of our Spending Plan Widget, which helps end users track their spending throughout the month.

To understand key terms and how to best use these endpoints, see Build Your Own Spending Plan UI.

Spending Plan Fields

These fields relate to the spending_plan object.

Field NameData TypeDefinition
created_atLongThe date and time at which the spending_plan was created.
current_iteration_numberLongThe current active associated spending_plan_iteration number for a given spending_plan.
guidStringThe unique identifier for the spending_plan. Defined by MX.
updated_atLongThe date and time at which the spending_plan was most recently updated.
user_guid StringThe unique identifier for the user to which the spending_plan belongs. Defined by MX.
user_id StringThe unique partner-defined identifier for the user associated with the spending_plan.

Spending Plan Account Fields

These fields relate to the spending_plan_account object.

Field NameData TypeDefinition
account_guidStringThe unique identifier for the account associated with the spending_plan_account. Defined by MX.
created_atLongThe date and time at which the spending_plan_account was created.
guidStringThe unique identifier for the spending_plan_account. Defined by MX.
spending_plan_guidStringThe unique identifier for the spending_plan associated with the spending_plan_account. Defined by MX.
updated_atLongThe date and time at which the spending_plan_account was most recently updated.
user_guid StringThe unique identifier for the user to which the spending_plan_account belongs. Defined by MX.

Spending Plan Iteration Fields

These fields relate to the iteration object.

Field NameData TypeDefinition
created_atLongThe date and time at which the spending_plan_iteration was created.
end_onLongThe date on which the spending plan iteration ends.
guidStringThe unique identifier for the spending_plan_account. Defined by MX.
iteration_numberLongThe current iteration number for the spending plan iteration.
spending_plan_guidStringThe unique identifier for the spending_plan associated with the spending_plan_account. Defined by MX.
start_onLongThe date on which the spending plan iteration starts.
updated_atLongThe date and time at which the spending_plan_account was most recently updated.
user_guid StringThe unique identifier for the user to which the spending_plan_account belongs. Defined by MX.
user_idStringThe unique partner-defined identifier for the user associated with the spending plan iteration.

Spending Plan Iteration Item Fields

These fields relate to the iteration_item object.

Field NameData TypeDefinition
actual_amount DoubleThe sum of the transactions associated with the spending plan iteration_item.
category_guid StringThe unique identifier for the category_guid associated with the spending plan iteration_item. Defined by MX.
created_atLongThe date and time at which the spending plan iteration_item was created.
guidStringThe unique identifier for the spending plan iteration_item. Defined by MX.
item_type StringThe type of transaction grouping for the spending plan iteration_item.
  • 0 = RECURRING_EXPENSE
  • 1 = PLANNED_EXPENSE
  • 2 = OTHER_EXPENSE
  • 3 = INCOME
planned_amountDoubleThe total amount planned for a spending plan iteration_item.
scheduled_payment_guidStringThe unique identifier for the scheduled_payment_guid associated with the spending plan iteration_item. Defined by MX.
spending_plan_iteration_guidStringThe unique identifier for the spending plan iteration_item. Defined by MX.
top_level_category_guid StringThe unique identifier for the top_level_category_guid associated with the spending plan iteration_item. Defined by MX.
transaction_guids Array[String]An array of transaction GUIDs that are relevant to the spending plan iteration_item. Defined by MX.
updated_atLongThe date and time at which the spending plan iteration_item was most recently updated.
user_guid StringThe unique identifier for the user to which the spending plan iteration_item belongs. Defined by MX.
user_id StringThe unique partner-defined identifier for the user associated with the spending plan iteration_item.