transactions

Create split transactions

Changed on

This endpoint creates two or more child transactions that are branched from a previous transaction. This endpoint allows you to link multiple categories, descriptions, and amounts to a parent transaction. When a split transaction is created, the parent transaction's has_been_split field will automatically be updated to true and the child transactions' parent_guid will have the transaction guid of the parent. The total amount of the child transactions must equal the amount of the parent transaction. Once a transaction has been split it can't be split again. In order to re-split a transaction, it must first be un-split. This can be done by calling the Delete Split Transactions endpoint. Calling this endpoint will delete the existing child transactions and update the parent transaction's has_been_split field to false. You can then re-split the parent transaction by calling Create Split Transaction again.

post/users/{user_guid}/transactions/{transaction_guid}/split

Request

  • Base URL
    https://int-api.mx.com
  • URL
    https://int-api.mx.com/users/{user_guid}/transactions/{transaction_guid}/split
  • Auth
    HTTP basic

Request body

Example request

{
  "transactions": {
    "amount": 54.19,
    "description": "Chevron Gas",
    "category_guid": "CAT-b6d61a19-30a7-e852-2703-bdfb4072289e",
    "memo": "Chips and Soda"
  }
}

Response

OK

Changes

    • warning

      deleted the path request parameter transaction_guid

    • warning

      deleted the path request parameter user_guid

    • info

      api operation id createSplitTransactions was added

    • info

      api tag transactions added

    • info

      api tag mx_platform removed

    • info

      added the optional property // to the response with the status

    • info

      the / request property type was generalized from integer to number