Categorize a Transaction
This endpoint allows you to categorize a bank transaction that has been imported into Layer
Path Parameters
ID of the Business the bank transaction is associated with.
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
Set to Category
when categorizing the transaction as a single (non-split) category.
Category payload using an AccountId
Set to Category
when categorizing the transaction as a single (non-split) category.
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.
Set to Split
when categorizing the transaction as a single (non-split) category.
Array of entries consisting of a category and an amount.
Response
Returns the categorized Bank Transaction Object