Create a report using callback
This API allows you create a meev report by providing a list of transactions over the last 2 months and a callback url. The html report is sent to the callback url once the report is created.
Stage | URL |
---|---|
Staging | https://stgbackend.kliqr.services/api/v1/miv/report_callback |
Sample Request (POST)
POST
/api/v1/miv/report_callback
Request Body
{"cuid": "2265","fname": "ABIGAIL","month": "Aug","year": "2020","webhookUrl": "3bf14c2addf9b20340b5dc916c721d9b.m.pipedream.net","transactions": [{"description": "- TREVOR flights from ABIGAIL, TIM G. to ABIGAIL , THOMAS TIM","amount": 42500,"timestamp": 1521736374891,"isCredit": 0},{"description": "- TIM SCH FEES IFO : ZBN/TIM TREVOR","amount": 50600,"timestamp": 1537292387000,"isCredit": 0},{"description": "- TO DBN/ABIGAIL STEWART TIM","amount": 10000,"timestamp": 1518782780630,"isCredit": 0},{"description": "- TO DBN/AMANDA TREVOR TIM","amount": 50,"timestamp": 1518782772957,"isCredit": 0}]}
Success Response (200 OK)
{"success": true,"data": {"cuid": "2265","fname": "ABIGAIL","month": "Aug","year": "2020","webhookUrl": "3bf14c2addf9b20340b5dc916c721d9b.m.pipedream.net"}}
Authentication Failure Response (400 Bad Request)
{"success": false,"error": "Sorry, transactions are not within Aug 2020"}