PUT
/
v1
/
businesses
/
{business_id}
/
bank-transactions
/
{bank_transaction_id}
/
categorize

Path Parameters

business_id
string

ID of the Business the bank transaction is associated with.

bank_transaction_id
string

ID of the Bank Transaction to categorize.

Body

Either a Category or a Split may be provided. Splits are used when the transaction’s value should be allocated across multiple categories. This is most commonly the case when multiple items are purchased and those items should be categorized separately.

Category

Category payloads should have a type field and a category field. This category field can be any Account Identifier. The available categories can be fetched using the Fetch transaction categories endpoint.

Category payload using a StableName

type
enum
required

Set to Category when categorizing the transaction as a single (non-split) category.

category
enum
required

Category payload using an AccountId

type
enum
required

Set to Category when categorizing the transaction as a single (non-split) category.

category
enum
required

Split Categorizations

Splits are specified with an array of categorizations, as above, with an amount tied to each category. The total amount must exactly equal the amount of the transaction. Amounts are always specified in positive cents.

type
enum
required

Set to Split when categorizing the transaction as a single (non-split) category.

entries
array
required

Array of entries consisting of a category and an amount.

Response

Returns the categorized Bank Transaction Object