Last MiV messages
This API enables you fetch a user's last Month In View (MiV) report by simply providing their id cu_id
.
Stage | URL |
---|---|
Staging | https://stgbackend.kliqr.services/api/v1/pfm/miv/messages |
Query Params
Property | Description | |
---|---|---|
cu_id | customer's user id | required |
Sample Request (GET)
GET
/api/v1/pfm/miv/messages
Success Response (200 OK)
{"success": true,"data": {"messages": [{"tag": "cash","metric": 18,"message": "Cash and Carry!!! About 18 times, your activities involved cash this month.","logo": "https://www.kliqr.com/image/miv/1x/fcmb.png"},{"tag": "gadgets & electronics","metric": 10035,"message": "You seem to love your gadgets & electronics, as they took up ₦10,035 this month. You must also have a thing for the renowned store. ","logo": "https://api.kliqr.com/images/icons/tags/gadgets.png"}],"month": "Feb","year": "2020"}}
Authentication Failure Response (400 Bad Request)
{"success": false,"error": "API key missing"}