GET
/transactionsListar Pagamentos
Lista todos os pagamentos com paginação e filtros.
Query Parameters
| Parâmetro | Tipo |
|---|---|
page | number |
limit | number |
Exemplo de Request
curlbash
curl -X GET "https://api.magnuspay.com.br/transactions?page=1&limit=10" \
-H "X-API-Key: magnus_sua_api_key"Resposta de Sucesso
200 OKjson
{
"success": true,
"data": {
"transactions": [
{
"id": "507f1f77bcf86cd799439011",
"externalId": "txn_abc123",
"type": "DEPOSIT",
"status": "COMPLETED",
"amount": 99.90,
"fee": 9.49,
"platformFee": 9.49,
"netAmount": 99.90,
"description": "Assinatura Premium",
"createdAt": "2024-01-15T14:00:00.000Z",
"completedAt": "2024-01-15T14:05:30.000Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 150,
"pages": 15
}
}
}