Categorize Multiple Transactions

This endpoint takes a list of transactions as an array of json objects and categorizes them accordingly. It takes a maximum of 100 transactions per request.

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

Request Body

{
"transactions": [
{
"id": 1,
"timestamp": 2344,
"amount": 3000,
"is_credit": 0,
"description": "won't be able to tag this"
},
{
"id": 2,
"timestamp": 23444,
"amount": 3000,
"is_credit": 0,
"description": "kwikcash"
},
{
"id": 3,
"timestamp": 2344,
"amount": 3000,
"is_credit": 0,
"description": "UDEMY ONLINE COURSES CAUS USD"
}
],
"cu_id": (203948)[optional]
}

Sample Request (POST)

POST

/api/tag/categorize/batch

Success Response (200 OK)

{
"success": true,
"data": [
{
"id": 1,
"description": "wont be able to this this",
"result": false,
"request_id": 2542
},
{
"id": 2,
"description": "kwikcash",
"result": {
"category": {
"id": 0,
"name": "loan",
"icon": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/png/loan.png",
"icon_svg": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/svg/loan.svg"
},
"tag": {
"id": 22,
"name": "loan",
"icon": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/png/loan.png",
"icon_svg": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/svg/loan.svg"
},
"merchant": {
"id": 430,
"name": "Kwik money",
"icon": "https://www.kliqr.com/image/miv/1x/kwik_money.png",
"icon_sq": "https://www.kliqr.com/image/miv/sq/kwik_money.png"
},
"request_id": 11119466
}
},
{
"id": 3,
"description": "UDEMY ONLINE COURSES CAUS USD",
"result": {
"category": {
"id": 0,
"name": "education",
"icon": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/png/education.png",
"icon_svg": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/svg/education.svg"
},
"tag": {
"id": 49,
"name": "education",
"icon": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/png/education.png",
"icon_svg": "https://storage.googleapis.com/kliqr-dvr-static-files/tag-icons/v2/svg/education.svg"
},
"merchant": {
"id": 396,
"name": "Udemy",
"icon": "https://www.kliqr.com/image/miv/1x/udemy.png",
"icon_sq": "https://www.kliqr.com/image/miv/sq/udemy.png"
},
"request_id": 11119467
}
}
]
}

Authentication Failure Response (403 Forbidden)

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