Bank Transaction Categorization

Instantly categorize any bank transaction descriptions.

import requests

URL = "https://api.photoncommerce.com/api/v2/banktxn/"
params = {
  "api_key": <your_api_key>, 
  "txns": ["AMAZON PAY", "SHOPIFY TRANSFER", "CREDIT ON AMEX"]
}
response = requests.get(URL, params=params)

Get Categories

GET https://api.photoncommerce.com/api/v2/banktxn/

Send transactions in an array, where each transaction is a string. If there are multiple fields involved in a given transaction string, separate these by a "|" within the same string. This endpoint returns an array of categorizes, where each element corresponds to the original transactions. If you require customized categories, please send your categories and data to train and tune the machine learning to banktransactions @ photoncommerce.com

Query Parameters

NameTypeDescription

api_key

string

The api_key provided by Photon Commerce as a string

txns

array

An array of the bank transactions, each a string. Include the description of the transaction first, then the amount and id, separated by "|" in a string. The txns array should be a 1-D array, where each element is a string. Omit dates and any other superfluous information irrelevant to categorization.

{
  "categories": ["Amazon", "Shopify", "Credit Card"]
}

Last updated