Get notification by ID
GEThttps://core-prod.malipopay.co.tz/api/v1/notification/:id
Returns a single notification by its ID.
Request
Path Parameters
id stringrequired
Notification ID
Responses
- 200
- 404
- 500
Notification fetched successfully
- application/json
- Schema
- Example (auto)
Schema
_idstring
Example:
65a2c81f3d4e5b0c2f9a7e63titlestring
Example:
Payment Receivedmessagestring
Example:
You have received a payment of TZS 50,000 from John Doetypestring
Possible values: [INFO, WARNING, SUCCESS, ERROR]
Example:
SUCCESSrecipientstring
Example:
613771e99a924399394b795areadboolean
Whether the notification has been read
Example:
falsereferencestring
Example:
ML21030projectstring
Example:
63db68a6c5f3e7682e23c2cadeletedboolean
Example:
falsecreatedAtdate-time
Example:
2024-03-05T14:30:00.000ZupdatedAtdate-time
Example:
2024-03-05T14:30:00.000Z{
"_id": "65a2c81f3d4e5b0c2f9a7e63",
"title": "Payment Received",
"message": "You have received a payment of TZS 50,000 from John Doe",
"type": "SUCCESS",
"recipient": "613771e99a924399394b795a",
"read": false,
"reference": "ML21030",
"project": "63db68a6c5f3e7682e23c2ca",
"deleted": false,
"createdAt": "2024-03-05T14:30:00.000Z",
"updatedAt": "2024-03-05T14:30:00.000Z"
}
Notification not found
- application/json
- Schema
- Example (auto)
Schema
codeint32required
messagestringrequired
{
"code": 0,
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (auto)
Schema
codeint32required
messagestringrequired
{
"code": 0,
"message": "string"
}
Authorization: apiToken
name: apiTokentype: apiKeyin: headerdescription: Project API key. Get yours from the Malipopay dashboard under Settings → API Keys.
- curl
- python
- nodejs
- php
- java
- go
- CURL
curl -L 'https://core-prod.malipopay.co.tz/api/v1/notification/:id' \
-H 'Accept: application/json' \
-H 'apiToken: <apiToken>'
Response