Categorize a Transaction

This takes a transaction and returns a parent category, a child tag and the merchant where the transaction occured. See List Categories to get all available categories.

StageURL
Staginghttps://stgbackend.kliqr.services/api/tag/categorize/single

Body (urlencoded)

PropertyDescription
descriptionThis is the description string from a bank transactionrequired
timestamptimestamp of the transactionrequired
amountamount of the transactionrequired
isCredit1 for credit, 0 for debitrequired
cu_idcustomer's user idrequired
latlatitudeoptional
lonlongitudeoptional

Sample Request (POST)

POST

/api/tag/categorize/single

Success Response (200 OK)

{
"success": true,
"data": {
"category": {
"id": 107,
"name": "car & transport",
"icon": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/png/transportation_n_car.png",
"icon_svg": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/svg/transportation_n_car.svg"
},
"tag": {
"id": 1,
"name": "uber",
"icon": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/png/uber.png",
"icon_svg": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/svg/uber.svg"
},
"merchant": {
"id": 394,
"name": "Uber",
"icon": "https://www.kliqr.com/image/miv/1x/Uber.png",
"icon_sq": "https://www.kliqr.com/image/miv/sq/Uber.png"
},
"request_id": 11119452
}
}

Failure Response - No tag Found (404 Not Found)

{
"success": false,
"error": "No Tag Found",
"data": {
"request_id": 2536
}
}

Authentication Failure Response (403 Forbidden)

{
"success": false,
"error": "User authentication failed"
}
Run in Postman