List all transactions
GEThttps://core-prod.malipopay.co.tz/api/v1/transactions
Returns all transaction records
Request
Responses
- 200
- 500
Transactions fetched successfully
- application/json
- Schema
- Example (auto)
Schema
docs object[]
totalDocsinteger
Example:
120limitinteger
Example:
10pageinteger
Example:
1totalPagesinteger
Example:
12{
"docs": [
{
"_id": "64f7a91c2e3b5d0a1c8e6f92",
"reference": "ML21030",
"amount": 50000,
"type": "Credit",
"status": "COMPLETED",
"description": "Payment collection from customer",
"account": "64a1bc3f9e12c4a2f1d8e7b3",
"currency": "TZS",
"project": "63db68a6c5f3e7682e23c2ca",
"deleted": false,
"createdAt": "2024-03-05T14:30:00.000Z",
"updatedAt": "2024-03-05T14:30:00.000Z"
}
],
"totalDocs": 120,
"limit": 10,
"page": 1,
"totalPages": 12
}
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/transactions' \
-H 'Accept: application/json' \
-H 'apiToken: <apiToken>'
Response