Get recent activity
Request
Request header:
GET https://api.ipaymy.com/v2/recent_activity
Host: api.ipaymy.com
Accept: application/json
Authorization: Bearer your_access_token
Params:
pay_recent_activities:
y | n
fetch_recent_activities:
y | n
Response
Response body:
{
"data": {
"fetch_recent_activities": [
{
"customer_first_name": "Test",
"customer_last_name": "User 2",
"invoice_number": "INV# - 000043",
"invoice_id": 93945,
"date": "2023-04-26T05:46:24.523Z",
"payment_status_id": 0,
"activity": "invoice_sent",
"type": "invoice_send",
"is_done": true,
"recipient_name": "",
"receipt_number": "R34596-93945"
}
],
"pay_recent_activities": [
{
"customer_first_name": "",
"customer_last_name": "",
"invoice_number": "",
"invoice_id": 0,
"date": "2023-07-11T09:30:02.042202Z",
"payment_status_id": 3,
"activity": "scheduled",
"type": "invoice",
"is_done": true,
"recipient_name": "ALLERTRON INNOVATIONS (PTE. LTD.)",
"receipt_number": "34596-94707"
}
],
"total_fetch_recent_activities": 109,
"total_pay_recent_activities": 361
}
}
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.