Categorize Transactions

This endpoint allows you to categorize your transactions using our machine learning model and merchant validation system.

Request

{{baseUrl}}/api/v1/ml/categorize_transaction

Headers

Parameter

Type

Description

AppId

string

you would need to create an app to get your app ID

Authorization

string

public secret key e.g prod_sk_1T1eSavlZxy02OT3OWlvbxK4G

Body Parameters

Parameter Type Description
description * string description of the transaction required
trans_type * string either debit or credit required

Response Sample

{
  "entity": {
    "category": "Bill Payments",
    "sub_category": "Others",
    "service_id": 0,
    "is_subscription": 0,
    "duration": "",
    "service_name": "",
    "label": "Others",
    "mode_of_payment": "web/pos"
  }
}
curl -L -X POST '{{baseUrl}}/ml/categorize_transactions' \
-H 'Authorization: SECRET_KEY' \
-H 'AppId: APP_ID'
-H 'Content-Type: application/json' \
--data-raw '{
    "description":"POS/WEB PURCHASE TRANSACTION -047608- -253842-MUNCHIES BY MOE OY OYNG ",
    "trans_type":"debit"
}'

Did this page help you?