Bank Transaction Categorization

Instantly categorize any bank transaction descriptions.

TLDR just give me the code:

Python
Python
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
Get Categories

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
Request
Response
Request
Query Parameters
api_key
required
string
The api_key provided by Photon Commerce as a string
txns
required
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.
Response
200: OK
{
"categories": ["Amazon", "Shopify", "Credit Card"]
}
500: Internal Server Error
{
"message": "Error with bank transaction categorization",
"status": "unsuccessful"
}